Skip to content

Commit 1e9dda7

Browse files
committed
Auto merge of #118120 - compiler-errors:closure-kind, r=lcnr
Remove `PredicateKind::ClosureKind` We don't need the `ClosureKind` predicate kind -- instead, `Fn`-family trait goals are left as ambiguous, and we only need to make progress on `FnOnce` projection goals for inference purposes. This is similar to how we do confirmation of `Fn`-family trait and projection goals in the new trait solver, which also doesn't use the `ClosureKind` predicate. Some hacky logic is added in the second commit so that we can keep the error messages the same.
2 parents 06d1afe + 128feaa commit 1e9dda7

File tree

19 files changed

+53
-102
lines changed

19 files changed

+53
-102
lines changed

Diff for: compiler/rustc_hir_typeck/src/fn_ctxt/_impl.rs

-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,6 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
662662
// this closure yet; this is exactly why the other
663663
// code is looking for a self type of an unresolved
664664
// inference variable.
665-
| ty::PredicateKind::ClosureKind(..)
666665
| ty::PredicateKind::Ambiguous
667666
=> None,
668667
},

Diff for: compiler/rustc_infer/src/infer/mod.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -906,12 +906,14 @@ impl<'tcx> InferCtxt<'tcx> {
906906
self.inner.borrow().undo_log.opaque_types_in_snapshot(&snapshot.undo_snapshot)
907907
}
908908

