swap Ambiguity and Unimplemented in new trait engine
This commit is contained in:
@@ -52,7 +52,7 @@ impl<'tcx> TraitEngine<'tcx> for FulfillmentCtxt<'tcx> {
|
|||||||
.drain(..)
|
.drain(..)
|
||||||
.map(|obligation| FulfillmentError {
|
.map(|obligation| FulfillmentError {
|
||||||
obligation: obligation.clone(),
|
obligation: obligation.clone(),
|
||||||
code: FulfillmentErrorCode::CodeSelectionError(SelectionError::Unimplemented),
|
code: FulfillmentErrorCode::CodeAmbiguity,
|
||||||
root_obligation: obligation,
|
root_obligation: obligation,
|
||||||
})
|
})
|
||||||
.collect()
|
.collect()
|
||||||
@@ -75,7 +75,9 @@ impl<'tcx> TraitEngine<'tcx> for FulfillmentCtxt<'tcx> {
|
|||||||
Err(NoSolution) => {
|
Err(NoSolution) => {
|
||||||
errors.push(FulfillmentError {
|
errors.push(FulfillmentError {
|
||||||
obligation: obligation.clone(),
|
obligation: obligation.clone(),
|
||||||
code: FulfillmentErrorCode::CodeAmbiguity,
|
code: FulfillmentErrorCode::CodeSelectionError(
|
||||||
|
SelectionError::Unimplemented,
|
||||||
|
),
|
||||||
root_obligation: obligation,
|
root_obligation: obligation,
|
||||||
});
|
});
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user