fmt
This commit is contained in:
parent
4eab5c1f7b
commit
f0a52128ee
3 changed files with 20 additions and 21 deletions
|
@ -1089,8 +1089,7 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
|
||||||
if self.is_trait_predicate_const(obligation.predicate.skip_binder()) {
|
if self.is_trait_predicate_const(obligation.predicate.skip_binder()) {
|
||||||
match candidate {
|
match candidate {
|
||||||
// const impl
|
// const impl
|
||||||
ImplCandidate(def_id)
|
ImplCandidate(def_id) if tcx.impl_constness(def_id) == hir::Constness::Const => {}
|
||||||
if tcx.impl_constness(def_id) == hir::Constness::Const => {}
|
|
||||||
// const param
|
// const param
|
||||||
ParamCandidate(ty::ConstnessAnd {
|
ParamCandidate(ty::ConstnessAnd {
|
||||||
constness: ty::BoundConstness::ConstIfConst,
|
constness: ty::BoundConstness::ConstIfConst,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue