Closed xgroleau closed 2 years ago
Hmm, in the IR we have the 50%
as NumberLiteral
with the percentage unit, and we use f32
as type of storage for percent (in rust_primitive_type
). However when lowering the IR to the LLW, we have only the llr NumberLiteral left, without the unit. Should we keep the unit around perhaps and use that to create the number literal with the corresponding unit type?
We use f32 for everything, so i don't think we need to keep the unit.
Normally we do as _
in the generated code, but for some reason we do not do it there.
We translate the LLR that uses NumberLiteral(50)
to if (val_prop.get() < (50f64)) { ... }
. Do you mean that we should generate if (val_prop.get() < (50f64 as _)) { ... }
?
When compiling a particular slint code on
thumbv7em-none-eabihf
and including it with theinclude_modules!()
macros, compilation fails.cargo.toml dependency
Minimum slint code to reproduce.
Rust error output