X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_passes%2Fsrc%2Ferrors.rs;h=9c6519ea4bb24be91a133b22d716ca376593ae4d;hb=35a8d6fea4ae1770b1c819f7686be7b2355981c1;hp=c6cd69add28a04837c20fa0640419cee5ccb7af7;hpb=adb8ba3cfe8e3ebf5d6b60858dd18fcc3375b6d4;p=rust.git diff --git a/compiler/rustc_passes/src/errors.rs b/compiler/rustc_passes/src/errors.rs index c6cd69add28..9c6519ea4bb 100644 --- a/compiler/rustc_passes/src/errors.rs +++ b/compiler/rustc_passes/src/errors.rs @@ -14,6 +14,13 @@ 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;