From c4e3cc02281d898a6c9424f1bcebfb5ca38ca37f Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Wed, 30 Jul 2025 13:01:27 +1000 Subject: Move `TermVid` out of `rustc_middle`. It's only used in `rustc_infer`. --- compiler/rustc_middle/src/ty/mod.rs | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'compiler/rustc_middle/src') diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index 1e70d63539d..abbb3f2f59a 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -673,24 +673,6 @@ impl<'tcx> TermKind<'tcx> { } } -#[derive(Copy, Clone, Eq, PartialEq, Debug)] -pub enum TermVid { - Ty(ty::TyVid), - Const(ty::ConstVid), -} - -impl From for TermVid { - fn from(value: ty::TyVid) -> Self { - TermVid::Ty(value) - } -} - -impl From for TermVid { - fn from(value: ty::ConstVid) -> Self { - TermVid::Const(value) - } -} - /// Represents the bounds declared on a particular set of type /// parameters. Should eventually be generalized into a flag list of /// where-clauses. You can obtain an `InstantiatedPredicates` list from a -- cgit 1.4.1-3-g733a5