Skip to content

Commit 949f71c

Browse files
Deny warnings in CI and fix
1 parent c52083e commit 949f71c

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ jobs:
109109
run: |
110110
case "${{ matrix.target_feature }}" in
111111
default)
112-
;;
112+
echo "RUSTFLAGS=-Dwarnings" >> $GITHUB_ENV;;
113113
native)
114-
echo "RUSTFLAGS=-Ctarget-cpu=native" >> $GITHUB_ENV
114+
echo "RUSTFLAGS=-Dwarnings -Ctarget-cpu=native" >> $GITHUB_ENV
115115
;;
116116
*)
117-
echo "RUSTFLAGS=-Ctarget-feature=${{ matrix.target_feature }}" >> $GITHUB_ENV
117+
echo "RUSTFLAGS=-Dwarnings -Ctarget-feature=${{ matrix.target_feature }}" >> $GITHUB_ENV
118118
;;
119119
esac
120120
@@ -251,4 +251,4 @@ jobs:
251251
- name: Check build
252252
run: cargo check --all-targets --no-default-features ${{ matrix.features }}
253253
env:
254-
RUSTFLAGS: ${{ matrix.rustflags }}
254+
RUSTFLAGS: -Dwarnings ${{ matrix.rustflags }}

crates/core_simd/src/intrinsics.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ extern "platform-intrinsic" {
6868
// reductions
6969
pub(crate) fn simd_reduce_add_ordered<T, U>(x: T, y: U) -> U;
7070
pub(crate) fn simd_reduce_mul_ordered<T, U>(x: T, y: U) -> U;
71+
#[allow(unused)]
7172
pub(crate) fn simd_reduce_all<T>(x: T) -> bool;
73+
#[allow(unused)]
7274
pub(crate) fn simd_reduce_any<T>(x: T) -> bool;
7375
pub(crate) fn simd_reduce_max<T, U>(x: T) -> U;
7476
pub(crate) fn simd_reduce_min<T, U>(x: T) -> U;
@@ -77,6 +79,7 @@ extern "platform-intrinsic" {
7779
pub(crate) fn simd_reduce_xor<T, U>(x: T) -> U;
7880

7981
// truncate integer vector to bitmask
82+
#[allow(unused)]
8083
pub(crate) fn simd_bitmask<T, U>(x: T) -> U;
8184

8285
// select

crates/core_simd/src/vendor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/// Provides implementations of `From<$a> for $b` and `From<$b> for $a` that transmutes the value.
2+
#[allow(unused)]
23
macro_rules! from_transmute {
34
{ unsafe $a:ty => $b:ty } => {
45
from_transmute!{ @impl $a => $b }

0 commit comments

Comments
 (0)