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

Commit c46ea46

Browse files
authored
add 2 ices (#1274)
1 parent 741dddd commit c46ea46

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed

ices/93470.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/sh
2+
3+
rustc --edition=2021 -Cincremental=93470 -Zincremental-verify-ich=yes - << EOF
4+
5+
#[derive(PartialEq, Eq)]
6+
pub struct Key {
7+
path: &'static str,
8+
}
9+
10+
pub const CONST_A: Key = Key {
11+
path: "time_zone/formats@1",
12+
};
13+
14+
pub const CONST_B: Key = Key {
15+
path: "time_zone/formats@1",
16+
};
17+
18+
fn foo(key: Key) -> Result<(), &'static str> {
19+
match key {
20+
CONST_B => Ok(()),
21+
_ => Err(""),
22+
}
23+
}
24+
25+
fn bar(key: Key) -> Result<(), &'static str> {
26+
match key {
27+
CONST_A => Ok(()),
28+
_ => Err(""),
29+
}
30+
}
31+
32+
pub fn main() {}
33+
34+
EOF

ices/97534-1.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
rustc --edition=2021 - << EOF
4+
5+
macro_rules! m {
6+
() => {
7+
macro_rules! foo {
8+
() => {}
9+
}
10+
use foo as bar;
11+
}
12+
}
13+
14+
m!{}
15+
16+
use bar as baz;
17+
18+
baz!{}
19+
20+
pub fn main() {}
21+
22+
EOF

ices/97534-2.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/sh
2+
3+
rustc --edition=2021 - << EOF
4+
5+
macro_rules! foo {
6+
() => {};
7+
}
8+
9+
macro_rules! m {
10+
() => {
11+
use foo as bar;
12+
};
13+
}
14+
15+
m! {}
16+
17+
use bar as baz;
18+
19+
baz! {}
20+
21+
pub fn main() {}
22+
23+
EOF

0 commit comments

Comments
 (0)