1
Fork 0

make hir::Ty/ConstArg methods generic where applicable

This commit is contained in:
Boxy 2025-01-19 00:16:39 +00:00
parent 3b5ea05142
commit 23e28d3641
4 changed files with 23 additions and 13 deletions

View file

@ -77,7 +77,7 @@ fn gen_args(cx: &LateContext<'_>, segment: &PathSegment<'_>) -> String {
.tcx
.sess
.source_map()
.span_to_snippet(c.as_unambig_ct().span())
.span_to_snippet(c.span())
.unwrap_or_else(|_| "_".into()),
GenericArg::Infer(_) => String::from("_"),
})