diff options
| author | Ralf Jung <post@ralfj.de> | 2025-06-12 13:44:19 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-06-12 17:50:25 +0200 |
| commit | 62418f4c56e57a591d51ba24ccbd6c7271ce4cb5 (patch) | |
| tree | ee8157cfa424d1d244d61feba1638bc43ce1edc6 /compiler/rustc_const_eval/src | |
| parent | fd50e1012f79eb93f661adc6f276335e4cfb34ea (diff) | |
| download | rust-62418f4c56e57a591d51ba24ccbd6c7271ce4cb5.tar.gz rust-62418f4c56e57a591d51ba24ccbd6c7271ce4cb5.zip | |
intrinsics: rename min_align_of to align_of
Diffstat (limited to 'compiler/rustc_const_eval/src')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/intrinsics.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_const_eval/src/interpret/intrinsics.rs b/compiler/rustc_const_eval/src/interpret/intrinsics.rs index ab27182c211..754b2ba0d76 100644 --- a/compiler/rustc_const_eval/src/interpret/intrinsics.rs +++ b/compiler/rustc_const_eval/src/interpret/intrinsics.rs @@ -120,7 +120,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { self.copy_op(&val, dest)?; } - sym::min_align_of_val | sym::size_of_val => { + sym::align_of_val | sym::size_of_val => { // Avoid `deref_pointer` -- this is not a deref, the ptr does not have to be // dereferenceable! let place = self.ref_to_mplace(&self.read_immediate(&args[0])?)?; @@ -129,7 +129,7 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> { .ok_or_else(|| err_unsup_format!("`extern type` does not have known layout"))?; let result = match intrinsic_name { - sym::min_align_of_val => align.bytes(), + sym::align_of_val => align.bytes(), sym::size_of_val => size.bytes(), _ => bug!(), }; |
