diff options
| author | varkor <github@varkor.com> | 2019-02-20 01:11:10 +0000 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2019-03-05 22:07:37 +0000 |
| commit | 2ce19ae3d196043281c7572290ee09f502d8384c (patch) | |
| tree | 73bb79fcb6647218abf250175577d3d1eb13cbc5 /src/librustc_codegen_utils | |
| parent | 386e9fbda225bd04039a47caad9138983faff18c (diff) | |
| download | rust-2ce19ae3d196043281c7572290ee09f502d8384c.tar.gz rust-2ce19ae3d196043281c7572290ee09f502d8384c.zip | |
Use non_erasable_generics for codegen
Co-Authored-By: Gabriel Smith <yodaldevoid@users.noreply.github.com>
Diffstat (limited to 'src/librustc_codegen_utils')
| -rw-r--r-- | src/librustc_codegen_utils/symbol_names.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
