aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/lints/inheritance_integrity.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/plugins/lints/inheritance_integrity.rs')
-rw-r--r--components/plugins/lints/inheritance_integrity.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/plugins/lints/inheritance_integrity.rs b/components/plugins/lints/inheritance_integrity.rs
index ab6dc2d1a1b..70fbed0c016 100644
--- a/components/plugins/lints/inheritance_integrity.rs
+++ b/components/plugins/lints/inheritance_integrity.rs
@@ -4,7 +4,8 @@
use rustc::lint::{Context, LintPass, LintArray, Level};
use rustc::middle::def;
-use syntax::{ast, ast_util};
+use rustc::middle::def_id::DefId;
+use syntax::ast;
use utils::match_lang_ty;
@@ -26,7 +27,7 @@ impl LintPass for InheritancePass {
_gen: &ast::Generics, id: ast::NodeId) {
// Lints are run post expansion, so it's fine to use
// #[_dom_struct_marker] here without also checking for #[dom_struct]
- if cx.tcx.has_attr(ast_util::local_def(id), "_dom_struct_marker") {
+ if cx.tcx.has_attr(DefId::local(id), "_dom_struct_marker") {
// Find the reflector, if any
let reflector_span = def.fields.iter().enumerate()
.find(|&(ctr, f)| {