]> git.lizzy.rs Git - rust.git/commitdiff
Clean up outdated `use_once_payload` pretty printer comment
authorJ. Ryan Stinnett <jryans@gmail.com>
Fri, 13 Nov 2020 05:27:36 +0000 (05:27 +0000)
committerJ. Ryan Stinnett <jryans@gmail.com>
Fri, 13 Nov 2020 05:34:03 +0000 (05:34 +0000)
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.

compiler/rustc_driver/src/pretty.rs

index b0fbf1e03f5afd25cbd7eea466646d825c005bd8..f74e1fe61e7ef209f14667dcd19b79bd74fe6de4 100644 (file)
@@ -32,9 +32,6 @@
 // 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>(