mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
646c27cae3
Prompted by [this Copilot review comment](https://github.com/oxc-project/oxc/pull/26386#discussion_r3948410351), which incorrectly claimed a variant check moves a non-`Copy` field out of a borrow. The wildcard pattern does not bind or move the payload. All code is tested/checked in CI, so a compile error should fail there.
790 B
790 B
Copilot Review Instructions
When reviewing pull requests in this repository:
- Do not guess or infer compiler errors. Only report them when supported by actual compiler diagnostics.
- Treat files inside any
fixturesdirectories as test data, not production code. - Fixture files may intentionally contain buggy, unsafe, or syntactically invalid code to validate parser/linter/transformer behavior.
- Do not report normal code-quality or correctness issues for fixture files.
- You may report a fixture issue only when the test data appears incorrect or mislabeled:
- The folder or filename does not match what the test claims to cover.
- The fixture content does not actually test the described case.
- The fixture appears accidentally broken rather than intentionally crafted.