]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #17508 : vberger/rust/stability_lint_for_nested_macros, r=pnkfelix
authorbors <bors@rust-lang.org>
Tue, 21 Oct 2014 11:37:14 +0000 (11:37 +0000)
committerbors <bors@rust-lang.org>
Tue, 21 Oct 2014 11:37:14 +0000 (11:37 +0000)
Finishes the job of #17286.

Now the stability lint will successfully detect patterns such as:
```
first_macro!(second_macro!(deprecated_function()));
```
```
macro_rules! foo (
    ($e: expr) => (bar!($e))
)
foo!(deprected_function());
```
and
```
println!("{}", deprecated_function());
```
even with more levels of nesting, such as
```
println!("{}", foo!(bar!(deprecated_function())));
```


Trivial merge