Skip to content

Commit 7dcfc07

Browse files
committed
Cull the quadratic
1 parent 21fde09 commit 7dcfc07

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/liballoc/slice.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1339,6 +1339,7 @@ impl<T> [T] {
13391339
while index < i {
13401340
index = indices[index].1;
13411341
}
1342+
indices[i].1 = index;
13421343
self.swap(i, index);
13431344
}
13441345
}

0 commit comments

Comments
 (0)