Update codegen for latest nightly.

This commit is contained in:
Sergio Benitez 2017-02-02 14:45:43 -08:00
parent a9c3b8a919
commit 58678e53fb
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ 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-01-03"; const MIN_DATE: &'static str = "2017-01-31";
const MIN_VERSION: &'static str = "1.16.0-nightly"; const MIN_VERSION: &'static str = "1.16.0-nightly";
// Convenience macro for writing to stderr. // Convenience macro for writing to stderr.

View File

@ -190,7 +190,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RocketLint {
return; 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); self.info_structs.insert(item.name, def_id);
} }
} }