diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-08 19:32:21 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-09 21:54:32 +1000 |
| commit | f5527949f2e819c056551a25d8fab7008facf6da (patch) | |
| tree | c839b7ae3fdc897fbbb8d67764e6c353f4fd3c82 /compiler/rustc_parse/src/parser/mod.rs | |
| parent | a88c4d67d9ea8a9f450638f207be867fa984bfce (diff) | |
| download | rust-f5527949f2e819c056551a25d8fab7008facf6da.tar.gz rust-f5527949f2e819c056551a25d8fab7008facf6da.zip | |
Move `Spacing` into `FlatToken`.
It's only needed for the `FlatToken::Token` variant. This makes things a little more concise.
Diffstat (limited to 'compiler/rustc_parse/src/parser/mod.rs')
| -rw-r--r-- | compiler/rustc_parse/src/parser/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/mod.rs b/compiler/rustc_parse/src/parser/mod.rs index 45ca267fe5d..1482c665a16 100644 --- a/compiler/rustc_parse/src/parser/mod.rs +++ b/compiler/rustc_parse/src/parser/mod.rs @@ -1607,7 +1607,7 @@ pub(crate) fn make_unclosed_delims_error( enum FlatToken { /// A token - this holds both delimiter (e.g. '{' and '}') /// and non-delimiter tokens - Token(Token), + Token((Token, Spacing)), /// Holds the `AttrsTarget` for an AST node. The `AttrsTarget` is inserted /// directly into the constructed `AttrTokenStream` as an /// `AttrTokenTree::AttrsTarget`. |
