|
1 | 1 | warning: this arithmetic operation will overflow |
2 | | - --> $DIR/lint-exceeding-bitshifts.rs:18:20 |
| 2 | + --> $DIR/lint-exceeding-bitshifts.rs:17:20 |
3 | 3 | | |
4 | 4 | LL | const N: i32 = T::N << 42; |
5 | 5 | | ^^^^^^^^^^ attempt to shift left with overflow |
6 | 6 | | |
7 | 7 | note: the lint level is defined here |
8 | | - --> $DIR/lint-exceeding-bitshifts.rs:9:9 |
| 8 | + --> $DIR/lint-exceeding-bitshifts.rs:8:9 |
9 | 9 | | |
10 | 10 | LL | #![warn(arithmetic_overflow, const_err)] |
11 | 11 | | ^^^^^^^^^^^^^^^^^^^ |
12 | 12 |
|
13 | 13 | warning: this arithmetic operation will overflow |
14 | | - --> $DIR/lint-exceeding-bitshifts.rs:22:13 |
| 14 | + --> $DIR/lint-exceeding-bitshifts.rs:21:13 |
15 | 15 | | |
16 | 16 | LL | let _ = x << 42; |
17 | 17 | | ^^^^^^^ attempt to shift left with overflow |
18 | 18 |
|
19 | 19 | warning: this arithmetic operation will overflow |
20 | | - --> $DIR/lint-exceeding-bitshifts.rs:27:15 |
| 20 | + --> $DIR/lint-exceeding-bitshifts.rs:26:15 |
21 | 21 | | |
22 | 22 | LL | let n = 1u8 << 8; |
23 | 23 | | ^^^^^^^^ attempt to shift left with overflow |
24 | 24 |
|
25 | 25 | warning: this arithmetic operation will overflow |
26 | | - --> $DIR/lint-exceeding-bitshifts.rs:29:15 |
| 26 | + --> $DIR/lint-exceeding-bitshifts.rs:28:15 |
27 | 27 | | |
28 | 28 | LL | let n = 1u16 << 16; |
29 | 29 | | ^^^^^^^^^^ attempt to shift left with overflow |
30 | 30 |
|
31 | 31 | warning: this arithmetic operation will overflow |
32 | | - --> $DIR/lint-exceeding-bitshifts.rs:31:15 |
| 32 | + --> $DIR/lint-exceeding-bitshifts.rs:30:15 |
33 | 33 | | |
34 | 34 | LL | let n = 1u32 << 32; |
35 | 35 | | ^^^^^^^^^^ attempt to shift left with overflow |
36 | 36 |
|
37 | 37 | warning: this arithmetic operation will overflow |
38 | | - --> $DIR/lint-exceeding-bitshifts.rs:33:15 |
| 38 | + --> $DIR/lint-exceeding-bitshifts.rs:32:15 |
39 | 39 | | |
40 | 40 | LL | let n = 1u64 << 64; |
41 | 41 | | ^^^^^^^^^^ attempt to shift left with overflow |
42 | 42 |
|
43 | 43 | warning: this arithmetic operation will overflow |
44 | | - --> $DIR/lint-exceeding-bitshifts.rs:35:15 |
| 44 | + --> $DIR/lint-exceeding-bitshifts.rs:34:15 |
45 | 45 | | |
46 | 46 | LL | let n = 1i8 << 8; |
47 | 47 | | ^^^^^^^^ attempt to shift left with overflow |
48 | 48 |
|
49 | 49 | warning: this arithmetic operation will overflow |
50 | | - --> $DIR/lint-exceeding-bitshifts.rs:37:15 |
| 50 | + --> $DIR/lint-exceeding-bitshifts.rs:36:15 |
51 | 51 | | |
52 | 52 | LL | let n = 1i16 << 16; |
53 | 53 | | ^^^^^^^^^^ attempt to shift left with overflow |
54 | 54 |
|
55 | 55 | warning: this arithmetic operation will overflow |
56 | | - --> $DIR/lint-exceeding-bitshifts.rs:39:15 |
| 56 | + --> $DIR/lint-exceeding-bitshifts.rs:38:15 |
57 | 57 | | |
58 | 58 | LL | let n = 1i32 << 32; |
59 | 59 | | ^^^^^^^^^^ attempt to shift left with overflow |
60 | 60 |
|
61 | 61 | warning: this arithmetic operation will overflow |
62 | | - --> $DIR/lint-exceeding-bitshifts.rs:41:15 |
| 62 | + --> $DIR/lint-exceeding-bitshifts.rs:40:15 |
63 | 63 | | |
64 | 64 | LL | let n = 1i64 << 64; |
65 | 65 | | ^^^^^^^^^^ attempt to shift left with overflow |
66 | 66 |
|
67 | 67 | warning: this arithmetic operation will overflow |
68 | | - --> $DIR/lint-exceeding-bitshifts.rs:44:15 |
| 68 | + --> $DIR/lint-exceeding-bitshifts.rs:43:15 |
69 | 69 | | |
70 | 70 | LL | let n = 1u8 >> 8; |
71 | 71 | | ^^^^^^^^ attempt to shift right with overflow |
72 | 72 |
|
73 | 73 | warning: this arithmetic operation will overflow |
74 | | - --> $DIR/lint-exceeding-bitshifts.rs:46:15 |
| 74 | + --> $DIR/lint-exceeding-bitshifts.rs:45:15 |
75 | 75 | | |
76 | 76 | LL | let n = 1u16 >> 16; |
77 | 77 | | ^^^^^^^^^^ attempt to shift right with overflow |
78 | 78 |
|
79 | 79 | warning: this arithmetic operation will overflow |
80 | | - --> $DIR/lint-exceeding-bitshifts.rs:48:15 |
| 80 | + --> $DIR/lint-exceeding-bitshifts.rs:47:15 |
81 | 81 | | |
82 | 82 | LL | let n = 1u32 >> 32; |
83 | 83 | | ^^^^^^^^^^ attempt to shift right with overflow |
84 | 84 |
|
85 | 85 | warning: this arithmetic operation will overflow |
86 | | - --> $DIR/lint-exceeding-bitshifts.rs:50:15 |
| 86 | + --> $DIR/lint-exceeding-bitshifts.rs:49:15 |
87 | 87 | | |
88 | 88 | LL | let n = 1u64 >> 64; |
89 | 89 | | ^^^^^^^^^^ attempt to shift right with overflow |
90 | 90 |
|
91 | 91 | warning: this arithmetic operation will overflow |
92 | | - --> $DIR/lint-exceeding-bitshifts.rs:52:15 |
| 92 | + --> $DIR/lint-exceeding-bitshifts.rs:51:15 |
93 | 93 | | |
94 | 94 | LL | let n = 1i8 >> 8; |
95 | 95 | | ^^^^^^^^ attempt to shift right with overflow |
96 | 96 |
|
97 | 97 | warning: this arithmetic operation will overflow |
98 | | - --> $DIR/lint-exceeding-bitshifts.rs:54:15 |
| 98 | + --> $DIR/lint-exceeding-bitshifts.rs:53:15 |
99 | 99 | | |
100 | 100 | LL | let n = 1i16 >> 16; |
101 | 101 | | ^^^^^^^^^^ attempt to shift right with overflow |
102 | 102 |
|
103 | 103 | warning: this arithmetic operation will overflow |
104 | | - --> $DIR/lint-exceeding-bitshifts.rs:56:15 |
| 104 | + --> $DIR/lint-exceeding-bitshifts.rs:55:15 |
105 | 105 | | |
106 | 106 | LL | let n = 1i32 >> 32; |
107 | 107 | | ^^^^^^^^^^ attempt to shift right with overflow |
108 | 108 |
|
109 | 109 | warning: this arithmetic operation will overflow |
110 | | - --> $DIR/lint-exceeding-bitshifts.rs:58:15 |
| 110 | + --> $DIR/lint-exceeding-bitshifts.rs:57:15 |
111 | 111 | | |
112 | 112 | LL | let n = 1i64 >> 64; |
113 | 113 | | ^^^^^^^^^^ attempt to shift right with overflow |
114 | 114 |
|
115 | 115 | warning: this arithmetic operation will overflow |
116 | | - --> $DIR/lint-exceeding-bitshifts.rs:62:15 |
| 116 | + --> $DIR/lint-exceeding-bitshifts.rs:61:15 |
117 | 117 | | |
118 | 118 | LL | let n = n << 8; |
119 | 119 | | ^^^^^^ attempt to shift left with overflow |
120 | 120 |
|
121 | 121 | warning: this arithmetic operation will overflow |
122 | | - --> $DIR/lint-exceeding-bitshifts.rs:64:15 |
| 122 | + --> $DIR/lint-exceeding-bitshifts.rs:63:15 |
123 | 123 | | |
124 | 124 | LL | let n = 1u8 << -8; |
125 | 125 | | ^^^^^^^^^ attempt to shift left with overflow |
126 | 126 |
|
127 | 127 | warning: this arithmetic operation will overflow |
128 | | - --> $DIR/lint-exceeding-bitshifts.rs:69:15 |
| 128 | + --> $DIR/lint-exceeding-bitshifts.rs:68:15 |
129 | 129 | | |
130 | 130 | LL | let n = 1u8 << (4+4); |
131 | 131 | | ^^^^^^^^^^^^ attempt to shift left with overflow |
132 | 132 |
|
133 | 133 | warning: this arithmetic operation will overflow |
134 | | - --> $DIR/lint-exceeding-bitshifts.rs:71:15 |
| 134 | + --> $DIR/lint-exceeding-bitshifts.rs:70:15 |
135 | 135 | | |
136 | 136 | LL | let n = 1i64 >> [64][0]; |
137 | 137 | | ^^^^^^^^^^^^^^^ attempt to shift right with overflow |
138 | 138 |
|
139 | 139 | warning: this arithmetic operation will overflow |
140 | | - --> $DIR/lint-exceeding-bitshifts.rs:77:15 |
| 140 | + --> $DIR/lint-exceeding-bitshifts.rs:76:15 |
141 | 141 | | |
142 | 142 | LL | let n = 1_isize << BITS; |
143 | 143 | | ^^^^^^^^^^^^^^^ attempt to shift left with overflow |
144 | 144 |
|
145 | 145 | warning: this arithmetic operation will overflow |
146 | | - --> $DIR/lint-exceeding-bitshifts.rs:78:15 |
| 146 | + --> $DIR/lint-exceeding-bitshifts.rs:77:15 |
147 | 147 | | |
148 | 148 | LL | let n = 1_usize << BITS; |
149 | 149 | | ^^^^^^^^^^^^^^^ attempt to shift left with overflow |
|
0 commit comments