Rollup merge of #26146 - steveklabnik:remove_unsafe_pointer, r=Gankro
Using two terms for one thing is confusing, these are called 'raw pointers' today.
This commit is contained in:
commit
7d9427e6cd
22 changed files with 33 additions and 33 deletions
|
|
@ -162,7 +162,7 @@ impl<'a, 'tcx, 'v> Visitor<'v> for EffectCheckVisitor<'a, 'tcx> {
|
|||
debug!("effect: unary case, base type is {}",
|
||||
ppaux::ty_to_string(self.tcx, base_type));
|
||||
if let ty::ty_ptr(_) = base_type.sty {
|
||||
self.require_unsafe(expr.span, "dereference of unsafe pointer")
|
||||
self.require_unsafe(expr.span, "dereference of raw pointer")
|
||||
}
|
||||
}
|
||||
ast::ExprAssign(ref base, _) | ast::ExprAssignOp(_, ref base, _) => {
|
||||
|
|
|
|||
|
|
@ -1546,7 +1546,7 @@ impl<'tcx> cmt_<'tcx> {
|
|||
format!("`Box` content")
|
||||
}
|
||||
UnsafePtr(..) => {
|
||||
format!("dereference of unsafe pointer")
|
||||
format!("dereference of raw pointer")
|
||||
}
|
||||
BorrowedPtr(..) => {
|
||||
format!("borrowed content")
|
||||
|
|
|
|||
|
|
@ -3646,7 +3646,7 @@ impl TypeContents {
|
|||
*self & TC::ReachesAll)
|
||||
}
|
||||
|
||||
/// Includes only those bits that still apply when indirected through an unsafe pointer (`*`)
|
||||
/// Includes only those bits that still apply when indirected through a raw pointer (`*`)
|
||||
pub fn unsafe_pointer(&self) -> TypeContents {
|
||||
*self & TC::ReachesAll
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue