Skip to content

Commit 96515cc

Browse files
authoredNov 15, 2020
Rollup merge of #79013 - jryans:cleanup-use-once-pretty-comment, r=Mark-Simulacrum
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.
2 parents 96fc0f4 + bd0fba2 commit 96515cc

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)
Please sign in to comment.