Skip to content

Commit 44482a5

Browse files
committed
Remove unused ToType trait.
1 parent e08cd3c commit 44482a5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

compiler/rustc_middle/src/infer/unify_key.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ use rustc_data_structures::unify::{NoError, UnifyKey, UnifyValue};
55
use rustc_span::Span;
66
use rustc_span::def_id::DefId;
77

8-
use crate::ty::{self, Ty, TyCtxt};
9-
10-
pub trait ToType {
11-
fn to_type<'tcx>(&self, tcx: TyCtxt<'tcx>) -> Ty<'tcx>;
12-
}
8+
use crate::ty;
139

1410
#[derive(Copy, Clone, Debug)]
1511
pub enum RegionVariableValue<'tcx> {

0 commit comments

Comments
 (0)