diff options
| author | The Miri Cronjob Bot <miri@cron.bot> | 2024-08-29 05:07:14 +0000 |
|---|---|---|
| committer | The Miri Cronjob Bot <miri@cron.bot> | 2024-08-29 05:07:14 +0000 |
| commit | a10633afe60b46dacce3d39298c999f01bf46f89 (patch) | |
| tree | 0cc5b6e88d30426e5b2e123f56f7b669cc5f45f4 /compiler/rustc_parse/src/parser | |
| parent | b0c3324838a7f5666147536f59ec52e9d9ce33b9 (diff) | |
| parent | acb4e8b6251f1d8da36f08e7a70fa23fc581839e (diff) | |
| download | rust-a10633afe60b46dacce3d39298c999f01bf46f89.tar.gz rust-a10633afe60b46dacce3d39298c999f01bf46f89.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_parse/src/parser')
| -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, |
