aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/plugins/utils.rs')
-rw-r--r--components/plugins/utils.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/plugins/utils.rs b/components/plugins/utils.rs
index 9d98f568a6c..8e4c8bcf495 100644
--- a/components/plugins/utils.rs
+++ b/components/plugins/utils.rs
@@ -4,7 +4,7 @@
use rustc::ast_map;
use rustc::lint::Context;
-use rustc::middle::{ty, def};
+use rustc::middle::def;
use syntax::ptr::P;
use syntax::ast;
@@ -49,7 +49,7 @@ pub fn match_lang_ty(cx: &Context, ty: &Ty, value: &str) -> bool {
_ => return false,
};
- ty::get_attrs(cx.tcx, def_id).iter().any(|attr| {
+ cx.tcx.get_attrs(def_id).iter().any(|attr| {
match attr.node.value.node {
ast::MetaNameValue(ref name, ref val) if &**name == "servo_lang" => {
match val.node {