File tree Expand file tree Collapse file tree 4 files changed +0
-32
lines changed Expand file tree Collapse file tree 4 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -153,8 +153,4 @@ impl RustIrDatabase<ChalkIr> for ChalkDatabase {
153
153
fn interner ( & self ) -> & ChalkIr {
154
154
& ChalkIr
155
155
}
156
-
157
- fn auto_traits ( & self ) -> Vec < TraitId < ChalkIr > > {
158
- self . program_ir ( ) . unwrap ( ) . auto_traits ( )
159
- }
160
156
}
Original file line number Diff line number Diff line change @@ -363,12 +363,4 @@ impl RustIrDatabase<ChalkIr> for Program {
363
363
fn interner ( & self ) -> & ChalkIr {
364
364
& ChalkIr
365
365
}
366
-
367
- fn auto_traits ( & self ) -> Vec < TraitId < ChalkIr > > {
368
- self . trait_data
369
- . iter ( )
370
- . filter ( |( _, auto_trait) | auto_trait. is_auto_trait ( ) )
371
- . map ( |( trait_id, _) | * trait_id)
372
- . collect ( )
373
- }
374
366
}
Original file line number Diff line number Diff line change @@ -176,23 +176,6 @@ impl<I: Interner> ToProgramClauses<I> for OpaqueTyDatum<I> {
176
176
builder. push_fact ( bound) ;
177
177
} ) ;
178
178
}
179
-
180
- for auto_trait_id in builder. db . auto_traits ( ) {
181
- // Implemented(!T<..>: AutoTrait) :- Implemented(HiddenTy: AutoTrait).
182
- builder. push_clause (
183
- TraitRef {
184
- trait_id : auto_trait_id,
185
- substitution : substitution. clone ( ) ,
186
- } ,
187
- iter:: once ( TraitRef {
188
- trait_id : auto_trait_id,
189
- substitution : Substitution :: from1 (
190
- interner,
191
- opaque_ty_bound. hidden_ty . clone ( ) ,
192
- ) ,
193
- } ) ,
194
- ) ;
195
- }
196
179
} ) ;
197
180
}
198
181
}
Original file line number Diff line number Diff line change @@ -88,9 +88,6 @@ pub trait RustIrDatabase<I: Interner>: Debug {
88
88
fn well_known_trait_id ( & self , well_known_trait : WellKnownTrait ) -> Option < TraitId < I > > ;
89
89
90
90
fn interner ( & self ) -> & I ;
91
-
92
- /// Returns the ids of all auto traits.
93
- fn auto_traits ( & self ) -> Vec < TraitId < I > > ;
94
91
}
95
92
96
93
pub use solve:: Guidance ;
You can’t perform that action at this time.
0 commit comments