@@ -776,7 +776,7 @@ impl<'a, 'b> Context<'a, 'b> {
776
776
777
777
// First, build up the static array which will become our precompiled
778
778
// 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 ) ;
780
780
781
781
// We need to construct a &[ArgumentV1] to pass into the fmt::Arguments
782
782
// constructor. In general the expressions in this slice might be
@@ -849,7 +849,7 @@ impl<'a, 'b> Context<'a, 'b> {
849
849
fmt_args. push ( Context :: format_arg ( self . ecx , self . macsp , span, arg_ty, arg) ) ;
850
850
}
851
851
852
- let args_array = self . ecx . expr_vec ( self . macsp , fmt_args) ;
852
+ let args_array = self . ecx . expr_array ( self . macsp , fmt_args) ;
853
853
let args_slice = self . ecx . expr_addr_of (
854
854
self . macsp ,
855
855
if no_need_for_match {
@@ -879,7 +879,7 @@ impl<'a, 'b> Context<'a, 'b> {
879
879
} else {
880
880
// Build up the static array which will store our precompiled
881
881
// 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 ) ;
883
883
884
884
let path = self . ecx . std_path ( & [ sym:: fmt, sym:: UnsafeArg , sym:: new] ) ;
885
885
let unsafe_arg = self . ecx . expr_call_global ( self . macsp , path, Vec :: new ( ) ) ;
0 commit comments