summary refs log tree commit diff
path: root/src/librustc_codegen_utils
diff options
context:
space:
mode:
authorvarkor <github@varkor.com>2018-08-22 01:35:02 +0100
committervarkor <github@varkor.com>2018-08-22 16:07:44 +0100
commit6f637da50c56a22f745fd056691da8c86824cd9b (patch)
tree2025348c4a042bad7eb0cb4cf3b48445ee025e36 /src/librustc_codegen_utils
parentd37cee3b0e859a1303ece1cade3176cc150d28b4 (diff)
downloadrust-6f637da50c56a22f745fd056691da8c86824cd9b.tar.gz
rust-6f637da50c56a22f745fd056691da8c86824cd9b.zip
Remove Ty prefix from Ty{Adt|Array|Slice|RawPtr|Ref|FnDef|FnPtr|Dynamic|Closure|Generator|GeneratorWitness|Never|Tuple|Projection|Anon|Infer|Error}
Diffstat (limited to 'src/librustc_codegen_utils')
-rw-r--r--src/librustc_codegen_utils/symbol_names.rs2
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 d834a6502b2..33ce06217a4 100644
--- a/src/librustc_codegen_utils/symbol_names.rs
+++ b/src/librustc_codegen_utils/symbol_names.rs
@@ -171,7 +171,7 @@ fn get_symbol_hash<'a, 'tcx>(
         // If this is a function, we hash the signature as well.
         // This is not *strictly* needed, but it may help in some
         // situations, see the `run-make/a-b-a-linker-guard` test.
-        if let ty::TyFnDef(..) = item_type.sty {
+        if let ty::FnDef(..) = item_type.sty {
             item_type.fn_sig(tcx).hash_stable(&mut hcx, &mut hasher);
         }