File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1- dec689432fac6720b2f18101ac28a21add98b1b8
1+ e7c7aa7288559f8e5ea7ce3543ff946b09783628
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ fn main() {
55 unsafe {
66 std:: intrinsics:: assume ( x < 10 ) ;
77 std:: intrinsics:: assume ( x > 1 ) ;
8- std:: intrinsics:: assume ( x > 42 ) ; //~ ERROR: `assume` intrinsic called with `false`
8+ std:: intrinsics:: assume ( x > 42 ) ; //~ ERROR: `assume` called with `false`
99 }
1010}
Original file line number Diff line number Diff line change 1- error: Undefined Behavior: `assume` intrinsic called with `false`
1+ error: Undefined Behavior: `assume` called with `false`
22 --> $DIR/assume.rs:LL:CC
33 |
44LL | std::intrinsics::assume(x > 42);
5- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `assume` intrinsic called with `false`
5+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `assume` called with `false`
66 |
77 = help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
88 = help: see https://doc.rust-lang.org/nightly/reference/behavior-considered-undefined.html for further information
You can’t perform that action at this time.
0 commit comments