Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 5b1d600

Browse files
committed
Update stderrs.
1 parent 2887d79 commit 5b1d600

File tree

3 files changed

+75
-75
lines changed

3 files changed

+75
-75
lines changed

src/test/ui/lint/lint-exceeding-bitshifts.noopt.stderr

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,149 @@
11
warning: this arithmetic operation will overflow
2-
--> $DIR/lint-exceeding-bitshifts.rs:18:20
2+
--> $DIR/lint-exceeding-bitshifts.rs:17:20
33
|
44
LL | const N: i32 = T::N << 42;
55
| ^^^^^^^^^^ attempt to shift left with overflow
66
|
77
note: the lint level is defined here
8-
--> $DIR/lint-exceeding-bitshifts.rs:9:9
8+
--> $DIR/lint-exceeding-bitshifts.rs:8:9
99
|
1010
LL | #![warn(arithmetic_overflow, const_err)]
1111
| ^^^^^^^^^^^^^^^^^^^
1212

1313
warning: this arithmetic operation will overflow
14-
--> $DIR/lint-exceeding-bitshifts.rs:22:13
14+
--> $DIR/lint-exceeding-bitshifts.rs:21:13
1515
|
1616
LL | let _ = x << 42;
1717
| ^^^^^^^ attempt to shift left with overflow
1818

1919
warning: this arithmetic operation will overflow
20-
--> $DIR/lint-exceeding-bitshifts.rs:27:15
20+
--> $DIR/lint-exceeding-bitshifts.rs:26:15
2121
|
2222
LL | let n = 1u8 << 8;
2323
| ^^^^^^^^ attempt to shift left with overflow
2424

2525
warning: this arithmetic operation will overflow
26-
--> $DIR/lint-exceeding-bitshifts.rs:29:15
26+
--> $DIR/lint-exceeding-bitshifts.rs:28:15
2727
|
2828
LL | let n = 1u16 << 16;
2929
| ^^^^^^^^^^ attempt to shift left with overflow
3030

3131
warning: this arithmetic operation will overflow
32-
--> $DIR/lint-exceeding-bitshifts.rs:31:15
32+
--> $DIR/lint-exceeding-bitshifts.rs:30:15
3333
|
3434
LL | let n = 1u32 << 32;
3535
| ^^^^^^^^^^ attempt to shift left with overflow
3636

3737
warning: this arithmetic operation will overflow
38-
--> $DIR/lint-exceeding-bitshifts.rs:33:15
38+
--> $DIR/lint-exceeding-bitshifts.rs:32:15
3939
|
4040
LL | let n = 1u64 << 64;
4141
| ^^^^^^^^^^ attempt to shift left with overflow
4242

4343
warning: this arithmetic operation will overflow
44-
--> $DIR/lint-exceeding-bitshifts.rs:35:15
44+
--> $DIR/lint-exceeding-bitshifts.rs:34:15
4545
|
4646
LL | let n = 1i8 << 8;
4747
| ^^^^^^^^ attempt to shift left with overflow
4848

4949
warning: this arithmetic operation will overflow
50-
--> $DIR/lint-exceeding-bitshifts.rs:37:15
50+
--> $DIR/lint-exceeding-bitshifts.rs:36:15
5151
|
5252
LL | let n = 1i16 << 16;
5353
| ^^^^^^^^^^ attempt to shift left with overflow
5454

5555
warning: this arithmetic operation will overflow
56-
--> $DIR/lint-exceeding-bitshifts.rs:39:15
56+
--> $DIR/lint-exceeding-bitshifts.rs:38:15
5757
|
5858
LL | let n = 1i32 << 32;
5959
| ^^^^^^^^^^ attempt to shift left with overflow
6060

6161
warning: this arithmetic operation will overflow
62-
--> $DIR/lint-exceeding-bitshifts.rs:41:15
62+
--> $DIR/lint-exceeding-bitshifts.rs:40:15
6363
|
6464
LL | let n = 1i64 << 64;
6565
| ^^^^^^^^^^ attempt to shift left with overflow
6666

6767
warning: this arithmetic operation will overflow
68-
--> $DIR/lint-exceeding-bitshifts.rs:44:15
68+
--> $DIR/lint-exceeding-bitshifts.rs:43:15
6969
|
7070
LL | let n = 1u8 >> 8;
7171
| ^^^^^^^^ attempt to shift right with overflow
7272

