Avoid regex in fnmatch crate #1085
ci.yaml
on: pull_request
Build & Test Project
5m 28s
Annotations
14 warnings
[clippy] crates/serpent_buildinfo/src/lib.rs#L49:
crates/serpent_buildinfo/src/lib.rs#L49
warning: unexpected `cfg` condition name: `BUILDINFO_IS_GIT_BUILD`
--> crates/serpent_buildinfo/src/lib.rs:49:7
|
49 | #[cfg(BUILDINFO_IS_GIT_BUILD)]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: expected names are: `clippy`, `debug_assertions`, `doc`, `docsrs`, `doctest`, `feature`, `miri`, `overflow_checks`, `panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, `sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, `target_abi`, `target_arch`, `target_endian`, `target_env`, `target_family`, `target_feature`, `target_has_atomic`, `target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, `target_os`, `target_pointer_width`, `target_thread_local`, `target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_GIT_BUILD)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_GIT_BUILD)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
= note: `#[warn(unexpected_cfgs)]` on by default
|
[clippy] crates/serpent_buildinfo/src/lib.rs#L59:
crates/serpent_buildinfo/src/lib.rs#L59
warning: unexpected `cfg` condition name: `BUILDINFO_IS_GIT_BUILD`
--> crates/serpent_buildinfo/src/lib.rs:59:11
|
59 | #[cfg(not(BUILDINFO_IS_GIT_BUILD))]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_GIT_BUILD)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_GIT_BUILD)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
[clippy] crates/serpent_buildinfo/src/lib.rs#L67:
crates/serpent_buildinfo/src/lib.rs#L67
warning: unexpected `cfg` condition name: `BUILDINFO_IS_GIT_BUILD`
--> crates/serpent_buildinfo/src/lib.rs:67:7
|
67 | #[cfg(BUILDINFO_IS_GIT_BUILD)]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_GIT_BUILD)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_GIT_BUILD)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
[clippy] crates/serpent_buildinfo/src/lib.rs#L75:
crates/serpent_buildinfo/src/lib.rs#L75
warning: unexpected `cfg` condition name: `BUILDINFO_IS_GIT_BUILD`
--> crates/serpent_buildinfo/src/lib.rs:75:11
|
75 | #[cfg(not(BUILDINFO_IS_GIT_BUILD))]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_GIT_BUILD)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_GIT_BUILD)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
[clippy] crates/serpent_buildinfo/src/lib.rs#L83:
crates/serpent_buildinfo/src/lib.rs#L83
warning: unexpected `cfg` condition name: `BUILDINFO_IS_GIT_BUILD`
--> crates/serpent_buildinfo/src/lib.rs:83:7
|
83 | #[cfg(BUILDINFO_IS_GIT_BUILD)]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_GIT_BUILD)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_GIT_BUILD)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
[clippy] crates/serpent_buildinfo/src/lib.rs#L91:
crates/serpent_buildinfo/src/lib.rs#L91
warning: unexpected `cfg` condition name: `BUILDINFO_IS_GIT_BUILD`
--> crates/serpent_buildinfo/src/lib.rs:91:11
|
91 | #[cfg(not(BUILDINFO_IS_GIT_BUILD))]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_GIT_BUILD)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_GIT_BUILD)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
[clippy] crates/serpent_buildinfo/src/values.rs#L9:
crates/serpent_buildinfo/src/values.rs#L9
warning: unexpected `cfg` condition name: `BUILDINFO_IS_GIT_BUILD`
--> crates/serpent_buildinfo/src/values.rs:9:7
|
9 | #[cfg(BUILDINFO_IS_GIT_BUILD)]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_GIT_BUILD)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_GIT_BUILD)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
[clippy] crates/serpent_buildinfo/src/values.rs#L12:
crates/serpent_buildinfo/src/values.rs#L12
warning: unexpected `cfg` condition name: `BUILDINFO_IS_GIT_BUILD`
--> crates/serpent_buildinfo/src/values.rs:12:7
|
12 | #[cfg(BUILDINFO_IS_GIT_BUILD)]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_GIT_BUILD)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_GIT_BUILD)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
[clippy] crates/serpent_buildinfo/src/values.rs#L15:
crates/serpent_buildinfo/src/values.rs#L15
warning: unexpected `cfg` condition name: `BUILDINFO_IS_GIT_BUILD`
--> crates/serpent_buildinfo/src/values.rs:15:7
|
15 | #[cfg(BUILDINFO_IS_GIT_BUILD)]
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_GIT_BUILD)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_GIT_BUILD)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
[clippy] crates/serpent_buildinfo/src/lib.rs#L32:
crates/serpent_buildinfo/src/lib.rs#L32
warning: unexpected `cfg` condition name: `BUILDINFO_IS_GIT_BUILD`
--> crates/serpent_buildinfo/src/lib.rs:32:10
|
32 | cfg!(BUILDINFO_IS_GIT_BUILD)
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_GIT_BUILD)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_GIT_BUILD)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
[clippy] crates/serpent_buildinfo/src/lib.rs#L37:
crates/serpent_buildinfo/src/lib.rs#L37
warning: unexpected `cfg` condition name: `BUILDINFO_IS_DIRTY`
--> crates/serpent_buildinfo/src/lib.rs:37:13
|
37 | if cfg!(BUILDINFO_IS_DIRTY) {
| ^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_DIRTY)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_DIRTY)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
[clippy] crates/serpent_buildinfo/src/lib.rs#L100:
crates/serpent_buildinfo/src/lib.rs#L100
warning: unexpected `cfg` condition name: `BUILDINFO_IS_GIT_BUILD`
--> crates/serpent_buildinfo/src/lib.rs:100:23
|
100 | let git = if cfg!(BUILDINFO_IS_GIT_BUILD) {
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_GIT_BUILD)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_GIT_BUILD)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
[clippy] crates/serpent_buildinfo/src/lib.rs#L112:
crates/serpent_buildinfo/src/lib.rs#L112
warning: unexpected `cfg` condition name: `BUILDINFO_IS_GIT_BUILD`
--> crates/serpent_buildinfo/src/lib.rs:112:23
|
112 | let git = if cfg!(BUILDINFO_IS_GIT_BUILD) {
| ^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider using a Cargo feature instead
= help: or consider adding in `Cargo.toml` the `check-cfg` lint config for the lint:
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(BUILDINFO_IS_GIT_BUILD)'] }
= help: or consider adding `println!("cargo::rustc-check-cfg=cfg(BUILDINFO_IS_GIT_BUILD)");` to the top of the `build.rs`
= note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
|
Build & Test Project
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/cache@v3, giraffate/clippy-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|