Compiling llvm-alt v0.5.0
error[E0308]: mismatched types
--> /home/alex/.cargo/registry/src/github.com-1ecc6299db9ec823/llvm-alt-0.5.0/src/engine.rs:154:109
|
154 | let result = engine::LLVMCreateMCJITCompilerForModule(&mut ee, (&*module).into(), &mut options, size, &mut out);
| ^^^^ expected `u64`, found `usize`
|
help: you can convert an `usize` to `u64` and panic if the converted value wouldn't fit
|
154 | let result = engine::LLVMCreateMCJITCompilerForModule(&mut ee, (&*module).into(), &mut options, size.try_into().unwrap(), &mut out);
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
error: could not compile `llvm-alt`.