diff options
| author | Rejyr <jerrylwang123@gmail.com> | 2022-10-06 20:28:51 -0400 |
|---|---|---|
| committer | Rejyr <jerrylwang123@gmail.com> | 2023-01-09 17:07:25 -0500 |
| commit | 80df25e1601880a2386495b469b19b60034ca382 (patch) | |
| tree | 4d40b453124be8d6c94f6cc427d6d678a0d39199 /compiler/rustc_lint/src/errors.rs | |
| parent | ab66ea61cf4b6f47109d9c24d5a3ce3ea169c60a (diff) | |
| download | rust-80df25e1601880a2386495b469b19b60034ca382.tar.gz rust-80df25e1601880a2386495b469b19b60034ca382.zip | |
migrate: `levels.rs`
Diffstat (limited to 'compiler/rustc_lint/src/errors.rs')
| -rw-r--r-- | compiler/rustc_lint/src/errors.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_lint/src/errors.rs b/compiler/rustc_lint/src/errors.rs index 82ec88fbeeb..0ea643fd69b 100644 --- a/compiler/rustc_lint/src/errors.rs +++ b/compiler/rustc_lint/src/errors.rs @@ -10,12 +10,12 @@ use rustc_span::{Span, Symbol}; #[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, |
