remove #[primary_span]
This commit is contained in:
parent
b704843c44
commit
9efe979511
2 changed files with 4 additions and 4 deletions
|
@ -328,7 +328,6 @@ pub struct SubstsOnOverriddenImpl {
|
|||
#[derive(LintDiagnostic)]
|
||||
#[lint(typeck::unused_extern_crate)]
|
||||
pub struct UnusedExternCrate {
|
||||
#[primary_span]
|
||||
#[suggestion(applicability = "machine-applicable", code = "")]
|
||||
pub span: Span,
|
||||
}
|
||||
|
@ -336,7 +335,6 @@ pub struct UnusedExternCrate {
|
|||
#[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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue