Browse Source

Remove use of `.no_copy`

gingerBill 2 months ago
parent
commit
9b8223dd69
3 changed files with 3 additions and 3 deletions
  1. 1 1
      base/runtime/print.odin
  2. 1 1
      core/reflect/types.odin
  3. 1 1
      core/sync/extended.odin

+ 1 - 1
base/runtime/print.odin

@@ -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))

+ 1 - 1
core/reflect/types.odin

@@ -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

+ 1 - 1
core/sync/extended.odin

@@ -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: