Skip to content

Commit

Permalink
Fix WF for AsyncFnKindHelper in new trait solver
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Mar 12, 2024
1 parent dc2ffa4 commit dd0f41f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions compiler/rustc_middle/src/ty/sty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2436,8 +2436,9 @@ impl<'tcx> Ty<'tcx> {
},

// "Bound" types appear in canonical queries when the
// closure type is not yet known
Bound(..) | Param(_) | Infer(_) => None,
// closure type is not yet known, and `Placeholder` and `Param`
// may be encountered in generic `AsyncFnKindHelper` goals.
Bound(..) | Placeholder(_) | Param(_) | Infer(_) => None,

Error(_) => Some(ty::ClosureKind::Fn),

Expand Down

0 comments on commit dd0f41f

Please sign in to comment.