diff options
| author | Michael Goulet <michael@errs.io> | 2023-06-19 20:46:46 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-06-22 18:34:23 +0000 |
| commit | 46a650f4e0783da10513e6d41c5f3c69e42b0198 (patch) | |
| tree | 13c326ac9df855f98ba586544c861f855458698c /compiler/rustc_mir_transform | |
| parent | 2efe09170530fa18e42ff05b8d9dd23f00b5c430 (diff) | |
| download | rust-46a650f4e0783da10513e6d41c5f3c69e42b0198.tar.gz rust-46a650f4e0783da10513e6d41c5f3c69e42b0198.zip | |
Migrate item_bounds to ty::Clause
Diffstat (limited to 'compiler/rustc_mir_transform')
| -rw-r--r-- | compiler/rustc_mir_transform/src/generator.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_mir_transform/src/generator.rs b/compiler/rustc_mir_transform/src/generator.rs index 9f58cce2769..029fb2e9ba0 100644 --- a/compiler/rustc_mir_transform/src/generator.rs +++ b/compiler/rustc_mir_transform/src/generator.rs @@ -1824,7 +1824,7 @@ fn check_must_not_suspend_ty<'tcx>( let mut has_emitted = false; for &(predicate, _) in tcx.explicit_item_bounds(def).skip_binder() { // We only look at the `DefId`, so it is safe to skip the binder here. - if let ty::PredicateKind::Clause(ty::ClauseKind::Trait(ref poly_trait_predicate)) = + if let ty::ClauseKind::Trait(ref poly_trait_predicate) = predicate.kind().skip_binder() { let def_id = poly_trait_predicate.trait_ref.def_id; |
