diff options
| author | Ralf Jung <post@ralfj.de> | 2022-07-24 14:04:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-24 14:04:29 -0400 |
| commit | 34d0c0abf66efa76fb8f6639eb0d922ba7844c5a (patch) | |
| tree | c19da295a013451e3798c36201f05f8b875c0340 | |
| parent | 06009c28f467b416b54f8f97efbd04dbd355e361 (diff) | |
| parent | 045140a25bc627fef8852269cc8ba9e052ec0501 (diff) | |
| download | rust-34d0c0abf66efa76fb8f6639eb0d922ba7844c5a.tar.gz rust-34d0c0abf66efa76fb8f6639eb0d922ba7844c5a.zip | |
Rollup merge of #99678 - danbev:rustc_parse-config-doc-comments, r=cjgillot
Update doc comments that refer to config parameter This commit updates the `source_file_to_parser` and the `maybe_source_file_to_parse` function's doc comments which currently refer to a `config` parameter. The doc comments have been updated to refer to the `session` parameter similar to the doc comment for `try_file_to_source_file`, which also takes a `&Session` parameter.
| -rw-r--r-- | compiler/rustc_parse/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_parse/src/lib.rs b/compiler/rustc_parse/src/lib.rs index d56e3773dc7..261adbfc346 100644 --- a/compiler/rustc_parse/src/lib.rs +++ b/compiler/rustc_parse/src/lib.rs @@ -117,12 +117,12 @@ pub fn new_parser_from_file<'a>(sess: &'a ParseSess, path: &Path, sp: Option<Spa source_file_to_parser(sess, file_to_source_file(sess, path, sp)) } -/// Given a `source_file` and config, returns a parser. +/// Given a session and a `source_file`, returns a parser. fn source_file_to_parser(sess: &ParseSess, source_file: Lrc<SourceFile>) -> Parser<'_> { panictry_buffer!(&sess.span_diagnostic, maybe_source_file_to_parser(sess, source_file)) } -/// Given a `source_file` and config, return a parser. Returns any buffered errors from lexing the +/// Given a session and a `source_file`, return a parser. Returns any buffered errors from lexing the /// initial token stream. fn maybe_source_file_to_parser( sess: &ParseSess, |
