Update codegen for latest nightly.

This commit is contained in:
Sergio Benitez 2017-03-20 13:55:40 -07:00
parent ec92046d3a
commit 7808ad1649
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -229,7 +229,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RocketLint {
let attr_value = kind.attrs().iter().filter_map(|attr| {
match attr.check_name(ROUTE_ATTR) {
false => None,
true => attr.value.meta_item_list().and_then(|list| list[0].name())
true => attr.meta_item_list().and_then(|list| list[0].name())
}
}).next();