File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ impl<'tcx, Tag> Scalar<Tag> {
192
192
}
193
193
194
194
#[ inline]
195
- pub fn ptr_null ( cx : & impl HasDataLayout ) -> Self {
195
+ pub fn null_ptr ( cx : & impl HasDataLayout ) -> Self {
196
196
Scalar :: Raw { data : 0 , size : cx. data_layout ( ) . pointer_size . bytes ( ) as u8 }
197
197
}
198
198
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ impl<Tag> MemPlace<Tag> {
139
139
/// Produces a Place that will error if attempted to be read from or written to
140
140
#[ inline( always) ]
141
141
fn null ( cx : & impl HasDataLayout ) -> Self {
142
- Self :: from_scalar_ptr ( Scalar :: ptr_null ( cx) , Align :: from_bytes ( 1 ) . unwrap ( ) )
142
+ Self :: from_scalar_ptr ( Scalar :: null_ptr ( cx) , Align :: from_bytes ( 1 ) . unwrap ( ) )
143
143
}
144
144
145
145
#[ inline( always) ]
You can’t perform that action at this time.
0 commit comments