Skip to content

Commit bbf53bf

Browse files
committed
1 parent 741dddd commit bbf53bf

File tree

3 files changed

+79
-0
lines changed

3 files changed

+79
-0
lines changed

ices/93470.sh

+34
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

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

ices/97534-2.sh

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
EOF

0 commit comments

Comments
 (0)