Skip to content

Commit d34cce5

Browse files
committed
[EXPERIMENTAL] when does too big for the current architecture emit on different lines?
1 parent d9e585a commit d34cce5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
//FIXME~ ERROR values of the type `[u8; usize::MAX]` are too big for the target architecture
1+
//~ ERROR values of the type `[u8; usize::MAX]` are too big for the target architecture
2+
23
// Make sure the compiler does not ICE when trying to generate the debuginfo name of a type that
34
// causes a layout error.
45
// This version of the test already ICE'd before the commit that introduce the ICE described in
56
// https://github.com/rust-lang/rust/issues/94961.
67

7-
//@ compile-flags:-C debuginfo=2 --error-format=human
8+
//@ compile-flags:-C debuginfo=2
89
//@ build-fail
910
//@ error-pattern: values of the type `[u8; usize::MAX]` are too big for the target architecture
1011

@@ -17,6 +18,3 @@ pub enum Foo<T> {
1718
pub fn foo() -> usize {
1819
std::mem::size_of::<Foo<u8>>()
1920
}
20-
21-
// FIXME: the error is reported on different lines on different targets
22-
//FIXME~? ERROR values of the type `[u8; usize::MAX]` are too big for the target architecture

0 commit comments

Comments
 (0)