Remove unused UnitResult type.

This commit is contained in:
Nicholas Nethercote 2024-10-01 16:36:38 +10:00
parent 5486d72e77
commit 5c015eed47

View File

@ -50,7 +50,6 @@
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<