Skip to content

Commit

Permalink
Remove low-value comments.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nnethercote committed May 31, 2024
1 parent c342820 commit 73e7ecb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions compiler/rustc_parse/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ mod errors;

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

// A bunch of utility functions of the form `parse_<thing>_from_<source>`
// where <thing> includes crate, expr, item, stmt, tts, and one that
// uses a HOF to parse anything, and <source> includes file and
// `source_str`.

// Unwrap the result if `Ok`, otherwise emit the diagnostics and abort.
fn unwrap_or_emit_fatal<T>(expr: Result<T, Vec<Diag<'_>>>) -> T {
match expr {
Expand Down Expand Up @@ -128,8 +123,6 @@ fn maybe_source_file_to_parser(
Ok(parser)
}

// Base abstractions

pub fn source_str_to_stream(
name: FileName,
source: String,
Expand Down

0 comments on commit 73e7ecb

Please sign in to comment.