We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8f4bd0 commit 2a996a7Copy full SHA for 2a996a7
src/librustc_trans_utils/symbol_names.rs
@@ -168,6 +168,13 @@ fn get_symbol_hash<'a, 'tcx>(
168
});
169
170
171
+ // If this is a function, we hash the signature as well.
172
+ // This is not *strictly* needed, but it may help in some
173
+ // situations, see the `run-make/a-b-a-linker-guard` test.
174
+ if let ty::TyFnDef(..) = item_type.sty {
175
+ item_type.fn_sig(tcx).hash_stable(&mut hcx, &mut hasher);
176
+ }
177
+
178
// also include any type parameters (for generic items)
179
assert!(!substs.has_erasable_regions());
180
assert!(!substs.needs_subst());
0 commit comments