Remove constness from ImplSource::Param
This commit is contained in:
parent
1702d0fffc
commit
f441fa08da
29 changed files with 122 additions and 189 deletions
|
@ -123,7 +123,7 @@ impl<'tcx> InferCtxtSelectExt<'tcx> for InferCtxt<'tcx> {
|
|||
// It's fine not to do anything to rematch these, since there are no
|
||||
// nested obligations.
|
||||
(Certainty::Yes, CandidateSource::ParamEnv(_) | CandidateSource::AliasBound) => {
|
||||
Ok(Some(ImplSource::Param(ty::BoundConstness::NotConst, nested_obligations)))
|
||||
Ok(Some(ImplSource::Param(nested_obligations)))
|
||||
}
|
||||
|
||||
(Certainty::Maybe(_), _) => Ok(None),
|
||||
|
|
|
@ -59,8 +59,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
ParamCandidate(param) => {
|
||||
let obligations =
|
||||
self.confirm_param_candidate(obligation, param.map_bound(|t| t.trait_ref));
|
||||
// FIXME(effects)
|
||||
ImplSource::Param(ty::BoundConstness::NotConst, obligations)
|
||||
ImplSource::Param(obligations)
|
||||
}
|
||||
|
||||
ImplCandidate(impl_def_id) => {
|
||||
|
@ -72,9 +71,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
|||
ImplSource::Builtin(BuiltinImplSource::Misc, data)
|
||||
}
|
||||
|
||||
ProjectionCandidate(idx, constness) => {
|
||||
ProjectionCandidate(idx, _) => {
|
||||
let obligations = self.confirm_projection_candidate(obligation, idx)?;
|
||||
ImplSource::Param(constness, obligations)
|
||||
ImplSource::Param(obligations)
|
||||
}
|
||||
|
||||
ObjectCandidate(idx) => self.confirm_object_candidate(obligation, idx)?,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue