File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ mod tests {
41
41
assert_eq ! ( to_u32( 2147483647usize ) . unwrap( ) , 2147483647 ) ;
42
42
assert_eq ! ( to_u32( 2147483648usize ) . unwrap( ) , 2147483648 ) ;
43
43
assert_eq ! ( to_u32( 4294967295usize ) . unwrap( ) , 4294967295 ) ;
44
-
44
+ // Gate required for Rust 1.77.0 in Linux, possibly a Rust/clippy regression bug
45
+ #[ cfg( target_pointer_width = "64" ) ]
45
46
match to_u32 ( 4294967296usize ) {
46
47
Err ( VmError :: ConversionErr {
47
48
from_type,
@@ -130,6 +131,8 @@ mod tests {
130
131
assert_eq ! ( ref_to_u32( & 2147483647usize ) . unwrap( ) , 2147483647 ) ;
131
132
assert_eq ! ( ref_to_u32( & 2147483648usize ) . unwrap( ) , 2147483648 ) ;
132
133
assert_eq ! ( ref_to_u32( & 4294967295usize ) . unwrap( ) , 4294967295 ) ;
134
+ // Gate required for Rust 1.77.0 in Linux, possibly a Rust/clippy regression bug
135
+ #[ cfg( target_pointer_width = "64" ) ]
133
136
match ref_to_u32 ( & 4294967296usize ) . unwrap_err ( ) {
134
137
VmError :: ConversionErr {
135
138
from_type,
You can’t perform that action at this time.
0 commit comments