File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff 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 }}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11/// Provides implementations of `From<$a> for $b` and `From<$b> for $a` that transmutes the value.
2+ #[ allow( unused) ]
23macro_rules! from_transmute {
34 { unsafe $a: ty => $b: ty } => {
45 from_transmute!{ @impl $a => $b }
You can’t perform that action at this time.
0 commit comments