diff --git a/compiler/rustc_resolve/src/lib.rs b/compiler/rustc_resolve/src/lib.rs index 086f0249114b..3342bd146c4e 100644 --- a/compiler/rustc_resolve/src/lib.rs +++ b/compiler/rustc_resolve/src/lib.rs @@ -3207,7 +3207,7 @@ fn add_suggestion_for_rename_of_use( } } } - ImportKind::ExternCrate { source, target, .. } => { + ImportKind::ExternCrate { source, target } => { suggestion = Some(format!( "extern crate {} as {};", source.unwrap_or(target.name),