Update codegen for latest nightly.

This commit is contained in:
Sergio Benitez 2017-03-30 19:47:14 -07:00
parent 10306c3b7e
commit f7bc1ce24f
2 changed files with 4 additions and 4 deletions

View File

@ -8,8 +8,8 @@ use ansi_term::Color::{Red, Yellow, Blue, White};
use version_check::{is_nightly, is_min_version, is_min_date};
// Specifies the minimum nightly version needed to compile Rocket's codegen.
const MIN_DATE: &'static str = "2017-03-22";
const MIN_VERSION: &'static str = "1.17.0-nightly";
const MIN_DATE: &'static str = "2017-03-30";
const MIN_VERSION: &'static str = "1.18.0-nightly";
// Convenience macro for writing to stderr.
macro_rules! printerr {

View File

@ -17,7 +17,7 @@ use syntax::parse::token::Token;
use syntax::tokenstream::TokenTree;
use syntax::ast::{Item, Expr};
use syntax::ext::base::{Annotatable, ExtCtxt};
use syntax::codemap::{spanned, Span, Spanned, DUMMY_SP};
use syntax::codemap::{Span, Spanned, DUMMY_SP};
use syntax::ext::quote::rt::ToTokens;
use syntax::print::pprust::item_to_string;
use syntax::ptr::P;
@ -26,7 +26,7 @@ use syntax::ast::{Attribute, Lifetime, LifetimeDef, Ty};
use syntax::attr::HasAttrs;
pub fn span<T>(t: T, span: Span) -> Spanned<T> {
spanned(span.lo, span.hi, t)
Spanned { node: t, span: span }
}
pub fn sep_by_tok<T>(ecx: &ExtCtxt, things: &[T], token: Token) -> Vec<TokenTree>