E8xxx: Internal compiler errors
This page is generated by scripts/docs/gen-error-code-docs.py from the define_codes! registry in src/util/diagnostic/codes/ and locales/en.json. Do not edit it by hand. Change the wording in locales/*.json, change the code table in define_codes!, then rerun python scripts/docs/gen-error-code-docs.py.
Errors inside the compiler. They usually indicate a defect in the compiler itself; report one as an issue.
This family holds 3 codes, all registered in the define_codes! registry, with the category Internal. See the error code index for the complete inventory.
Code Overview
| Code | Name | Category | span exempt | Template | Emission sites |
|---|---|---|---|---|---|
E8001 | Internal compiler error | Internal | Yes | Internal compiler error: {message} | ✅ 16 sites |
E8002 | Unexpected Panic | Internal | No | Unexpected compiler panic: {reason} | ⚠ Not yet emitted |
E8003 | Compiler phase error | Internal | No | Compiler phase error: {phase} - {message} | ⚠ Not yet emitted |
Code Details
E8001: Internal compiler error
- Category:
Internal - span exempt: Yes
- Constructor:
ErrorCodeDefinition::internal_error(message) - Template:
Internal compiler error: {message} - Message: The compiler encountered an internal error
- Help: Please report this error at https://github.com/ChenXu233/YaoXiang/issues/new
- Emission sites:
src/driver/helpers.rs:69,src/middle/passes/codegen/translator.rs:82,src/middle/passes/codegen/translator.rs:369and 16 more sites - Source comment name:
内部编译器错误
E8002: Unexpected Panic
- Category:
Internal - span exempt: No
- Constructor:
ErrorCodeDefinition::unexpected_panic(reason) - Template:
Unexpected compiler panic: {reason} - Message: The compiler encountered an unexpected panic
- Help: Please report this error with the panic details
- Emission site: ⚠ Not yet emitted (the registry retains the code, but non-test code never calls it, so users cannot trigger it)
- Source comment name:
意外 panic
E8003: Compiler phase error
- Category:
Internal - span exempt: No
- Constructor:
ErrorCodeDefinition::compiler_phase_error(phase, message) - Template:
Compiler phase error: {phase} - {message} - Message: An error occurred in the compiler phase
- Help: This may be a compiler bug, please report it
- Emission site: ⚠ Not yet emitted (the registry retains the code, but non-test code never calls it, so users cannot trigger it)
- Source comment name:
编译器阶段错误
