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:
commit
472c9645fb
3 changed files with 40 additions and 30 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue