diff options
| author | Peter Jaszkowiak <p.jaszkow@gmail.com> | 2024-04-14 17:37:45 -0600 |
|---|---|---|
| committer | Peter Jaszkowiak <p.jaszkow@gmail.com> | 2024-10-08 18:21:16 -0600 |
| commit | 321a5db7d4026cf703d6deebc413c855ba133142 (patch) | |
| tree | f9760cc3beb7c6854859f1298ff0d6e9f85ac127 /compiler/rustc_lint/src/context/diagnostics.rs | |
| parent | 6f4ae0f34503601e54680a137c1db0b81b56cc3d (diff) | |
| download | rust-321a5db7d4026cf703d6deebc413c855ba133142.tar.gz rust-321a5db7d4026cf703d6deebc413c855ba133142.zip | |
Reserve guarded string literals (RFC 3593)
Diffstat (limited to 'compiler/rustc_lint/src/context/diagnostics.rs')
| -rw-r--r-- | compiler/rustc_lint/src/context/diagnostics.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/context/diagnostics.rs b/compiler/rustc_lint/src/context/diagnostics.rs index b5ab56912cb..565c3c04252 100644 --- a/compiler/rustc_lint/src/context/diagnostics.rs +++ b/compiler/rustc_lint/src/context/diagnostics.rs @@ -176,6 +176,9 @@ pub(super) fn decorate_lint(sess: &Session, diagnostic: BuiltinLintDiag, diag: & lints::RawPrefix { label: label_span, suggestion: label_span.shrink_to_hi() } .decorate_lint(diag); } + BuiltinLintDiag::ReservedString(suggestion) => { + lints::ReservedString { suggestion }.decorate_lint(diag); + } BuiltinLintDiag::UnusedBuiltinAttribute { attr_name, macro_name, invoc_span } => { lints::UnusedBuiltinAttribute { invoc_span, attr_name, macro_name }.decorate_lint(diag); } |
