Skip to content

Commit ff678e1

Browse files
committed
Up rustc-ap-rustc_lexer to 681
cargo update as well
1 parent 3f4e991 commit ff678e1

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

Cargo.lock

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

crates/syntax/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ doctest = false
1313
[dependencies]
1414
itertools = "0.9.0"
1515
rowan = "0.10.0"
16-
rustc_lexer = { version = "673.0.0", package = "rustc-ap-rustc_lexer" }
16+
rustc_lexer = { version = "681.0.0", package = "rustc-ap-rustc_lexer" }
1717
rustc-hash = "1.1.0"
1818
arrayvec = "0.5.1"
1919
once_cell = "1.3.1"

crates/syntax/src/parsing/lexer.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ fn rustc_token_kind_to_syntax_kind(
120120

121121
let syntax_kind = {
122122
match rustc_token_kind {
123-
rustc_lexer::TokenKind::LineComment => COMMENT,
123+
rustc_lexer::TokenKind::LineComment { doc_style: _ } => COMMENT,
124124

125-
rustc_lexer::TokenKind::BlockComment { terminated: true } => COMMENT,
126-
rustc_lexer::TokenKind::BlockComment { terminated: false } => {
125+
rustc_lexer::TokenKind::BlockComment { doc_style: _, terminated: true } => COMMENT,
126+
rustc_lexer::TokenKind::BlockComment { doc_style: _, terminated: false } => {
127127
return (
128128
COMMENT,
129129
Some("Missing trailing `*/` symbols to terminate the block comment"),
@@ -164,7 +164,7 @@ fn rustc_token_kind_to_syntax_kind(
164164
rustc_lexer::TokenKind::Colon => T![:],
165165
rustc_lexer::TokenKind::Dollar => T![$],
166166
rustc_lexer::TokenKind::Eq => T![=],
167-
rustc_lexer::TokenKind::Not => T![!],
167+
rustc_lexer::TokenKind::Bang => T![!],
168168
rustc_lexer::TokenKind::Lt => T![<],
169169
rustc_lexer::TokenKind::Gt => T![>],
170170
rustc_lexer::TokenKind::Minus => T![-],

0 commit comments

Comments
 (0)