diff options
| author | Michael Goulet <michael@errs.io> | 2024-10-06 22:50:29 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-10-07 05:29:13 -0400 |
| commit | 0c5d2f98d1883cfefe26d755107ccca9f0f0e9e9 (patch) | |
| tree | 757af99005aa3ed96bc1a9ae4584735623533300 | |
| parent | 5d62afd2baa5609de649db16389c96c953a1a42f (diff) | |
| download | rust-0c5d2f98d1883cfefe26d755107ccca9f0f0e9e9.tar.gz rust-0c5d2f98d1883cfefe26d755107ccca9f0f0e9e9.zip | |
Remove At methods that are unused
| -rw-r--r-- | compiler/rustc_infer/src/infer/at.rs | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/compiler/rustc_infer/src/infer/at.rs b/compiler/rustc_infer/src/infer/at.rs index 170f44b17e7..5422761a6cf 100644 --- a/compiler/rustc_infer/src/infer/at.rs +++ b/compiler/rustc_infer/src/infer/at.rs @@ -184,30 +184,6 @@ impl<'a, 'tcx> At<'a, 'tcx> { Ok(InferOk { value: (), obligations: op.into_obligations() }) } - /// Equates `expected` and `found` while structurally relating aliases. - /// This should only be used inside of the next generation trait solver - /// when relating rigid aliases. - pub fn eq_structurally_relating_aliases<T>( - self, - expected: T, - actual: T, - ) -> InferResult<'tcx, ()> - where - T: ToTrace<'tcx>, - { - assert!(self.infcx.next_trait_solver()); - let mut op = TypeRelating::new( - self.infcx, - ToTrace::to_trace(self.cause, expected, actual), - self.param_env, - DefineOpaqueTypes::Yes, - StructurallyRelateAliases::Yes, - ty::Invariant, - ); - op.relate(expected, actual)?; - Ok(InferOk { value: (), obligations: op.into_obligations() }) - } - pub fn relate<T>( self, define_opaque_types: DefineOpaqueTypes, @@ -293,23 +269,6 @@ impl<'a, 'tcx> At<'a, 'tcx> { let value = op.relate(expected, actual)?; Ok(InferOk { value, obligations: op.into_obligations() }) } - - /// Computes the greatest-lower-bound, or mutual subtype, of two - /// values. As with `lub` order doesn't matter, except for error - /// cases. - pub fn glb<T>(self, expected: T, actual: T) -> InferResult<'tcx, T> - where - T: ToTrace<'tcx>, - { - let mut op = LatticeOp::new( - self.infcx, - ToTrace::to_trace(self.cause, expected, actual), - self.param_env, - LatticeOpKind::Glb, - ); - let value = op.relate(expected, actual)?; - Ok(InferOk { value, obligations: op.into_obligations() }) - } } impl<'tcx> ToTrace<'tcx> for ImplSubject<'tcx> { |
