about summary refs log tree commit diff
path: root/compiler/rustc_parse
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-05-31 13:38:51 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-06-05 10:38:02 +1000
commit29e6e2859be6ea69a486bdc155df9311455f55dc (patch)
tree7676038d8c3568ed78710b7768b516c0f79714fd /compiler/rustc_parse
parentaf13b4892786a3f77d440016409414eeadd7d37e (diff)
downloadrust-29e6e2859be6ea69a486bdc155df9311455f55dc.tar.gz
rust-29e6e2859be6ea69a486bdc155df9311455f55dc.zip
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.
Diffstat (limited to 'compiler/rustc_parse')
-rw-r--r--compiler/rustc_parse/src/lib.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/rustc_parse/src/lib.rs b/compiler/rustc_parse/src/lib.rs
index 298d02d2e58..2c5a0abc6ac 100644
--- a/compiler/rustc_parse/src/lib.rs
+++ b/compiler/rustc_parse/src/lib.rs
@@ -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 {
@@ -128,8 +123,6 @@ fn maybe_source_file_to_parser(
     Ok(parser)
 }
 
-// Base abstractions
-
 pub fn source_str_to_stream(
     name: FileName,
     source: String,