Skip to content

Commit bcf78ad

Browse files
committed
fix line number and comment
1 parent 24fb7f3 commit bcf78ad

4 files changed

+9
-5
lines changed

tests/ui/consts/large_const_alloc.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
// on 32bit and 16bit platforms it is plausible that the maximum allocation size will succeed
33
// FIXME (#135952) In some cases on AArch64 Linux the diagnostic does not trigger
44
//@ ignore-aarch64-unknown-linux-gnu
5-
//@ ignore-aix: FIXME(#137966)
5+
// AIX will allow allow the allocation to go through, and get SIGKILL when zero initializing
6+
// the overcommited page.
7+
//@ ignore-aix
68

79
const FOO: () = {
810
// 128 TiB, unlikely anyone has that much RAM

tests/ui/consts/large_const_alloc.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error[E0080]: evaluation of constant value failed
2-
--> $DIR/large_const_alloc.rs:8:13
2+
--> $DIR/large_const_alloc.rs:11:13
33
|
44
LL | let x = [0_u8; (1 << 47) - 1];
55
| ^^^^^^^^^^^^^^^^^^^^^ tried to allocate more memory than available to compiler
66

77
error[E0080]: could not evaluate static initializer
8-
--> $DIR/large_const_alloc.rs:13:13
8+
--> $DIR/large_const_alloc.rs:16:13
99
|
1010
LL | let x = [0_u8; (1 << 47) - 1];
1111
| ^^^^^^^^^^^^^^^^^^^^^ tried to allocate more memory than available to compiler

tests/ui/consts/promoted_running_out_of_memory_issue-130687.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
//@ only-64bit
66
// FIXME (#135952) In some cases on AArch64 Linux the diagnostic does not trigger
77
//@ ignore-aarch64-unknown-linux-gnu
8-
//@ ignore-aix: FIXME(#137966)
8+
// AIX will allow allow the allocation to go through, and get SIGKILL when zero initializing
9+
// the overcommited page.
10+
//@ ignore-aix
911

1012
pub struct Data([u8; (1 << 47) - 1]);
1113
const _: &'static Data = &Data([0; (1 << 47) - 1]);

tests/ui/consts/promoted_running_out_of_memory_issue-130687.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0080]: evaluation of constant value failed
2-
--> $DIR/promoted_running_out_of_memory_issue-130687.rs:10:32
2+
--> $DIR/promoted_running_out_of_memory_issue-130687.rs:13:32
33
|
44
LL | const _: &'static Data = &Data([0; (1 << 47) - 1]);
55
| ^^^^^^^^^^^^^^^^^^ tried to allocate more memory than available to compiler

0 commit comments

Comments
 (0)