diff options
| author | lcnr <rust@lcnr.de> | 2022-10-18 16:09:04 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-10-18 16:09:04 +0200 |
| commit | 660ca4804175e6220a2284b8e7441aacf10367dd (patch) | |
| tree | fdc2cb43fd7135d5de7627e6f2246a42591d228c /compiler/rustc_middle/src/ty/structural_impls.rs | |
| parent | 98a5ac269cffada469753ad2416717e251863f9a (diff) | |
| download | rust-660ca4804175e6220a2284b8e7441aacf10367dd.tar.gz rust-660ca4804175e6220a2284b8e7441aacf10367dd.zip | |
change `ConstEvaluatable` to use `ty::Const`
Diffstat (limited to 'compiler/rustc_middle/src/ty/structural_impls.rs')
| -rw-r--r-- | compiler/rustc_middle/src/ty/structural_impls.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_middle/src/ty/structural_impls.rs b/compiler/rustc_middle/src/ty/structural_impls.rs index 1164cf3e01a..d09d3609fb4 100644 --- a/compiler/rustc_middle/src/ty/structural_impls.rs +++ b/compiler/rustc_middle/src/ty/structural_impls.rs @@ -166,8 +166,8 @@ impl<'tcx> fmt::Debug for ty::PredicateKind<'tcx> { ty::PredicateKind::ClosureKind(closure_def_id, closure_substs, kind) => { write!(f, "ClosureKind({:?}, {:?}, {:?})", closure_def_id, closure_substs, kind) } - ty::PredicateKind::ConstEvaluatable(uv) => { - write!(f, "ConstEvaluatable({:?}, {:?})", uv.def, uv.substs) + ty::PredicateKind::ConstEvaluatable(ct) => { + write!(f, "ConstEvaluatable({ct:?})") } ty::PredicateKind::ConstEquate(c1, c2) => write!(f, "ConstEquate({:?}, {:?})", c1, c2), ty::PredicateKind::TypeWellFormedFromEnv(ty) => { |
