1
Fork 0

Extend the renaming to coerce_unsafe_ptr

This commit is contained in:
Bastian Kersting 2025-01-24 14:58:33 +00:00
parent f842ee8245
commit 432ff5e559
8 changed files with 16 additions and 16 deletions

View file

@ -1394,7 +1394,7 @@ impl<'tcx> Ty<'tcx> {
/// Returns the type and mutability of `*ty`.
///
/// The parameter `explicit` indicates if this is an *explicit* dereference.
/// Some types -- notably unsafe ptrs -- can only be dereferenced explicitly.
/// Some types -- notably raw ptrs -- can only be dereferenced explicitly.
pub fn builtin_deref(self, explicit: bool) -> Option<Ty<'tcx>> {
match *self.kind() {
_ if let Some(boxed) = self.boxed_ty() => Some(boxed),