@@ -140,14 +140,15 @@ is_primitive_type_kind (TypeKind kind)
140
140
BaseType::BaseType (HirId ref, HirId ty_ref, TypeKind kind, RustIdent ident,
141
141
std::set<HirId> refs)
142
142
: TypeBoundsMappings ({}), kind (kind), ref (ref), ty_ref (ty_ref),
143
- combined (refs), ident (ident), mappings (Analysis::Mappings::get ())
143
+ orig_ref (ref), combined (refs), ident (ident),
144
+ mappings (Analysis::Mappings::get ())
144
145
{}
145
146
146
147
BaseType::BaseType (HirId ref, HirId ty_ref, TypeKind kind, RustIdent ident,
147
148
std::vector<TypeBoundPredicate> specified_bounds,
148
149
std::set<HirId> refs)
149
150
: TypeBoundsMappings (specified_bounds), kind (kind), ref (ref),
150
- ty_ref (ty_ref), combined (refs), ident (ident),
151
+ ty_ref (ty_ref), orig_ref (ref), combined (refs), ident (ident),
151
152
mappings (Analysis::Mappings::get ())
152
153
{}
153
154
@@ -178,6 +179,11 @@ BaseType::set_ty_ref (HirId id)
178
179
{
179
180
ty_ref = id;
180
181
}
182
+ HirId
183
+ BaseType::get_orig_ref () const
184
+ {
185
+ return orig_ref;
186
+ }
181
187
182
188
bool
183
189
BaseType::is_equal (const BaseType &other) const
0 commit comments