Extend the renaming to coerce_unsafe_ptr
This commit is contained in:
parent
f842ee8245
commit
432ff5e559
8 changed files with 16 additions and 16 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue