diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2021-12-12 07:45:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-12 07:45:30 +0100 |
| commit | 955e552d31d7a79adc90dc47e4b58fb8b3fb5249 (patch) | |
| tree | 820cb6a9adc4235effdab4b081016d3319d75ed9 /compiler/rustc_const_eval/src/interpret | |
| parent | be20570a07067e0c5fad37581f1287835cffda65 (diff) | |
| parent | 0d7b830139a0d32bb835091fd702b2e256b1411b (diff) | |
| download | rust-955e552d31d7a79adc90dc47e4b58fb8b3fb5249.tar.gz rust-955e552d31d7a79adc90dc47e4b58fb8b3fb5249.zip | |
Rollup merge of #91814 - japm48:spelling-fix, r=RalfJung
doc: fix typo in comments `dereferencable -> dereferenceable` Fixes #91802.
Diffstat (limited to 'compiler/rustc_const_eval/src/interpret')
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/intrinsics.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_const_eval/src/interpret/place.rs | 2 |
2 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 18dde3bc34e..d6f856a6f0a 100644 --- a/compiler/rustc_const_eval/src/interpret/intrinsics.rs +++ b/compiler/rustc_const_eval/src/interpret/intrinsics.rs @@ -140,7 +140,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> { sym::min_align_of_val | sym::size_of_val => { // Avoid `deref_operand` -- this is not a deref, the ptr does not have to be - // dereferencable! + // dereferenceable! let place = self.ref_to_mplace(&self.read_immediate(&args[0])?)?; let (size, align) = self .size_and_align_of_mplace(&place)? diff --git a/compiler/rustc_const_eval/src/interpret/place.rs b/compiler/rustc_const_eval/src/interpret/place.rs index 4c95da896a2..e526bfa2b52 100644 --- a/compiler/rustc_const_eval/src/interpret/place.rs +++ b/compiler/rustc_const_eval/src/interpret/place.rs @@ -327,7 +327,7 @@ where self.memory.get_mut(place.ptr, size, place.align) } - /// Check if this mplace is dereferencable and sufficiently aligned. + /// Check if this mplace is dereferenceable and sufficiently aligned. fn check_mplace_access( &self, mplace: MPlaceTy<'tcx, M::PointerTag>, |
