Skip to content

Commit 58002e7

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 bf11f27 commit 58002e7

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ mod errors;
3333

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

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

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

0 commit comments

Comments
 (0)