|
1 | | -//! There are four type combiners: [TypeRelating], [Lub], and [Glb], |
| 1 | +//! There are four type combiners: [TypeRelating], `Lub`, and `Glb`, |
2 | 2 | //! and `NllTypeRelating` in rustc_borrowck, which is only used for NLL. |
3 | 3 | //! |
4 | 4 | //! Each implements the trait [TypeRelation] and contains methods for |
@@ -26,8 +26,7 @@ use rustc_middle::ty::{self, InferConst, IntType, Ty, TyCtxt, TypeVisitableExt, |
26 | 26 | pubuse rustc_next_trait_solver::relate::combine::*; |
27 | 27 | use tracing::debug; |
28 | 28 |
|
29 | | -usesuper::glb::Glb; |
30 | | -usesuper::lub::Lub; |
| 29 | +usesuper::lattice::{LatticeOp,LatticeOpKind}; |
31 | 30 | usesuper::type_relating::TypeRelating; |
32 | 31 | usesuper::{RelateResult,StructurallyRelateAliases}; |
33 | 32 | usecrate::infer::{DefineOpaqueTypes,InferCtxt,TypeTrace, relate}; |
@@ -303,12 +302,12 @@ impl<'infcx, 'tcx> CombineFields<'infcx, 'tcx> { |
303 | 302 | TypeRelating::new(self,StructurallyRelateAliases::No, ty::Contravariant) |
304 | 303 | } |
305 | 304 |
|
306 | | -pubfnlub<'a>(&'amutself) -> Lub<'a,'infcx,'tcx>{ |
307 | | -Lub::new(self) |
| 305 | +pub(crate)fnlub<'a>(&'amutself) -> LatticeOp<'a,'infcx,'tcx>{ |
| 306 | +LatticeOp::new(self,LatticeOpKind::Lub) |
308 | 307 | } |
309 | 308 |
|
310 | | -pubfnglb<'a>(&'amutself) -> Glb<'a,'infcx,'tcx>{ |
311 | | -Glb::new(self) |
| 309 | +pub(crate)fnglb<'a>(&'amutself) -> LatticeOp<'a,'infcx,'tcx>{ |
| 310 | +LatticeOp::new(self,LatticeOpKind::Glb) |
312 | 311 | } |
313 | 312 |
|
314 | 313 | pubfnregister_obligations( |
|
0 commit comments