mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 20:54:13 +00:00
deps: minor rustc_ast changes for v691
This commit is contained in:
parent
baee271013
commit
5b216029b5
@ -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),
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user