mirror of
https://github.com/dtolnay/cargo-expand.git
synced 2025-04-01 20:07:37 +03:00
Delete non_exhaustive_omitted_patterns lint and exhaustive cfg
This commit is contained in:
parent
26e12b16f4
commit
94ef1d73b0
3 changed files with 1 additions and 3 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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
|
||||
|
|
1
build.rs
1
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") {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue