use infer::InferCtxt;
use syntax::ast;
use syntax::codemap::Span;
-use traits::FulfillmentContext;
+use traits::{FulfillmentContext, TraitEngine};
use ty::{self, Ty, TypeFoldable};
use ty::outlives::Component;
use ty::wf;
assert!(!obligation.has_escaping_regions());
match obligation.predicate {
ty::Predicate::Trait(..) |
- ty::Predicate::Equate(..) |
ty::Predicate::Subtype(..) |
ty::Predicate::Projection(..) |
ty::Predicate::ClosureKind(..) |
// get solved *here*.
match fulfill_cx.select_all_or_error(self) {
Ok(()) => (),
- Err(errors) => self.report_fulfillment_errors(&errors, None),
+ Err(errors) => self.report_fulfillment_errors(&errors, None, false),
}
implied_bounds
.filter_map(move |predicate| match predicate {
ty::Predicate::Projection(..) |
ty::Predicate::Trait(..) |
- ty::Predicate::Equate(..) |
ty::Predicate::Subtype(..) |
ty::Predicate::WellFormed(..) |
ty::Predicate::ObjectSafe(..) |