error[E0599]: no associated item named `MAX` found for type `u8` in the current scope
--> cranelift\codegen\src\isa\aarch64\lower.rs:325:40
|
325 | if shiftee_bits <= u8::MAX as usize {
| ^^^ associated item not found in `u8`
|
help: you are looking for the module in `std`, not the primitive type
|
325 | if shiftee_bits <= std::u8::MAX as usize {
| ^^^^^^^^^^^^
what am I doing wrong?
Hmm, that's from my recent commit... are you building no_std
? What version is your rustc?
(It looks like the fix is just as rustc says there; I can do a quick PR for that; but I'm curious how this arose)
trying an update to rustc 1.45.0 (5c1f21c3b 2020-07-13) now actually, was a few months behind
unfortunately, I didn't note what rust version I did have :(
A quick grep shows a number of other unqualified u32::MAX
, etc., but I'm happy to fix this one if it broke some build configuration...
no need for me (presuming the update fixes it)
Oh, interesting, as per https://doc.rust-lang.org/std/primitive.u8.html the u8::MAX
member (for primitive u8
) is only stable in 1.43
We try to support 1.41; so I'll go ahead and fix this. Thanks!
damn; I accidentally selected a char in the console; so was waiting indefinitely for rust/windows to finish building (selection blocks stdout, which pauses rust)
Created https://github.com/bytecodealliance/wasmtime/pull/2047
you are fast.
rustc told me exactly what to do :-)
;0
Last updated: Nov 22 2024 at 17:03 UTC