diff options
| author | bors <bors@rust-lang.org> | 2024-08-29 05:51:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-08-29 05:51:49 +0000 |
| commit | ad7a1aa32ab388dd9748a10a4c983df9da3d23cb (patch) | |
| tree | ba8d189af1c8e30ce0e00e5fe30a6c1557692942 /compiler/rustc_parse/src | |
| parent | 9ad0f65049ae4d7ddc15a512d8ab2b0ac7f035e5 (diff) | |
| parent | b5be3ab38b50ca0dc32e022feca9993c64e583e6 (diff) | |
| download | rust-ad7a1aa32ab388dd9748a10a4c983df9da3d23cb.tar.gz rust-ad7a1aa32ab388dd9748a10a4c983df9da3d23cb.zip | |
Auto merge of #3851 - rust-lang:rustup-2024-08-29, r=RalfJung
Automatic Rustup
Diffstat (limited to 'compiler/rustc_parse/src')
| -rw-r--r-- | compiler/rustc_parse/src/parser/item.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/parser/item.rs b/compiler/rustc_parse/src/parser/item.rs index 14da6c331f1..c6a5e1908f7 100644 --- a/compiler/rustc_parse/src/parser/item.rs +++ b/compiler/rustc_parse/src/parser/item.rs @@ -51,7 +51,9 @@ impl<'a> Parser<'a> { } /// Parses the contents of a module (inner attributes followed by module items). - /// We exit once we hit `term` + /// We exit once we hit `term` which can be either + /// - EOF (for files) + /// - `}` for mod items pub fn parse_mod( &mut self, term: &TokenKind, |
