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

add 2 ices #1274

Merged
merged 2 commits into from
May 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
22 changes: 22 additions & 0 deletions ices/97534-1.sh
Original file line number Diff line number Diff line change
@@ -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
23 changes: 23 additions & 0 deletions ices/97534-2.sh
Original file line number Diff line number Diff line change
@@ -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