7373
warning: this arithmetic operation will overflow
74-
--> $DIR/lint-exceeding-bitshifts.rs:46:15
74+
--> $DIR/lint-exceeding-bitshifts.rs:45:15
7575
|
7676
LL | let n = 1u16 >> 16;
7777
| ^^^^^^^^^^ attempt to shift right with overflow
7878

7979
warning: this arithmetic operation will overflow
80-
--> $DIR/lint-exceeding-bitshifts.rs:48:15
80+
--> $DIR/lint-exceeding-bitshifts.rs:47:15
8181
|
8282
LL | let n = 1u32 >> 32;
8383
| ^^^^^^^^^^ attempt to shift right with overflow
8484

8585
warning: this arithmetic operation will overflow
86-
--> $DIR/lint-exceeding-bitshifts.rs:50:15
86+
--> $DIR/lint-exceeding-bitshifts.rs:49:15
8787
|
8888
LL | let n = 1u64 >> 64;
8989
| ^^^^^^^^^^ attempt to shift right with overflow
9090

9191
warning: this arithmetic operation will overflow
92-
--> $DIR/lint-exceeding-bitshifts.rs:52:15
92+
--> $DIR/lint-exceeding-bitshifts.rs:51:15
9393
|
9494
LL | let n = 1i8 >> 8;
9595
| ^^^^^^^^ attempt to shift right with overflow
9696

9797
warning: this arithmetic operation will overflow
98-
--> $DIR/lint-exceeding-bitshifts.rs:54:15
98+
--> $DIR/lint-exceeding-bitshifts.rs:53:15
9999
|
100100
LL | let n = 1i16 >> 16;
101101
| ^^^^^^^^^^ attempt to shift right with overflow
102102

103103
warning: this arithmetic operation will overflow
104-
--> $DIR/lint-exceeding-bitshifts.rs:56:15
104+
--> $DIR/lint-exceeding-bitshifts.rs:55:15
105105
|
106106
LL | let n = 1i32 >> 32;
107107
| ^^^^^^^^^^ attempt to shift right with overflow
108108

109109
warning: this arithmetic operation will overflow
110-
--> $DIR/lint-exceeding-bitshifts.rs:58:15
110+
--> $DIR/lint-exceeding-bitshifts.rs:57:15
111111
|
112112
LL | let n = 1i64 >> 64;
113113
| ^^^^^^^^^^ attempt to shift right with overflow
114114

115115
warning: this arithmetic operation will overflow
116-
--> $DIR/lint-exceeding-bitshifts.rs:62:15
116+
--> $DIR/lint-exceeding-bitshifts.rs:61:15
117117
|
118118
LL | let n = n << 8;
119119
| ^^^^^^ attempt to shift left with overflow
120120

121121
warning: this arithmetic operation will overflow
122-
--> $DIR/lint-exceeding-bitshifts.rs:64:15
122+
--> $DIR/lint-exceeding-bitshifts.rs:63:15
123123
|
124124
LL | let n = 1u8 << -8;
125125
| ^^^^^^^^^ attempt to shift left with overflow
126126

127127
warning: this arithmetic operation will overflow
128-
--> $DIR/lint-exceeding-bitshifts.rs:69:15
128+
--> $DIR/lint-exceeding-bitshifts.rs:68:15
129129
|
130130
LL | let n = 1u8 << (4+4);
131131
| ^^^^^^^^^^^^ attempt to shift left with overflow
132132

133133
warning: this arithmetic operation will overflow
134-
--> $DIR/lint-exceeding-bitshifts.rs:71:15
134+
--> $DIR/lint-exceeding-bitshifts.rs:70:15
135135
|
136136
LL | let n = 1i64 >> [64][0];
137137
| ^^^^^^^^^^^^^^^ attempt to shift right with overflow
138138

139139
warning: this arithmetic operation will overflow
140-
--> $DIR/lint-exceeding-bitshifts.rs:77:15
140+
--> $DIR/lint-exceeding-bitshifts.rs:76:15
141141
|
142142
LL | let n = 1_isize << BITS;
143143
| ^^^^^^^^^^^^^^^ attempt to shift left with overflow
144144

145145
warning: this arithmetic operation will overflow
146-
--> $DIR/lint-exceeding-bitshifts.rs:78:15
146+
--> $DIR/lint-exceeding-bitshifts.rs:77:15
147147
|
148148
LL | let n = 1_usize << BITS;
149149
| ^^^^^^^^^^^^^^^ attempt to shift left with overflow

