1- //@revisions: 32bit 64bit
2- //@[32bit ]ignore-bitwidth: 64
3- //@[64bit ]ignore-bitwidth: 32
1+ //@revisions: r32bit r64bit
2+ //@[r32bit ]ignore-bitwidth: 64
3+ //@[r64bit ]ignore-bitwidth: 32
44//@no-rustfix
55#![ warn( clippy:: fn_to_numeric_cast, clippy:: fn_to_numeric_cast_with_truncation) ]
66
@@ -14,8 +14,8 @@ fn test_function_to_numeric_cast() {
1414 let _ = foo as i16 ;
1515 //~^ fn_to_numeric_cast_with_truncation
1616 let _ = foo as i32 ;
17- //~[64bit ]^ fn_to_numeric_cast_with_truncation
18- //~[32bit ]^^ fn_to_numeric_cast
17+ //~[r64bit ]^ fn_to_numeric_cast_with_truncation
18+ //~[r32bit ]^^ fn_to_numeric_cast
1919 let _ = foo as i64 ;
2020 //~^ fn_to_numeric_cast
2121 let _ = foo as i128 ;
@@ -28,8 +28,8 @@ fn test_function_to_numeric_cast() {
2828 let _ = foo as u16 ;
2929 //~^ fn_to_numeric_cast_with_truncation
3030 let _ = foo as u32 ;
31- //~[64bit ]^ fn_to_numeric_cast_with_truncation
32- //~[32bit ]^^ fn_to_numeric_cast
31+ //~[r64bit ]^ fn_to_numeric_cast_with_truncation
32+ //~[r32bit ]^^ fn_to_numeric_cast
3333 let _ = foo as u64 ;
3434 //~^ fn_to_numeric_cast
3535 let _ = foo as u128 ;
@@ -51,8 +51,8 @@ fn test_function_var_to_numeric_cast() {
5151 let _ = abc as i16 ;
5252 //~^ fn_to_numeric_cast_with_truncation
5353 let _ = abc as i32 ;
54- //~[64bit ]^ fn_to_numeric_cast_with_truncation
55- //~[32bit ]^^ fn_to_numeric_cast
54+ //~[r64bit ]^ fn_to_numeric_cast_with_truncation
55+ //~[r32bit ]^^ fn_to_numeric_cast
5656 let _ = abc as i64 ;
5757 //~^ fn_to_numeric_cast
5858 let _ = abc as i128 ;
@@ -65,8 +65,8 @@ fn test_function_var_to_numeric_cast() {
6565 let _ = abc as u16 ;
6666 //~^ fn_to_numeric_cast_with_truncation
6767 let _ = abc as u32 ;
68- //~[64bit ]^ fn_to_numeric_cast_with_truncation
69- //~[32bit ]^^ fn_to_numeric_cast
68+ //~[r64bit ]^ fn_to_numeric_cast_with_truncation
69+ //~[r32bit ]^^ fn_to_numeric_cast
7070 let _ = abc as u64 ;
7171 //~^ fn_to_numeric_cast
7272 let _ = abc as u128 ;
@@ -78,8 +78,8 @@ fn test_function_var_to_numeric_cast() {
7878
7979fn fn_with_fn_args ( f : fn ( i32 ) -> i32 ) -> i32 {
8080 f as i32
81- //~[64bit ]^ fn_to_numeric_cast_with_truncation
82- //~[32bit ]^^ fn_to_numeric_cast
81+ //~[r64bit ]^ fn_to_numeric_cast_with_truncation
82+ //~[r32bit ]^^ fn_to_numeric_cast
8383}
8484
8585fn main ( ) { }
0 commit comments