We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when compile on linux with cranelift-jit = { version = "0.79", features = ['selinux-fix'] } With versions 0.77, 0.78 also not compiled.
error[E0308]: mismatched types --> /home/ali/.cargo/registry/src/github.com-1ecc6299db9ec823/cranelift-jit-0.79.0/src/memory.rs:37:9 | 35 | fn with_size(size: usize) -> io::Result { | ---------------- expected std::result::Result<PtrLen, std::io::Error> because of return type 36 | let alloc_size = region::page::ceil(size); 37 | / MmapMut::map_anon(alloc_size).map(|mut mmap| { 38 | | // The order here is important; we assign the pointer first to get 39 | | // around compile time borrow errors. 40 | | Ok(Self { ... | 44 | | }) 45 | | }) | |__________^ expected struct PtrLen, found enum std::result::Result | = note: expected enum std::result::Result<PtrLen, _> found enum std::result::Result<std::result::Result<PtrLen, _>, _>
std::result::Result<PtrLen, std::io::Error>
PtrLen
std::result::Result
std::result::Result<PtrLen, _>
std::result::Result<std::result::Result<PtrLen, _>, _>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Error when compile on linux with
cranelift-jit = { version = "0.79", features = ['selinux-fix'] }
With versions 0.77, 0.78 also not compiled.
error[E0308]: mismatched types
--> /home/ali/.cargo/registry/src/github.com-1ecc6299db9ec823/cranelift-jit-0.79.0/src/memory.rs:37:9
|
35 | fn with_size(size: usize) -> io::Result {
| ---------------- expected
std::result::Result<PtrLen, std::io::Error>
because of return type36 | let alloc_size = region::page::ceil(size);
37 | / MmapMut::map_anon(alloc_size).map(|mut mmap| {
38 | | // The order here is important; we assign the pointer first to get
39 | | // around compile time borrow errors.
40 | | Ok(Self {
... |
44 | | })
45 | | })
| |__________^ expected struct
PtrLen
, found enumstd::result::Result
|
= note: expected enum
std::result::Result<PtrLen, _>
found enum
std::result::Result<std::result::Result<PtrLen, _>, _>
The text was updated successfully, but these errors were encountered: