Make stdlib mem::allocator more complete. (#1238)

Make stdlib mem::allocator more complete. Fill in some gaps and docstrings. List.to_new_array. Handle overalignment smoothly in list.
This commit is contained in:
Christian Buttner
2024-07-15 16:35:40 +02:00
committed by GitHub
parent bc0d52142a
commit b18661a8b0
7 changed files with 128 additions and 60 deletions

View File

@@ -3276,7 +3276,7 @@ static inline bool sema_expr_analyse_type_access(SemaContext *context, Expr *exp
return false;
}
Decl *decl = canonical->decl;
if (!decl_ok(decl)) return false;
switch (decl->decl_kind)
{
case DECL_ENUM: