Skip to content

Commit 72fc40c

Browse files
committed
Fix fn_to_numeric_cast 32 bit stderr
1 parent ca4557c commit 72fc40c

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

tests/ui/fn_to_numeric_cast.32bit.stderr

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: casting function pointer `foo` to `i8`, which truncates the value
2-
--> tests/ui/fn_to_numeric_cast.rs:12:13
2+
--> tests/ui/fn_to_numeric_cast.rs:13:13
33
|
44
LL | let _ = foo as i8;
55
| ^^^^^^^^^ help: try: `foo as usize`
@@ -8,13 +8,13 @@ LL | let _ = foo as i8;
88
= help: to override `-D warnings` add `#[allow(clippy::fn_to_numeric_cast_with_truncation)]`
99

1010
error: casting function pointer `foo` to `i16`, which truncates the value
11-
--> tests/ui/fn_to_numeric_cast.rs:14:13
11+
--> tests/ui/fn_to_numeric_cast.rs:15:13
1212
|
1313
LL | let _ = foo as i16;
1414
| ^^^^^^^^^^ help: try: `foo as usize`
1515

1616
error: casting function pointer `foo` to `i32`
17-
--> tests/ui/fn_to_numeric_cast.rs:16:13
17+
--> tests/ui/fn_to_numeric_cast.rs:17:13
1818
|
1919
LL | let _ = foo as i32;
2020
| ^^^^^^^^^^ help: try: `foo as usize`
@@ -23,121 +23,121 @@ LL | let _ = foo as i32;
2323
= help: to override `-D warnings` add `#[allow(clippy::fn_to_numeric_cast)]`
2424

2525
error: casting function pointer `foo` to `i64`
26-
--> tests/ui/fn_to_numeric_cast.rs:19:13
26+
--> tests/ui/fn_to_numeric_cast.rs:20:13
2727
|
2828
LL | let _ = foo as i64;
2929
| ^^^^^^^^^^ help: try: `foo as usize`
3030

3131
error: casting function pointer `foo` to `i128`
32-
--> tests/ui/fn_to_numeric_cast.rs:21:13
32+
--> tests/ui/fn_to_numeric_cast.rs:22:13
3333
|
3434
LL | let _ = foo as i128;
3535
| ^^^^^^^^^^^ help: try: `foo as usize`
3636

3737
error: casting function pointer `foo` to `isize`
38-
--> tests/ui/fn_to_numeric_cast.rs:23:13
38+
--> tests/ui/fn_to_numeric_cast.rs:24:13
3939
|
4040
LL | let _ = foo as isize;
4141
| ^^^^^^^^^^^^ help: try: `foo as usize`
4242

4343
error: casting function pointer `foo` to `u8`, which truncates the value
44-
--> tests/ui/fn_to_numeric_cast.rs:26:13
44+
--> tests/ui/fn_to_numeric_cast.rs:27:13
4545
|
4646
LL | let _ = foo as u8;
4747
| ^^^^^^^^^ help: try: `foo as usize`
4848

4949
error: casting function pointer `foo` to `u16`, which truncates the value
50-
--> tests/ui/fn_to_numeric_cast.rs:28:13
50+
--> tests/ui/fn_to_numeric_cast.rs:29:13
5151
|
5252
LL | let _ = foo as u16;
5353
| ^^^^^^^^^^ help: try: `foo as usize`
5454

5555
error: casting function pointer `foo` to `u32`
56-
--> tests/ui/fn_to_numeric_cast.rs:30:13
56+
--> tests/ui/fn_to_numeric_cast.rs:31:13
5757
|
5858
LL | let _ = foo as u32;
5959
| ^^^^^^^^^^ help: try: `foo as usize`
6060

6161
error: casting function pointer `foo` to `u64`
62-
--> tests/ui/fn_to_numeric_cast.rs:33:13
62+
--> tests/ui/fn_to_numeric_cast.rs:34:13
6363
|
6464
LL | let _ = foo as u64;
6565
| ^^^^^^^^^^ help: try: `foo as usize`
6666

6767
error: casting function pointer `foo` to `u128`
68-
--> tests/ui/fn_to_numeric_cast.rs:35:13
68+
--> tests/ui/fn_to_numeric_cast.rs:36:13
6969
|
7070
LL | let _ = foo as u128;
7171
| ^^^^^^^^^^^ help: try: `foo as usize`
7272

7373
error: casting function pointer `abc` to `i8`, which truncates the value
74-
--> tests/ui/fn_to_numeric_cast.rs:49:13
74+
--> tests/ui/fn_to_numeric_cast.rs:50:13
7575
|
7676
LL | let _ = abc as i8;
7777
| ^^^^^^^^^ help: try: `abc as usize`
7878

7979
error: casting function pointer `abc` to `i16`, which truncates the value
80-
--> tests/ui/fn_to_numeric_cast.rs:51:13
80+
--> tests/ui/fn_to_numeric_cast.rs:52:13
8181
|
8282
LL | let _ = abc as i16;
8383
| ^^^^^^^^^^ help: try: `abc as usize`
8484

8585
error: casting function pointer `abc` to `i32`
86-
--> tests/ui/fn_to_numeric_cast.rs:53:13
86+
--> tests/ui/fn_to_numeric_cast.rs:54:13
8787
|
8888
LL | let _ = abc as i32;
8989
| ^^^^^^^^^^ help: try: `abc as usize`
9090

9191
error: casting function pointer `abc` to `i64`
92-
--> tests/ui/fn_to_numeric_cast.rs:56:13
92+
--> tests/ui/fn_to_numeric_cast.rs:57:13
9393
|
9494
LL | let _ = abc as i64;
9595
| ^^^^^^^^^^ help: try: `abc as usize`
9696

9797
error: casting function pointer `abc` to `i128`
98-
--> tests/ui/fn_to_numeric_cast.rs:58:13
98+
--> tests/ui/fn_to_numeric_cast.rs:59:13
9999
|
100100
LL | let _ = abc as i128;
101101
| ^^^^^^^^^^^ help: try: `abc as usize`
102102

103103
error: casting function pointer `abc` to `isize`
104-
--> tests/ui/fn_to_numeric_cast.rs:60:13
104+
--> tests/ui/fn_to_numeric_cast.rs:61:13
105105
|
106106
LL | let _ = abc as isize;
107107
| ^^^^^^^^^^^^ help: try: `abc as usize`
108108

109109
error: casting function pointer `abc` to `u8`, which truncates the value
110-
--> tests/ui/fn_to_numeric_cast.rs:63:13
110+
--> tests/ui/fn_to_numeric_cast.rs:64:13
111111
|
112112
LL | let _ = abc as u8;
113113
| ^^^^^^^^^ help: try: `abc as usize`
114114

115115
error: casting function pointer `abc` to `u16`, which truncates the value
116-
--> tests/ui/fn_to_numeric_cast.rs:65:13
116+
--> tests/ui/fn_to_numeric_cast.rs:66:13
117117
|
118118
LL | let _ = abc as u16;
119119
| ^^^^^^^^^^ help: try: `abc as usize`
120120

121121
error: casting function pointer `abc` to `u32`
122-
--> tests/ui/fn_to_numeric_cast.rs:67:13
122+
--> tests/ui/fn_to_numeric_cast.rs:68:13
123123
|
124124
LL | let _ = abc as u32;
125125
| ^^^^^^^^^^ help: try: `abc as usize`
126126

127127
error: casting function pointer `abc` to `u64`
128-
--> tests/ui/fn_to_numeric_cast.rs:70:13
128+
--> tests/ui/fn_to_numeric_cast.rs:71:13
129129
|
130130
LL | let _ = abc as u64;
131131
| ^^^^^^^^^^ help: try: `abc as usize`
132132

133133
error: casting function pointer `abc` to `u128`
134-
--> tests/ui/fn_to_numeric_cast.rs:72:13
134+
--> tests/ui/fn_to_numeric_cast.rs:73:13
135135
|
136136
LL | let _ = abc as u128;
137137
| ^^^^^^^^^^^ help: try: `abc as usize`
138138

139139
error: casting function pointer `f` to `i32`
140-
--> tests/ui/fn_to_numeric_cast.rs:80:5
140+
--> tests/ui/fn_to_numeric_cast.rs:81:5
141141
|
142142
LL | f as i32
143143
| ^^^^^^^^ help: try: `f as usize`

0 commit comments

Comments
 (0)