fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.4 KiB25 linesraw
1error[E0080]: it is undefined behavior to use this value
2  --> $DIR/alloc.rs:11:1
3   |
4LL | const LAYOUT_INVALID_ZERO: Layout = unsafe { Layout::from_size_align_unchecked(0x1000, 0x00) };
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .align.0.<enum-tag>: encountered 0x00000000, but expected a valid enum tag
6   |
7   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
8   = note: the raw bytes of the constant (size: $SIZE, align: $ALIGN) {
9               HEX_DUMP
10           }
11
12error[E0080]: it is undefined behavior to use this value
13  --> $DIR/alloc.rs:15:1
14   |
15LL | const LAYOUT_INVALID_THREE: Layout = unsafe { Layout::from_size_align_unchecked(9, 3) };
16   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ constructing invalid value at .align.0.<enum-tag>: encountered 0x00000003, but expected a valid enum tag
17   |
18   = note: The rules on what exactly is undefined behavior aren't clear, so this check might be overzealous. Please open an issue on the rustc repository if you believe it should not be considered undefined behavior.
19   = note: the raw bytes of the constant (size: $SIZE, align: $ALIGN) {
20               HEX_DUMP
21           }
22
23error: aborting due to 2 previous errors
24
25For more information about this error, try `rustc --explain E0080`.