@@ -64,125 +64,161 @@ error: this expression will panic at runtime
6464LL | assert!(thread::spawn(move|| { i64::MIN / -1; }).join().is_err());
6565 | ^^^^^^^^^^^^^ attempt to divide with overflow
6666
67- error: attempt to divide by zero
67+ error: attempt to divide with overflow
68+ --> $DIR/issue-8460-const.rs:25:36
69+ |
70+ LL | assert!(thread::spawn(move|| { i128::MIN / -1; }).join().is_err());
71+ | ^^^^^^^^^^^^^^
72+
73+ error: this expression will panic at runtime
6874 --> $DIR/issue-8460-const.rs:25:36
6975 |
76+ LL | assert!(thread::spawn(move|| { i128::MIN / -1; }).join().is_err());
77+ | ^^^^^^^^^^^^^^ attempt to divide with overflow
78+
79+ error: attempt to divide by zero
80+ --> $DIR/issue-8460-const.rs:28:36
81+ |
7082LL | assert!(thread::spawn(move|| { 1isize / 0; }).join().is_err());
7183 | ^^^^^^^^^^
7284
7385error: attempt to divide by zero
74- --> $DIR/issue-8460-const.rs:27 :36
86+ --> $DIR/issue-8460-const.rs:30 :36
7587 |
7688LL | assert!(thread::spawn(move|| { 1i8 / 0; }).join().is_err());
7789 | ^^^^^^^
7890
7991error: attempt to divide by zero
80- --> $DIR/issue-8460-const.rs:29 :36
92+ --> $DIR/issue-8460-const.rs:32 :36
8193 |
8294LL | assert!(thread::spawn(move|| { 1i16 / 0; }).join().is_err());
8395 | ^^^^^^^^
8496
8597error: attempt to divide by zero
86- --> $DIR/issue-8460-const.rs:31 :36
98+ --> $DIR/issue-8460-const.rs:34 :36
8799 |
88100LL | assert!(thread::spawn(move|| { 1i32 / 0; }).join().is_err());
89101 | ^^^^^^^^
90102
91103error: attempt to divide by zero
92- --> $DIR/issue-8460-const.rs:33 :36
104+ --> $DIR/issue-8460-const.rs:36 :36
93105 |
94106LL | assert!(thread::spawn(move|| { 1i64 / 0; }).join().is_err());
95107 | ^^^^^^^^
96108
109+ error: attempt to divide by zero
110+ --> $DIR/issue-8460-const.rs:38:36
111+ |
112+ LL | assert!(thread::spawn(move|| { 1i128 / 0; }).join().is_err());
113+ | ^^^^^^^^^
114+
97115error: attempt to calculate the remainder with overflow
98- --> $DIR/issue-8460-const.rs:35 :36
116+ --> $DIR/issue-8460-const.rs:40 :36
99117 |
100118LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
101119 | ^^^^^^^^^^^^^^^
102120
103121error: this expression will panic at runtime
104- --> $DIR/issue-8460-const.rs:35 :36
122+ --> $DIR/issue-8460-const.rs:40 :36
105123 |
106124LL | assert!(thread::spawn(move|| { isize::MIN % -1; }).join().is_err());
107125 | ^^^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
108126
109127error: attempt to calculate the remainder with overflow
110- --> $DIR/issue-8460-const.rs:38 :36
128+ --> $DIR/issue-8460-const.rs:43 :36
111129 |
112130LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
113131 | ^^^^^^^^^^^^
114132
115133error: this expression will panic at runtime
116- --> $DIR/issue-8460-const.rs:38 :36
134+ --> $DIR/issue-8460-const.rs:43 :36
117135 |
118136LL | assert!(thread::spawn(move|| { i8::MIN % -1; }).join().is_err());
119137 | ^^^^^^^^^^^^ attempt to calculate the remainder with overflow
120138
121139error: attempt to calculate the remainder with overflow
122- --> $DIR/issue-8460-const.rs:41 :36
140+ --> $DIR/issue-8460-const.rs:46 :36
123141 |
124142LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
125143 | ^^^^^^^^^^^^^
126144
127145error: this expression will panic at runtime
128- --> $DIR/issue-8460-const.rs:41 :36
146+ --> $DIR/issue-8460-const.rs:46 :36
129147 |
130148LL | assert!(thread::spawn(move|| { i16::MIN % -1; }).join().is_err());
131149 | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
132150
133151error: attempt to calculate the remainder with overflow
134- --> $DIR/issue-8460-const.rs:44 :36
152+ --> $DIR/issue-8460-const.rs:49 :36
135153 |
136154LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
137155 | ^^^^^^^^^^^^^
138156
139157error: this expression will panic at runtime
140- --> $DIR/issue-8460-const.rs:44 :36
158+ --> $DIR/issue-8460-const.rs:49 :36
141159 |
142160LL | assert!(thread::spawn(move|| { i32::MIN % -1; }).join().is_err());
143161 | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
144162
145163error: attempt to calculate the remainder with overflow
146- --> $DIR/issue-8460-const.rs:47 :36
164+ --> $DIR/issue-8460-const.rs:52 :36
147165 |
148166LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
149167 | ^^^^^^^^^^^^^
150168
151169error: this expression will panic at runtime
152- --> $DIR/issue-8460-const.rs:47 :36
170+ --> $DIR/issue-8460-const.rs:52 :36
153171 |
154172LL | assert!(thread::spawn(move|| { i64::MIN % -1; }).join().is_err());
155173 | ^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
156174
175+ error: attempt to calculate the remainder with overflow
176+ --> $DIR/issue-8460-const.rs:55:36
177+ |
178+ LL | assert!(thread::spawn(move|| { i128::MIN % -1; }).join().is_err());
179+ | ^^^^^^^^^^^^^^
180+
181+ error: this expression will panic at runtime
182+ --> $DIR/issue-8460-const.rs:55:36
183+ |
184+ LL | assert!(thread::spawn(move|| { i128::MIN % -1; }).join().is_err());
185+ | ^^^^^^^^^^^^^^ attempt to calculate the remainder with overflow
186+
157187error: attempt to calculate the remainder with a divisor of zero
158- --> $DIR/issue-8460-const.rs:50 :36
188+ --> $DIR/issue-8460-const.rs:58 :36
159189 |
160190LL | assert!(thread::spawn(move|| { 1isize % 0; }).join().is_err());
161191 | ^^^^^^^^^^
162192
163193error: attempt to calculate the remainder with a divisor of zero
164- --> $DIR/issue-8460-const.rs:52 :36
194+ --> $DIR/issue-8460-const.rs:60 :36
165195 |
166196LL | assert!(thread::spawn(move|| { 1i8 % 0; }).join().is_err());
167197 | ^^^^^^^
168198
169199error: attempt to calculate the remainder with a divisor of zero
170- --> $DIR/issue-8460-const.rs:54 :36
200+ --> $DIR/issue-8460-const.rs:62 :36
171201 |
172202LL | assert!(thread::spawn(move|| { 1i16 % 0; }).join().is_err());
173203 | ^^^^^^^^
174204
175205error: attempt to calculate the remainder with a divisor of zero
176- --> $DIR/issue-8460-const.rs:56 :36
206+ --> $DIR/issue-8460-const.rs:64 :36
177207 |
178208LL | assert!(thread::spawn(move|| { 1i32 % 0; }).join().is_err());
179209 | ^^^^^^^^
180210
181211error: attempt to calculate the remainder with a divisor of zero
182- --> $DIR/issue-8460-const.rs:58 :36
212+ --> $DIR/issue-8460-const.rs:66 :36
183213 |
184214LL | assert!(thread::spawn(move|| { 1i64 % 0; }).join().is_err());
185215 | ^^^^^^^^
186216
187- error: aborting due to 30 previous errors
217+ error: attempt to calculate the remainder with a divisor of zero
218+ --> $DIR/issue-8460-const.rs:68:36
219+ |
220+ LL | assert!(thread::spawn(move|| { 1i128 % 0; }).join().is_err());
221+ | ^^^^^^^^^
222+
223+ error: aborting due to 36 previous errors
188224
0 commit comments