SQ in silver chrome letters, a lab's gear stacked against the S: a rack, two oscilloscopes, pizza boxes and a six-pack. Strange Query Lab

CARDIAC › rust-cardiac › Message codes › RCE0002

RCE0002error

Rust the compiler doesn't model.

error[RCE0002]: unsupported statement: {s}
error[RCE0002]: unsupported terminator: {t}
error[RCE0002]: unsupported call to {callee}

A line of the MIR that rustc wrote for your program is one cargo-cardiac can't compile yet.

cargo-cardiac compiles rustc's MIR, the program after rustc has checked it and simplified it. It knows the statements and terminators that programs for CARDIAC need: arithmetic on cards, arrays, structs, enums, calls. The message quotes the MIR line it stopped at, which names what it is in Rust's terms (a call to core::... is a method of the standard library).

What to write instead depends on the line. Often it is a library method that hasn't been written for CARDIAC: write the loop or the test it stands for. What compiles is in the rust-cardiac manual, the repository's docs/manual.md.

// in place of a library method the compiler doesn't have, the arithmetic it does
let n = v * v * v;

In a terminal: cargo cardiac help RCE0002.