Auto merge of #101989 - fee1-dead-contrib:const_trait_impl-assoc-caller-bounds, r=oli-obk
make projection bounds with const bounds satisfy const Fixes #101982.
This commit is contained in:
commit
cd8cc91045
5 changed files with 33 additions and 15 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue