File tree 1 file changed +4
-3
lines changed
src/resolve/type_definition
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,8 @@ fn resolve_structure(
116
116
& constraints,
117
117
) ;
118
118
119
- let ty = type_ctx. resolve_or_undeclared ( & field. ast_type , ResolveTypeOptions :: Unalias ) ?;
119
+ let ty =
120
+ type_ctx. resolve_or_undeclared ( & field. ast_type , ResolveTypeOptions :: KeepAliases ) ?;
120
121
121
122
let resolved_struct = asg. structs . get_mut ( struct_ref) . expect ( "valid struct" ) ;
122
123
@@ -156,7 +157,7 @@ fn resolve_enum(
156
157
. map ( Cow :: Borrowed )
157
158
. unwrap_or_else ( || Cow :: Owned ( ast:: TypeKind :: u32 ( ) . at ( definition. source ) ) ) ;
158
159
159
- let ty = type_ctx. resolve_or_undeclared ( & ast_type, ResolveTypeOptions :: Unalias ) ?;
160
+ let ty = type_ctx. resolve_or_undeclared ( & ast_type, ResolveTypeOptions :: KeepAliases ) ?;
160
161
asg. enums . get_mut ( enum_ref) . unwrap ( ) . ty = ty;
161
162
Ok ( ( ) )
162
163
}
@@ -204,7 +205,7 @@ fn resolve_trait(
204
205
205
206
for func in & definition. funcs {
206
207
let params = resolve_parameters ( & type_ctx, & func. params ) ?;
207
- let return_type = type_ctx. resolve ( & func. return_type , ResolveTypeOptions :: Unalias ) ?;
208
+ let return_type = type_ctx. resolve ( & func. return_type , ResolveTypeOptions :: KeepAliases ) ?;
208
209
209
210
if funcs
210
211
. insert (
You can’t perform that action at this time.
0 commit comments