@@ -761,7 +761,9 @@ impl Evaluator<'_> {
761761 let size = self . size_of_sized ( ty, locals, "size_of arg" ) ?;
762762 destination. write_from_bytes ( self , & size. to_le_bytes ( ) [ 0 ..destination. size ] )
763763 }
764- "min_align_of" | "pref_align_of" => {
764+ // FIXME: `min_align_of` was renamed to `align_of` in Rust 1.89
765+ // (https://github.com/rust-lang/rust/pull/142410)
766+ "min_align_of" | "align_of" => {
765767 let Some ( ty) =
766768 generic_args. as_slice ( Interner ) . first ( ) . and_then ( |it| it. ty ( Interner ) )
767769 else {
@@ -793,17 +795,19 @@ impl Evaluator<'_> {
793795 destination. write_from_bytes ( self , & size. to_le_bytes ( ) )
794796 }
795797 }
796- "min_align_of_val" => {
798+ // FIXME: `min_align_of_val` was renamed to `align_of_val` in Rust 1.89
799+ // (https://github.com/rust-lang/rust/pull/142410)
800+ "min_align_of_val" | "align_of_val" => {
797801 let Some ( ty) =
798802 generic_args. as_slice ( Interner ) . first ( ) . and_then ( |it| it. ty ( Interner ) )
799803 else {
800804 return Err ( MirEvalError :: InternalError (
801- "min_align_of_val generic arg is not provided" . into ( ) ,
805+ "align_of_val generic arg is not provided" . into ( ) ,
802806 ) ) ;
803807 } ;
804808 let [ arg] = args else {
805809 return Err ( MirEvalError :: InternalError (
806- "min_align_of_val args are not provided" . into ( ) ,
810+ "align_of_val args are not provided" . into ( ) ,
807811 ) ) ;
808812 } ;
809813 if let Some ( ( _, align) ) = self . size_align_of ( ty, locals) ? {
0 commit comments