Skip to content

Commit bcf1fda

Browse files
committed
Replace wildcard matches
1 parent 646714e commit bcf1fda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/clean/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ pub(crate) fn clean_const<'tcx>(
290290
ConstantKind::Path { path: qpath_to_string(qpath).into() }
291291
}
292292
hir::ConstArgKind::Anon(anon) => ConstantKind::Anonymous { body: anon.body },
293-
hir::ConstArgKind::Infer(_) => ConstantKind::Infer,
293+
hir::ConstArgKind::Infer(..) => ConstantKind::Infer,
294294
}
295295
}
296296

@@ -1820,7 +1820,7 @@ pub(crate) fn clean_ty<'tcx>(ty: &hir::Ty<'tcx>, cx: &mut DocContext<'tcx>) -> T
18201820
let ct = cx.tcx.normalize_erasing_regions(typing_env, ct);
18211821
print_const(cx, ct)
18221822
}
1823-
_ => {
1823+
hir::ConstArgKind::Path(..) => {
18241824
let ct = lower_const_arg_for_rustdoc(cx.tcx, const_arg, FeedConstTy::No);
18251825
print_const(cx, ct)
18261826
}

0 commit comments

Comments
 (0)