]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_lint/src/errors.rs
Rollup merge of #107724 - klensy:imports, r=Mark-Simulacrum
[rust.git] / compiler / rustc_lint / src / errors.rs
index 82ec88fbeebd18f926bc8808db5005d952cf6faa..f3ae26091863d964f7c9f827153d9f202f153cc7 100644 (file)
@@ -1,5 +1,3 @@
-#![deny(rustc::untranslatable_diagnostic)]
-#![deny(rustc::diagnostic_outside_of_impl)]
 use rustc_errors::{
     fluent, AddToDiagnostic, Diagnostic, ErrorGuaranteed, Handler, IntoDiagnostic,
     SubdiagnosticMessage,
 
 #[derive(Diagnostic)]
 #[diag(lint_overruled_attribute, code = "E0453")]
-pub struct OverruledAttribute {
+pub struct OverruledAttribute<'a> {
     #[primary_span]
     pub span: Span,
     #[label]
     pub overruled: Span,
-    pub lint_level: String,
+    pub lint_level: &'a str,
     pub lint_source: Symbol,
     #[subdiagnostic]
     pub sub: OverruledAttributeSub,