Remove constness from ImplSource::Param
This commit is contained in:
@@ -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)?,
|
||||
|
||||
Reference in New Issue
Block a user