Skip to content

Commit fce24b7

Browse files
committed
Unrolled build for #161086
Rollup merge of #161086 - cyrgani:test-3, r=Kivooeo add crashtests [3/N] Delayed followup to #158519.
2 parents a9066b3 + d34375c commit fce24b7

7 files changed

Lines changed: 77 additions & 0 deletions

File tree

tests/crashes/137129.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//@ known-bug: #137129
2+
#![core::contracts::ensures]
3+
struct A {
4+
b: dyn A + 'static,
5+
}
6+
fn c() {}

tests/crashes/141293.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//@ known-bug: #141293
2+
#![feature(unsafe_binders)]
3+
type X = unsafe<T> ();
4+
fn main() {}

tests/crashes/147917.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//@ known-bug: #147917
2+
#![feature(custom_inner_attributes)]
3+
impl[u8;
4+
#[cfg_attr]({
5+
#[cfg_attr] {
6+
{
7+
#!
8+
}
9+
} !
10+
})
11+
] {
12+
#![cfg_eval]
13+
}

tests/crashes/148614.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//@ known-bug: #148614
2+
use std::arch::global_asm;
3+
4+
static X: isize = 3;
5+
6+
global_asm! {
7+
"{}",
8+
sym X::<{}>,
9+
}
10+
11+
fn main() {}

tests/crashes/148621.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//@ known-bug: #148621
2+
type Foo<V> = impl std::fmt::Debug;
3+
4+
trait Identity<Q> {
5+
type T;
6+
}
7+
8+
impl<Q> Clone for Foo<<() as Identity<Q>>::T> {
9+
fn clone(&self) -> Self {
10+
loop {}
11+
}
12+
}
13+
14+
fn main() {}

tests/crashes/148628.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//@ known-bug: #148628
2+
use std::arch::asm;
3+
4+
static TEST: i32 = 0;
5+
6+
pub unsafe fn bar<T>() {
7+
asm!("/* {0} */", sym TEST::<T>);
8+
}
9+
10+
fn main() {}

tests/crashes/148888.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//@ known-bug: #148888
2+
#![feature(type_alias_impl_trait)]
3+
4+
type Foo = impl Send;
5+
6+
trait Trait {
7+
const CONST: u32;
8+
}
9+
10+
impl Trait for Foo {
11+
const CONST: u32 = 0;
12+
}
13+
14+
#[repr(u32)]
15+
enum QSelfInConst {
16+
Variant = <Foo as Trait>::CONST,
17+
}
18+
19+
fn main() {}

0 commit comments

Comments
 (0)