rename typed_swap → typed_swap_nonoverlapping

This commit is contained in:
Ralf Jung 2024-12-25 10:49:23 +01:00
parent 00dfa3ba2d
commit 7291b1eaf7
14 changed files with 43 additions and 26 deletions

View file

@ -496,7 +496,9 @@ pub fn check_intrinsic_type(
(1, 0, vec![Ty::new_mut_ptr(tcx, param(0)), param(0)], tcx.types.unit)
}
sym::typed_swap => (1, 0, vec![Ty::new_mut_ptr(tcx, param(0)); 2], tcx.types.unit),
sym::typed_swap_nonoverlapping => {
(1, 0, vec![Ty::new_mut_ptr(tcx, param(0)); 2], tcx.types.unit)
}
sym::discriminant_value => {
let assoc_items = tcx.associated_item_def_ids(