| 
1 | 1 | error: attempt to shift left with overflow  | 
2 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:7:15  | 
 | 2 | +  --> $DIR/lint-exceeding-bitshifts.rs:9:15  | 
3 | 3 |    |  | 
4 | 4 | LL |       let n = 1u8 << 8;  | 
5 | 5 |    |               ^^^^^^^^  | 
6 | 6 |    |  | 
7 | 7 | note: lint level defined here  | 
8 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:1:9  | 
 | 8 | +  --> $DIR/lint-exceeding-bitshifts.rs:3:9  | 
9 | 9 |    |  | 
10 | 10 | LL | #![deny(exceeding_bitshifts, const_err)]  | 
11 | 11 |    |         ^^^^^^^^^^^^^^^^^^^  | 
12 | 12 | 
 
  | 
13 | 13 | error: attempt to shift left with overflow  | 
14 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:9:15  | 
 | 14 | +  --> $DIR/lint-exceeding-bitshifts.rs:11:15  | 
15 | 15 |    |  | 
16 | 16 | LL |       let n = 1u16 << 16;  | 
17 | 17 |    |               ^^^^^^^^^^  | 
18 | 18 | 
 
  | 
19 | 19 | error: attempt to shift left with overflow  | 
20 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:11:15  | 
 | 20 | +  --> $DIR/lint-exceeding-bitshifts.rs:13:15  | 
21 | 21 |    |  | 
22 | 22 | LL |       let n = 1u32 << 32;  | 
23 | 23 |    |               ^^^^^^^^^^  | 
24 | 24 | 
 
  | 
25 | 25 | error: attempt to shift left with overflow  | 
26 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:13:15  | 
 | 26 | +  --> $DIR/lint-exceeding-bitshifts.rs:15:15  | 
27 | 27 |    |  | 
28 | 28 | LL |       let n = 1u64 << 64;  | 
29 | 29 |    |               ^^^^^^^^^^  | 
30 | 30 | 
 
  | 
31 | 31 | error: attempt to shift left with overflow  | 
32 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:15:15  | 
 | 32 | +  --> $DIR/lint-exceeding-bitshifts.rs:17:15  | 
33 | 33 |    |  | 
34 | 34 | LL |       let n = 1i8 << 8;  | 
35 | 35 |    |               ^^^^^^^^  | 
36 | 36 | 
 
  | 
37 | 37 | error: attempt to shift left with overflow  | 
38 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:17:15  | 
 | 38 | +  --> $DIR/lint-exceeding-bitshifts.rs:19:15  | 
39 | 39 |    |  | 
40 | 40 | LL |       let n = 1i16 << 16;  | 
41 | 41 |    |               ^^^^^^^^^^  | 
42 | 42 | 
 
  | 
43 | 43 | error: attempt to shift left with overflow  | 
44 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:19:15  | 
 | 44 | +  --> $DIR/lint-exceeding-bitshifts.rs:21:15  | 
45 | 45 |    |  | 
46 | 46 | LL |       let n = 1i32 << 32;  | 
47 | 47 |    |               ^^^^^^^^^^  | 
48 | 48 | 
 
  | 
49 | 49 | error: attempt to shift left with overflow  | 
50 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:21:15  | 
 | 50 | +  --> $DIR/lint-exceeding-bitshifts.rs:23:15  | 
51 | 51 |    |  | 
52 | 52 | LL |       let n = 1i64 << 64;  | 
53 | 53 |    |               ^^^^^^^^^^  | 
54 | 54 | 
 
  | 
55 | 55 | error: attempt to shift right with overflow  | 
56 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:24:15  | 
 | 56 | +  --> $DIR/lint-exceeding-bitshifts.rs:26:15  | 
57 | 57 |    |  | 
58 | 58 | LL |       let n = 1u8 >> 8;  | 
59 | 59 |    |               ^^^^^^^^  | 
60 | 60 | 
 
  | 
61 | 61 | error: attempt to shift right with overflow  | 
62 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:26:15  | 
 | 62 | +  --> $DIR/lint-exceeding-bitshifts.rs:28:15  | 
63 | 63 |    |  | 
64 | 64 | LL |       let n = 1u16 >> 16;  | 
65 | 65 |    |               ^^^^^^^^^^  | 
66 | 66 | 
 
  | 
67 | 67 | error: attempt to shift right with overflow  | 
68 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:28:15  | 
 | 68 | +  --> $DIR/lint-exceeding-bitshifts.rs:30:15  | 
69 | 69 |    |  | 
70 | 70 | LL |       let n = 1u32 >> 32;  | 
71 | 71 |    |               ^^^^^^^^^^  | 
72 | 72 | 
 
  | 
73 | 73 | error: attempt to shift right with overflow  | 
74 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:30:15  | 
 | 74 | +  --> $DIR/lint-exceeding-bitshifts.rs:32:15  | 
75 | 75 |    |  | 
76 | 76 | LL |       let n = 1u64 >> 64;  | 
77 | 77 |    |               ^^^^^^^^^^  | 
78 | 78 | 
 
  | 
79 | 79 | error: attempt to shift right with overflow  | 
80 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:32:15  | 
 | 80 | +  --> $DIR/lint-exceeding-bitshifts.rs:34:15  | 
81 | 81 |    |  | 
82 | 82 | LL |       let n = 1i8 >> 8;  | 
83 | 83 |    |               ^^^^^^^^  | 
84 | 84 | 
 
  | 
85 | 85 | error: attempt to shift right with overflow  | 
86 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:34:15  | 
 | 86 | +  --> $DIR/lint-exceeding-bitshifts.rs:36:15  | 
87 | 87 |    |  | 
88 | 88 | LL |       let n = 1i16 >> 16;  | 
89 | 89 |    |               ^^^^^^^^^^  | 
90 | 90 | 
 
  | 
91 | 91 | error: attempt to shift right with overflow  | 
92 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:36:15  | 
 | 92 | +  --> $DIR/lint-exceeding-bitshifts.rs:38:15  | 
93 | 93 |    |  | 
94 | 94 | LL |       let n = 1i32 >> 32;  | 
95 | 95 |    |               ^^^^^^^^^^  | 
96 | 96 | 
 
  | 
97 | 97 | error: attempt to shift right with overflow  | 
98 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:38:15  | 
 | 98 | +  --> $DIR/lint-exceeding-bitshifts.rs:40:15  | 
99 | 99 |    |  | 
100 | 100 | LL |       let n = 1i64 >> 64;  | 
101 | 101 |    |               ^^^^^^^^^^  | 
102 | 102 | 
 
  | 
103 | 103 | error: attempt to shift left with overflow  | 
104 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:42:15  | 
 | 104 | +  --> $DIR/lint-exceeding-bitshifts.rs:44:15  | 
105 | 105 |    |  | 
106 | 106 | LL |       let n = n << 8;  | 
107 | 107 |    |               ^^^^^^  | 
108 | 108 | 
 
  | 
109 | 109 | error: attempt to shift left with overflow  | 
110 |  | -  --> $DIR/lint-exceeding-bitshifts.rs:44:15  | 
 | 110 | +  --> $DIR/lint-exceeding-bitshifts.rs:46:15  | 
111 | 111 |    |  | 
112 | 112 | LL |       let n = 1u8 << -8;  | 
113 | 113 |    |               ^^^^^^^^^  | 
 | 
0 commit comments