Auto merge of #44248 - oli-obk:spans, r=jseyfried
Produce expansion info for more builtin macros r? @jseyfried fixes #43268
This commit is contained in:
commit
2f681bf602
6 changed files with 15 additions and 5 deletions
|
|
@ -36,3 +36,8 @@ mod foo {
|
|||
fn main() {
|
||||
while true {} //~ ERROR: infinite loops
|
||||
}
|
||||
|
||||
#[deny(while_true)]
|
||||
fn bar() {
|
||||
while cfg!(unix) {} // no error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue