1
Fork 0

Remove unnecessary constness from ProjectionCandidate

This commit is contained in:
Michael Goulet 2023-12-16 17:21:20 +00:00
parent e223c41028
commit 20927d3956
4 changed files with 12 additions and 19 deletions

View file

@ -125,10 +125,8 @@ pub enum SelectionCandidate<'tcx> {
/// This is a trait matching with a projected type as `Self`, and we found
/// an applicable bound in the trait definition. The `usize` is an index
/// into the list returned by `tcx.item_bounds`. The constness is the
/// constness of the bound in the trait.
// FIXME(effects) do we need this constness
ProjectionCandidate(usize, ty::BoundConstness),
/// into the list returned by `tcx.item_bounds`.
ProjectionCandidate(usize),
/// Implementation of a `Fn`-family trait by one of the anonymous types
/// generated for an `||` expression.