about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/errors.rs
diff options
context:
space:
mode:
authorRejyr <jerrylwang123@gmail.com>2022-09-18 10:31:35 -0400
committerRejyr <jerrylwang123@gmail.com>2023-01-09 17:07:25 -0500
commit8b897bbce6902a646f5de5df6ec4d92b0af98788 (patch)
tree2a48d030c389bf58ef430253a61c4c9aff011de4 /compiler/rustc_lint/src/errors.rs
parentc63ba52562a0c6c8d19b320c558d437bb8d87bd8 (diff)
downloadrust-8b897bbce6902a646f5de5df6ec4d92b0af98788.tar.gz
rust-8b897bbce6902a646f5de5df6ec4d92b0af98788.zip
migrate: `early.rs` and `enum_intrinsics_non_enums.rs`
Diffstat (limited to 'compiler/rustc_lint/src/errors.rs')
-rw-r--r--compiler/rustc_lint/src/errors.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_lint/src/errors.rs b/compiler/rustc_lint/src/errors.rs
index 1a769893f55..cc34357fa4b 100644
--- a/compiler/rustc_lint/src/errors.rs
+++ b/compiler/rustc_lint/src/errors.rs
@@ -38,6 +38,7 @@ impl AddToDiagnostic for OverruledAttributeSub {
             OverruledAttributeSub::NodeSource { span, reason } => {
                 diag.span_label(span, fluent::lint_node_source);
                 if let Some(rationale) = reason {
+                    #[allow(rustc::diagnostic_outside_of_impl)]
                     diag.note(rationale.as_str());
                 }
             }