Skip to content

Commit

Permalink
Remove crash test
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed May 23, 2024
1 parent e49abdb commit 86bfbb1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ impl<'test> TestCx<'test> {
// if a test does not crash, consider it an error
if proc_res.status.success() || matches!(proc_res.status.code(), Some(1 | 0)) {
self.fatal(&format!(
"test no longer crashes/triggers ICE! Please give it a mearningful name, \
"test no longer crashes/triggers ICE! Please give it a meaningful name, \
add a doc-comment to the start of the test explaining why it exists and \
move it to tests/ui or wherever you see fit."
));
Expand Down
22 changes: 0 additions & 22 deletions tests/crashes/124891.rs

This file was deleted.

4 changes: 4 additions & 0 deletions tests/ui/type-alias-impl-trait/lazy_subtyping_of_opaques.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#![feature(type_alias_impl_trait)]

//! This test used to ICE rust-lang/rust#124891
//! because we added an assertion for catching cases where opaque types get
//! registered during the processing of subtyping predicates.

type Tait = impl FnOnce() -> ();

fn reify_as_tait() -> Thunk<Tait> {
Expand Down

0 comments on commit 86bfbb1

Please sign in to comment.