Skip to content

Commit

Permalink
Merge pull request #236 from dtolnay/exhaustive
Browse files Browse the repository at this point in the history
Delete non_exhaustive_omitted_patterns lint and exhaustive cfg
  • Loading branch information
dtolnay authored Oct 20, 2024
2 parents 26e12b1 + 94ef1d7 commit e0ae005
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e0ae005

Please sign in to comment.