diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-07-30 23:14:29 +0100 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-07-30 23:14:29 +0100 |
| commit | 7057fc8dfc960ad3e7ea4f76deeaafd0cdcf4cf6 (patch) | |
| tree | 7f1e406f8d6fb16bf97b68251fc8524cfcd833cf /src/check_decl.cpp | |
| parent | aa6a7498045788b318436db22e44b763799a4c22 (diff) | |
Remove the semantics of `#no_copy`, keep the grammar
Diffstat (limited to 'src/check_decl.cpp')
| -rw-r--r-- | src/check_decl.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 0bacf891b..dd4c09e85 100644 --- a/src/check_decl.cpp +++ b/src/check_decl.cpp @@ -145,13 +145,6 @@ gb_internal void check_init_variables(CheckerContext *ctx, Entity **lhs, isize l if (d != nullptr) { d->init_expr = o->expr; } - - if (o->type && is_type_no_copy(o->type)) { - ERROR_BLOCK(); - if (check_no_copy_assignment(*o, str_lit("initialization"))) { - error_line("\tInitialization of a #no_copy type must be either implicitly zero, a constant literal, or a return value from a call expression"); - } - } } if (rhs_count > 0 && lhs_count != rhs_count) { error(lhs[0]->token, "Assignment count mismatch '%td' = '%td'", lhs_count, rhs_count); |