File tree 5 files changed +9
-24
lines changed
5 files changed +9
-24
lines changed Original file line number Diff line number Diff line change 1
1
// Error, the linked empty library is `no_std` and doesn't provide a panic handler.
2
2
3
- //@ dont-require-annotations: ERROR
4
3
//@ dont-check-compiler-stderr
4
+ //@ compile-flags: -Cpanic=abort
5
5
//@ aux-build: cfg_false_lib_no_std_before.rs
6
6
7
7
#![ no_std]
@@ -11,6 +11,3 @@ extern crate cfg_false_lib_no_std_before as _;
11
11
fn main ( ) { }
12
12
13
13
//~? ERROR `#[panic_handler]` function required, but not found
14
- // FIXME: This error is target-dependent, could be served by some "optional error" annotation
15
- // instead of `dont-require-annotations`.
16
- //FIXME~? ERROR unwinding panics are not supported without std
Original file line number Diff line number Diff line change 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
+
2
3
// Make sure the compiler does not ICE when trying to generate the debuginfo name of a type that
3
4
// causes a layout error.
4
5
// This version of the test already ICE'd before the commit that introduce the ICE described in
5
6
// https://github.com/rust-lang/rust/issues/94961.
6
7
7
- //@ compile-flags:-C debuginfo=2 --error-format=human
8
+ //@ compile-flags:-C debuginfo=2
8
9
//@ build-fail
9
10
//@ error-pattern: values of the type `[u8; usize::MAX]` are too big for the target architecture
10
11
@@ -17,6 +18,3 @@ pub enum Foo<T> {
17
18
pub fn foo ( ) -> usize {
18
19
std:: mem:: size_of :: < Foo < u8 > > ( )
19
20
}
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
Original file line number Diff line number Diff line change 1
1
// ignore-tidy-linelength
2
2
//@ build-fail
3
- //@ dont-require-annotations: ERROR
4
3
//@ dont-check-compiler-stderr
5
4
//@ aux-build:panic-runtime-unwind.rs
6
5
//@ aux-build:panic-runtime-unwind2.rs
7
6
//@ aux-build:panic-runtime-lang-items.rs
7
+ //@ compile-flags: -Cpanic=unwind
8
8
9
9
#![ no_std]
10
10
#![ no_main]
@@ -16,7 +16,3 @@ extern crate panic_runtime_lang_items;
16
16
fn main ( ) { }
17
17
18
18
//~? ERROR cannot link together two panic runtimes: panic_runtime_unwind and panic_runtime_unwind2
19
- // FIXME: These errors are target-dependent, could be served by some "optional error" annotation
20
- // instead of `dont-require-annotations`.
21
- //FIXME~? ERROR the linked panic runtime `panic_runtime_unwind2` is not compiled with this crate's panic strategy `abort`
22
- //FIXME~? ERROR the crate `panic_runtime_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
Original file line number Diff line number Diff line change 1
1
// ignore-tidy-linelength
2
2
//@ build-fail
3
- //@ dont-require-annotations: ERROR
4
3
//@ dont-check-compiler-stderr
5
4
//@ aux-build:panic-runtime-unwind.rs
6
5
//@ compile-flags:-C panic=abort
@@ -10,7 +9,5 @@ extern crate panic_runtime_unwind;
10
9
fn main ( ) { }
11
10
12
11
//~? ERROR the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
13
- // FIXME: These errors are target-dependent, could be served by some "optional error" annotation
14
- // instead of `dont-require-annotations`.
15
- //FIXME~? ERROR cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
16
- //FIXME~? ERROR the crate `panic_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
12
+ //~? ERROR cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
13
+ //~? ERROR the crate `panic_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
Original file line number Diff line number Diff line change 1
1
// ignore-tidy-linelength
2
2
//@ build-fail
3
- //@ dont-require-annotations: ERROR
4
3
//@ dont-check-compiler-stderr
5
4
//@ aux-build:panic-runtime-unwind.rs
6
5
//@ aux-build:wants-panic-runtime-unwind.rs
@@ -11,7 +10,5 @@ extern crate wants_panic_runtime_unwind;
11
10
fn main ( ) { }
12
11
13
12
//~? ERROR the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
14
- // FIXME: These errors are target-dependent, could be served by some "optional error" annotation
15
- // instead of `dont-require-annotations`.
16
- //FIXME~? ERROR cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
17
- //FIXME~? ERROR the crate `panic_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
13
+ //~? ERROR cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
14
+ //~? ERROR the crate `panic_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
You can’t perform that action at this time.
0 commit comments