We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5657db commit 898ed63Copy full SHA for 898ed63
src/librustc/ty/structural_impls.rs
@@ -1078,7 +1078,7 @@ where
1078
}) {
1079
// An element changed, prepare to intern the resulting list
1080
let mut new_list = SmallVec::<[_; 8]>::with_capacity(list.len());
1081
- new_list.copy_from_slice(&list[..i]);
+ new_list.extend_from_slice(&list[..i]);
1082
new_list.push(new_t);
1083
new_list.extend(iter.map(|t| t.fold_with(folder)));
1084
intern(folder.tcx(), &new_list)
0 commit comments