This commit is contained in:
Deadbeef
2021-11-08 23:55:51 +08:00
parent f1126f1272
commit d863021521
8 changed files with 18 additions and 42 deletions

View File

@@ -188,7 +188,7 @@ impl<'tcx> AutoTraitFinder<'tcx> {
let mut fulfill = FulfillmentContext::new();
fulfill.register_bound(&infcx, full_env, ty, trait_did, ObligationCause::dummy());
let errors = fulfill.select_all_or_error(&infcx);
if !errors.is_empty() {
panic!("Unable to fulfill trait {:?} for '{:?}': {:?}", trait_did, ty, errors);
}