@@ -141,7 +141,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
141141 ) -> RValue < ' gcc > {
142142 let size = get_maybe_pointer_size ( src) ;
143143 let compare_exchange =
144- self . context . get_builtin_function ( & format ! ( "__atomic_compare_exchange_{}" , size) ) ;
144+ self . context . get_builtin_function ( format ! ( "__atomic_compare_exchange_{}" , size) ) ;
145145 let order = self . context . new_rvalue_from_int ( self . i32_type , order. to_gcc ( ) ) ;
146146 let failure_order = self . context . new_rvalue_from_int ( self . i32_type , failure_order. to_gcc ( ) ) ;
147147 let weak = self . context . new_rvalue_from_int ( self . bool_type , weak as i32 ) ;
@@ -328,7 +328,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
328328 let result = current_func. new_local (
329329 self . location ,
330330 return_type,
331- & format ! ( "returnValue{}" , self . next_value_counter( ) ) ,
331+ format ! ( "returnValue{}" , self . next_value_counter( ) ) ,
332332 ) ;
333333 self . block . add_assignment (
334334 self . location ,
@@ -396,7 +396,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
396396 let result = current_func. new_local (
397397 self . location ,
398398 return_value. get_type ( ) ,
399- & format ! ( "ptrReturnValue{}" , self . next_value_counter( ) ) ,
399+ format ! ( "ptrReturnValue{}" , self . next_value_counter( ) ) ,
400400 ) ;
401401 self . block . add_assignment ( self . location , result, return_value) ;
402402 result. to_rvalue ( )
@@ -438,7 +438,7 @@ impl<'a, 'gcc, 'tcx> Builder<'a, 'gcc, 'tcx> {
438438 let result = current_func. new_local (
439439 self . location ,
440440 return_type,
441- & format ! ( "overflowReturnValue{}" , self . next_value_counter( ) ) ,
441+ format ! ( "overflowReturnValue{}" , self . next_value_counter( ) ) ,
442442 ) ;
443443 self . block . add_assignment (
444444 self . location ,
@@ -923,7 +923,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
923923 let ty = self . cx . type_array ( self . cx . type_i8 ( ) , size. bytes ( ) ) . get_aligned ( align. bytes ( ) ) ;
924924 // TODO(antoyo): It might be better to return a LValue, but fixing the rustc API is non-trivial.
925925 self . current_func ( )
926- . new_local ( self . location , ty, & format ! ( "stack_var_{}" , self . next_value_counter( ) ) )
926+ . new_local ( self . location , ty, format ! ( "stack_var_{}" , self . next_value_counter( ) ) )
927927 . get_address ( self . location )
928928 }
929929
@@ -949,7 +949,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
949949 let loaded_value = function. new_local (
950950 self . location ,
951951 aligned_type,
952- & format ! ( "loadedValue{}" , self . next_value_counter( ) ) ,
952+ format ! ( "loadedValue{}" , self . next_value_counter( ) ) ,
953953 ) ;
954954 block. add_assignment ( self . location , loaded_value, deref) ;
955955 loaded_value. to_rvalue ( )
@@ -970,7 +970,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
970970 // TODO(antoyo): use ty.
971971 // TODO(antoyo): handle alignment.
972972 let atomic_load =
973- self . context . get_builtin_function ( & format ! ( "__atomic_load_{}" , size. bytes( ) ) ) ;
973+ self . context . get_builtin_function ( format ! ( "__atomic_load_{}" , size. bytes( ) ) ) ;
974974 let ordering = self . context . new_rvalue_from_int ( self . i32_type , order. to_gcc ( ) ) ;
975975
976976 let volatile_const_void_ptr_type =
@@ -1126,7 +1126,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
11261126 ) {
11271127 // TODO(antoyo): handle alignment.
11281128 let atomic_store =
1129- self . context . get_builtin_function ( & format ! ( "__atomic_store_{}" , size. bytes( ) ) ) ;
1129+ self . context . get_builtin_function ( format ! ( "__atomic_store_{}" , size. bytes( ) ) ) ;
11301130 let ordering = self . context . new_rvalue_from_int ( self . i32_type , order. to_gcc ( ) ) ;
11311131 let volatile_const_void_ptr_type =
11321132 self . context . new_type :: < ( ) > ( ) . make_volatile ( ) . make_pointer ( ) ;
0 commit comments