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

Commit e06cb03

Browse files
authored
Merge pull request #419 from JohnTitor/add-ices
2 parents 7b8efbe + e003505 commit e06cb03

File tree

9 files changed

+54
-4
lines changed

9 files changed

+54
-4
lines changed

fixed/73109.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/bash
1+
#!/bin/bash
22

33
rustc -Z validate-mir - <<EOF
44
fn main() {

ices/73021.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/bash
1+
#!/bin/bash
22

33
rustc --emit mir -Z mir-opt-level=2 - <<EOF
44
// build-pass

ices/73260.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/bash
1+
#!/bin/bash
22

33
rustc -Z save-analysis - << EOF
44
#![feature(const_generics)]

ices/73626.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/bin/bash
1+
#!/bin/bash
22

33
rustc -Zunstable-options --pretty=expanded - << EOF
44
fn main(/*

ices/73860.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
rustc -Zvalidate-mir - << EOF
4+
fn main() {
5+
for _ in &[0] {}
6+
}
7+
8+
EOF

ices/73980.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
struct X<P,Q>(P,Q);
2+
struct L<T:?Sized>(T);
3+
4+
impl<T:?Sized> L<T>{
5+
const S: usize=1;
6+
}
7+
8+
impl<T> X<T,[u8;L::<T>::S]> {}
9+
10+
fn main() {}

ices/73993.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#![crate_type = "lib"]
2+
3+
pub struct Fixed64(i64);
4+
5+
pub fn div(f: Fixed64) {
6+
f.0 / 0;
7+
}

ices/74018.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
trait Trait {
2+
type Associated;
3+
fn into(self) -> Self::Associated;
4+
}
5+
6+
impl<'a, I: Iterator<Item = i32>> Trait for (i32, I) {
7+
type Associated = (i32, impl Iterator<Item = i32>);
8+
fn into(self) -> Self::Associated { (0_i32, &[0_i32].iter()) }
9+
}
10+
11+
fn main() {}

ices/74047.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
use std::convert::{TryFrom, TryInto};
2+
use std::io;
3+
4+
pub struct MyStream;
5+
pub struct OtherStream;
6+
7+
pub async fn connect() -> io::Result<MyStream> {
8+
let stream: MyStream = OtherStream.try_into()?;
9+
Ok(stream)
10+
}
11+
12+
impl TryFrom<OtherStream> for MyStream {}
13+
14+
fn main() {}

0 commit comments

Comments
 (0)