src/test/ui/lint/lint-exceeding-bitshifts.opt.stderr

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,149 +1,149 @@
11
warning: this arithmetic operation will overflow
2-
--> $DIR/lint-exceeding-bitshifts.rs:18:20
2+
--> $DIR/lint-exceeding-bitshifts.rs:17:20
33
|
44
LL | const N: i32 = T::N << 42;
55
| ^^^^^^^^^^ attempt to shift left with overflow
66
|
77
note: the lint level is defined here
8-
--> $DIR/lint-exceeding-bitshifts.rs:9:9
8+
--> $DIR/lint-exceeding-bitshifts.rs:8:9
99
|
1010
LL | #![warn(arithmetic_overflow, const_err)]
1111
| ^^^^^^^^^^^^^^^^^^^
1212

1313
warning: this arithmetic operation will overflow
14-
--> $DIR/lint-exceeding-bitshifts.rs:22:13
14+
--> $DIR/lint-exceeding-bitshifts.rs:21:13
1515
|
1616
LL | let _ = x << 42;
1717
| ^^^^^^^ attempt to shift left with overflow
1818

1919
warning: this arithmetic operation will overflow
20-
--> $DIR/lint-exceeding-bitshifts.rs:27:15
20+
--> $DIR/lint-exceeding-bitshifts.rs:26:15
2121
|
2222
LL | let n = 1u8 << 8;
2323
| ^^^^^^^^ attempt to shift left with overflow
2424

2525
warning: this arithmetic operation will overflow
26-
--> $DIR/lint-exceeding-bitshifts.rs:29:15
26+
--> $DIR/lint-exceeding-bitshifts.rs:28:15
2727
|
2828
LL | let n = 1u16 << 16;
2929
| ^^^^^^^^^^ attempt to shift left with overflow
3030

3131
warning: this arithmetic operation will overflow
32-
--> $DIR/lint-exceeding-bitshifts.rs:31:15
32+
--> $DIR/lint-exceeding-bitshifts.rs:30:15
3333
|
3434
LL | let n = 1u32 << 32;
3535
| ^^^^^^^^^^ attempt to shift left with overflow
3636

3737
warning: this arithmetic operation will overflow
38-
--> $DIR/lint-exceeding-bitshifts.rs:33:15
38+
--> $DIR/lint-exceeding-bitshifts.rs:32:15
3939
|
4040
LL | let n = 1u64 << 64;
4141
| ^^^^^^^^^^ attempt to shift left with overflow
4242

4343
warning: this arithmetic operation will overflow
44-
--> $DIR/lint-exceeding-bitshifts.rs:35:15
44+
--> $DIR/lint-exceeding-bitshifts.rs:34:15
4545
|
4646
LL | let n = 1i8 << 8;
4747
| ^^^^^^^^ attempt to shift left with overflow
4848

4949
warning: this arithmetic operation will overflow
50-
--> $DIR/lint-exceeding-bitshifts.rs:37:15
50+
--> $DIR/lint-exceeding-bitshifts.rs:36:15
5151
|
5252
LL | let n = 1i16 << 16;
5353
| ^^^^^^^^^^ attempt to shift left with overflow
5454

5555
warning: this arithmetic operation will overflow
56-
--> $DIR/lint-exceeding-bitshifts.rs:39:15
56+
--> $DIR/lint-exceeding-bitshifts.rs:38:15
5757
|
5858
LL | let n = 1i32 << 32;
5959
| ^^^^^^^^^^ attempt to shift left with overflow
6060

6161
warning: this arithmetic operation will overflow
62-
--> $DIR/lint-exceeding-bitshifts.rs:41:15
62+
--> $DIR/lint-exceeding-bitshifts.rs:40:15
6363
|
6464
LL | let n = 1i64 << 64;
6565
| ^^^^^^^^^^ attempt to shift left with overflow
6666

6767
warning: this arithmetic operation will overflow
68-
--> $DIR/lint-exceeding-bitshifts.rs:44:15
68+
--> $DIR/lint-exceeding-bitshifts.rs:43:15
6969
|
7070
LL | let n = 1u8 >> 8;
7171
| ^^^^^^^^ attempt to shift right with overflow
7272

