Skip to content

Commit 5b21602

Browse files
deps: minor rustc_ast changes for v691
1 parent baee271 commit 5b21602

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/modules/visitor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ impl<'a> CfgIfVisitor<'a> {
3030
}
3131

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

src/skip.rs

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

src/visitor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
851851
);
852852
} else {
853853
match &attr.kind {
854-
ast::AttrKind::Normal(ref attribute_item)
854+
ast::AttrKind::Normal(ref attribute_item, _)
855855
if self.is_unknown_rustfmt_attr(&attribute_item.path.segments) =>
856856
{
857857
let file_name = self.parse_sess.span_to_filename(attr.span);

0 commit comments

Comments
 (0)