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.
This commit is contained in:
parent
af13b48927
commit
29e6e2859b
1 changed files with 0 additions and 7 deletions
|
@ -34,11 +34,6 @@ mod errors;
|
||||||
|
|
||||||
rustc_fluent_macro::fluent_messages! { "../messages.ftl" }
|
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.
|
// Unwrap the result if `Ok`, otherwise emit the diagnostics and abort.
|
||||||
fn unwrap_or_emit_fatal<T>(expr: Result<T, Vec<Diag<'_>>>) -> T {
|
fn unwrap_or_emit_fatal<T>(expr: Result<T, Vec<Diag<'_>>>) -> T {
|
||||||
match expr {
|
match expr {
|
||||||
|
@ -128,8 +123,6 @@ fn maybe_source_file_to_parser(
|
||||||
Ok(parser)
|
Ok(parser)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Base abstractions
|
|
||||||
|
|
||||||
pub fn source_str_to_stream(
|
pub fn source_str_to_stream(
|
||||||
name: FileName,
|
name: FileName,
|
||||||
source: String,
|
source: String,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue