Skip to content

Commit 1320420

Browse files
committed
Fixes for new rustc changes.
1 parent 3ec0c76 commit 1320420

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/formatting/closures.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,6 @@ fn rewrite_closure_with_block(
199199
id: ast::NodeId::root(),
200200
kind: ast::StmtKind::Expr(ptr::P(body.clone())),
201201
span: body.span,
202-
tokens: None,
203202
}],
204203
id: ast::NodeId::root(),
205204
rules: ast::BlockCheckMode::Default,

src/formatting/items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,7 @@ pub(crate) fn span_hi_for_param(context: &RewriteContext<'_>, param: &ast::Param
22752275

22762276
pub(crate) fn is_named_param(param: &ast::Param) -> bool {
22772277
if let ast::PatKind::Ident(_, ident, _) = param.pat.kind {
2278-
ident.name != symbol::kw::Invalid
2278+
ident.name != symbol::kw::Empty
22792279
} else {
22802280
true
22812281
}

src/formatting/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ fn rewrite_macro_name(
157157
format!("{}!", pprust::path_to_string(path))
158158
};
159159
match extra_ident {
160-
Some(ident) if ident.name != kw::Invalid => format!("{} {}", name, ident),
160+
Some(ident) if ident.name != kw::Empty => format!("{} {}", name, ident),
161161
_ => name,
162162
}
163163
}

0 commit comments

Comments
 (0)