diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25023688a22..90007a2f8f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,12 +109,12 @@ jobs: run: | case "${{ matrix.target_feature }}" in default) - ;; + echo "RUSTFLAGS=-Dwarnings" >> $GITHUB_ENV;; native) - echo "RUSTFLAGS=-Ctarget-cpu=native" >> $GITHUB_ENV + echo "RUSTFLAGS=-Dwarnings -Ctarget-cpu=native" >> $GITHUB_ENV ;; *) - echo "RUSTFLAGS=-Ctarget-feature=${{ matrix.target_feature }}" >> $GITHUB_ENV + echo "RUSTFLAGS=-Dwarnings -Ctarget-feature=${{ matrix.target_feature }}" >> $GITHUB_ENV ;; esac @@ -251,4 +251,4 @@ jobs: - name: Check build run: cargo check --all-targets --no-default-features ${{ matrix.features }} env: - RUSTFLAGS: ${{ matrix.rustflags }} + RUSTFLAGS: -Dwarnings ${{ matrix.rustflags }} diff --git a/crates/core_simd/src/intrinsics.rs b/crates/core_simd/src/intrinsics.rs index 5f55cdf0399..6a6d26d10a7 100644 --- a/crates/core_simd/src/intrinsics.rs +++ b/crates/core_simd/src/intrinsics.rs @@ -68,7 +68,9 @@ extern "platform-intrinsic" { // reductions pub(crate) fn simd_reduce_add_ordered(x: T, y: U) -> U; pub(crate) fn simd_reduce_mul_ordered(x: T, y: U) -> U; + #[allow(unused)] pub(crate) fn simd_reduce_all(x: T) -> bool; + #[allow(unused)] pub(crate) fn simd_reduce_any(x: T) -> bool; pub(crate) fn simd_reduce_max(x: T) -> U; pub(crate) fn simd_reduce_min(x: T) -> U; @@ -77,6 +79,7 @@ extern "platform-intrinsic" { pub(crate) fn simd_reduce_xor(x: T) -> U; // truncate integer vector to bitmask + #[allow(unused)] pub(crate) fn simd_bitmask(x: T) -> U; // select diff --git a/crates/core_simd/src/vendor.rs b/crates/core_simd/src/vendor.rs index 8c8af43bf13..bdb9d45eb9d 100644 --- a/crates/core_simd/src/vendor.rs +++ b/crates/core_simd/src/vendor.rs @@ -1,4 +1,5 @@ /// Provides implementations of `From<$a> for $b` and `From<$b> for $a` that transmutes the value. +#[allow(unused)] macro_rules! from_transmute { { unsafe $a:ty => $b:ty } => { from_transmute!{ @impl $a => $b }