]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #20190 : cmr/rust/gate-macro-args, r=alexcrichton
authorbors <bors@rust-lang.org>
Thu, 1 Jan 2015 15:51:08 +0000 (15:51 +0000)
committerbors <bors@rust-lang.org>
Thu, 1 Jan 2015 15:51:08 +0000 (15:51 +0000)
Uses the same approach as https://github.com/rust-lang/rust/pull/17286 (and
subsequent changes making it more correct), where the visitor will skip any
pieces of the AST that are from "foreign code", where the spans don't line up,
indicating that that piece of code is due to a macro expansion.

If this breaks your code, read the error message to determine which feature
gate you should add to your crate.

Closes #18102

[breaking-change]

1  2 
src/librustc/lint/builtin.rs

Simple merge