deps: minor rustc_ast changes for v691

This commit is contained in:
Caleb Cartwright 2020-11-28 14:58:10 -06:00 committed by Caleb Cartwright
parent baee271013
commit 5b216029b5
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ impl<'a> CfgIfVisitor<'a> {
}
impl<'a, 'ast: 'a> Visitor<'ast> for CfgIfVisitor<'a> {
fn visit_mac(&mut self, mac: &'ast ast::MacCall) {
fn visit_mac_call(&mut self, mac: &'ast ast::MacCall) {
match self.visit_mac_inner(mac) {
Ok(()) => (),
Err(e) => debug!("{}", e),

View File

@ -58,7 +58,7 @@ fn get_skip_names(kind: &str, attrs: &[ast::Attribute]) -> Vec<String> {
for attr in attrs {
// rustc_ast::ast::Path is implemented partialEq
// but it is designed for segments.len() == 1
if let ast::AttrKind::Normal(attr_item) = &attr.kind {
if let ast::AttrKind::Normal(attr_item, _) = &attr.kind {
if pprust::path_to_string(&attr_item.path) != path {
continue;
}

View File

@ -851,7 +851,7 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
);
} else {
match &attr.kind {
ast::AttrKind::Normal(ref attribute_item)
ast::AttrKind::Normal(ref attribute_item, _)
if self.is_unknown_rustfmt_attr(&attribute_item.path.segments) =>
{
let file_name = self.parse_sess.span_to_filename(attr.span);