aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/utils.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-02-22 18:22:41 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2016-02-23 02:43:57 +0100
commitdab9b4700cfd897f4558583328313ad6033bf2f8 (patch)
tree52c68be9e4ce2a1d9c07e3bfe2be4b80d9e90099 /components/plugins/utils.rs
parentef95eb3bbee76891dfdf4eac44a3647447f04cc9 (diff)
downloadservo-dab9b4700cfd897f4558583328313ad6033bf2f8.tar.gz
servo-dab9b4700cfd897f4558583328313ad6033bf2f8.zip
Bump to Rust 2016-02-22
Diffstat (limited to 'components/plugins/utils.rs')
-rw-r--r--components/plugins/utils.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/plugins/utils.rs b/components/plugins/utils.rs
index e7f9d6df930..29b09255936 100644
--- a/components/plugins/utils.rs
+++ b/components/plugins/utils.rs
@@ -18,7 +18,7 @@ use syntax::ptr::P;
/// Try not to use this for types defined in crates you own, use match_lang_ty instead (for lint passes)
pub fn match_ty_unwrap<'a>(ty: &'a ast::Ty, segments: &[&str]) -> Option<&'a [P<ast::Ty>]> {
match ty.node {
- ast::TyPath(_, ast::Path { segments: ref seg, .. }) => {
+ ast::TyKind::Path(_, ast::Path { segments: ref seg, .. }) => {
// So hir::Path isn't the full path, just the tokens that were provided.
// I could muck around with the maps and find the full path
// however the more efficient way is to simply reverse the iterators and zip them
@@ -60,9 +60,9 @@ pub fn match_lang_ty(cx: &LateContext, ty: &hir::Ty, value: &str) -> bool {
pub fn match_lang_did(cx: &LateContext, did: DefId, value: &str) -> bool {
cx.tcx.get_attrs(did).iter().any(|attr| {
match attr.node.value.node {
- ast::MetaNameValue(ref name, ref val) if &**name == "servo_lang" => {
+ ast::MetaItemKind::NameValue(ref name, ref val) if &**name == "servo_lang" => {
match val.node {
- ast::LitStr(ref v, _) if &**v == value => {
+ ast::LitKind::Str(ref v, _) if &**v == value => {
mark_used(attr);
true
},