Skip to content

Commit d686896

Browse files
authored
Update a FIXME in memory.rs
In #51833, I improved the performance of `copy_undef_mask()`. As such, the old FIXME wasn't appropriate anymore. The main remaining thing left to do is to implement a fast path for non-overlapping copies (per @oli-obk).
1 parent 2bd5993 commit d686896

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/memory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
971971

972972
/// Undefined bytes
973973
impl<'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
974-
// FIXME(solson): This is a very naive, slow version.
974+
// FIXME: Add a fast version for the common, nonoverlapping case
975975
fn copy_undef_mask(
976976
&mut self,
977977
src: Pointer,

0 commit comments

Comments
 (0)