@@ -47,7 +47,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
4747 fn malloc ( & mut self , size : u64 , zero_init : bool , kind : MiriMemoryKind ) -> Scalar < Tag > {
4848 let this = self . eval_context_mut ( ) ;
4949 if size == 0 {
50- Scalar :: ptr_null ( this)
50+ Scalar :: null_ptr ( this)
5151 } else {
5252 let align = this. min_align ( size, kind) ;
5353 let ptr = this. memory . allocate ( Size :: from_bytes ( size) , align, kind. into ( ) ) ;
@@ -78,7 +78,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
7878 let new_align = this. min_align ( new_size, kind) ;
7979 if this. is_null ( old_ptr) ? {
8080 if new_size == 0 {
81- Ok ( Scalar :: ptr_null ( this) )
81+ Ok ( Scalar :: null_ptr ( this) )
8282 } else {
8383 let new_ptr =
8484 this. memory . allocate ( Size :: from_bytes ( new_size) , new_align, kind. into ( ) ) ;
@@ -88,7 +88,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
8888 let old_ptr = this. force_ptr ( old_ptr) ?;
8989 if new_size == 0 {
9090 this. memory . deallocate ( old_ptr, None , kind. into ( ) ) ?;
91- Ok ( Scalar :: ptr_null ( this) )
91+ Ok ( Scalar :: null_ptr ( this) )
9292 } else {
9393 let new_ptr = this. memory . reallocate (
9494 old_ptr,
0 commit comments