@@ -39,6 +39,7 @@ use std::cell::{Cell, RefCell};
39
39
use std:: iter;
40
40
use std:: str;
41
41
use std:: sync:: Arc ;
42
+ use std:: hash:: Hash ;
42
43
use syntax:: symbol:: LocalInternedString ;
43
44
use abi:: Abi ;
44
45
@@ -104,7 +105,7 @@ pub struct CodegenCx<'a, 'tcx: 'a, V> {
104
105
local_gen_sym_counter : Cell < usize > ,
105
106
}
106
107
107
- impl < ' a , ' tcx > DepGraphSafe for CodegenCx < ' a , ' tcx , & ' a Value > {
108
+ impl < ' a , ' tcx , Value > DepGraphSafe for CodegenCx < ' a , ' tcx , Value > {
108
109
}
109
110
110
111
pub fn get_reloc_model ( sess : & Session ) -> llvm:: RelocMode {
@@ -211,11 +212,11 @@ pub unsafe fn create_module(
211
212
llmod
212
213
}
213
214
214
- impl < ' a , ' tcx > CodegenCx < ' a , ' tcx , & ' a Value > {
215
+ impl < ' a , ' tcx , Value : Eq + Hash > CodegenCx < ' a , ' tcx , Value > {
215
216
crate fn new ( tcx : TyCtxt < ' a , ' tcx , ' tcx > ,
216
217
codegen_unit : Arc < CodegenUnit < ' tcx > > ,
217
218
llvm_module : & ' a :: ModuleLlvm )
218
- -> CodegenCx < ' a , ' tcx , & ' a Value > {
219
+ -> CodegenCx < ' a , ' tcx , Value > {
219
220
// An interesting part of Windows which MSVC forces our hand on (and
220
221
// apparently MinGW didn't) is the usage of `dllimport` and `dllexport`
221
222
// attributes in LLVM IR as well as native dependencies (in C these
0 commit comments