-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #132710 - matthiaskrgr:padautz, r=jieyouxu
more crash tests r? `@jieyouxu`
- Loading branch information
Showing
8 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//@ known-bug: #132127 | ||
#![feature(dyn_star)] | ||
|
||
trait Trait {} | ||
|
||
fn main() { | ||
let x: dyn* Trait + Send = 1usize; | ||
x as dyn* Trait; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
//@ known-bug: #132142 | ||
|
||
async extern "C-cmse-nonsecure-entry" fn fun(...) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
//@ known-bug: #132320 | ||
//@ compile-flags: -Znext-solver=globally | ||
|
||
trait Foo { | ||
type Item; | ||
fn foo(&mut self); | ||
} | ||
|
||
impl Foo for () { | ||
type Item = Option<()>; | ||
|
||
fn foo(&mut self) { | ||
let _ = Self::Item::None; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//@ known-bug: #132330 | ||
//@compile-flags: -Znext-solver=globally | ||
|
||
trait Service { | ||
type S; | ||
} | ||
|
||
trait Framing { | ||
type F; | ||
} | ||
|
||
impl Framing for () { | ||
type F = (); | ||
} | ||
|
||
trait HttpService<F: Framing>: Service<S = F::F> {} | ||
|
||
type BoxService = Box<dyn HttpService<(), S = ()>>; | ||
|
||
fn build_server<F: FnOnce() -> BoxService>(_: F) {} | ||
|
||
fn make_server<F: Framing>() -> Box<dyn HttpService<F, S = F::F>> { | ||
unimplemented!() | ||
} | ||
|
||
fn main() { | ||
build_server(|| make_server()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//@ known-bug: #132335 | ||
//@ compile-flags: -Znext-solver=globally --crate-type lib --edition=2018 | ||
use core::future::Future; | ||
use core::pin::Pin; | ||
|
||
pub trait Unit {} | ||
impl Unit for () {} | ||
|
||
pub fn get_all_files_in_dir() -> Pin<Box<dyn Future<Output = impl Unit>>> { | ||
Box::pin(async { | ||
get_all_files_in_dir().await; | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
//@ known-bug: #123291 | ||
|
||
trait MyTrait { | ||
#[repr(align)] | ||
fn myfun(); | ||
} | ||
|
||
pub fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//@ known-bug: #132430 | ||
|
||
//@compile-flags: --edition=2018 --crate-type=lib | ||
#![feature(cmse_nonsecure_entry)] | ||
struct Test; | ||
|
||
impl Test { | ||
pub async unsafe extern "C-cmse-nonsecure-entry" fn test(val: &str) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//@ known-bug: #132530 | ||
|
||
#![feature(non_lifetime_binders)] | ||
|
||
trait Trait<'a, A> { | ||
type Assoc<'a> = i32; | ||
} | ||
|
||
fn a() -> impl for<T> Trait<Assoc = impl Trait<T>> {} |