@@ -190,10 +190,10 @@ fn exported_name_with_opt_suffix<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
190190 instance : & Instance < ' tcx > ,
191191 suffix : Option < & str > )
192192 -> String {
193- let & Instance { def : mut def_id, params : parameters } = instance;
193+ let & Instance { def : mut def_id, ref substs } = instance;
194194
195- debug ! ( "exported_name_with_opt_suffix(def_id={:?}, parameters ={:?}, suffix={:?})" ,
196- def_id, parameters , suffix) ;
195+ debug ! ( "exported_name_with_opt_suffix(def_id={:?}, substs ={:?}, suffix={:?})" ,
196+ def_id, substs , suffix) ;
197197
198198 if let Some ( node_id) = ccx. tcx ( ) . map . as_local_node_id ( def_id) {
199199 if let Some ( & src_def_id) = ccx. external_srcs ( ) . borrow ( ) . get ( & node_id) {
@@ -234,7 +234,7 @@ fn exported_name_with_opt_suffix<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
234234 // and should not matter anyhow.
235235 let instance_ty = ccx. tcx ( ) . erase_regions ( & instance_ty. ty ) ;
236236
237- let hash = get_symbol_hash ( ccx, & def_path, instance_ty, parameters . as_slice ( ) ) ;
237+ let hash = get_symbol_hash ( ccx, & def_path, instance_ty, substs . types . as_slice ( ) ) ;
238238
239239 let mut buffer = SymbolPathBuffer {
240240 names : Vec :: with_capacity ( def_path. data . len ( ) )
0 commit comments