Fixed build for latest nightly (again)
This commit is contained in:
@@ -743,7 +743,7 @@ fn parse_attrs<F: FnMut(u64)>(sess: &Session, attrs: &[ast::Attribute], name: &'
|
||||
continue;
|
||||
}
|
||||
if let Some(ref value) = attr.value_str() {
|
||||
if attr.name().map_or(false, |n| n == name) {
|
||||
if attr.name() == name {
|
||||
if let Ok(value) = FromStr::from_str(&value.as_str()) {
|
||||
attr::mark_used(attr);
|
||||
f(value)
|
||||
|
||||
Reference in New Issue
Block a user