Use ast attributes every where (remove HIR attributes).
This could be a [breaking-change] if your lint or syntax extension (is that even possible?) uses HIR attributes or literals.
This commit is contained in:
parent
d2e13e822a
commit
e9f1b06329
83 changed files with 1066 additions and 2557 deletions
|
|
@ -15,10 +15,12 @@
|
|||
|
||||
#[macro_use] extern crate rustc;
|
||||
extern crate rustc_front;
|
||||
extern crate syntax;
|
||||
|
||||
use rustc::lint::{Context, LintPass, LintPassObject, LintArray};
|
||||
use rustc::plugin::Registry;
|
||||
use rustc_front::{hir, attr};
|
||||
use rustc_front::hir;
|
||||
use syntax::attr;
|
||||
|
||||
declare_lint!(CRATE_NOT_OKAY, Warn, "crate not marked with #![crate_okay]");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue