forked from rust-lang/glacier
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
741dddd
commit bbf53bf
Showing
3 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |