mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-20 21:35:19 +00:00
Remove use of .no_copy
This commit is contained in:
@@ -403,7 +403,7 @@ print_type :: #force_no_inline proc "contextless" (ti: ^Type_Info) {
|
||||
print_string("struct ")
|
||||
if .packed in info.flags { print_string("#packed ") }
|
||||
if .raw_union in info.flags { print_string("#raw_union ") }
|
||||
if .no_copy in info.flags { print_string("#no_copy ") }
|
||||
// if .no_copy in info.flags { print_string("#no_copy ") }
|
||||
if .align in info.flags {
|
||||
print_string("#align(")
|
||||
print_u64(u64(ti.align))
|
||||
|
||||
@@ -630,7 +630,7 @@ write_type_writer :: #force_no_inline proc(w: io.Writer, ti: ^Type_Info, n_writt
|
||||
io.write_string(w, "struct ", &n) or_return
|
||||
if .packed in info.flags { io.write_string(w, "#packed ", &n) or_return }
|
||||
if .raw_union in info.flags { io.write_string(w, "#raw_union ", &n) or_return }
|
||||
if .no_copy in info.flags { io.write_string(w, "#no_copy ", &n) or_return }
|
||||
// if .no_copy in info.flags { io.write_string(w, "#no_copy ", &n) or_return }
|
||||
if .align in info.flags {
|
||||
io.write_string(w, "#align(", &n) or_return
|
||||
io.write_i64(w, i64(ti.align), 10, &n) or_return
|
||||
|
||||
@@ -47,7 +47,7 @@ wait_group_add :: proc "contextless" (wg: ^Wait_Group, delta: int) {
|
||||
guard(&wg.mutex)
|
||||
|
||||
atomic_add(&wg.counter, delta)
|
||||
switch counter := atomic_load(&wg.counter); counter {
|
||||
switch counter := atomic_load(&wg.counter); {
|
||||
case counter < 0:
|
||||
panic_contextless("sync.Wait_Group negative counter")
|
||||
case wg.counter == 0:
|
||||
|
||||
Reference in New Issue
Block a user