Skip to content

Commit 1e07c2d

Browse files
committed
Bump rustc-ap crates
This also requires bumping the nightly toolchain version, since the latest versions of the rustc-ap crates require some new nightly features.
1 parent 76ea9bf commit 1e07c2d

File tree

5 files changed

+72
-55
lines changed

5 files changed

+72
-55
lines changed

Cargo.lock

Lines changed: 59 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,32 +107,32 @@ lazy_static = "1.0.0"
107107

108108
[dependencies.rustc_ast]
109109
package = "rustc-ap-rustc_ast"
110-
version = "712.0.0"
110+
version = "717.0.0"
111111

112112
[dependencies.rustc_ast_pretty]
113113
package = "rustc-ap-rustc_ast_pretty"
114-
version = "712.0.0"
114+
version = "717.0.0"
115115

116116
[dependencies.rustc_data_structures]
117117
package = "rustc-ap-rustc_data_structures"
118-
version = "712.0.0"
118+
version = "717.0.0"
119119

120120
[dependencies.rustc_errors]
121121
package = "rustc-ap-rustc_errors"
122-
version = "712.0.0"
122+
version = "717.0.0"
123123

124124
[dependencies.rustc_expand]
125125
package = "rustc-ap-rustc_expand"
126-
version = "712.0.0"
126+
version = "717.0.0"
127127

128128
[dependencies.rustc_parse]
129129
package = "rustc-ap-rustc_parse"
130-
version = "712.0.0"
130+
version = "717.0.0"
131131

132132
[dependencies.rustc_session]
133133
package = "rustc-ap-rustc_session"
134-
version = "712.0.0"
134+
version = "717.0.0"
135135

136136
[dependencies.rustc_span]
137137
package = "rustc-ap-rustc_span"
138-
version = "712.0.0"
138+
version = "717.0.0"

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2021-03-26
1+
nightly-2021-04-26

src/formatting/macros.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::collections::HashMap;
1313
use std::panic::{catch_unwind, AssertUnwindSafe};
1414

1515
use rustc_ast::token::{BinOpToken, DelimToken, Token, TokenKind};
16-
use rustc_ast::tokenstream::{Cursor, LazyTokenStream, TokenStream, TokenTree};
16+
use rustc_ast::tokenstream::{Cursor, Spacing, TokenStream, TokenTree};
1717
use rustc_ast::{ast, ptr};
1818
use rustc_ast_pretty::pprust;
1919
use rustc_parse::parser::{ForceCollect, Parser};
@@ -1233,7 +1233,7 @@ pub(crate) fn convert_try_mac(
12331233
kind: ast::ExprKind::Try(kind),
12341234
span: mac.span(), // incorrect span, but shouldn't matter too much
12351235
attrs: ast::AttrVec::new(),
1236-
tokens: Some(LazyTokenStream::new(ts)),
1236+
tokens: None,
12371237
})
12381238
} else {
12391239
None
@@ -1284,7 +1284,7 @@ impl MacroParser {
12841284
TokenTree::Token(..) => return None,
12851285
TokenTree::Delimited(delimited_span, d, _) => (delimited_span.open.lo(), d),
12861286
};
1287-
let args = tok.joint();
1287+
let args = TokenStream::new(vec![(tok, Spacing::Joint)]);
12881288
match self.toks.next()? {
12891289
TokenTree::Token(Token {
12901290
kind: TokenKind::FatArrow,

src/formatting/modules.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ impl<'a> Module<'a> {
100100
}
101101

102102
impl<'a> AstLike for Module<'a> {
103+
const SUPPORTS_CUSTOM_INNER_ATTRS: bool = true;
103104
fn attrs(&self) -> &[ast::Attribute] {
104105
&self.inner_attr
105106
}

0 commit comments

Comments
 (0)