diff options
Diffstat (limited to 'compiler/rustc_monomorphize/src')
| -rw-r--r-- | compiler/rustc_monomorphize/src/polymorphize.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/polymorphize.rs b/compiler/rustc_monomorphize/src/polymorphize.rs index 489d513c104..cf13c856a71 100644 --- a/compiler/rustc_monomorphize/src/polymorphize.rs +++ b/compiler/rustc_monomorphize/src/polymorphize.rs @@ -201,7 +201,7 @@ fn emit_unused_generic_params_error<'tcx>( return; } - let fn_span = match tcx.opt_item_name(def_id) { + let fn_span = match tcx.opt_item_ident(def_id) { Some(ident) => ident.span, _ => tcx.def_span(def_id), }; |
