From 80df25e1601880a2386495b469b19b60034ca382 Mon Sep 17 00:00:00 2001 From: Rejyr Date: Thu, 6 Oct 2022 20:28:51 -0400 Subject: migrate: `levels.rs` --- compiler/rustc_lint/src/errors.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/rustc_lint/src/errors.rs') 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, -- cgit 1.4.1-3-g733a5