Skip to content

Commit bd0fba2

Browse files
committed
Clean up outdated use_once_payload pretty printer comment
While reading some parts of the pretty printer code, I noticed this old comment which seemed out of place. The `use_once_payload` this outdated comment mentions was removed in 2017 in 40f03a1, so this completes the work by removing the comment.
1 parent 3b0ef34 commit bd0fba2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

compiler/rustc_driver/src/pretty.rs

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ use crate::abort_on_err;
3232
// Note that since the `&PrinterSupport` is freshly constructed on each
3333
// call, it would not make sense to try to attach the lifetime of `self`
3434
// to the lifetime of the `&PrinterObject`.
35-
//
36-
// (The `use_once_payload` is working around the current lack of once
37-
// functions in the compiler.)
3835

3936
/// Constructs a `PrinterSupport` object and passes it to `f`.
4037
fn call_with_pp_support<'tcx, A, F>(

0 commit comments

Comments
 (0)