File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- 4316d0c6252cb1f833e582dfa68adb98efd5ddfb
1
+ 1f8e824f111c972c9df8dbb378d87c33f67bbad4
Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ pub fn report_msg<'tcx>(
505
505
let is_local = machine. is_local ( frame_info) ;
506
506
// No span for non-local frames and the first frame (which is the error site).
507
507
if is_local && idx > 0 {
508
- err. eager_subdiagnostic ( err. dcx , frame_info. as_note ( machine. tcx ) ) ;
508
+ err. subdiagnostic ( err. dcx , frame_info. as_note ( machine. tcx ) ) ;
509
509
} else {
510
510
let sm = sess. source_map ( ) ;
511
511
let span = sm. span_to_embeddable_string ( frame_info. span ) ;
Original file line number Diff line number Diff line change 1
1
//@compile-flags: -C overflow-checks=off
2
2
3
3
// Check that we correctly implement the intended behavior of these operators
4
- // when they are not being overflow-checked.
4
+ // when they are not being overflow-checked at runtime .
5
5
6
6
// FIXME: if we call the functions in `std::ops`, we still get the panics.
7
7
// Miri does not implement the codegen-time hack that backs `#[rustc_inherit_overflow_checks]`.
8
8
// use std::ops::*;
9
9
10
+ // Disable _compile-time_ overflow linting
11
+ // so that we can test runtime overflow checks
12
+ #![ allow( arithmetic_overflow) ]
13
+
10
14
fn main ( ) {
11
15
assert_eq ! ( -{ -0x80i8 } , -0x80 ) ;
12
16
You can’t perform that action at this time.
0 commit comments