diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2015-07-03 15:14:08 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-07-04 11:32:41 +0200 |
commit | 75e3e787f629d44d70935abec513032ef08ce5c8 (patch) | |
tree | f32ed37302a795025d57174387efe7908823218c /components/plugins/utils.rs | |
parent | 02d84a13470271d18198af118d4f25ee45fe6917 (diff) | |
download | servo-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.rs | 4 |
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 { |