Skip to content

Commit bd16cd4

Browse files
committed
CopyProp: fix outdated comment
1 parent 212b0d4 commit bd16cd4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

compiler/rustc_mir_transform/src/copy_prop.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ impl<'tcx> crate::MirPass<'tcx> for CopyProp {
5858
}
5959
}
6060

61-
/// Utility to help performing substitution of `*pattern` by `target`.
61+
/// Utility to help performing substitution: for all key-value pairs in `copy_classes`,
62+
/// all occurrences of the key get replaced by the value.
6263
struct Replacer<'a, 'tcx> {
6364
tcx: TyCtxt<'tcx>,
6465
unified: DenseBitSet<Local>,

0 commit comments

Comments
 (0)