mirror of https://github.com/rwf2/Rocket.git
Update codegen for latest nightly.
This commit is contained in:
parent
a9c3b8a919
commit
58678e53fb
|
@ -8,7 +8,7 @@ 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-03";
|
||||
const MIN_DATE: &'static str = "2017-01-31";
|
||||
const MIN_VERSION: &'static str = "1.16.0-nightly";
|
||||
|
||||
// Convenience macro for writing to stderr.
|
||||
|
|
|
@ -190,7 +190,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RocketLint {
|
|||
return;
|
||||
}
|
||||
|
||||
if let Some(def_id) = cx.tcx.map.opt_local_def_id(item.id) {
|
||||
if let Some(def_id) = cx.tcx.hir.opt_local_def_id(item.id) {
|
||||
self.info_structs.insert(item.name, def_id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue