aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/utils.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2015-07-03 15:14:08 +0200
committerMs2ger <ms2ger@gmail.com>2015-07-04 11:32:41 +0200
commit75e3e787f629d44d70935abec513032ef08ce5c8 (patch)
treef32ed37302a795025d57174387efe7908823218c /components/plugins/utils.rs
parent02d84a13470271d18198af118d4f25ee45fe6917 (diff)
downloadservo-75e3e787f629d44d70935abec513032ef08ce5c8.tar.gz
servo-75e3e787f629d44d70935abec513032ef08ce5c8.zip
Upgrade to rustc 1.3.0-dev (f3b97a74a 2015-07-03)
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 {