Rollup merge of #129667 - dev-ardi:rustc_driver-cleanup, r=michaelwoerister

Rustc driver cleanup

This adds a few comments to the driver to clarify a bit what's happening and does some cleanup.
This commit is contained in:
Matthias Krüger
2024-08-28 17:12:19 +02:00
committed by GitHub
3 changed files with 40 additions and 30 deletions

View File

@@ -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,