Skip to content

Commit 898ed63

Browse files
committed
Fix copy_from_slice which should be extend_from_slice
1 parent a5657db commit 898ed63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/structural_impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ where
10781078
}) {
10791079
// An element changed, prepare to intern the resulting list
10801080
let mut new_list = SmallVec::<[_; 8]>::with_capacity(list.len());
1081-
new_list.copy_from_slice(&list[..i]);
1081+
new_list.extend_from_slice(&list[..i]);
10821082
new_list.push(new_t);
10831083
new_list.extend(iter.map(|t| t.fold_with(folder)));
10841084
intern(folder.tcx(), &new_list)

0 commit comments

Comments
 (0)