diff --git a/codegen/build.rs b/codegen/build.rs index b3a21eaf..0b4191d9 100644 --- a/codegen/build.rs +++ b/codegen/build.rs @@ -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-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. diff --git a/codegen/src/lints/mod.rs b/codegen/src/lints/mod.rs index c978db17..1c3ef1dd 100644 --- a/codegen/src/lints/mod.rs +++ b/codegen/src/lints/mod.rs @@ -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();