diff options
| author | Michael Goulet <michael@errs.io> | 2023-04-20 03:56:36 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-05-04 18:05:58 +0000 |
| commit | 964fb67a5fa1b99add4efb01a7dc2a02add4b071 (patch) | |
| tree | a26d44a8f94e8ba818d328ba8d4e41de99d6e9cc /compiler/rustc_trait_selection/src | |
| parent | eac35583d2ffb5ed9e564dee0822c9a244058ee0 (diff) | |
| download | rust-964fb67a5fa1b99add4efb01a7dc2a02add4b071.tar.gz rust-964fb67a5fa1b99add4efb01a7dc2a02add4b071.zip | |
Use fulfillment to check Drop impl compatibility
Diffstat (limited to 'compiler/rustc_trait_selection/src')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs index d34eb193453..37beb31a7a4 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs @@ -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"); } |
