diff options
| author | Ralf Jung <post@ralfj.de> | 2024-12-25 10:49:23 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-12-25 10:53:03 +0100 |
| commit | 7291b1eaf7db863720f017f9f8a675ada86528e9 (patch) | |
| tree | 126e004960733f1ff67314c12002008739c2efc4 /compiler/rustc_hir_analysis/src | |
| parent | 00dfa3ba2d21577649e882ee65309fdbee08bf6d (diff) | |
| download | rust-7291b1eaf7db863720f017f9f8a675ada86528e9.tar.gz rust-7291b1eaf7db863720f017f9f8a675ada86528e9.zip | |
rename typed_swap → typed_swap_nonoverlapping
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/check/intrinsic.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_hir_analysis/src/check/intrinsic.rs b/compiler/rustc_hir_analysis/src/check/intrinsic.rs index 39479401910..0f329639cc1 100644 --- a/compiler/rustc_hir_analysis/src/check/intrinsic.rs +++ b/compiler/rustc_hir_analysis/src/check/intrinsic.rs @@ -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( |
