forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ICE with buffered lint referring to AST node deleted by everybody…
…_loops
- Loading branch information
1 parent
edebf77
commit a28a78f
Showing
3 changed files
with
38 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Regression test for issue #87308. | ||
|
||
// compile-flags: -Zunpretty=everybody_loops | ||
// check-pass | ||
|
||
macro_rules! foo { | ||
() => { break 'x; } | ||
} | ||
|
||
pub fn main() { | ||
'x: loop { foo!() } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#![feature(prelude_import)] | ||
#![no_std] | ||
#[prelude_import] | ||
use ::std::prelude::rust_2015::*; | ||
#[macro_use] | ||
extern crate std; | ||
// Regression test for issue #87308. | ||
|
||
// compile-flags: -Zunpretty=everybody_loops | ||
// check-pass | ||
|
||
macro_rules! foo { () => { break 'x ; } } | ||
|
||
pub fn main() { loop { } } |