Skip to content

Commit 29e6e28

Browse files
committed
Remove low-value comments.
The first one is out-of-date -- there are no longer functions expr, item, stmt. And I don't know what a "HOF" is. The second one doesn't really tell you anything.
1 parent af13b48 commit 29e6e28

File tree

1 file changed

+0
-7
lines changed
  • compiler/rustc_parse/src

1 file changed

+0
-7
lines changed

compiler/rustc_parse/src/lib.rs

-7
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ mod errors;
3434

3535
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
3636

37-
// A bunch of utility functions of the form `parse_<thing>_from_<source>`
38-
// where <thing> includes crate, expr, item, stmt, tts, and one that
39-
// uses a HOF to parse anything, and <source> includes file and
40-
// `source_str`.
41-
4237
// Unwrap the result if `Ok`, otherwise emit the diagnostics and abort.
4338
fn unwrap_or_emit_fatal<T>(expr: Result<T, Vec<Diag<'_>>>) -> T {
4439
match expr {
@@ -128,8 +123,6 @@ fn maybe_source_file_to_parser(
128123
Ok(parser)
129124
}
130125

131-
// Base abstractions
132-
133126
pub fn source_str_to_stream(
134127
name: FileName,
135128
source: String,

0 commit comments

Comments
 (0)