File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ pub(crate) fn clean_const<'tcx>(
290
290
ConstantKind :: Path { path : qpath_to_string ( qpath) . into ( ) }
291
291
}
292
292
hir:: ConstArgKind :: Anon ( anon) => ConstantKind :: Anonymous { body : anon. body } ,
293
- hir:: ConstArgKind :: Infer ( _ ) => ConstantKind :: Infer ,
293
+ hir:: ConstArgKind :: Infer ( .. ) => ConstantKind :: Infer ,
294
294
}
295
295
}
296
296
@@ -1820,7 +1820,7 @@ pub(crate) fn clean_ty<'tcx>(ty: &hir::Ty<'tcx>, cx: &mut DocContext<'tcx>) -> T
1820
1820
let ct = cx. tcx . normalize_erasing_regions ( typing_env, ct) ;
1821
1821
print_const ( cx, ct)
1822
1822
}
1823
- _ => {
1823
+ hir :: ConstArgKind :: Path ( .. ) => {
1824
1824
let ct = lower_const_arg_for_rustdoc ( cx. tcx , const_arg, FeedConstTy :: No ) ;
1825
1825
print_const ( cx, ct)
1826
1826
}
You can’t perform that action at this time.
0 commit comments