mirror of
https://github.com/dtolnay/cargo-expand.git
synced 2025-04-02 20:37: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:
|
with:
|
||||||
toolchain: ${{matrix.rust}}
|
toolchain: ${{matrix.rust}}
|
||||||
- name: Enable type layout randomization
|
- 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'
|
if: matrix.rust == 'nightly'
|
||||||
- run: cargo check --locked
|
- run: cargo check --locked
|
||||||
- run: cargo update
|
- run: cargo update
|
||||||
|
|
1
build.rs
1
build.rs
|
@ -4,7 +4,6 @@ use std::path::PathBuf;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
println!("cargo:rerun-if-changed=build.rs");
|
println!("cargo:rerun-if-changed=build.rs");
|
||||||
println!("cargo:rustc-check-cfg=cfg(exhaustive)");
|
|
||||||
println!("cargo:rustc-check-cfg=cfg(host_os, values(\"windows\"))");
|
println!("cargo:rustc-check-cfg=cfg(host_os, values(\"windows\"))");
|
||||||
|
|
||||||
let prettyplease_version = match env::var("DEP_PRETTYPLEASE02_VERSION") {
|
let prettyplease_version = match env::var("DEP_PRETTYPLEASE02_VERSION") {
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
clippy::trivially_copy_pass_by_ref,
|
clippy::trivially_copy_pass_by_ref,
|
||||||
clippy::uninlined_format_args,
|
clippy::uninlined_format_args,
|
||||||
)]
|
)]
|
||||||
#![cfg_attr(all(test, exhaustive), feature(non_exhaustive_omitted_patterns_lint))]
|
|
||||||
|
|
||||||
mod cmd;
|
mod cmd;
|
||||||
mod config;
|
mod config;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue