Warning: [0020]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib.mbt:149:14 ]
     │
 149 │       match (try? decode_by_format_raw(data, format)) {
     │              ──┬─  
     │                ╰─── Warning (deprecated): `try?` is deprecated.

  Do not mechanically replace this with `try expr |> Ok catch { e => Err(e) }`; that still creates a local `Result` wrapper and usually misses theintended migration.
  Only create `Ok`/`Err` when the `Result` value must escape this local expression: stored, returned, passed to a Result-taking API, or kept for later comparison as data.

  Migration in inspect-based tests:
  1. If the expected behavior is success, remove `try?` and run the raising expression directly:

    inspect(expr, content=...)

  2. If the expected behavior is an error, replace `try?` with `try ... catch ... noraise`:

    try expr catch {
      e => inspect(e, content=...)
    } noraise {
      _ => fail("expected expr to raise")
    }

─────╯
Warning: [0020]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib.mbt:164:10 ]
     │
 164 │   match (try? decode_by_format_raw(data, format)) {
     │          ──┬─  
     │            ╰─── Warning (deprecated): `try?` is deprecated.

  Do not mechanically replace this with `try expr |> Ok catch { e => Err(e) }`; that still creates a local `Result` wrapper and usually misses theintended migration.
  Only create `Ok`/`Err` when the `Result` value must escape this local expression: stored, returned, passed to a Result-taking API, or kept for later comparison as data.

  Migration in inspect-based tests:
  1. If the expected behavior is success, remove `try?` and run the raising expression directly:

    inspect(expr, content=...)

  2. If the expected behavior is an error, replace `try?` with `try ... catch ... noraise`:

    try expr catch {
      e => inspect(e, content=...)
    } noraise {
      _ => fail("expected expr to raise")
    }

─────╯
Warning: [0020]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib.mbt:201:14 ]
     │
 201 │       match (try? image_dimensions_raw(data, format)) {
     │              ──┬─  
     │                ╰─── Warning (deprecated): `try?` is deprecated.

  Do not mechanically replace this with `try expr |> Ok catch { e => Err(e) }`; that still creates a local `Result` wrapper and usually misses theintended migration.
  Only create `Ok`/`Err` when the `Result` value must escape this local expression: stored, returned, passed to a Result-taking API, or kept for later comparison as data.

  Migration in inspect-based tests:
  1. If the expected behavior is success, remove `try?` and run the raising expression directly:

    inspect(expr, content=...)

  2. If the expected behavior is an error, replace `try?` with `try ... catch ... noraise`:

    try expr catch {
      e => inspect(e, content=...)
    } noraise {
      _ => fail("expected expr to raise")
    }

─────╯
Warning: [0020]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib.mbt:341:14 ]
     │
 341 │       match (try? encode_bmp(img)) {
     │              ──┬─  
     │                ╰─── Warning (deprecated): `try?` is deprecated.

  Do not mechanically replace this with `try expr |> Ok catch { e => Err(e) }`; that still creates a local `Result` wrapper and usually misses theintended migration.
  Only create `Ok`/`Err` when the `Result` value must escape this local expression: stored, returned, passed to a Result-taking API, or kept for later comparison as data.

  Migration in inspect-based tests:
  1. If the expected behavior is success, remove `try?` and run the raising expression directly:

    inspect(expr, content=...)

  2. If the expected behavior is an error, replace `try?` with `try ... catch ... noraise`:

    try expr catch {
      e => inspect(e, content=...)
    } noraise {
      _ => fail("expected expr to raise")
    }

─────╯
Warning: [0020]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib.mbt:346:14 ]
     │
 346 │       match (try? encode_qoi(img)) {
     │              ──┬─  
     │                ╰─── Warning (deprecated): `try?` is deprecated.

  Do not mechanically replace this with `try expr |> Ok catch { e => Err(e) }`; that still creates a local `Result` wrapper and usually misses theintended migration.
  Only create `Ok`/`Err` when the `Result` value must escape this local expression: stored, returned, passed to a Result-taking API, or kept for later comparison as data.

  Migration in inspect-based tests:
  1. If the expected behavior is success, remove `try?` and run the raising expression directly:

    inspect(expr, content=...)

  2. If the expected behavior is an error, replace `try?` with `try ... catch ... noraise`:

    try expr catch {
      e => inspect(e, content=...)
    } noraise {
      _ => fail("expected expr to raise")
    }

─────╯
Warning: [0020]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:148:44 ]
     │
 148 │   let bogus : Result[Image, DecodeError] = try? decode(b"definitely not an image")
     │                                            ──┬─  
     │                                              ╰─── Warning (deprecated): `try?` is deprecated.

  Do not mechanically replace this with `try expr |> Ok catch { e => Err(e) }`; that still creates a local `Result` wrapper and usually misses theintended migration.
  Only create `Ok`/`Err` when the `Result` value must escape this local expression: stored, returned, passed to a Result-taking API, or kept for later comparison as data.

  Migration in inspect-based tests:
  1. If the expected behavior is success, remove `try?` and run the raising expression directly:

    inspect(expr, content=...)

  2. If the expected behavior is an error, replace `try?` with `try ... catch ... noraise`:

    try expr catch {
      e => inspect(e, content=...)
    } noraise {
      _ => fail("expected expr to raise")
    }

─────╯
Warning: [0020]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:158:40 ]
     │
 158 │   let r : Result[Image, DecodeError] = try? decode(
     │                                        ──┬─  
     │                                          ╰─── Warning (deprecated): `try?` is deprecated.

  Do not mechanically replace this with `try expr |> Ok catch { e => Err(e) }`; that still creates a local `Result` wrapper and usually misses theintended migration.
  Only create `Ok`/`Err` when the `Result` value must escape this local expression: stored, returned, passed to a Result-taking API, or kept for later comparison as data.

  Migration in inspect-based tests:
  1. If the expected behavior is success, remove `try?` and run the raising expression directly:

    inspect(expr, content=...)

  2. If the expected behavior is an error, replace `try?` with `try ... catch ... noraise`:

    try expr catch {
      e => inspect(e, content=...)
    } noraise {
      _ => fail("expected expr to raise")
    }

─────╯
Error: [4020]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:207:3 ]
     │
 207 │   @async.block(fn() { @fs.read_file_to_bytes(path) }) catch {
     │   ──────┬─────  
     │         ╰─────── Package "async" not found in the loaded packages.
─────╯
Warning: [0023]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:207:3 ]
     │
 207 │   @async.block(fn() { @fs.read_file_to_bytes(path) }) catch {
     │   ─────────────────────────┬─────────────────────────  
     │                            ╰─────────────────────────── Warning (unused_try): The body of this try expression never raises any error.
─────╯
Error: [4020]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:207:23 ]
     │
 207 │   @async.block(fn() { @fs.read_file_to_bytes(path) }) catch {
     │                       ───────────┬──────────  
     │                                  ╰──────────── Package "fs" not found in the loaded packages.
─────╯
Error: [4018]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:251:3 ]
     │
 251 │   assert_eq(detect_format(b"II\x2A\x00\x08\x00\x00\x00"), Some(ImageFormat::TIFF))
     │   ────┬────  
     │       ╰────── Type @riantr/moonbit_image.ImageFormat does not implement trait @moonbitlang/core/debug.Debug: no `impl` is defined
  note: this constraint is required by `impl` of @moonbitlang/core/debug.Debug for type Option at moonbitlang\core\debug\debug.mbt:128:1
─────╯
Error: [4018]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:251:3 ]
     │
 251 │   assert_eq(detect_format(b"II\x2A\x00\x08\x00\x00\x00"), Some(ImageFormat::TIFF))
     │   ────┬────  
     │       ╰────── Type @riantr/moonbit_image.ImageFormat does not implement trait Eq: no `impl` is defined
  note: this constraint is required by `impl` of Eq for type Option at moonbitlang\core\builtin\option.mbt:16:1
─────╯
Error: [4036]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:251:64 ]
     │
 251 │   assert_eq(detect_format(b"II\x2A\x00\x08\x00\x00\x00"), Some(ImageFormat::TIFF))
     │                                                                ────────┬────────  
     │                                                                        ╰────────── Cannot create values of the read-only type: TIFF.
─────╯
Error: [4018]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:252:3 ]
     │
 252 │   assert_eq(detect_format(b"MM\x00\x2A\x08\x00\x00\x00"), Some(ImageFormat::TIFF))
     │   ────┬────  
     │       ╰────── Type @riantr/moonbit_image.ImageFormat does not implement trait @moonbitlang/core/debug.Debug: no `impl` is defined
  note: this constraint is required by `impl` of @moonbitlang/core/debug.Debug for type Option at moonbitlang\core\debug\debug.mbt:128:1
─────╯
Error: [4018]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:252:3 ]
     │
 252 │   assert_eq(detect_format(b"MM\x00\x2A\x08\x00\x00\x00"), Some(ImageFormat::TIFF))
     │   ────┬────  
     │       ╰────── Type @riantr/moonbit_image.ImageFormat does not implement trait Eq: no `impl` is defined
  note: this constraint is required by `impl` of Eq for type Option at moonbitlang\core\builtin\option.mbt:16:1
─────╯
Error: [4036]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:252:64 ]
     │
 252 │   assert_eq(detect_format(b"MM\x00\x2A\x08\x00\x00\x00"), Some(ImageFormat::TIFF))
     │                                                                ────────┬────────  
     │                                                                        ╰────────── Cannot create values of the read-only type: TIFF.
─────╯
Error: [4018]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:253:3 ]
     │
 253 │   assert_eq(detect_format(b"II\x2A\x00\x00\x00\x00\x00"), Some(ImageFormat::TIFF))
     │   ────┬────  
     │       ╰────── Type @riantr/moonbit_image.ImageFormat does not implement trait @moonbitlang/core/debug.Debug: no `impl` is defined
  note: this constraint is required by `impl` of @moonbitlang/core/debug.Debug for type Option at moonbitlang\core\debug\debug.mbt:128:1
─────╯
Error: [4018]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:253:3 ]
     │
 253 │   assert_eq(detect_format(b"II\x2A\x00\x00\x00\x00\x00"), Some(ImageFormat::TIFF))
     │   ────┬────  
     │       ╰────── Type @riantr/moonbit_image.ImageFormat does not implement trait Eq: no `impl` is defined
  note: this constraint is required by `impl` of Eq for type Option at moonbitlang\core\builtin\option.mbt:16:1
─────╯
Error: [4036]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:253:64 ]
     │
 253 │   assert_eq(detect_format(b"II\x2A\x00\x00\x00\x00\x00"), Some(ImageFormat::TIFF))
     │                                                                ────────┬────────  
     │                                                                        ╰────────── Cannot create values of the read-only type: TIFF.
─────╯
Error: [4018]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:264:3 ]
     │
 264 │   assert_eq(img.format, PixelFormat::Gray8)
     │   ────┬────  
     │       ╰────── Type @riantr/moonbit_image.PixelFormat does not implement trait @moonbitlang/core/debug.Debug: no `impl` is defined
─────╯
Error: [4018]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:264:3 ]
     │
 264 │   assert_eq(img.format, PixelFormat::Gray8)
     │   ────┬────  
     │       ╰────── Type @riantr/moonbit_image.PixelFormat does not implement trait Eq: no `impl` is defined
─────╯
Error: [4036]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:264:25 ]
     │
 264 │   assert_eq(img.format, PixelFormat::Gray8)
     │                         ─────────┬────────  
     │                                  ╰────────── Cannot create values of the read-only type: Gray8.
─────╯
Error: [4018]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:275:3 ]
     │
 275 │   assert_eq(img.format, PixelFormat::RGB8)
     │   ────┬────  
     │       ╰────── Type @riantr/moonbit_image.PixelFormat does not implement trait @moonbitlang/core/debug.Debug: no `impl` is defined
─────╯
Error: [4018]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:275:3 ]
     │
 275 │   assert_eq(img.format, PixelFormat::RGB8)
     │   ────┬────  
     │       ╰────── Type @riantr/moonbit_image.PixelFormat does not implement trait Eq: no `impl` is defined
─────╯
Error: [4036]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:275:25 ]
     │
 275 │   assert_eq(img.format, PixelFormat::RGB8)
     │                         ────────┬────────  
     │                                 ╰────────── Cannot create values of the read-only type: RGB8.
─────╯
Error: [4018]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:287:3 ]
     │
 287 │   assert_eq(img.format, PixelFormat::RGBA8)
     │   ────┬────  
     │       ╰────── Type @riantr/moonbit_image.PixelFormat does not implement trait @moonbitlang/core/debug.Debug: no `impl` is defined
─────╯
Error: [4018]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:287:3 ]
     │
 287 │   assert_eq(img.format, PixelFormat::RGBA8)
     │   ────┬────  
     │       ╰────── Type @riantr/moonbit_image.PixelFormat does not implement trait Eq: no `impl` is defined
─────╯
Error: [4036]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\lib_test.mbt:287:25 ]
     │
 287 │   assert_eq(img.format, PixelFormat::RGBA8)
     │                         ─────────┬────────  
     │                                  ╰────────── Cannot create values of the read-only type: RGBA8.
─────╯
Warning: [0002]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\tiff.mbt:147:7 ]
     │
 147 │ const TAG_ROWS_PER_STRIP : Int = 278
     │       ─────────┬────────  
     │                ╰────────── Warning (unused_value): Unused variable 'TAG_ROWS_PER_STRIP'
─────╯
Warning: [0007]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\tiff.mbt:166:3 ]
     │
 166 │   typ : Int
     │   ─┬─  
     │    ╰─── Warning (unused_field): Field 'typ' is never read
─────╯
Warning: [0007]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\tiff.mbt:167:3 ]
     │
 167 │   count : Int
     │   ──┬──  
     │     ╰──── Warning (unused_field): Field 'count' is never read
─────╯
Warning: [0051]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\tiff.mbt:222:36 ]
     │
 222 │         1 | 2 => base >> (pos * 8) & 0xFF
     │                                    ┬  
     │                                    ╰── Warning (ambiguous_precedence): Operator `>>` and `&` are ambiguous, add parenthesis to disambiguate.
─────╯
Warning: [0051]
     ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\tiff.mbt:223:36 ]
     │
 223 │         3 => base >> (pos * 2 * 8) & 0xFFFF
     │                                    ┬  
     │                                    ╰── Warning (ambiguous_precedence): Operator `>>` and `&` are ambiguous, add parenthesis to disambiguate.
─────╯
Warning: [0006]
    ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\types.mbt:36:3 ]
    │
 36 │   ICO
    │   ─┬─  
    │    ╰─── Warning (unused_constructor): Variant 'ICO' is never constructed
────╯
Warning: [0006]
    ╭─[ D:\src\MiniMax\Projects\MoonBit\moonbit-labeler\staging-moonbit-image\types.mbt:38:3 ]
    │
 38 │   TIFF
    │   ──┬─  
    │     ╰─── Warning (unused_constructor): Variant 'TIFF' is never constructed
────╯
Failed with 15 warnings, 20 errors.
Error: failed to run check for target Native

Caused by:
    failed when checking project
