@@ -776,7 +776,7 @@ impl<'a, 'b> Context<'a, 'b> {
776776
777777 // First, build up the static array which will become our precompiled
778778 // format "string"
779- let pieces = self . ecx . expr_vec_slice ( self . fmtsp , self . str_pieces ) ;
779+ let pieces = self . ecx . expr_array_ref ( self . fmtsp , self . str_pieces ) ;
780780
781781 // We need to construct a &[ArgumentV1] to pass into the fmt::Arguments
782782 // constructor. In general the expressions in this slice might be
@@ -849,7 +849,7 @@ impl<'a, 'b> Context<'a, 'b> {
849849 fmt_args. push ( Context :: format_arg ( self . ecx , self . macsp , span, arg_ty, arg) ) ;
850850 }
851851
852- let args_array = self . ecx . expr_vec ( self . macsp , fmt_args) ;
852+ let args_array = self . ecx . expr_array ( self . macsp , fmt_args) ;
853853 let args_slice = self . ecx . expr_addr_of (
854854 self . macsp ,
855855 if no_need_for_match {
@@ -879,7 +879,7 @@ impl<'a, 'b> Context<'a, 'b> {
879879 } else {
880880 // Build up the static array which will store our precompiled
881881 // nonstandard placeholders, if there are any.
882- let fmt = self . ecx . expr_vec_slice ( self . macsp , self . pieces ) ;
882+ let fmt = self . ecx . expr_array_ref ( self . macsp , self . pieces ) ;
883883
884884 let path = self . ecx . std_path ( & [ sym:: fmt, sym:: UnsafeArg , sym:: new] ) ;
885885 let unsafe_arg = self . ecx . expr_call_global ( self . macsp , path, Vec :: new ( ) ) ;
0 commit comments