Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit dfcf9b0

Browse files
authored
Merge pull request #539 from oliviacrain/ices
Add ICEs 78652, 78653, 78671, 78722, 78806
2 parents 538e474 + 2fd6e84 commit dfcf9b0

File tree

6 files changed

+67
-0
lines changed

6 files changed

+67
-0
lines changed

ices/78652.rs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#![unstable(feature = "humans", issue = "none")]
2+
#![feature(staged_api)]
3+
struct Foo;
4+
impl Foo {
5+
#[stable(feature = "rust1", since = "1.0.0")]
6+
const fn gated() -> u32 {
7+
42
8+
}
9+
}
10+
11+
fn main() {}

ices/78653.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
yield || for _ in 0 {}
3+
}

ices/78671.rs

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
trait CollectionFamily {
2+
type Member<T>;
3+
}
4+
5+
fn floatify() {
6+
Family as CollectionFamily
7+
}
8+
9+
fn main() {}

ices/78721.rs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#![feature(impl_trait_in_bindings)]
2+
3+
struct Bug {
4+
V1: [(); {
5+
let f: impl core::future::Future<Output = u8> = async { 1 };
6+
1
7+
}],
8+
}
9+
10+
fn main() {}

ices/78722.rs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#![feature(type_alias_impl_trait)]
2+
#![feature(impl_trait_in_bindings)]
3+
4+
type F = impl core::future::Future<Output = u8>;
5+
6+
struct Bug {
7+
V1: [(); {
8+
fn concrete_use() -> F {
9+
async {}
10+
}
11+
let f: F = async { 1 };
12+
1
13+
}],
14+
}
15+
16+
fn main() {}

ices/78806.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
rustc --crate-type=lib -Z mir-opt-level=1 -Z new-llvm-pass-manager=yes -Z unsound-mir-opts=yes -Z verify-llvm-ir=yes -Z validate-mir=yes -Z polonius=yes -Z polymorphize=yes -C debuginfo=2 -C opt-level=1 - << EOF
4+
#![feature(no_core, lang_items)]
5+
#![no_core]
6+
7+
#[lang = "sized"]
8+
trait Sized {}
9+
10+
#[lang = "copy"]
11+
trait Copy {}
12+
13+
#[no_mangle]
14+
fn test() {
15+
&1;
16+
}
17+
18+
EOF

0 commit comments

Comments
 (0)