Use TypeCtorId as AdtId directly, and rename the type alias StructId -> AdtId

This commit is contained in:
Florian Diebold
2020-05-22 17:50:58 +02:00
committed by Florian Diebold
parent 1d0e27254d
commit 27fe68ad5c
5 changed files with 14 additions and 14 deletions

View File

@@ -155,7 +155,7 @@ pub enum TypeCtor {
/// This exists just for Chalk, because Chalk just has a single `StructId` where
/// we have different kinds of ADTs, primitive types and special type
/// constructors like tuples and function pointers.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Ord, PartialOrd)]
pub struct TypeCtorId(salsa::InternId);
impl_intern_key!(TypeCtorId);