mirror of https://github.com/rwf2/Rocket.git
Update codegen for latest nightly.
This commit is contained in:
parent
65c70479f8
commit
56a631d4ba
|
@ -8,8 +8,8 @@ use ansi_term::Colour::{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-01-31";
|
||||
const MIN_VERSION: &'static str = "1.16.0-nightly";
|
||||
const MIN_DATE: &'static str = "2017-02-26";
|
||||
const MIN_VERSION: &'static str = "1.17.0-nightly";
|
||||
|
||||
// Convenience macro for writing to stderr.
|
||||
macro_rules! printerr {
|
||||
|
|
|
@ -160,7 +160,7 @@ impl DefExt for Def {
|
|||
| Def::AssociatedTy(id) | Def::TyParam(id) | Def::Struct(id)
|
||||
| Def::StructCtor(id, ..) | Def::Union(id) | Def::Trait(id)
|
||||
| Def::Method(id) | Def::Const(id) | Def::AssociatedConst(id)
|
||||
| Def::Local(id) | Def::Upvar(id, ..) | Def::Macro(id) => Some(id),
|
||||
| Def::Local(id) | Def::Upvar(id, ..) | Def::Macro(id, ..) => Some(id),
|
||||
Def::Label(..) | Def::PrimTy(..) | Def::SelfTy(..) | Def::Err => None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue