Skip to content

Commit 9200cbc

Browse files
committed
Auto merge of #132710 - matthiaskrgr:padautz, r=jieyouxu
more crash tests r? `@jieyouxu`
2 parents 546a1ea + 9b286cf commit 9200cbc

File tree

8 files changed

+94
-0
lines changed

8 files changed

+94
-0
lines changed

tests/crashes/132127.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//@ known-bug: #132127
2+
#![feature(dyn_star)]
3+
4+
trait Trait {}
5+
6+
fn main() {
7+
let x: dyn* Trait + Send = 1usize;
8+
x as dyn* Trait;
9+
}

tests/crashes/132142.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//@ known-bug: #132142
2+
3+
async extern "C-cmse-nonsecure-entry" fn fun(...) {}

tests/crashes/132320.rs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//@ known-bug: #132320
2+
//@ compile-flags: -Znext-solver=globally
3+
4+
trait Foo {
5+
type Item;
6+
fn foo(&mut self);
7+
}
8+
9+
impl Foo for () {
10+
type Item = Option<()>;
11+
12+
fn foo(&mut self) {
13+
let _ = Self::Item::None;
14+
}
15+
}

tests/crashes/132330.rs

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//@ known-bug: #132330
2+
//@compile-flags: -Znext-solver=globally
3+
4+
trait Service {
5+
type S;
6+
}
7+
8+
trait Framing {
9+
type F;
10+
}
11+
12+
impl Framing for () {
13+
type F = ();
14+
}
15+
16+
trait HttpService<F: Framing>: Service<S = F::F> {}
17+
18+
type BoxService = Box<dyn HttpService<(), S = ()>>;
19+
20+
fn build_server<F: FnOnce() -> BoxService>(_: F) {}
21+
22+
fn make_server<F: Framing>() -> Box<dyn HttpService<F, S = F::F>> {
23+
unimplemented!()
24+
}
25+
26+
fn main() {
27+
build_server(|| make_server())
28+
}

tests/crashes/132335.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//@ known-bug: #132335
2+
//@ compile-flags: -Znext-solver=globally --crate-type lib --edition=2018
3+
use core::future::Future;
4+
use core::pin::Pin;
5+
6+
pub trait Unit {}
7+
impl Unit for () {}
8+
9+
pub fn get_all_files_in_dir() -> Pin<Box<dyn Future<Output = impl Unit>>> {
10+
Box::pin(async {
11+
get_all_files_in_dir().await;
12+
})
13+
}

tests/crashes/132391.rs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//@ known-bug: #123291
2+
3+
trait MyTrait {
4+
#[repr(align)]
5+
fn myfun();
6+
}
7+
8+
pub fn main() {}

tests/crashes/132430.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//@ known-bug: #132430
2+
3+
//@compile-flags: --edition=2018 --crate-type=lib
4+
#![feature(cmse_nonsecure_entry)]
5+
struct Test;
6+
7+
impl Test {
8+
pub async unsafe extern "C-cmse-nonsecure-entry" fn test(val: &str) {}
9+
}

tests/crashes/132530.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
//@ known-bug: #132530
2+
3+
#![feature(non_lifetime_binders)]
4+
5+
trait Trait<'a, A> {
6+
type Assoc<'a> = i32;
7+
}
8+
9+
fn a() -> impl for<T> Trait<Assoc = impl Trait<T>> {}

0 commit comments

Comments
 (0)