diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-01 16:36:38 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-10-07 09:50:50 +1100 |
| commit | 5c015eed473ff648ed5febc1f8eac4d0553af845 (patch) | |
| tree | 78bf0a07952aacb001e7f2e737c29a074256fa3b | |
| parent | 5486d72e7783271f457649e4e865a821becf27a2 (diff) | |
| download | rust-5c015eed473ff648ed5febc1f8eac4d0553af845.tar.gz rust-5c015eed473ff648ed5febc1f8eac4d0553af845.zip | |
Remove unused `UnitResult` type.
| -rw-r--r-- | compiler/rustc_infer/src/infer/mod.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_infer/src/infer/mod.rs b/compiler/rustc_infer/src/infer/mod.rs index 87dae0c1e09..c98604de839 100644 --- a/compiler/rustc_infer/src/infer/mod.rs +++ b/compiler/rustc_infer/src/infer/mod.rs @@ -50,7 +50,6 @@ use snapshot::undo_log::InferCtxtUndoLogs; use tracing::{debug, instrument}; use type_variable::TypeVariableOrigin; -use crate::infer::relate::RelateResult; use crate::traits::{self, ObligationCause, ObligationInspector, PredicateObligation, TraitEngine}; pub mod at; @@ -76,7 +75,6 @@ pub struct InferOk<'tcx, T> { } pub type InferResult<'tcx, T> = Result<InferOk<'tcx, T>, TypeError<'tcx>>; -pub type UnitResult<'tcx> = RelateResult<'tcx, ()>; // "unify result" pub type FixupResult<T> = Result<T, FixupError>; // "fixup result" pub(crate) type UnificationTable<'a, 'tcx, T> = ut::UnificationTable< |
