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 0628f01f56
commit 6050eb5169
4 changed files with 4 additions and 6 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,6 +1,5 @@
#![feature(drop_types_in_const, macro_reexport)]
#![cfg_attr(feature = "templates", feature(conservative_impl_trait))]
#![cfg_attr(feature = "templates", feature(associated_consts))]
// TODO: Version URLs.
#![doc(html_root_url = "https://api.rocket.rs/rocket_contrib/")]

View File

@ -28,8 +28,8 @@ time = "0.1"
memchr = "1"
base64 = "0.6"
smallvec = "0.4"
pear = "0.0.8"
pear_codegen = "0.0.8"
pear = "0.0.9"
pear_codegen = "0.0.9"
rustls = { version = "0.9.0", optional = true }
cookie = { version = "0.9.1", features = ["percent-encode", "secure"] }
hyper = { version = "0.10.11", default-features = false }

View File

@ -1,7 +1,6 @@
#![feature(specialization)]
#![feature(conservative_impl_trait)]
#![feature(drop_types_in_const)]
#![feature(associated_consts)]
#![feature(const_fn)]
#![feature(lookup_host)]
#![feature(plugin)]