use std::fmt::Debug;
create_messages!(
LoopUnrollerError,
code_mask: 9000i32,
code_prefix: "LUN",
@formatted
loop_range_decreasing {
args: (),
msg: format!("The loop range must be increasing."),
help: None,
}
@formatted
variable_array_access {
args: (),
msg: format!("The array index must be constant."),
help: None,
}
@formatted
value_out_of_i128_bounds {
args: (value: impl std::fmt::Display),
msg: format!("The loop bound {value} does not fit into an i128."),
help: Some("All loop bounds must fit into `i128`.".to_string()),
}
);