diff options
| author | Jubilee Young <workingjubilee@gmail.com> | 2021-11-09 21:06:38 -0800 |
|---|---|---|
| committer | Jubilee <46493976+workingjubilee@users.noreply.github.com> | 2021-11-10 14:40:32 -0800 |
| commit | 949f71c0dc8716e285c164eae225db2d18333f0d (patch) | |
| tree | e48cc88498333b26dc5d84419887ba7a143dcf5f | |
| parent | c52083e25650d517435a100fc81f60e8a60d9d5b (diff) | |
| download | rust-949f71c0dc8716e285c164eae225db2d18333f0d.tar.gz rust-949f71c0dc8716e285c164eae225db2d18333f0d.zip | |
Deny warnings in CI and fix
| -rw-r--r-- | .github/workflows/ci.yml | 8 | ||||
| -rw-r--r-- | crates/core_simd/src/intrinsics.rs | 3 | ||||
| -rw-r--r-- | crates/core_simd/src/vendor.rs | 1 |
3 files changed, 8 insertions, 4 deletions
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<T, U>(x: T, y: U) -> U; pub(crate) fn simd_reduce_mul_ordered<T, U>(x: T, y: U) -> U; + #[allow(unused)] pub(crate) fn simd_reduce_all<T>(x: T) -> bool; + #[allow(unused)] pub(crate) fn simd_reduce_any<T>(x: T) -> bool; pub(crate) fn simd_reduce_max<T, U>(x: T) -> U; pub(crate) fn simd_reduce_min<T, U>(x: T) -> U; @@ -77,6 +79,7 @@ extern "platform-intrinsic" { pub(crate) fn simd_reduce_xor<T, U>(x: T) -> U; // truncate integer vector to bitmask + #[allow(unused)] pub(crate) fn simd_bitmask<T, U>(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 } |
