Skip to content

Commit

Permalink
add 2 ices
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed May 30, 2022
1 parent 741dddd commit bbf53bf
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
34 changes: 34 additions & 0 deletions ices/93470.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/sh

rustc --edition=2021 -Cincremental=93470 -Zincremental-verify-ich=yes - << EOF
#[derive(PartialEq, Eq)]
pub struct Key {
path: &'static str,
}
pub const CONST_A: Key = Key {
path: "time_zone/formats@1",
};
pub const CONST_B: Key = Key {
path: "time_zone/formats@1",
};
fn foo(key: Key) -> Result<(), &'static str> {
match key {
CONST_B => Ok(()),
_ => Err(""),
}
}
fn bar(key: Key) -> Result<(), &'static str> {
match key {
CONST_A => Ok(()),
_ => Err(""),
}
}
pub fn main() {}
EOF
24 changes: 24 additions & 0 deletions ices/97534-1.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh

rustc --edition=2021 - << EOF
macro_rules! m {
() => {
macro_rules! foo {
() => {
}
}
use foo as bar;
}
}
m!{}
use bar as baz;
baz!{}
pub fn main() {}
EOF
21 changes: 21 additions & 0 deletions ices/97534-2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh

rustc --edition=2021 - << EOF
macro_rules! foo {
() => {};
}
macro_rules! m {
() => {
use foo as bar;
};
}
m! {}
use bar as baz;
baz! {}
EOF

0 comments on commit bbf53bf

Please sign in to comment.