From c7a22404421e4e6efd43da92e04ae31526988c79 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sun, 9 Jul 2017 22:00:01 -0700 Subject: [PATCH] Update for 2017-07-09. 'associated_consts' is stable. --- codegen/src/lints/utils.rs | 4 ++-- lib/src/lib.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/codegen/src/lints/utils.rs b/codegen/src/lints/utils.rs index 252e6861..989208e2 100644 --- a/codegen/src/lints/utils.rs +++ b/codegen/src/lints/utils.rs @@ -69,8 +69,8 @@ pub fn rocket_method_call<'e>(method: &str, cx: &LateContext, expr: &'e Expr) -> (Option<(Option<&'e Expr>, &'e [Expr])>) { - if let ExprMethodCall(ref name, _, ref exprs) = expr.node { - if &*name.node.as_str() == method && is_impl_method(cx, expr, ROCKET_TYPE) { + if let ExprMethodCall(ref seg, _, ref exprs) = expr.node { + if seg.name.as_str() == method && is_impl_method(cx, expr, ROCKET_TYPE) { let receiver = find_initial_receiver(cx, &exprs[0]); return Some((receiver, &exprs[1..])); } diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 8c2f588e..153e3a66 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -1,7 +1,6 @@ #![feature(specialization)] #![feature(conservative_impl_trait)] #![feature(drop_types_in_const)] -#![feature(associated_consts)] #![feature(const_fn)] #![feature(type_ascription)] #![feature(lookup_host)]