Skip to content

Commit a94fe44

Browse files
deps: minor rustc_ast changes for v691
1 parent 8cb320b commit a94fe44

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/formatting/modules/visitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl<'a> CfgIfVisitor<'a> {
2828
}
2929

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

src/formatting/skip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl SkipContext {
2929
}
3030
}
3131
for attr in attrs {
32-
if let rustc_ast::ast::AttrKind::Normal(ref attr_item) = &attr.kind {
32+
if let rustc_ast::ast::AttrKind::Normal(ref attr_item, _) = &attr.kind {
3333
if is_skip_attr_with(&attr_item.path.segments, |s| s == sym!(macros)) {
3434
get_skip_names(&mut self.macros, attr)
3535
} else if is_skip_attr_with(&attr_item.path.segments, |s| s == sym::attributes) {

src/formatting/visitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,7 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
917917
);
918918
} else {
919919
match &attr.kind {
920-
ast::AttrKind::Normal(ref attribute_item)
920+
ast::AttrKind::Normal(ref attribute_item, _)
921921
if self.is_unknown_rustfmt_attr(&attribute_item.path.segments) =>
922922
{
923923
let file_name = self.parse_sess.span_to_filename(attr.span);

0 commit comments

Comments
 (0)