@@ -167,17 +167,17 @@ impl<'a, 'll> SBuilder<'a, 'll> {
167
167
// FIXME(eddyb) pass `&CStr` directly to FFI once it's a thin pointer.
168
168
const UNNAMED : * const c_char = c"" . as_ptr ( ) ;
169
169
170
- impl < ' ll , ' tcx > BackendTypes for Builder < ' _ , ' ll , ' tcx > {
171
- type Value = <CodegenCx < ' ll , ' tcx > as BackendTypes >:: Value ;
172
- type Metadata = <CodegenCx < ' ll , ' tcx > as BackendTypes >:: Metadata ;
173
- type Function = <CodegenCx < ' ll , ' tcx > as BackendTypes >:: Function ;
174
- type BasicBlock = <CodegenCx < ' ll , ' tcx > as BackendTypes >:: BasicBlock ;
175
- type Type = <CodegenCx < ' ll , ' tcx > as BackendTypes >:: Type ;
176
- type Funclet = <CodegenCx < ' ll , ' tcx > as BackendTypes >:: Funclet ;
177
-
178
- type DIScope = <CodegenCx < ' ll , ' tcx > as BackendTypes >:: DIScope ;
179
- type DILocation = <CodegenCx < ' ll , ' tcx > as BackendTypes >:: DILocation ;
180
- type DIVariable = <CodegenCx < ' ll , ' tcx > as BackendTypes >:: DIVariable ;
170
+ impl < ' ll , CX : Borrow < SCx < ' ll > > > BackendTypes for GenericBuilder < ' _ , ' ll , CX > {
171
+ type Value = <GenericCx < ' ll , CX > as BackendTypes >:: Value ;
172
+ type Metadata = <GenericCx < ' ll , CX > as BackendTypes >:: Metadata ;
173
+ type Function = <GenericCx < ' ll , CX > as BackendTypes >:: Function ;
174
+ type BasicBlock = <GenericCx < ' ll , CX > as BackendTypes >:: BasicBlock ;
175
+ type Type = <GenericCx < ' ll , CX > as BackendTypes >:: Type ;
176
+ type Funclet = <GenericCx < ' ll , CX > as BackendTypes >:: Funclet ;
177
+
178
+ type DIScope = <GenericCx < ' ll , CX > as BackendTypes >:: DIScope ;
179
+ type DILocation = <GenericCx < ' ll , CX > as BackendTypes >:: DILocation ;
180
+ type DIVariable = <GenericCx < ' ll , CX > as BackendTypes >:: DIVariable ;
181
181
}
182
182
183
183
impl abi:: HasDataLayout for Builder < ' _ , ' _ , ' _ > {
0 commit comments