add test to reproduce #137687 and add a hotfix by jdonszelmann · Pull Request #140584 · rust-lang/rust (original) (raw)
Would it make sense to split this into two tests or remove the final #[crate_name] mod foo {}
if the latter is not a regression test for some issue?
Where the first one is:
// Regression test for former ICE: <https://github.com/rust-lang/rust/issues/137687>.
// Still, this should not pass but get rejected.
//@ known-bug: rust-lang/rust#NNN
//@ check-pass
#[crate_name = concat!("Cloneb")]
macro_rules! inline {
() => {};
}
Where NNN
is the relevant issue, otherwise use //@ known-bug: unknown
.