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_privacy/src | |
| parent | 98a5ac269cffada469753ad2416717e251863f9a (diff) | |
| download | rust-660ca4804175e6220a2284b8e7441aacf10367dd.tar.gz rust-660ca4804175e6220a2284b8e7441aacf10367dd.zip | |
change `ConstEvaluatable` to use `ty::Const`
Diffstat (limited to 'compiler/rustc_privacy/src')
| -rw-r--r-- | compiler/rustc_privacy/src/lib.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/compiler/rustc_privacy/src/lib.rs b/compiler/rustc_privacy/src/lib.rs index b36b893c78e..81a50481061 100644 --- a/compiler/rustc_privacy/src/lib.rs +++ b/compiler/rustc_privacy/src/lib.rs @@ -159,15 +159,7 @@ where ty.visit_with(self) } ty::PredicateKind::RegionOutlives(..) => ControlFlow::CONTINUE, - ty::PredicateKind::ConstEvaluatable(uv) - if self.def_id_visitor.tcx().features().generic_const_exprs => - { - let tcx = self.def_id_visitor.tcx(); - if let Ok(Some(ct)) = AbstractConst::new(tcx, uv) { - self.visit_abstract_const_expr(tcx, ct)?; - } - ControlFlow::CONTINUE - } + ty::PredicateKind::ConstEvaluatable(ct) => ct.visit_with(self), ty::PredicateKind::WellFormed(arg) => arg.visit_with(self), _ => bug!("unexpected predicate: {:?}", predicate), } |
