Skip to content

Commit 34d0c0a

Browse files
authored
Rollup merge of rust-lang#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.
2 parents 06009c2 + 045140a commit 34d0c0a

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_parse/src

1 file changed

+2
-2
lines changed

compiler/rustc_parse/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ pub fn new_parser_from_file<'a>(sess: &'a ParseSess, path: &Path, sp: Option<Spa
117117
source_file_to_parser(sess, file_to_source_file(sess, path, sp))
118118
}
119119

120-
/// Given a `source_file` and config, returns a parser.
120+
/// Given a session and a `source_file`, returns a parser.
121121
fn source_file_to_parser(sess: &ParseSess, source_file: Lrc<SourceFile>) -> Parser<'_> {
122122
panictry_buffer!(&sess.span_diagnostic, maybe_source_file_to_parser(sess, source_file))
123123
}
124124

125-
/// Given a `source_file` and config, return a parser. Returns any buffered errors from lexing the
125+
/// Given a session and a `source_file`, return a parser. Returns any buffered errors from lexing the
126126
/// initial token stream.
127127
fn maybe_source_file_to_parser(
128128
sess: &ParseSess,

0 commit comments

Comments
 (0)