about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJ. Ryan Stinnett <jryans@gmail.com>2020-11-13 05:27:36 +0000
committerJ. Ryan Stinnett <jryans@gmail.com>2020-11-13 05:34:03 +0000
commitbd0fba207be439799148cd1e9caddd625accfb12 (patch)
tree554cab929d44ad71d255f60c452257d50f956b37
parent3b0ef34f64c5e97cd485b0f8a4103438ca160a51 (diff)
downloadrust-bd0fba207be439799148cd1e9caddd625accfb12.tar.gz
rust-bd0fba207be439799148cd1e9caddd625accfb12.zip
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 40f03a1e0d6702add1922f82d716d5b2c23a59f0, so this
completes the work by removing the comment.
-rw-r--r--compiler/rustc_driver/src/pretty.rs3
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_driver/src/pretty.rs b/compiler/rustc_driver/src/pretty.rs
index b0fbf1e03f5..f74e1fe61e7 100644
--- a/compiler/rustc_driver/src/pretty.rs
+++ b/compiler/rustc_driver/src/pretty.rs
@@ -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>(