Skip to content

Commit 988bc0d

Browse files
committed
Auto merge of #135994 - 1c3t3a:rename-unsafe-ptr, r=oli-obk
Rename rustc_middle::Ty::is_unsafe_ptr to is_raw_ptr The wording unsafe pointer is less common and not mentioned in a lot of places, instead this is usually called a "raw pointer". For the sake of uniformity, we rename this method. This came up during the review of rust-lang/rust#134424. r? `@Noratrieb`
2 parents c112c13 + 50fb303 commit 988bc0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-ty/src/infer/coerce.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ impl InferenceTable<'_> {
373373
// Check that the types which they point at are compatible.
374374
let from_raw = TyKind::Raw(to_mt, from_inner.clone()).intern(Interner);
375375

376-
// Although references and unsafe ptrs have the same
376+
// Although references and raw ptrs have the same
377377
// representation, we still register an Adjust::DerefRef so that
378378
// regionck knows that the region for `a` must be valid here.
379379
if is_ref {

0 commit comments

Comments
 (0)