From 2ce19ae3d196043281c7572290ee09f502d8384c Mon Sep 17 00:00:00 2001 From: varkor Date: Wed, 20 Feb 2019 01:11:10 +0000 Subject: Use non_erasable_generics for codegen Co-Authored-By: Gabriel Smith --- src/librustc_codegen_utils/symbol_names.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/librustc_codegen_utils') diff --git a/src/librustc_codegen_utils/symbol_names.rs b/src/librustc_codegen_utils/symbol_names.rs index f529cf30a62..76e74e9e2b4 100644 --- a/src/librustc_codegen_utils/symbol_names.rs +++ b/src/librustc_codegen_utils/symbol_names.rs @@ -172,7 +172,7 @@ fn get_symbol_hash<'a, 'tcx>( assert!(!substs.needs_subst()); substs.hash_stable(&mut hcx, &mut hasher); - let is_generic = substs.types().next().is_some(); + let is_generic = substs.non_erasable_generics().next().is_some(); let avoid_cross_crate_conflicts = // If this is an instance of a generic function, we also hash in // the ID of the instantiating crate. This avoids symbol conflicts -- cgit 1.4.1-3-g733a5