mirror of https://github.com/rwf2/Rocket.git
Update for 2017-07-09. 'associated_consts' is stable.
This commit is contained in:
parent
61b19b1863
commit
c7a2240442
|
@ -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..]));
|
||||
}
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue