Skip to content

Commit 9efe979

Browse files
committed
remove #[primary_span]
1 parent b704843 commit 9efe979

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/rustc_typeck/src/errors.rs

-2
Original file line numberDiff line numberDiff line change
@@ -328,15 +328,13 @@ pub struct SubstsOnOverriddenImpl {
328328
#[derive(LintDiagnostic)]
329329
#[lint(typeck::unused_extern_crate)]
330330
pub 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)]
338337
pub struct ExternCrateNotIdiomatic {
339-
#[primary_span]
340338
#[suggestion_short(applicability = "machine-applicable", code = "{suggestion_code}")]
341339
pub span: Span,
342340
pub msg_code: String,

src/test/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.stderr

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
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
33
|
44
LL | / #[cfg(blandiloquence)]
55
LL | | extern crate edition_lint_paths;
6-
| |________________________________^ help: remove it
6+
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
7+
| |________________________________|
8+
| help: remove it
79
|
810
note: the lint level is defined here
911
--> $DIR/issue-54400-unused-extern-crate-attr-span.rs:6:9

0 commit comments

Comments
 (0)