File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
compiler/rustc_hir_analysis/src/hir_ty_lowering Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments