Skip to content

Commit d357382

Browse files
committed
[pointer] Use PME acronym in method name
Rename `into_exclusive_or_post_monomorphization_error` to `into_exclusive_or_pme` for brevity. gherrit-pr-id: Iff896bf79205dd13645f7f21b0c7c3623dade98f
1 parent 2570f56 commit d357382

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ unsafe impl<T: TryFromBytes + ?Sized> TryFromBytes for UnsafeCell<T> {
683683
// that if we make a mistake, it will cause downstream code to fail to
684684
// compile, which will immediately surface the mistake and give us a
685685
// chance to fix it quickly.
686-
let c = candidate.into_exclusive_or_post_monomorphization_error();
686+
let c = candidate.into_exclusive_or_pme();
687687

688688
// SAFETY: Since `UnsafeCell<T>` and `T` have the same layout and bit
689689
// validity, `UnsafeCell<T>` is bit-valid exactly when its wrapped `T`

src/pointer/ptr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,14 +530,14 @@ mod _transitions {
530530
I: Invariants,
531531
{
532532
/// Returns a `Ptr` with [`Exclusive`] aliasing if `self` already has
533-
/// `Exclusive` aliasing.
533+
/// `Exclusive` aliasing, or generates a compile-time assertion failure.
534534
///
535535
/// This allows code which is generic over aliasing to down-cast to a
536536
/// concrete aliasing.
537537
///
538538
/// [`Exclusive`]: crate::pointer::invariant::Exclusive
539539
#[inline]
540-
pub(crate) fn into_exclusive_or_post_monomorphization_error(
540+
pub(crate) fn into_exclusive_or_pme(
541541
self,
542542
) -> Ptr<'a, T, (Exclusive, I::Alignment, I::Validity)> {
543543
// NOTE(https://github.com/rust-lang/rust/issues/131625): We do this

0 commit comments

Comments
 (0)