Skip to content

Commit 5c015ee

Browse files
committed
Remove unused UnitResult type.
1 parent 5486d72 commit 5c015ee

File tree

1 file changed

+0
-2
lines changed
  • compiler/rustc_infer/src/infer

1 file changed

+0
-2
lines changed

compiler/rustc_infer/src/infer/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ use snapshot::undo_log::InferCtxtUndoLogs;
5050
use tracing::{debug, instrument};
5151
use type_variable::TypeVariableOrigin;
5252

53-
use crate::infer::relate::RelateResult;
5453
use crate::traits::{self, ObligationCause, ObligationInspector, PredicateObligation, TraitEngine};
5554

5655
pub mod at;
@@ -76,7 +75,6 @@ pub struct InferOk<'tcx, T> {
7675
}
7776
pub type InferResult<'tcx, T> = Result<InferOk<'tcx, T>, TypeError<'tcx>>;
7877

79-
pub type UnitResult<'tcx> = RelateResult<'tcx, ()>; // "unify result"
8078
pub type FixupResult<T> = Result<T, FixupError>; // "fixup result"
8179

8280
pub(crate) type UnificationTable<'a, 'tcx, T> = ut::UnificationTable<

0 commit comments

Comments
 (0)