mirror of https://github.com/rwf2/Rocket.git
Update codegen for latest nightly.
This commit is contained in:
parent
1fb0231d87
commit
3a2edba2a9
|
@ -8,8 +8,8 @@ use ansi_term::Colour::{Red, Yellow, Blue, White};
|
||||||
use version_check::{is_nightly, is_min_version, is_min_date};
|
use version_check::{is_nightly, is_min_version, is_min_date};
|
||||||
|
|
||||||
// Specifies the minimum nightly version needed to compile Rocket's codegen.
|
// Specifies the minimum nightly version needed to compile Rocket's codegen.
|
||||||
const MIN_DATE: &'static str = "2017-03-22";
|
const MIN_DATE: &'static str = "2017-03-30";
|
||||||
const MIN_VERSION: &'static str = "1.17.0-nightly";
|
const MIN_VERSION: &'static str = "1.18.0-nightly";
|
||||||
|
|
||||||
// Convenience macro for writing to stderr.
|
// Convenience macro for writing to stderr.
|
||||||
macro_rules! printerr {
|
macro_rules! printerr {
|
||||||
|
|
|
@ -17,7 +17,7 @@ use syntax::parse::token::Token;
|
||||||
use syntax::tokenstream::TokenTree;
|
use syntax::tokenstream::TokenTree;
|
||||||
use syntax::ast::{Item, Expr};
|
use syntax::ast::{Item, Expr};
|
||||||
use syntax::ext::base::{Annotatable, ExtCtxt};
|
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::ext::quote::rt::ToTokens;
|
||||||
use syntax::print::pprust::item_to_string;
|
use syntax::print::pprust::item_to_string;
|
||||||
use syntax::ptr::P;
|
use syntax::ptr::P;
|
||||||
|
@ -26,7 +26,7 @@ use syntax::ast::{Attribute, Lifetime, LifetimeDef, Ty};
|
||||||
use syntax::attr::HasAttrs;
|
use syntax::attr::HasAttrs;
|
||||||
|
|
||||||
pub fn span<T>(t: T, span: Span) -> Spanned<T> {
|
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>
|
pub fn sep_by_tok<T>(ecx: &ExtCtxt, things: &[T], token: Token) -> Vec<TokenTree>
|
||||||
|
|
Loading…
Reference in New Issue