about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Macleod <alex@macleod.io>2025-03-19 02:19:33 +0000
committerAlex Macleod <alex@macleod.io>2025-04-10 13:39:23 +0000
commit94ec23934cbed631cdbd6ab365f9f4fe073ca8b0 (patch)
tree7d255da27b6a839c8601a71e6729b8c087b8cecc /src
parente85fcabd9f28e7fea60d0f87273d3b9e00029cb6 (diff)
downloadrust-94ec23934cbed631cdbd6ab365f9f4fe073ca8b0.tar.gz
rust-94ec23934cbed631cdbd6ab365f9f4fe073ca8b0.zip
Allow drivers to supply a list of extra symbols to intern
Diffstat (limited to 'src')
-rw-r--r--src/driver.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/driver.rs b/src/driver.rs
index e4092bcd105..df9c4e8e6ae 100644
--- a/src/driver.rs
+++ b/src/driver.rs
@@ -160,6 +160,7 @@ impl rustc_driver::Callbacks for ClippyCallbacks {
             clippy_lints::register_lints(lint_store, conf);
             clippy_lints::register_pre_expansion_lints(lint_store, conf);
         }));
+        config.extra_symbols = clippy_utils::sym::EXTRA_SYMBOLS.into();
 
         // FIXME: #4825; This is required, because Clippy lints that are based on MIR have to be
         // run on the unoptimized MIR. On the other hand this results in some false negatives. If