diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-07-30 09:03:55 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-07-31 11:50:45 +1000 |
| commit | b44eb11bdfaf98f5c9bf115af43b62634569c69d (patch) | |
| tree | 3f92bcf0094b015519ea5a20b83baae0f6c70985 /compiler/rustc_middle/src | |
| parent | 3a1f2d5cc23a7e6da66edc5fede26a8acac08167 (diff) | |
| download | rust-b44eb11bdfaf98f5c9bf115af43b62634569c69d.tar.gz rust-b44eb11bdfaf98f5c9bf115af43b62634569c69d.zip | |
Move `ParamTerm` out of `rustc_middle`.
It's only used in `rustc_hir_typeck`.
Diffstat (limited to 'compiler/rustc_middle/src')
| -rw-r--r-- | compiler/rustc_middle/src/ty/mod.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index 67828185485..1e70d63539d 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -673,21 +673,6 @@ impl<'tcx> TermKind<'tcx> { } } -#[derive(Copy, Clone, PartialEq, Eq, Debug)] -pub enum ParamTerm { - Ty(ParamTy), - Const(ParamConst), -} - -impl ParamTerm { - pub fn index(self) -> usize { - match self { - ParamTerm::Ty(ty) => ty.index as usize, - ParamTerm::Const(ct) => ct.index as usize, - } - } -} - #[derive(Copy, Clone, Eq, PartialEq, Debug)] pub enum TermVid { Ty(ty::TyVid), |
