aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/hir_def/src/type_ref.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/hir_def/src/type_ref.rs b/crates/hir_def/src/type_ref.rs
index 9e44547cb..cdcab7110 100644
--- a/crates/hir_def/src/type_ref.rs
+++ b/crates/hir_def/src/type_ref.rs
@@ -72,6 +72,10 @@ impl TraitRef {
72} 72}
73 73
74/// Compare ty::Ty 74/// Compare ty::Ty
75///
76/// Note: Most users of `TypeRef` that end up in the salsa database intern it using
77/// `Interned<TypeRef>` to save space. But notably, nested `TypeRef`s are not interned, since that
78/// does not seem to save any noticeable amount of memory.
75#[derive(Clone, PartialEq, Eq, Hash, Debug)] 79#[derive(Clone, PartialEq, Eq, Hash, Debug)]
76pub enum TypeRef { 80pub enum TypeRef {
77 Never, 81 Never,