Fixed build for latest nightly (again)

This commit is contained in:
Alexander Regueiro
2018-05-03 23:28:02 +01:00
parent c7ce6c07b1
commit 00b549ad40
9 changed files with 42 additions and 49 deletions

View File

@@ -13,7 +13,7 @@ pub fn file_from_args(
args: &[codemap::Spanned<ast::NestedMetaItemKind>],
) -> Result<Option<path::PathBuf>, (&'static str, codemap::Span)> {
for arg in args.iter().filter_map(|a| a.meta_item()) {
if arg.ident.name == "conf_file" {
if arg.name() == "conf_file" {
return match arg.node {
ast::MetaItemKind::Word | ast::MetaItemKind::List(_) => {
Err(("`conf_file` must be a named value", arg.span))