909-
pub fn can_sub<T>(&self, param_env: ty::ParamEnv<'tcx>, a: T, b: T) -> bool
909+
pub fn can_sub<T>(&self, param_env: ty::ParamEnv<'tcx>, expected: T, actual: T) -> bool
910910
where
911911
T: at::ToTrace<'tcx>,
912912
{
913913
let origin = &ObligationCause::dummy();
914-
self.probe(|_| self.at(origin, param_env).sub(DefineOpaqueTypes::No, a, b).is_ok())
914+
self.probe(|_| {
915+
self.at(origin, param_env).sub(DefineOpaqueTypes::No, expected, actual).is_ok()
916+
})
915917
}
916918

917919
pub fn can_eq<T>(&self, param_env: ty::ParamEnv<'tcx>, a: T, b: T) -> bool

Diff for: compiler/rustc_infer/src/traits/util.rs

-3
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,6 @@ impl<'tcx, O: Elaboratable<'tcx>> Elaborator<'tcx, O> {
308308
ty::PredicateKind::Clause(ty::ClauseKind::Projection(..)) => {
309309
// Nothing to elaborate in a projection predicate.
310310
}
311-
ty::PredicateKind::ClosureKind(..) => {
312-
// Nothing to elaborate when waiting for a closure's kind to be inferred.
313-
}
314311
ty::PredicateKind::Clause(ty::ClauseKind::ConstEvaluatable(..)) => {
315312
// Currently, we do not elaborate const-evaluatable
316313
// predicates.

Diff for: compiler/rustc_middle/src/ty/flags.rs

-3
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,6 @@ impl FlagComputation {
263263
self.add_args(slice::from_ref(&arg));
264264
}
265265
ty::PredicateKind::ObjectSafe(_def_id) => {}
266-
ty::PredicateKind::ClosureKind(_def_id, args, _kind) => {
267-
self.add_args(args);
268-
}
269266
ty::PredicateKind::Clause(ty::ClauseKind::ConstEvaluatable(uv)) => {
270267
self.add_const(uv);
271268
}

Diff for: compiler/rustc_middle/src/ty/mod.rs

-4
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ impl<'tcx> Predicate<'tcx> {
548548
| PredicateKind::Clause(ClauseKind::ConstArgHasType(..))
549549
| PredicateKind::AliasRelate(..)
550550
| PredicateKind::ObjectSafe(_)
551-
| PredicateKind::ClosureKind(_, _, _)
552551
| PredicateKind::Subtype(_)
553552
| PredicateKind::Coerce(_)
554553
| PredicateKind::Clause(ClauseKind::ConstEvaluatable(_))
@@ -1276,7 +1275,6 @@ impl<'tcx> Predicate<'tcx> {
12761275
| PredicateKind::Clause(ClauseKind::RegionOutlives(..))
12771276
| PredicateKind::Clause(ClauseKind::WellFormed(..))
12781277
| PredicateKind::ObjectSafe(..)
1279-
| PredicateKind::ClosureKind(..)
12801278
| PredicateKind::Clause(ClauseKind::TypeOutlives(..))
12811279
| PredicateKind::Clause(ClauseKind::ConstEvaluatable(..))
12821280
| PredicateKind::ConstEquate(..)
@@ -1296,7 +1294,6 @@ impl<'tcx> Predicate<'tcx> {
12961294
| PredicateKind::Clause(ClauseKind::RegionOutlives(..))
12971295
| PredicateKind::Clause(ClauseKind::WellFormed(..))
12981296
| PredicateKind::ObjectSafe(..)
1299-
| PredicateKind::ClosureKind(..)
13001297
| PredicateKind::Clause(ClauseKind::TypeOutlives(..))
13011298
| PredicateKind::Clause(ClauseKind::ConstEvaluatable(..))
13021299
| PredicateKind::ConstEquate(..)
@@ -1317,7 +1314,6 @@ impl<'tcx> Predicate<'tcx> {
13171314
| PredicateKind::Clause(ClauseKind::RegionOutlives(..))
13181315
| PredicateKind::Clause(ClauseKind::WellFormed(..))
13191316
| PredicateKind::ObjectSafe(..)
1320-
| PredicateKind::ClosureKind(..)
13211317
| PredicateKind::Clause(ClauseKind::ConstEvaluatable(..))
13221318
| PredicateKind::ConstEquate(..)
13231319
| PredicateKind::Ambiguous => None,

Diff for: compiler/rustc_middle/src/ty/print/pretty.rs

-5
Original file line numberDiff line numberDiff line change
@@ -2781,11 +2781,6 @@ define_print! {
27812781
ty::PredicateKind::ObjectSafe(trait_def_id) => {
27822782
p!("the trait `", print_def_path(trait_def_id, &[]), "` is object-safe")
27832783
}
2784-
ty::PredicateKind::ClosureKind(closure_def_id, _closure_args, kind) => p!(
2785-
"the closure `",
2786-
print_value_path(closure_def_id, &[]),
2787-
write("` implements the trait `{}`", kind)
2788-
),
27892784
ty::PredicateKind::ConstEquate(c1, c2) => {
27902785
p!("the constant `", print(c1), "` equals `", print(c2), "`")
27912786
}

Diff for: compiler/rustc_smir/src/rustc_smir/mod.rs

-7
Original file line numberDiff line numberDiff line change
@@ -1809,13 +1809,6 @@ impl<'tcx> Stable<'tcx> for ty::PredicateKind<'tcx> {
18091809
PredicateKind::ObjectSafe(did) => {
18101810
stable_mir::ty::PredicateKind::ObjectSafe(tables.trait_def(*did))
18111811
}
1812-
PredicateKind::ClosureKind(did, generic_args, closure_kind) => {
1813-
stable_mir::ty::PredicateKind::ClosureKind(
1814-
tables.closure_def(*did),
1815-
generic_args.stable(tables),
1816-
closure_kind.stable(tables),
1817-
)
1818-
}
18191812
PredicateKind::Subtype(subtype_predicate) => {
18201813
stable_mir::ty::PredicateKind::SubType(subtype_predicate.stable(tables))
18211814
}

Diff for: compiler/rustc_trait_selection/src/solve/eval_ctxt/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,6 @@ impl<'a, 'tcx> EvalCtxt<'a, 'tcx> {
406406
ty::PredicateKind::Coerce(predicate) => {
407407
self.compute_coerce_goal(Goal { param_env, predicate })
408408
}
409-
ty::PredicateKind::ClosureKind(def_id, args, kind) => self
410-
.compute_closure_kind_goal(Goal { param_env, predicate: (def_id, args, kind) }),
411409
ty::PredicateKind::ObjectSafe(trait_def_id) => {
412410
self.compute_object_safe_goal(trait_def_id)
413411
}

Diff for: compiler/rustc_trait_selection/src/solve/fulfill.rs

-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ impl<'tcx> TraitEngine<'tcx> for FulfillmentCtxt<'tcx> {
135135
}
136136
ty::PredicateKind::Clause(_)
137137
| ty::PredicateKind::ObjectSafe(_)
138-
| ty::PredicateKind::ClosureKind(_, _, _)
139138
| ty::PredicateKind::Ambiguous => {
140139
FulfillmentErrorCode::CodeSelectionError(
141140
SelectionError::Unimplemented,

Diff for: compiler/rustc_trait_selection/src/traits/auto_trait.rs

-1
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,6 @@ impl<'tcx> AutoTraitFinder<'tcx> {
822822
| ty::PredicateKind::Clause(ty::ClauseKind::ConstArgHasType(..))
823823
| ty::PredicateKind::AliasRelate(..)
824824
| ty::PredicateKind::ObjectSafe(..)
825-
| ty::PredicateKind::ClosureKind(..)
826825
| ty::PredicateKind::Subtype(..)
827826
// FIXME(generic_const_exprs): you can absolutely add this as a where clauses
828827
| ty::PredicateKind::Clause(ty::ClauseKind::ConstEvaluatable(..))

Diff for: compiler/rustc_trait_selection/src/traits/error_reporting/type_err_ctxt_ext.rs

+43-6
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ pub trait TypeErrCtxtExt<'tcx> {
9898
error: &SelectionError<'tcx>,
9999
);
100100

101+
fn emit_specialized_closure_kind_error(
102+
&self,
103+
obligation: &PredicateObligation<'tcx>,
104+
trait_ref: ty::PolyTraitRef<'tcx>,
105+
) -> Option<ErrorGuaranteed>;
106+
101107
fn fn_arg_obligation(&self, obligation: &PredicateObligation<'tcx>) -> bool;
102108

103109
fn report_const_param_not_wf(
@@ -411,6 +417,11 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
411417
ty::PredicateKind::Clause(ty::ClauseKind::Trait(trait_predicate)) => {
412418
let trait_predicate = bound_predicate.rebind(trait_predicate);
413419
let trait_predicate = self.resolve_vars_if_possible(trait_predicate);
420+
let trait_ref = trait_predicate.to_poly_trait_ref();
421+
422+
if let Some(_guar) = self.emit_specialized_closure_kind_error(&obligation, trait_ref) {
423+
return;
424+
}
414425

415426
// FIXME(effects)
416427
let predicate_is_const = false;
@@ -425,7 +436,6 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
425436
// reported on the binding definition (#56607).
426437
return;
427438
}
428-
let trait_ref = trait_predicate.to_poly_trait_ref();
429439
let (post_message, pre_message, type_def, file_note) = self
430440
.get_parent_trait_ref(obligation.cause.code())
431441
.map(|(t, s)| {
@@ -786,11 +796,6 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
786796
report_object_safety_error(self.tcx, span, trait_def_id, violations)
787797
}
788798

789-
ty::PredicateKind::ClosureKind(closure_def_id, closure_args, kind) => {
790-
let found_kind = self.closure_kind(closure_args).unwrap();
791-
self.report_closure_error(&obligation, closure_def_id, found_kind, kind)
792-
}
793-
794799
ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(ty)) => {
795800
let ty = self.resolve_vars_if_possible(ty);
796801
match self.tcx.sess.opts.unstable_opts.trait_solver {
@@ -927,6 +932,38 @@ impl<'tcx> TypeErrCtxtExt<'tcx> for TypeErrCtxt<'_, 'tcx> {
927932
err.emit();
928933
}
929934

935+
fn emit_specialized_closure_kind_error(
936+
&self,
937+
obligation: &PredicateObligation<'tcx>,
938+
trait_ref: ty::PolyTraitRef<'tcx>,
939+
) -> Option<ErrorGuaranteed> {
940+
if let ty::Closure(closure_def_id, closure_args) = *trait_ref.self_ty().skip_binder().kind()
941+
&& let Some(expected_kind) = self.tcx.fn_trait_kind_from_def_id(trait_ref.def_id())
942+
&& let Some(found_kind) = self.closure_kind(closure_args)
943+
&& !found_kind.extends(expected_kind)
944+
&& let sig = closure_args.as_closure().sig()
945+
&& self.can_sub(
946+
obligation.param_env,
947+
trait_ref,
948+
sig.map_bound(|sig| {
949+
ty::TraitRef::new(
950+
self.tcx,
951+
trait_ref.def_id(),
952+
[trait_ref.self_ty().skip_binder(), sig.inputs()[0]],
953+
)
954+
}),
955+
)
956+
{
957+
let mut err =
958+
self.report_closure_error(&obligation, closure_def_id, found_kind, expected_kind);
959+
self.note_obligation_cause(&mut err, &obligation);
960+
self.point_at_returns_when_relevant(&mut err, &obligation);
961+
Some(err.emit())
962+
} else {
963+
None
964+
}
965+
}
966+
930967
fn fn_arg_obligation(&self, obligation: &PredicateObligation<'tcx>) -> bool {
931968
if let ObligationCauseCode::FunctionArgumentObligation { arg_hir_id, .. } =
932969
obligation.cause.code()

Diff for: compiler/rustc_trait_selection/src/traits/fulfill.rs

-14
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
350350
| ty::PredicateKind::Clause(ty::ClauseKind::ConstArgHasType(..))
351351
| ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(_))
352352
| ty::PredicateKind::ObjectSafe(_)
353-
| ty::PredicateKind::ClosureKind(..)
354353
| ty::PredicateKind::Subtype(_)
355354
| ty::PredicateKind::Coerce(_)
356355
| ty::PredicateKind::Clause(ty::ClauseKind::ConstEvaluatable(..))
@@ -411,19 +410,6 @@ impl<'a, 'tcx> ObligationProcessor for FulfillProcessor<'a, 'tcx> {
411410
}
412411
}
413412

414-
ty::PredicateKind::ClosureKind(_, closure_args, kind) => {
415-
match self.selcx.infcx.closure_kind(closure_args) {
416-
Some(closure_kind) => {
417-
if closure_kind.extends(kind) {
418-
ProcessResult::Changed(vec![])
419-
} else {
420-
ProcessResult::Error(CodeSelectionError(Unimplemented))
421-
}
422-
}
423-
None => ProcessResult::Unchanged,
424-
}
425-
}
426-
427413
ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(arg)) => {
428414
match wf::obligations(
429415
self.selcx.infcx,

Diff for: compiler/rustc_trait_selection/src/traits/query/type_op/implied_outlives_bounds.rs

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ pub fn compute_implied_outlives_bounds_inner<'tcx>(
130130
| ty::PredicateKind::Subtype(..)
131131
| ty::PredicateKind::Coerce(..)
132132
| ty::PredicateKind::Clause(ty::ClauseKind::Projection(..))
133-
| ty::PredicateKind::ClosureKind(..)
134133
| ty::PredicateKind::ObjectSafe(..)
135134
| ty::PredicateKind::Clause(ty::ClauseKind::ConstEvaluatable(..))
136135
| ty::PredicateKind::ConstEquate(..)

Diff for: compiler/rustc_trait_selection/src/traits/select/candidate_assembly.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,11 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
288288
}
289289
}
290290
None => {
291-
debug!("assemble_unboxed_candidates: closure_kind not yet known");
292-
candidates.vec.push(ClosureCandidate { is_const });
291+
if kind == ty::ClosureKind::FnOnce {
292+
candidates.vec.push(ClosureCandidate { is_const });
293+
} else {
294+
candidates.ambiguous = true;
295+
}
293296
}
294297
}
295298
}

Diff for: compiler/rustc_trait_selection/src/traits/select/confirmation.rs

+1-11
Original file line numberDiff line numberDiff line change
@@ -821,11 +821,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
821821
&mut self,
822822
obligation: &PolyTraitObligation<'tcx>,
823823
) -> Result<Vec<PredicateObligation<'tcx>>, SelectionError<'tcx>> {
824-
let kind = self
825-
.tcx()
826-
.fn_trait_kind_from_def_id(obligation.predicate.def_id())
827-
.unwrap_or_else(|| bug!("closure candidate for non-fn trait {:?}", obligation));
828-
829824
// Okay to skip binder because the args on closure types never
830825
// touch bound regions, they just capture the in-scope
831826
// type/region parameters.
@@ -835,15 +830,10 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
835830
};
836831

837832
let trait_ref = self.closure_trait_ref_unnormalized(obligation, args);
838-
let mut nested = self.confirm_poly_trait_refs(obligation, trait_ref)?;
833+
let nested = self.confirm_poly_trait_refs(obligation, trait_ref)?;
839834

840835
debug!(?closure_def_id, ?trait_ref, ?nested, "confirm closure candidate obligations");
841836

842-
nested.push(obligation.with(
843-
self.tcx(),
844-
ty::Binder::dummy(ty::PredicateKind::ClosureKind(closure_def_id, args, kind)),
845-
));
846-
847837
Ok(nested)
848838
}
849839

Diff for: compiler/rustc_trait_selection/src/traits/select/mod.rs

-13
Original file line numberDiff line numberDiff line change
@@ -885,19 +885,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
885885
}
886886
}
887887

888-
ty::PredicateKind::ClosureKind(_, closure_args, kind) => {
889-
match self.infcx.closure_kind(closure_args) {
890-
Some(closure_kind) => {
891-
if closure_kind.extends(kind) {
892-
Ok(EvaluatedToOk)
893-
} else {
894-
Ok(EvaluatedToErr)
895-
}
896-
}
897-
None => Ok(EvaluatedToAmbig),
898-
}
899-
}
900-
901888
ty::PredicateKind::Clause(ty::ClauseKind::ConstEvaluatable(uv)) => {
902889
match const_evaluatable::is_const_evaluatable(
903890
self.infcx,

Diff for: compiler/rustc_traits/src/normalize_erasing_regions.rs

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ fn not_outlives_predicate(p: ty::Predicate<'_>) -> bool {
5858
| ty::PredicateKind::AliasRelate(..)
5959
| ty::PredicateKind::Clause(ty::ClauseKind::WellFormed(..))
6060
| ty::PredicateKind::ObjectSafe(..)
61-
| ty::PredicateKind::ClosureKind(..)
6261
| ty::PredicateKind::Subtype(..)
6362
| ty::PredicateKind::Coerce(..)
6463
| ty::PredicateKind::Clause(ty::ClauseKind::ConstEvaluatable(..))

Diff for: compiler/rustc_type_ir/src/predicate_kind.rs

-24
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@ pub enum PredicateKind<I: Interner> {
129129
/// Trait must be object-safe.
130130
ObjectSafe(I::DefId),
131131

132-
/// No direct syntax. May be thought of as `where T: FnFoo<...>`
133-
/// for some generic args `...` and `T` being a closure type.
134-
/// Satisfied (or refuted) once we know the closure's kind.
135-
ClosureKind(I::DefId, I::GenericArgs, I::ClosureKind),
136-
137132
/// `T1 <: T2`
138133
///
139134
/// This obligation is created most often when we have two
@@ -173,7 +168,6 @@ where
173168
I::Term: Copy,
174169
I::CoercePredicate: Copy,
175170
I::SubtypePredicate: Copy,
176-
I::ClosureKind: Copy,
177171
ClauseKind<I>: Copy,
178172
{
179173
}
@@ -183,9 +177,6 @@ impl<I: Interner> PartialEq for PredicateKind<I> {
183177
match (self, other) {
184178
(Self::Clause(l0), Self::Clause(r0)) => l0 == r0,
185179
(Self::ObjectSafe(l0), Self::ObjectSafe(r0)) => l0 == r0,
186-
(Self::ClosureKind(l0, l1, l2), Self::ClosureKind(r0, r1, r2)) => {
187-
l0 == r0 && l1 == r1 && l2 == r2
188-
}
189180
(Self::Subtype(l0), Self::Subtype(r0)) => l0 == r0,
190181
(Self::Coerce(l0), Self::Coerce(r0)) => l0 == r0,
191182
(Self::ConstEquate(l0, l1), Self::ConstEquate(r0, r1)) => l0 == r0 && l1 == r1,
@@ -207,18 +198,12 @@ where
207198
I::Term: TypeFoldable<I>,
208199
I::CoercePredicate: TypeFoldable<I>,
209200
I::SubtypePredicate: TypeFoldable<I>,
210-
I::ClosureKind: TypeFoldable<I>,
211201
ClauseKind<I>: TypeFoldable<I>,
212202
{
213203
fn try_fold_with<F: FallibleTypeFolder<I>>(self, folder: &mut F) -> Result<Self, F::Error> {
214204
Ok(match self {
215205
PredicateKind::Clause(c) => PredicateKind::Clause(c.try_fold_with(folder)?),
216206
PredicateKind::ObjectSafe(d) => PredicateKind::ObjectSafe(d.try_fold_with(folder)?),
217-
PredicateKind::ClosureKind(d, g, k) => PredicateKind::ClosureKind(
218-
d.try_fold_with(folder)?,
219-
g.try_fold_with(folder)?,
220-
k.try_fold_with(folder)?,
221-
),
222207
PredicateKind::Subtype(s) => PredicateKind::Subtype(s.try_fold_with(folder)?),
223208
PredicateKind::Coerce(s) => PredicateKind::Coerce(s.try_fold_with(folder)?),
224209
PredicateKind::ConstEquate(a, b) => {
@@ -242,18 +227,12 @@ where
242227
I::Term: TypeVisitable<I>,
243228
I::CoercePredicate: TypeVisitable<I>,
244229
I::SubtypePredicate: TypeVisitable<I>,
245-
I::ClosureKind: TypeVisitable<I>,
246230
ClauseKind<I>: TypeVisitable<I>,
247231
{
248232
fn visit_with<V: TypeVisitor<I>>(&self, visitor: &mut V) -> ControlFlow<V::BreakTy> {
249233
match self {
250234
PredicateKind::Clause(p) => p.visit_with(visitor),
251235
PredicateKind::ObjectSafe(d) => d.visit_with(visitor),
252-
PredicateKind::ClosureKind(d, g, k) => {
253-
d.visit_with(visitor)?;
254-
g.visit_with(visitor)?;
255-
k.visit_with(visitor)
256-
}
257236
PredicateKind::Subtype(s) => s.visit_with(visitor),
258237
PredicateKind::Coerce(s) => s.visit_with(visitor),
259238
PredicateKind::ConstEquate(a, b) => {
@@ -313,9 +292,6 @@ impl<I: Interner> fmt::Debug for PredicateKind<I> {
313292
PredicateKind::ObjectSafe(trait_def_id) => {
314293
write!(f, "ObjectSafe({trait_def_id:?})")
315294
}
316-
PredicateKind::ClosureKind(closure_def_id, closure_args, kind) => {
317-
write!(f, "ClosureKind({closure_def_id:?}, {closure_args:?}, {kind:?})")
318-
}
319295
PredicateKind::ConstEquate(c1, c2) => write!(f, "ConstEquate({c1:?}, {c2:?})"),
320296
PredicateKind::Ambiguous => write!(f, "Ambiguous"),
321297
PredicateKind::AliasRelate(t1, t2, dir) => {

0 commit comments

Comments
 (0)