File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/tools/miri/tests/fail/intrinsics Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ error: Undefined Behavior: `ptr_offset_from_unsigned` called when first pointer
2
2
--> tests/fail/intrinsics/ptr_offset_from_unsigned_neg.rs:LL:CC
3
3
|
4
4
LL | let _val = unsafe { ptr1.offset_from_unsigned(ptr2) };
5
- | ^^^^^^^^^^^^^^^^^^ `ptr_offset_from_unsigned` called when first pointer has smaller address than second: $ADDR < $ADDR
5
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ptr_offset_from_unsigned` called when first pointer has smaller address than second: $ADDR < $ADDR
6
6
|
7
7
= help: this indicates a bug in the program: it performed an invalid operation, and caused Undefined Behavior
8
8
= 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