1
Fork 0

make projection bounds with const bounds satisfy const

This commit is contained in:
Deadbeef 2022-09-18 17:38:18 +00:00
parent 4af79ccd5e
commit ee96ae0a32
5 changed files with 33 additions and 15 deletions

View file

@ -68,10 +68,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
ImplSource::AutoImpl(data)
}
ProjectionCandidate(idx) => {
ProjectionCandidate(idx, constness) => {
let obligations = self.confirm_projection_candidate(obligation, idx)?;
// FIXME(jschievink): constness
ImplSource::Param(obligations, ty::BoundConstness::NotConst)
ImplSource::Param(obligations, constness)
}
ObjectCandidate(idx) => {