|
1 | 1 | use crate::infer::InferCtxt; |
2 | 2 | use crate::traits::Obligation; |
3 | 3 | use rustc_data_structures::fx::FxHashMap; |
4 | | -use rustc_hir as hir; |
5 | 4 | use rustc_hir::def_id::DefId; |
6 | | -use rustc_middle::ty::{self, ToPredicate, Ty, WithConstness}; |
| 5 | +use rustc_middle::ty::{self, ToPredicate, Ty}; |
7 | 6 |
|
8 | 7 | use super::FulfillmentError; |
9 | 8 | use super::{ObligationCause, PredicateObligation}; |
@@ -48,26 +47,9 @@ pub trait TraitEngine<'tcx>: 'tcx { |
48 | 47 |
|
49 | 48 | fn select_all_or_error(&mut self, infcx: &InferCtxt<'_, 'tcx>) -> Vec<FulfillmentError<'tcx>>; |
50 | 49 |
|
51 | | - fn select_all_with_constness_or_error( |
52 | | - &mut self, |
53 | | - infcx: &InferCtxt<'_, 'tcx>, |
54 | | - _constness: hir::Constness, |
55 | | - ) -> Vec<FulfillmentError<'tcx>> { |
56 | | - self.select_all_or_error(infcx) |
57 | | - } |
58 | | - |
59 | 50 | fn select_where_possible(&mut self, infcx: &InferCtxt<'_, 'tcx>) |
60 | 51 | -> Vec<FulfillmentError<'tcx>>; |
61 | 52 |
|
62 | | - // FIXME(fee1-dead) this should not provide a default body for chalk as chalk should be updated |
63 | | - fn select_with_constness_where_possible( |
64 | | - &mut self, |
65 | | - infcx: &InferCtxt<'_, 'tcx>, |
66 | | - _constness: hir::Constness, |
67 | | - ) -> Vec<FulfillmentError<'tcx>> { |
68 | | - self.select_where_possible(infcx) |
69 | | - } |
70 | | - |
71 | 53 | fn pending_obligations(&self) -> Vec<PredicateObligation<'tcx>>; |
72 | 54 |
|
73 | 55 | fn relationships(&mut self) -> &mut FxHashMap<ty::TyVid, ty::FoundRelationships>; |
|
0 commit comments