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

Message codes

Each message cargo-cardiac gives about a program has a code, as rustc's errors do: error[RCE…] for an error, warning[RCW…] for a warning and note[RCI…] for a note. A code's page says what it means on CARDIAC, why, and what to write instead. In a terminal, cargo cardiac help CODE says the same.

Errors

The program isn't built: what it does can't be compiled for CARDIAC, or not yet.

RCE0001An internal error
RCE0002Rust the compiler doesn't model
RCE0003A place CARDIAC can't address
RCE0004A type no cell holds
RCE0005A cast CARDIAC can't make
RCE0006A constant of a type no cell holds
RCE0007A function or constant the compiler doesn't have
RCE0008An operator on a type it isn't written for
RCE0009A constant past what a card holds
RCE0010Arithmetic in i32 that can pass a card
RCE0011A u8 product with its overflow flag
RCE0012A wrapping product past the accumulator
RCE0013Recursion
RCE0014A generic function from another crate
RCE0015A call that could be one of several functions
RCE0016A constant defined in two crates
RCE0017An enum with data used in a way not supported yet
RCE0018A struct used in a way not supported yet
RCE0019A slice whose length isn't known
RCE0020An array passed by value that isn't a local
RCE0021skip_cards() given the wrong arguments
RCE0022add_times() given the wrong arguments
RCE0023A resource name that isn't a literal name
RCE0024A resource loaded twice
RCE0025A resource loaded outside main, or in a loop
RCE0026A resource not bound to an array
RCE0027overlay() outside main
RCE0028More phases than CARDIAC can load
RCE0029overlay() with auto-overlay on
RCE0030overlay() in a loop
RCE0031A phase that reaches into another
RCE0032Too big for CARDIAC's memory
RCE0033No fn main
RCE0034println! and print!
RCE0035format! and {} formatting
RCE0036String
RCE0037Vec
RCE0038An iterator the compiler doesn't have
RCE0039A trait object used this way
RCE0040A slice the compiler can't follow
RCE0041A single file that uses the cardiac crate
RCE0042A crate with no library

Warnings

The program is built, and works, but costs more than it looks.

RCW0001An expensive operation

Notes

Information about the build: what cargo-cardiac chose, or what would make the program smaller.

RCI0001Bools that would be smaller as Flags
RCI0002Auto-overlay split main into phases
RCI0003Opt-level 0
RCI0004Dev profile settings chosen for CARDIAC
RCI0005A resource with no file yet

From cargo-cardiac 0.2.3.