Skip to content

Commit

Permalink
Rollup merge of rust-lang#79013 - jryans:cleanup-use-once-pretty-comm…
Browse files Browse the repository at this point in the history
…ent, 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.
  • Loading branch information
Dylan-DPC committed Nov 15, 2020
2 parents 96fc0f4 + bd0fba2 commit 96515cc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions compiler/rustc_driver/src/pretty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ use crate::abort_on_err;
// Note that since the `&PrinterSupport` is freshly constructed on each
// call, it would not make sense to try to attach the lifetime of `self`
// to the lifetime of the `&PrinterObject`.
//
// (The `use_once_payload` is working around the current lack of once
// functions in the compiler.)

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

0 comments on commit 96515cc

Please sign in to comment.