diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-02 17:35:11 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-02-02 17:36:19 +1100 |
| commit | 44482a529016dd94b8346db23c3203ecd3679908 (patch) | |
| tree | 7334860274b19e1e762b9f30f40e5110b5c9daea | |
| parent | e08cd3cf05e5bfa3323cc21ea8f81f4a15a2f969 (diff) | |
| download | rust-44482a529016dd94b8346db23c3203ecd3679908.tar.gz rust-44482a529016dd94b8346db23c3203ecd3679908.zip | |
Remove unused `ToType` trait.
| -rw-r--r-- | compiler/rustc_middle/src/infer/unify_key.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_middle/src/infer/unify_key.rs b/compiler/rustc_middle/src/infer/unify_key.rs index 7f9211043d6..faaaa8e9cc6 100644 --- a/compiler/rustc_middle/src/infer/unify_key.rs +++ b/compiler/rustc_middle/src/infer/unify_key.rs @@ -5,11 +5,7 @@ use rustc_data_structures::unify::{NoError, UnifyKey, UnifyValue}; use rustc_span::Span; use rustc_span::def_id::DefId; -use crate::ty::{self, Ty, TyCtxt}; - -pub trait ToType { - fn to_type<'tcx>(&self, tcx: TyCtxt<'tcx>) -> Ty<'tcx>; -} +use crate::ty; #[derive(Copy, Clone, Debug)] pub enum RegionVariableValue<'tcx> { |
