diff options
| author | Michael Scholten <michael-scholten@hotmail.nl> | 2024-04-23 11:47:51 +0200 |
|---|---|---|
| committer | Michael Scholten <michael-scholten@hotmail.nl> | 2024-04-24 09:41:44 +0200 |
| commit | 3c5e88c7d19fee810ce5bdaaae8c9da8caabd6eb (patch) | |
| tree | 1719e31cb7b317a8546ce2a4d6bd9f4a52756ceb /compiler/rustc_macros/build.rs | |
| parent | c67277301c896857d0534f2bb7431680796833fb (diff) | |
| download | rust-3c5e88c7d19fee810ce5bdaaae8c9da8caabd6eb.tar.gz rust-3c5e88c7d19fee810ce5bdaaae8c9da8caabd6eb.zip | |
Improved the compiler code with clippy
Diffstat (limited to 'compiler/rustc_macros/build.rs')
| -rw-r--r-- | compiler/rustc_macros/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_macros/build.rs b/compiler/rustc_macros/build.rs index 717f8a92245..62e827371a7 100644 --- a/compiler/rustc_macros/build.rs +++ b/compiler/rustc_macros/build.rs @@ -1,7 +1,7 @@ fn main() { println!("cargo:rerun-if-changed=build.rs"); println!("cargo:rerun-if-env-changed=RUSTC_BOOTSTRAP"); - if !std::env::var("RUSTC_BOOTSTRAP").is_ok() { + if std::env::var("RUSTC_BOOTSTRAP").is_err() { eprintln!( "error: you are attempting to build the compiler without going through bootstrap" ); |
