mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Fix up tests on wasm and msvc, and rebase conflicts
Can be fixed properly later by adding a new flag for non-exhaustive line annotation checking
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
// Error, the linked empty library is `no_std` and doesn't provide a panic handler.
|
||||
|
||||
//@ compile-flags: --error-format=human
|
||||
//@ error-pattern: `#[panic_handler]` function required, but not found
|
||||
//@ dont-check-compiler-stderr
|
||||
//@ aux-build: cfg_false_lib_no_std_before.rs
|
||||
|
||||
@@ -9,5 +11,6 @@
|
||||
|
||||
fn main() {}
|
||||
|
||||
//~? ERROR `#[panic_handler]` function required, but not found
|
||||
//~? ERROR unwinding panics are not supported without std
|
||||
// FIXME: The second error is target-dependent.
|
||||
//FIXME~? ERROR `#[panic_handler]` function required, but not found
|
||||
//FIXME~? ERROR unwinding panics are not supported without std
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
//~ ERROR values of the type `[u8; usize::MAX]` are too big for the target architecture
|
||||
//FIXME~ ERROR values of the type `[u8; usize::MAX]` are too big for the target architecture
|
||||
// Make sure the compiler does not ICE when trying to generate the debuginfo name of a type that
|
||||
// causes a layout error.
|
||||
// This version of the test already ICE'd before the commit that introduce the ICE described in
|
||||
// https://github.com/rust-lang/rust/issues/94961.
|
||||
|
||||
//@ compile-flags:-C debuginfo=2
|
||||
//@ compile-flags:-C debuginfo=2 --error-format=human
|
||||
//@ build-fail
|
||||
//@ error-pattern: values of the type `[u8; usize::MAX]` are too big for the target architecture
|
||||
|
||||
#![crate_type = "rlib"]
|
||||
|
||||
@@ -16,3 +17,6 @@ pub enum Foo<T> {
|
||||
pub fn foo() -> usize {
|
||||
std::mem::size_of::<Foo<u8>>()
|
||||
}
|
||||
|
||||
// FIXME: the error is reported on different lines on different targets
|
||||
//FIXME~? ERROR values of the type `[u8; usize::MAX]` are too big for the target architecture
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// ignore-tidy-linelength
|
||||
//@ build-fail
|
||||
//@ compile-flags: --error-format=human
|
||||
//@ error-pattern: cannot link together two panic runtimes: panic_runtime_unwind and panic_runtime_unwind2
|
||||
//@ dont-check-compiler-stderr
|
||||
//@ aux-build:panic-runtime-unwind.rs
|
||||
//@ aux-build:panic-runtime-unwind2.rs
|
||||
@@ -13,4 +16,7 @@
|
||||
|
||||
fn main() {}
|
||||
|
||||
//~? ERROR cannot link together two panic runtimes: panic_runtime_unwind and panic_runtime_unwind2
|
||||
// FIXME: The second and third errors are target-dependent.
|
||||
//FIXME~? ERROR cannot link together two panic runtimes: panic_runtime_unwind and panic_runtime_unwind2
|
||||
//FIXME~? ERROR the linked panic runtime `panic_runtime_unwind2` is not compiled with this crate's panic strategy `abort`
|
||||
//FIXME~? ERROR the crate `panic_runtime_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
//@ compile-flags: -C force-unwind-tables=no
|
||||
//
|
||||
//@ dont-check-compiler-stderr
|
||||
//@ error-pattern: target requires unwind tables, they cannot be disabled with `-C force-unwind-tables=no`
|
||||
|
||||
pub fn main() {
|
||||
}
|
||||
|
||||
//~? ERROR target requires unwind tables, they cannot be disabled with `-C force-unwind-tables=no`
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// ignore-tidy-linelength
|
||||
//@ build-fail
|
||||
//@ compile-flags: --error-format=human
|
||||
//@ error-pattern: the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
|
||||
//@ dont-check-compiler-stderr
|
||||
//@ aux-build:panic-runtime-unwind.rs
|
||||
//@ compile-flags:-C panic=abort
|
||||
@@ -7,6 +10,7 @@
|
||||
|
||||
fn main() {}
|
||||
|
||||
//~? ERROR cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
|
||||
//~? ERROR the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
|
||||
//~? ERROR the crate `panic_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
|
||||
// FIXME: The first and third errors are target-dependent.
|
||||
//FIXME~? ERROR cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
|
||||
//FIXME~? ERROR the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
|
||||
//FIXME~? ERROR the crate `panic_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
// ignore-tidy-linelength
|
||||
//@ build-fail
|
||||
//@ compile-flags: --error-format=human
|
||||
//@ error-pattern: the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
|
||||
//@ dont-check-compiler-stderr
|
||||
//@ aux-build:panic-runtime-unwind.rs
|
||||
//@ aux-build:wants-panic-runtime-unwind.rs
|
||||
@@ -8,6 +11,7 @@
|
||||
|
||||
fn main() {}
|
||||
|
||||
//~? ERROR cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
|
||||
//~? ERROR the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
|
||||
//~? ERROR the crate `panic_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
|
||||
// FIXME: The first and third errors are target-dependent.
|
||||
//FIXME~? ERROR cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
|
||||
//FIXME~? ERROR the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
|
||||
//FIXME~? ERROR the crate `panic_unwind` requires panic strategy `unwind` which is incompatible with this crate's strategy of `abort`
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
//@ revisions: crate_root_lint_levels
|
||||
//@[crate_root_lint_levels] compile-flags: --print=crate-root-lint-levels
|
||||
//@[crate_root_lint_levels] error-pattern: the `-Z unstable-options` flag must also be passed
|
||||
|
||||
//@ revisions: check_cfg
|
||||
//@[check_cfg] compile-flags: --print=check-cfg
|
||||
@@ -107,6 +106,7 @@
|
||||
fn main() {}
|
||||
|
||||
//[all_target_specs_json]~? ERROR the `-Z unstable-options` flag must also be passed to enable the `all-target-specs-json` print option
|
||||
//[crate_root_lint_levels]~? ERROR the `-Z unstable-options` flag must also be passed to enable the `crate-root-lint-levels` print option
|
||||
//[check_cfg]~? ERROR the `-Z unstable-options` flag must also be passed to enable the `check-cfg` print option
|
||||
//[supported_crate_types]~? ERROR the `-Z unstable-options` flag must also be passed to enable the `supported-crate-types` print option
|
||||
//[target_spec_json]~? ERROR the `-Z unstable-options` flag must also be passed to enable the `target-spec-json` print option
|
||||
|
||||
Reference in New Issue
Block a user