]> git.lizzy.rs Git - rust.git/blob - tests/ui/outer_expn_info.rs
Auto merge of #4314 - chansuke:add-negation-to-is_empty, r=flip1995
[rust.git] / tests / ui / outer_expn_info.rs
1 #![deny(clippy::internal)]
2 #![feature(rustc_private)]
3
4 #[macro_use]
5 extern crate rustc;
6 use rustc::hir::Expr;
7 use rustc::lint::{LateContext, LateLintPass, LintArray, LintPass};
8
9 declare_lint! {
10     pub TEST_LINT,
11     Warn,
12     ""
13 }
14
15 declare_lint_pass!(Pass => [TEST_LINT]);
16
17 impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
18     fn check_expr(&mut self, _cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
19         let _ = expr.span.ctxt().outer_expn().expn_info();
20     }
21 }
22
23 fn main() {}