1
Fork 0
This commit is contained in:
Deadbeef 2021-09-02 09:02:19 +00:00
parent 4eab5c1f7b
commit f0a52128ee
No known key found for this signature in database
GPG key ID: 027DF9338862ADDD
3 changed files with 20 additions and 21 deletions

View file

@ -1089,8 +1089,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
if self.is_trait_predicate_const(obligation.predicate.skip_binder()) {
match candidate {
// const impl
ImplCandidate(def_id)
if tcx.impl_constness(def_id) == hir::Constness::Const => {}
ImplCandidate(def_id) if tcx.impl_constness(def_id) == hir::Constness::Const => {}
// const param
ParamCandidate(ty::ConstnessAnd {
constness: ty::BoundConstness::ConstIfConst,