diff options
| author | Michael Goulet <michael@errs.io> | 2024-09-05 05:43:55 -0400 | 
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-09-06 10:32:48 -0400 | 
| commit | 97910580aadab067ef13b5d0094a57e124c743ea (patch) | |
| tree | 8fd86ff49b72fb83a0a446c860b543ef9cbf6606 /compiler/rustc_lint/src/lints.rs | |
| parent | 3b3e43a386a9b89609fe529921bdd49ba3511fb8 (diff) | |
| download | rust-97910580aadab067ef13b5d0094a57e124c743ea.tar.gz rust-97910580aadab067ef13b5d0094a57e124c743ea.zip | |
Add initial support for raw lifetimes
Diffstat (limited to 'compiler/rustc_lint/src/lints.rs')
| -rw-r--r-- | compiler/rustc_lint/src/lints.rs | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/compiler/rustc_lint/src/lints.rs b/compiler/rustc_lint/src/lints.rs index 9050f36acba..8b62e716929 100644 --- a/compiler/rustc_lint/src/lints.rs +++ b/compiler/rustc_lint/src/lints.rs @@ -2773,6 +2773,15 @@ pub(crate) struct ReservedPrefix { } #[derive(LintDiagnostic)] +#[diag(lint_raw_prefix)] +pub(crate) struct RawPrefix { + #[label] + pub label: Span, + #[suggestion(code = " ", applicability = "machine-applicable")] + pub suggestion: Span, +} + +#[derive(LintDiagnostic)] #[diag(lint_unused_builtin_attribute)] pub(crate) struct UnusedBuiltinAttribute { #[note] | 
