Changes from review
This commit is contained in:
parent
e54854f6a9
commit
5a69b5d0f9
6 changed files with 25 additions and 20 deletions
|
@ -1800,7 +1800,7 @@ fn check_must_not_suspend_ty<'tcx>(
|
|||
// FIXME: support adding the attribute to TAITs
|
||||
ty::Alias(ty::Opaque, ty::AliasTy { def_id: def, .. }) => {
|
||||
let mut has_emitted = false;
|
||||
for (predicate, _) in tcx.explicit_item_bounds(def).subst_identity_iter_copied() {
|
||||
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::Clause::Trait(ref poly_trait_predicate)) =
|
||||
predicate.kind().skip_binder()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue