diff --git a/ices/93470.sh b/ices/93470.sh new file mode 100755 index 00000000..fda598c7 --- /dev/null +++ b/ices/93470.sh @@ -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 diff --git a/ices/97534-1.sh b/ices/97534-1.sh new file mode 100755 index 00000000..be6a08cf --- /dev/null +++ b/ices/97534-1.sh @@ -0,0 +1,22 @@ +#!/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 diff --git a/ices/97534-2.sh b/ices/97534-2.sh new file mode 100755 index 00000000..f724839e --- /dev/null +++ b/ices/97534-2.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +rustc --edition=2021 - << EOF + +macro_rules! foo { + () => {}; +} + +macro_rules! m { + () => { + use foo as bar; + }; +} + +m! {} + +use bar as baz; + +baz! {} + +pub fn main() {} + +EOF