Skip to content

Commit

Permalink
remove #[primary_span]
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice committed Aug 17, 2022
1 parent b704843 commit 9efe979
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions compiler/rustc_typeck/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,15 +328,13 @@ pub struct SubstsOnOverriddenImpl {
#[derive(LintDiagnostic)]
#[lint(typeck::unused_extern_crate)]
pub struct UnusedExternCrate {
#[primary_span]
#[suggestion(applicability = "machine-applicable", code = "")]
pub span: Span,
}

#[derive(LintDiagnostic)]
#[lint(typeck::extern_crate_not_idiomatic)]
pub struct ExternCrateNotIdiomatic {
#[primary_span]
#[suggestion_short(applicability = "machine-applicable", code = "{suggestion_code}")]
pub span: Span,
pub msg_code: String,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
error: unused extern crate
--> $DIR/issue-54400-unused-extern-crate-attr-span.rs:11:1
--> $DIR/issue-54400-unused-extern-crate-attr-span.rs:12:1
|
LL | / #[cfg(blandiloquence)]
LL | | extern crate edition_lint_paths;
| |________________________________^ help: remove it
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
| |________________________________|
| help: remove it
|
note: the lint level is defined here
--> $DIR/issue-54400-unused-extern-crate-attr-span.rs:6:9
Expand Down

0 comments on commit 9efe979

Please sign in to comment.