@@ -58,10 +58,14 @@ pub trait ConstCodegenMethods<'tcx>:
5858    /// Create a global constant. 
5959     /// 
6060     /// The returned global variable is a pointer in the default address space for globals. 
61-      fn  static_addr_of_impl ( & self ,  cv :  Self :: Value ,  align :  Align ,  kind :  Option < & str > ) 
62-     -> Self :: Value ; 
61+      fn  static_addr_of_const ( 
62+         & self , 
63+         cv :  Self :: Value , 
64+         align :  Align , 
65+         kind :  Option < & str > , 
66+     )  -> Self :: Value ; 
6367
64-     /// Same as `static_addr_of_impl `, but does not mark the static as immutable 
68+     /// Same as `static_addr_of_const `, but does not mark the static as immutable 
6569     fn  static_addr_of_mut ( & self ,  cv :  Self :: Value ,  align :  Align ,  kind :  Option < & str > )  -> Self :: Value ; 
6670
6771    fn  scalar_to_backend ( & self ,  cv :  Scalar ,  layout :  abi:: Scalar ,  llty :  Self :: Type )  -> Self :: Value  { 
@@ -97,7 +101,7 @@ pub trait ConstCodegenMethods<'tcx>:
97101                            let  alloc = alloc. inner ( ) ; 
98102                            let  value = match  alloc. mutability  { 
99103                                Mutability :: Mut  => self . static_addr_of_mut ( init,  alloc. align ,  None ) , 
100-                                 _ => self . static_addr_of_impl ( init,  alloc. align ,  None ) , 
104+                                 _ => self . static_addr_of_const ( init,  alloc. align ,  None ) , 
101105                            } ; 
102106                            if  !self . tcx ( ) . sess . fewer_names ( ) 
103107                                && self . get_value_name ( value) . is_empty ( ) 
@@ -124,7 +128,7 @@ pub trait ConstCodegenMethods<'tcx>:
124128                            ) ) ) 
125129                            . unwrap_memory ( ) ; 
126130                        let  init = self . const_data_from_alloc ( alloc) ; 
127-                         let  value = self . static_addr_of_impl ( init,  alloc. inner ( ) . align ,  None ) ; 
131+                         let  value = self . static_addr_of_const ( init,  alloc. inner ( ) . align ,  None ) ; 
128132                        value
129133                    } 
130134                    GlobalAlloc :: Static ( def_id)  => { 
0 commit comments