@@ -190,10 +190,10 @@ fn exported_name_with_opt_suffix<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
190
190
instance : & Instance < ' tcx > ,
191
191
suffix : Option < & str > )
192
192
-> String {
193
- let & Instance { def : mut def_id, params : parameters } = instance;
193
+ let & Instance { def : mut def_id, ref substs } = instance;
194
194
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) ;
197
197
198
198
if let Some ( node_id) = ccx. tcx ( ) . map . as_local_node_id ( def_id) {
199
199
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>,
234
234
// and should not matter anyhow.
235
235
let instance_ty = ccx. tcx ( ) . erase_regions ( & instance_ty. ty ) ;
236
236
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 ( ) ) ;
238
238
239
239
let mut buffer = SymbolPathBuffer {
240
240
names : Vec :: with_capacity ( def_path. data . len ( ) )
0 commit comments