[RFC 2397] Deny incorrect locations
This commit is contained in:
parent
b22c152958
commit
7dd45bafb4
7 changed files with 121 additions and 2 deletions
|
@ -14,6 +14,13 @@ use rustc_span::{Span, Symbol, DUMMY_SP};
|
|||
|
||||
use crate::lang_items::Duplicate;
|
||||
|
||||
#[derive(Diagnostic)]
|
||||
#[diag(passes_incorrect_do_not_recommend_location)]
|
||||
pub struct IncorrectDoNotRecommendLocation {
|
||||
#[primary_span]
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(LintDiagnostic)]
|
||||
#[diag(passes_outer_crate_level_attr)]
|
||||
pub struct OuterCrateLevelAttr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue