mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Upgrade to rustc 1.3.0-dev (f3b97a74a 2015-07-03)
This commit is contained in:
parent
02d84a1347
commit
75e3e787f6
15 changed files with 96 additions and 116 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue