Delete non_exhaustive_omitted_patterns lint and exhaustive cfg

This commit is contained in:
David Tolnay 2024-10-19 19:37:41 -07:00
parent 26e12b16f4
commit 94ef1d73b0
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
3 changed files with 1 additions and 3 deletions

View file

@ -43,7 +43,7 @@ jobs:
with:
toolchain: ${{matrix.rust}}
- name: Enable type layout randomization
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout\ --cfg=exhaustive >> $GITHUB_ENV
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
if: matrix.rust == 'nightly'
- run: cargo check --locked
- run: cargo update

View file

@ -4,7 +4,6 @@ use std::path::PathBuf;
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-check-cfg=cfg(exhaustive)");
println!("cargo:rustc-check-cfg=cfg(host_os, values(\"windows\"))");
let prettyplease_version = match env::var("DEP_PRETTYPLEASE02_VERSION") {

View file

@ -15,7 +15,6 @@
clippy::trivially_copy_pass_by_ref,
clippy::uninlined_format_args,
)]
#![cfg_attr(all(test, exhaustive), feature(non_exhaustive_omitted_patterns_lint))]
mod cmd;
mod config;