File tree 2 files changed +4
-4
lines changed
compiler/rustc_typeck/src
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -328,15 +328,13 @@ pub struct SubstsOnOverriddenImpl {
328
328
#[ derive( LintDiagnostic ) ]
329
329
#[ lint( typeck:: unused_extern_crate) ]
330
330
pub struct UnusedExternCrate {
331
- #[ primary_span]
332
331
#[ suggestion( applicability = "machine-applicable" , code = "" ) ]
333
332
pub span : Span ,
334
333
}
335
334
336
335
#[ derive( LintDiagnostic ) ]
337
336
#[ lint( typeck:: extern_crate_not_idiomatic) ]
338
337
pub struct ExternCrateNotIdiomatic {
339
- #[ primary_span]
340
338
#[ suggestion_short( applicability = "machine-applicable" , code = "{suggestion_code}" ) ]
341
339
pub span : Span ,
342
340
pub msg_code : String ,
Original file line number Diff line number Diff line change 1
1
error: 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
3
3
|
4
4
LL | / #[cfg(blandiloquence)]
5
5
LL | | extern crate edition_lint_paths;
6
- | |________________________________^ help: remove it
6
+ | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
7
+ | |________________________________|
8
+ | help: remove it
7
9
|
8
10
note: the lint level is defined here
9
11
--> $DIR/issue-54400-unused-extern-crate-attr-span.rs:6:9
You can’t perform that action at this time.
0 commit comments