make hir::Ty/ConstArg
methods generic where applicable
This commit is contained in:
parent
3b5ea05142
commit
23e28d3641
4 changed files with 23 additions and 13 deletions
|
@ -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("_"),
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue