Fix copy_from_slice which should be extend_from_slice
This commit is contained in:
parent
a5657dbc43
commit
898ed636a3
1 changed files with 1 additions and 1 deletions
|
@ -1078,7 +1078,7 @@ where
|
|||
}) {
|
||||
// An element changed, prepare to intern the resulting list
|
||||
let mut new_list = SmallVec::<[_; 8]>::with_capacity(list.len());
|
||||
new_list.copy_from_slice(&list[..i]);
|
||||
new_list.extend_from_slice(&list[..i]);
|
||||
new_list.push(new_t);
|
||||
new_list.extend(iter.map(|t| t.fold_with(folder)));
|
||||
intern(folder.tcx(), &new_list)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue