-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed as not planned
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
macro_rules! m {
($a:expr) => {
'label: for _ in 0..1 {
$a;
}
}
}
fn main() {
m!(m!(1));
}
causes the following warning:
warning: label name `'label` shadows a label name that is already in scope
--> src/main.rs:3:9
|
3 | 'label: for _ in 0..1 {
| ^^^^^^
| |
| first declared here
| lifetime 'label already in scope
...
10 | m!(m!(1));
| ----- in this macro invocation
There is no way to allow the warning.
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.