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:
109
109
run : |
110
110
case "${{ matrix.target_feature }}" in
111
111
default)
112
- ;;
112
+ echo "RUSTFLAGS=-Dwarnings" >> $GITHUB_ENV ;;
113
113
native)
114
- echo "RUSTFLAGS=-Ctarget-cpu=native" >> $GITHUB_ENV
114
+ echo "RUSTFLAGS=-Dwarnings - Ctarget-cpu=native" >> $GITHUB_ENV
115
115
;;
116
116
*)
117
- echo "RUSTFLAGS=-Ctarget-feature=${{ matrix.target_feature }}" >> $GITHUB_ENV
117
+ echo "RUSTFLAGS=-Dwarnings - Ctarget-feature=${{ matrix.target_feature }}" >> $GITHUB_ENV
118
118
;;
119
119
esac
120
120
@@ -251,4 +251,4 @@ jobs:
251
251
- name : Check build
252
252
run : cargo check --all-targets --no-default-features ${{ matrix.features }}
253
253
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" {
68
68
// reductions
69
69
pub ( crate ) fn simd_reduce_add_ordered < T , U > ( x : T , y : U ) -> U ;
70
70
pub ( crate ) fn simd_reduce_mul_ordered < T , U > ( x : T , y : U ) -> U ;
71
+ #[ allow( unused) ]
71
72
pub ( crate ) fn simd_reduce_all < T > ( x : T ) -> bool ;
73
+ #[ allow( unused) ]
72
74
pub ( crate ) fn simd_reduce_any < T > ( x : T ) -> bool ;
73
75
pub ( crate ) fn simd_reduce_max < T , U > ( x : T ) -> U ;
74
76
pub ( crate ) fn simd_reduce_min < T , U > ( x : T ) -> U ;
@@ -77,6 +79,7 @@ extern "platform-intrinsic" {
77
79
pub ( crate ) fn simd_reduce_xor < T , U > ( x : T ) -> U ;
78
80
79
81
// truncate integer vector to bitmask
82
+ #[ allow( unused) ]
80
83
pub ( crate ) fn simd_bitmask < T , U > ( x : T ) -> U ;
81
84
82
85
// select
Original file line number Diff line number Diff line change 1
1
/// Provides implementations of `From<$a> for $b` and `From<$b> for $a` that transmutes the value.
2
+ #[ allow( unused) ]
2
3
macro_rules! from_transmute {
3
4
{ unsafe $a: ty => $b: ty } => {
4
5
from_transmute!{ @impl $a => $b }
You can’t perform that action at this time.
0 commit comments