Make regression test succeed as long as it ICEs

This commit is contained in:
Oli Scherer 2021-03-05 11:16:37 +00:00
parent f261a82a8d
commit 5553301137
2 changed files with 15 additions and 18 deletions

View File

@ -1,4 +1,8 @@
// check-pass
// failure-status: 101
// rustc-env:RUST_BACKTRACE=0
// normalize-stderr-test "note: .*\n\n" -> ""
// normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
// compile-flags: --crate-type=rlib
// Regression test for https://github.com/rust-lang/rust/issues/78450
@ -22,7 +26,7 @@ trait Associated {
impl<'a, T: Associated<A = &'a ()>> AssociatedImpl for S<T> {
type ImplTrait = impl core::fmt::Debug;
fn f() -> Self::ImplTrait {
fn f() -> Self::ImplTrait { //~ ERROR unexpected concrete region in borrowck: ReEarlyBound(0, 'a)
()
}
}

View File

@ -1,19 +1,12 @@
error[E0601]: `main` function not found in crate `associated_type_lifetime_ice`
--> $DIR/associated-type-lifetime-ice.rs:1:1
error: internal compiler error: unexpected concrete region in borrowck: ReEarlyBound(0, 'a)
--> $DIR/associated-type-lifetime-ice.rs:29:5
|
LL | / #![feature(type_alias_impl_trait)]
LL | | #![no_std]
LL | |
LL | | pub trait AssociatedImpl {
... |
LL | / fn f() -> Self::ImplTrait {
LL | | ()
LL | | }
LL | | }
| |_^ consider adding a `main` function to `$DIR/associated-type-lifetime-ice.rs`
| |_____^
|
= error: internal compiler error: unexpected panic
error: language item required, but not found: `eh_personality`
error: `#[panic_handler]` function required, but not found
error: aborting due to 3 previous errors
For more information about this error, try `rustc --explain E0601`.
query stack during panic:
end of query stack