Fix compilation for nightly 2018-04-06
Breakages for introduced by rust pull request 'AST: Give spans to all identifies' - rust-lang/rust/pull#49154 Closes #2639
This commit is contained in:
@@ -119,7 +119,7 @@ impl LintPass for EnumVariantNames {
|
||||
}
|
||||
|
||||
fn var2str(var: &Variant) -> InternedString {
|
||||
var.node.name.name.as_str()
|
||||
var.node.ident.name.as_str()
|
||||
}
|
||||
|
||||
/// Returns the number of chars that match from the start
|
||||
|
||||
Reference in New Issue
Block a user