7373
warning: this arithmetic operation will overflow
74-
--> $DIR/lint-exceeding-bitshifts.rs:46:15
74+
--> $DIR/lint-exceeding-bitshifts.rs:45:15
7575
|
7676
LL | let n = 1u16 >> 16;
7777
| ^^^^^^^^^^ attempt to shift right with overflow
7878

7979
warning: this arithmetic operation will overflow
80-
--> $DIR/lint-exceeding-bitshifts.rs:48:15
80+
--> $DIR/lint-exceeding-bitshifts.rs:47:15
8181
|
8282
LL | let n = 1u32 >> 32;
8383
| ^^^^^^^^^^ attempt to shift right with overflow
8484

8585
warning: this arithmetic operation will overflow
86-
--> $DIR/lint-exceeding-bitshifts.rs:50:15
86+
--> $DIR/lint-exceeding-bitshifts.rs:49:15
8787
|
8888
LL | let n = 1u64 >> 64;
8989
| ^^^^^^^^^^ attempt to shift right with overflow
9090

9191
warning: this arithmetic operation will overflow
92-
--> $DIR/lint-exceeding-bitshifts.rs:52:15
92+
--> $DIR/lint-exceeding-bitshifts.rs:51:15
9393
|
9494
LL | let n = 1i8 >> 8;
9595
| ^^^^^^^^ attempt to shift right with overflow
9696

9797
warning: this arithmetic operation will overflow
98-
--> $DIR/lint-exceeding-bitshifts.rs:54:15
98+
--> $DIR/lint-exceeding-bitshifts.rs:53:15
9999
|
100100
LL | let n = 1i16 >> 16;
101101
| ^^^^^^^^^^ attempt to shift right with overflow
102102

103103
warning: this arithmetic operation will overflow
104-
--> $DIR/lint-exceeding-bitshifts.rs:56:15
104+
--> $DIR/lint-exceeding-bitshifts.rs:55:15
105105
|
106106
LL | let n = 1i32 >> 32;
107107
| ^^^^^^^^^^ attempt to shift right with overflow
108108

109109
warning: this arithmetic operation will overflow
110-
--> $DIR/lint-exceeding-bitshifts.rs:58:15
110+
--> $DIR/lint-exceeding-bitshifts.rs:57:15
111111
|
112112
LL | let n = 1i64 >> 64;
113113
| ^^^^^^^^^^ attempt to shift right with overflow
114114

115115
warning: this arithmetic operation will overflow
116-
--> $DIR/lint-exceeding-bitshifts.rs:62:15
116+
--> $DIR/lint-exceeding-bitshifts.rs:61:15
117117
|
118118
LL | let n = n << 8;
119119
| ^^^^^^ attempt to shift left with overflow
120120

121121
warning: this arithmetic operation will overflow
122-
--> $DIR/lint-exceeding-bitshifts.rs:64:15
122+
--> $DIR/lint-exceeding-bitshifts.rs:63:15
123123
|
124124
LL | let n = 1u8 << -8;
125125
| ^^^^^^^^^ attempt to shift left with overflow
126126

127127
warning: this arithmetic operation will overflow
128-
--> $DIR/lint-exceeding-bitshifts.rs:69:15
128+
--> $DIR/lint-exceeding-bitshifts.rs:68:15
129129
|
130130
LL | let n = 1u8 << (4+4);
131131
| ^^^^^^^^^^^^ attempt to shift left with overflow
132132

133133
warning: this arithmetic operation will overflow
134-
--> $DIR/lint-exceeding-bitshifts.rs:71:15
134+
--> $DIR/lint-exceeding-bitshifts.rs:70:15
135135
|
136136
LL | let n = 1i64 >> [64][0];
137137
| ^^^^^^^^^^^^^^^ attempt to shift right with overflow
138138

139139
warning: this arithmetic operation will overflow
140-
--> $DIR/lint-exceeding-bitshifts.rs:77:15
140+
--> $DIR/lint-exceeding-bitshifts.rs:76:15
141141
|
142142
LL | let n = 1_isize << BITS;
143143
| ^^^^^^^^^^^^^^^ attempt to shift left with overflow
144144

145145
warning: this arithmetic operation will overflow
146-
--> $DIR/lint-exceeding-bitshifts.rs:78:15
146+
--> $DIR/lint-exceeding-bitshifts.rs:77:15
147147
|
148148
LL | let n = 1_usize << BITS;
149149
| ^^^^^^^^^^^^^^^ attempt to shift left with overflow

0 commit comments

Comments
 (0)