Skip to content

Commit 78149e6

Browse files
committed
rustfmt
1 parent 6ada397 commit 78149e6

File tree

2 files changed

+7
-4
lines changed
  • compiler/rustc_hir_analysis/src/hir_ty_lowering
  • src/librustdoc/clean

2 files changed

+7
-4
lines changed

compiler/rustc_hir_analysis/src/hir_ty_lowering/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2382,11 +2382,12 @@ impl<'tcx> dyn HirTyLowerer<'tcx> + '_ {
23822382
hir::ConstArgKind::Anon(anon) => self.lower_const_arg_anon(anon),
23832383
hir::ConstArgKind::Infer(span, ()) => self.ct_infer(None, span),
23842384
hir::ConstArgKind::Error(_, e) => ty::Const::new_error(tcx, e),
2385-
hir::ConstArgKind::Literal(span, kind) if let FeedConstTy::Param(param_def_id, args) = feed
2386-
=> {
2385+
hir::ConstArgKind::Literal(span, kind)
2386+
if let FeedConstTy::Param(param_def_id, args) = feed =>
2387+
{
23872388
let anon_const_type = tcx.type_of(param_def_id).instantiate(tcx, args);
23882389
self.lower_const_arg_literal(kind, anon_const_type, span)
2389-
},
2390+
}
23902391
}
23912392
}
23922393

src/librustdoc/clean/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ pub(crate) fn clean_const<'tcx>(constant: &hir::ConstArg<'tcx>) -> ConstantKind
328328
}
329329
hir::ConstArgKind::Anon(anon) => ConstantKind::Anonymous { body: anon.body },
330330
hir::ConstArgKind::Infer(..) | hir::ConstArgKind::Error(..) => ConstantKind::Infer,
331-
hir::ConstArgKind::Literal(..) => ConstantKind::Path { path: "/* LITERAL */".to_string().into() }
331+
hir::ConstArgKind::Literal(..) => {
332+
ConstantKind::Path { path: "/* LITERAL */".to_string().into() }
333+
}
332334
}
333335
}
334336

0 commit comments

Comments
 (0)