about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2022-12-01 12:39:42 +0100
committerPhilipp Krones <hello@philkrones.com>2022-12-01 12:55:15 +0100
commit11434f270fca0e403b695e99d4bf0a7212c46f14 (patch)
treee0750ced79b59251e18f58d38f26b64430c74264 /src
parent58100c014a815f7bc30d58f27e4283166146fbbb (diff)
parent641ced4eb96d07fba2284fa258ccb987f7afc8a1 (diff)
downloadrust-11434f270fca0e403b695e99d4bf0a7212c46f14.tar.gz
rust-11434f270fca0e403b695e99d4bf0a7212c46f14.zip
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'src')
-rw-r--r--src/driver.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/driver.rs b/src/driver.rs
index ad6132a49ba..9ec4df8e651 100644
--- a/src/driver.rs
+++ b/src/driver.rs
@@ -1,6 +1,7 @@
 #![feature(rustc_private)]
 #![feature(let_chains)]
 #![feature(once_cell)]
+#![feature(lint_reasons)]
 #![cfg_attr(feature = "deny-warnings", deny(warnings))]
 // warn on lints, that are included in `rust-lang/rust`s bootstrap
 #![warn(rust_2018_idioms, unused_lifetimes)]
@@ -90,6 +91,10 @@ fn track_files(parse_sess: &mut ParseSess, conf_path_string: Option<String>) {
 
     // During development track the `clippy-driver` executable so that cargo will re-run clippy whenever
     // it is rebuilt
+    #[expect(
+        clippy::collapsible_if,
+        reason = "Due to a bug in let_chains this if statement can't be collapsed"
+    )]
     if cfg!(debug_assertions) {
         if let Ok(current_exe) = env::current_exe()
             && let Some(current_exe) = current_exe.to_str()