1
Fork 0

Use fulfillment to check Drop impl compatibility

This commit is contained in:
Michael Goulet 2023-04-20 03:56:36 +00:00
parent eac35583d2
commit 964fb67a5f
4 changed files with 105 additions and 231 deletions

View file

@ -2790,7 +2790,8 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
| ObligationCauseCode::LetElse
| ObligationCauseCode::BinOp { .. }
| ObligationCauseCode::AscribeUserTypeProvePredicate(..)
| ObligationCauseCode::RustCall => {}
| ObligationCauseCode::RustCall
| ObligationCauseCode::DropImpl => {}
ObligationCauseCode::SliceOrArrayElem => {
err.note("slice and array elements must have `Sized` type");
}