The error you are encountering is an Internal Compiler Error (ICE), which is a bug in the Rust compiler. The error message indicates that the compiler encountered an incremental compilation error with the MIR (Machine Independent Representation) for the function
mir_built function is responsible for building the MIR for a function. The MIR is a representation of the function that is used by the compiler to optimize and generate machine code.
The reason why you are encountering this error is because the compiler is unable to build the MIR for the function
mir_built correctly. This can be caused by a number of things, including a bug in the compiler, a bug in your code, or a problem with the compiler's environment.
The easiest way to fix this error is to delete the artifacts directory and rebuild the project. This will force the compiler to rebuild the MIR for all of the functions in your project, including the function
If you are still encountering this error after rebuilding the project, you can try the following:
- Update your Rust compiler to the latest version.
- Try compiling your project on a different machine.
- File a bug report with the Rust compiler team.
I hope this helps!