about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDylan MacKenzie <ecstaticmorse@gmail.com>2020-05-16 11:59:30 -0700
committerDylan MacKenzie <ecstaticmorse@gmail.com>2020-05-16 17:15:24 -0700
commite369d7f4e7cb3dff060dedabb1356b68ff3422c8 (patch)
treedc77112d9b5d1e87c79ab7140d0739892a2f14dd /src
parent2cba138f4a65a3772c34b240b2a3e64f276083ec (diff)
downloadrust-e369d7f4e7cb3dff060dedabb1356b68ff3422c8.tar.gz
rust-e369d7f4e7cb3dff060dedabb1356b68ff3422c8.zip
Expand comment with possible improvements
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/transform/nrvo.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/librustc_mir/transform/nrvo.rs b/src/librustc_mir/transform/nrvo.rs
index c33e2eb88e1..557ffe4a6d5 100644
--- a/src/librustc_mir/transform/nrvo.rs
+++ b/src/librustc_mir/transform/nrvo.rs
@@ -21,8 +21,12 @@ use crate::transform::{MirPass, MirSource};
 /// }
 /// ```
 ///
-/// For now, this pass is very simple and only capable of eliminating a single copy.
-/// A more general version of copy propagation could yield even more benefits.
+/// For now, this pass is very simple and only capable of eliminating a single copy. A more general
+/// version of copy propagation, such as the one based on non-overlapping live ranges in [#47954] and
+/// [#71003], could yield even more benefits.
+///
+/// [#47954]: https://github.com/rust-lang/rust/pull/47954
+/// [#71003]: https://github.com/rust-lang/rust/pull/71003
 pub struct RenameReturnPlace;
 
 impl<'tcx> MirPass<'tcx> for RenameReturnPlace {