Skip to content

Commit 1069039

Browse files
committed
review request: annotate tests
1 parent 030e3d4 commit 1069039

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/ui/consts/const-eval/heap/alloc_intrinsic_errors.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::intrinsics;
55
const FOO: i32 = foo(); //~ error: evaluation of constant value failed
66
const fn foo() -> i32 {
77
unsafe {
8-
let _ = intrinsics::const_allocate(4, 3) as *mut i32;
8+
let _ = intrinsics::const_allocate(4, 3) as *mut i32; //~ inside `foo`
99
}
1010
1
1111
}

tests/ui/consts/const-eval/unwind-abort.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const extern "C" fn foo() {
2-
panic!()
2+
panic!() //~ inside `foo`
33
}
44

55
const _: () = foo(); //~ ERROR evaluation of constant value failed

tests/ui/consts/const-eval/validate_uninhabited_zsts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const fn foo() -> ! {
2-
unsafe { std::mem::transmute(()) }
2+
unsafe { std::mem::transmute(()) } //~ inside `foo`
33
}
44

55
// Type defined in a submodule, so that it is not "visibly"

0 commit comments

Comments
 (0)