Skip to content

Commit 5a85bec

Browse files
committed
Bless clippy test
1 parent 80a425f commit 5a85bec

9 files changed

+22
-22
lines changed

src/tools/clippy/tests/ui/cast_size.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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: only some diagnostics have suggestions
55

66
#![warn(
@@ -62,7 +62,7 @@ fn main() {
6262
//~^ cast_precision_loss
6363
9_999_999_999_999_999usize as f64;
6464
//~^ cast_precision_loss
65-
//~[32bit]^^ ERROR: literal out of range for `usize`
65+
//~[r32bit]^^ ERROR: literal out of range for `usize`
6666
// 999_999_999_999_999_999_999_999_999_999u128 as f128;
6767
}
6868

src/tools/clippy/tests/ui/fn_to_numeric_cast.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

7979
fn 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

8585
fn main() {}

src/tools/clippy/tests/ui/large_enum_variant.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
//@revisions: 32bit 64bit
1+
//@revisions: r32bit r64bit
22
//@aux-build:proc_macros.rs
33
//@no-rustfix
4-
//@[32bit]ignore-bitwidth: 64
5-
//@[64bit]ignore-bitwidth: 32
4+
//@[r32bit]ignore-bitwidth: 64
5+
//@[r64bit]ignore-bitwidth: 32
66
#![allow(dead_code)]
77
#![allow(unused_variables)]
88
#![warn(clippy::large_enum_variant)]
@@ -221,13 +221,13 @@ mod issue11915 {
221221
}
222222

223223
enum NoWarnings {
224-
//~[64bit]^ large_enum_variant
224+
//~[r64bit]^ large_enum_variant
225225
BigBoi(PublishWithBytes),
226226
_SmallBoi(u8),
227227
}
228228

229229
enum MakesClippyAngry {
230-
//~[64bit]^ large_enum_variant
230+
//~[r64bit]^ large_enum_variant
231231
BigBoi(PublishWithVec),
232232
_SmallBoi(u8),
233233
}

0 commit comments

Comments
 (0)