Update for 2017-07-09. 'associated_consts' is stable.

This commit is contained in:
Sergio Benitez 2017-07-09 22:00:01 -07:00
parent 61b19b1863
commit c7a2240442
2 changed files with 2 additions and 3 deletions

View File

@ -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..]));
}

View File

@ -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)]