This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
compiler/rustc_typeck/src Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -328,15 +328,13 @@ pub struct SubstsOnOverriddenImpl {
328328#[ derive( LintDiagnostic ) ]
329329#[ lint( typeck:: unused_extern_crate) ]
330330pub struct UnusedExternCrate {
331- #[ primary_span]
332331 #[ suggestion( applicability = "machine-applicable" , code = "" ) ]
333332 pub span : Span ,
334333}
335334
336335#[ derive( LintDiagnostic ) ]
337336#[ lint( typeck:: extern_crate_not_idiomatic) ]
338337pub struct ExternCrateNotIdiomatic {
339- #[ primary_span]
340338 #[ suggestion_short( applicability = "machine-applicable" , code = "{suggestion_code}" ) ]
341339 pub span : Span ,
342340 pub msg_code : String ,
Original file line number Diff line number Diff line change 11error: unused extern crate
2- --> $DIR/issue-54400-unused-extern-crate-attr-span.rs:11 :1
2+ --> $DIR/issue-54400-unused-extern-crate-attr-span.rs:12 :1
33 |
44LL | / #[cfg(blandiloquence)]
55LL | | extern crate edition_lint_paths;
6- | |________________________________^ help: remove it
6+ | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
7+ | |________________________________|
8+ | help: remove it
79 |
810note: the lint level is defined here
911 --> $DIR/issue-54400-unused-extern-crate-attr-span.rs:6:9
You can’t perform that action at this time.
0 commit comments