Skip to content

Commit e369d7f

Browse files
Expand comment with possible improvements
1 parent 2cba138 commit e369d7f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/librustc_mir/transform/nrvo.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ use crate::transform::{MirPass, MirSource};
2121
/// }
2222
/// ```
2323
///
24-
/// For now, this pass is very simple and only capable of eliminating a single copy.
25-
/// A more general version of copy propagation could yield even more benefits.
24+
/// For now, this pass is very simple and only capable of eliminating a single copy. A more general
25+
/// version of copy propagation, such as the one based on non-overlapping live ranges in [#47954] and
26+
/// [#71003], could yield even more benefits.
27+
///
28+
/// [#47954]: https://github.com/rust-lang/rust/pull/47954
29+
/// [#71003]: https://github.com/rust-lang/rust/pull/71003
2630
pub struct RenameReturnPlace;
2731

2832
impl<'tcx> MirPass<'tcx> for RenameReturnPlace {

0 commit comments

Comments
 (0)