From 18b73602b86b003fccff0ab92de33ebc20f312d5 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Mon, 15 Nov 2021 18:50:10 -0700 Subject: Revert "Suppress a warning from the latest clippy" This reverts commit fb1ae125d931b2de5bae05df614e8af565bf31c6. Nightly clippy removed the warning in question. --- .cirrus.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 3848f920..c3d87611 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -5,7 +5,6 @@ cargo_cache: env: # Build by default; don't just check BUILD: build - CLIPPYFLAGS: -D warnings RUSTFLAGS: -D warnings RUSTDOCFLAGS: -D warnings TOOL: cargo @@ -19,7 +18,7 @@ build: &BUILD - . $HOME/.cargo/env || true - $TOOL +$TOOLCHAIN $BUILD $ZFLAGS --target $TARGET --all-targets - $TOOL +$TOOLCHAIN doc $ZFLAGS --no-deps --target $TARGET - - $TOOL +$TOOLCHAIN clippy $ZFLAGS --target $TARGET -- $CLIPPYFLAGS + - $TOOL +$TOOLCHAIN clippy $ZFLAGS --target $TARGET -- -D warnings # Tests that do require executing the binaries test: &TEST @@ -240,10 +239,6 @@ task: image: rustlang/rust:nightly env: BUILD: check - # Must allow here rather than in lib.rs because this lint doesn't exist - # prior to Rust 1.57.0 - # https://github.com/rust-lang/rust-clippy/issues/7718 - CLIPPYFLAGS: -D warnings -A clippy::if_then_panic TOOLCHAIN: nightly ZFLAGS: -Zbuild-std matrix: -- cgit v1.2.3 From 3ad742fadc71713de77557ff17f396f03e5016fa Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Mon, 15 Nov 2021 18:54:06 -0700 Subject: Update Redox compiler. The latest libc uses the native_link_modifiers feature, which isn't known by the old compiler used in the Redox builds. Update Redox's compiler to that used by the Redox project itself. --- .cirrus.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index c3d87611..03ed2e72 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -223,9 +223,9 @@ task: env: TARGET: x86_64-unknown-redox # Redox requires a nightly compiler. - # If stuff breaks, change nightly to the date in the toolchain_* - # directory at https://static.redox-os.org - TOOLCHAIN: nightly-2020-08-04 + # If stuff breaks, change nightly to the date at + # https://gitlab.redox-os.org/redox-os/redox/-/blob/master/rust-toolchain + TOOLCHAIN: nightly-2021-06-15 setup_script: - rustup target add $TARGET - rustup toolchain install $TOOLCHAIN --profile minimal --target $TARGET -- cgit v1.2.3 From 0df82ded4704caf78c32df941c170cdacc9688dc Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Mon, 15 Nov 2021 20:52:58 -0700 Subject: Suppress deprecation warnings on Dragonfly libc::stat is deprecated on DragonflyBSD in libc. But there isn't any alternative yet, so Nix must simply suppress the warnings. It's used in too many places to suppress each one individually, so just suppress all deprecation warnings globally until it's properly fixed. https://github.com/rust-lang/libc/pull/2522 --- .cirrus.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 03ed2e72..186443d2 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -245,6 +245,10 @@ task: - name: DragonFly BSD x86_64 env: TARGET: x86_64-unknown-dragonfly + # Temporarily allow deprecation on DragonflyBSD until an alternative is + # available. + #https://github.com/rust-lang/libc/pull/2522 + RUSTFLAGS: -D warnings -A deprecated - name: OpenBSD x86_64 env: TARGET: x86_64-unknown-openbsd -- cgit v1.2.3