mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
remove #[primary_span]
This commit is contained in:
parent
b704843c44
commit
9efe979511
@ -328,7 +328,6 @@ pub struct SubstsOnOverriddenImpl {
|
|||||||
#[derive(LintDiagnostic)]
|
#[derive(LintDiagnostic)]
|
||||||
#[lint(typeck::unused_extern_crate)]
|
#[lint(typeck::unused_extern_crate)]
|
||||||
pub struct UnusedExternCrate {
|
pub struct UnusedExternCrate {
|
||||||
#[primary_span]
|
|
||||||
#[suggestion(applicability = "machine-applicable", code = "")]
|
#[suggestion(applicability = "machine-applicable", code = "")]
|
||||||
pub span: Span,
|
pub span: Span,
|
||||||
}
|
}
|
||||||
@ -336,7 +335,6 @@ pub struct UnusedExternCrate {
|
|||||||
#[derive(LintDiagnostic)]
|
#[derive(LintDiagnostic)]
|
||||||
#[lint(typeck::extern_crate_not_idiomatic)]
|
#[lint(typeck::extern_crate_not_idiomatic)]
|
||||||
pub struct ExternCrateNotIdiomatic {
|
pub struct ExternCrateNotIdiomatic {
|
||||||
#[primary_span]
|
|
||||||
#[suggestion_short(applicability = "machine-applicable", code = "{suggestion_code}")]
|
#[suggestion_short(applicability = "machine-applicable", code = "{suggestion_code}")]
|
||||||
pub span: Span,
|
pub span: Span,
|
||||||
pub msg_code: String,
|
pub msg_code: String,
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
error: unused extern crate
|
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 | / #[cfg(blandiloquence)]
|
||||||
LL | | extern crate edition_lint_paths;
|
LL | | extern crate edition_lint_paths;
|
||||||
| |________________________________^ help: remove it
|
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
|
||||||
|
| |________________________________|
|
||||||
|
| help: remove it
|
||||||
|
|
|
|
||||||
note: the lint level is defined here
|
note: the lint level is defined here
|
||||||
--> $DIR/issue-54400-unused-extern-crate-attr-span.rs:6:9
|
--> $DIR/issue-54400-unused-extern-crate-attr-span.rs:6:9
|
||||||
|
Loading…
Reference in New Issue
Block a user