File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -517,7 +517,7 @@ pub fn miri_to_const(result: &ty::Const<'_>) -> Option<Constant> {
517
517
ty:: ConstKind :: Value ( ConstValue :: Slice { data, start, end } ) => match result. ty . kind {
518
518
ty:: Ref ( _, tam, _) => match tam. kind {
519
519
ty:: Str => String :: from_utf8 (
520
- data. inspect_with_undef_and_ptr_outside_interpreter ( start..end)
520
+ data. inspect_with_uninit_and_ptr_outside_interpreter ( start..end)
521
521
. to_owned ( ) ,
522
522
)
523
523
. ok ( )
@@ -530,7 +530,7 @@ pub fn miri_to_const(result: &ty::Const<'_>) -> Option<Constant> {
530
530
ty:: Array ( sub_type, len) => match sub_type. kind {
531
531
ty:: Float ( FloatTy :: F32 ) => match miri_to_const ( len) {
532
532
Some ( Constant :: Int ( len) ) => alloc
533
- . inspect_with_undef_and_ptr_outside_interpreter ( 0 ..( 4 * len as usize ) )
533
+ . inspect_with_uninit_and_ptr_outside_interpreter ( 0 ..( 4 * len as usize ) )
534
534
. to_owned ( )
535
535
. chunks ( 4 )
536
536
. map ( |chunk| {
@@ -544,7 +544,7 @@ pub fn miri_to_const(result: &ty::Const<'_>) -> Option<Constant> {
544
544
} ,
545
545
ty:: Float ( FloatTy :: F64 ) => match miri_to_const ( len) {
546
546
Some ( Constant :: Int ( len) ) => alloc
547
- . inspect_with_undef_and_ptr_outside_interpreter ( 0 ..( 8 * len as usize ) )
547
+ . inspect_with_uninit_and_ptr_outside_interpreter ( 0 ..( 8 * len as usize ) )
548
548
. to_owned ( )
549
549
. chunks ( 8 )
550
550
. map ( |chunk| {
You can’t perform that action at this time.
0 commit comments