From 94ef1d73b0cd0ede810ba86c7ba5a6c98d18b678 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 19 Oct 2024 19:37:41 -0700 Subject: [PATCH] Delete non_exhaustive_omitted_patterns lint and exhaustive cfg --- .github/workflows/ci.yml | 2 +- build.rs | 1 - src/main.rs | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1574bdc..0386034 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/build.rs b/build.rs index 98016d8..ce2c9a2 100644 --- a/build.rs +++ b/build.rs @@ -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") { diff --git a/src/main.rs b/src/main.rs index 3f0bba2..7ecd933 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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;