about summary refs log tree commit diff
path: root/compiler/rustc_lint/src/context/diagnostics.rs
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-06-08 13:26:37 +0200
committerUrgau <urgau@numericable.fr>2024-08-07 14:08:34 +0200
commitc0c57b3e2953241124810a59faf77d50e91b3e01 (patch)
treeb476ef8670ba6a289477ce815d913743bc7448c6 /compiler/rustc_lint/src/context/diagnostics.rs
parenteedb32dd122e9fc92c7ceacee1a4d2c1dc875bf6 (diff)
downloadrust-c0c57b3e2953241124810a59faf77d50e91b3e01.tar.gz
rust-c0c57b3e2953241124810a59faf77d50e91b3e01.zip
Disallow setting built-in cfgs via set the command-line
Diffstat (limited to 'compiler/rustc_lint/src/context/diagnostics.rs')
-rw-r--r--compiler/rustc_lint/src/context/diagnostics.rs3
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 a96af076477..f289d4c81b3 100644
--- a/compiler/rustc_lint/src/context/diagnostics.rs
+++ b/compiler/rustc_lint/src/context/diagnostics.rs
@@ -438,5 +438,8 @@ pub(super) fn decorate_lint(sess: &Session, diagnostic: BuiltinLintDiag, diag: &
         BuiltinLintDiag::OutOfScopeMacroCalls { path } => {
             lints::OutOfScopeMacroCalls { path }.decorate_lint(diag)
         }
+        BuiltinLintDiag::UnexpectedBuiltinCfg { cfg, cfg_name, controlled_by } => {
+            lints::UnexpectedBuiltinCfg { cfg, cfg_name, controlled_by }.decorate_lint(diag)
+        }
     }
 }