]> git.lizzy.rs Git - rust.git/commit
stability lint: ignore code from macro expansion
authorAaron Turon <aturon@mozilla.com>
Wed, 16 Jul 2014 20:50:33 +0000 (13:50 -0700)
committerAaron Turon <aturon@mozilla.com>
Wed, 16 Jul 2014 20:53:06 +0000 (13:53 -0700)
commit81b69d153869062af6992dc2c99c5536c7ff99f0
tree0ad4391d3ee95745acdef3365a60da0148c429e6
parent06c7ee9c56f7c768be94c89f699527b44be664ab
stability lint: ignore code from macro expansion

This small patch causes the stability lint to bail out when traversing
any AST produced via a macro expansion. Ultimately, we would like to
lint the contents of the macro at the place where the macro is defined,
but regardless we should not be linting it at the use site.

Closes #15703
src/librustc/lint/builtin.rs
src/test/auxiliary/lint_stability.rs
src/test/compile-fail/lint-stability.rs