You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using this alongside the xlang_abi crate, the following error is thrown:
error[E0053]: method `from_u64` has an incompatible type for trait
--> modules/elf/src/lib.rs:13:10
|
13 | #[derive(FromPrimitive,ToPrimitive)]
| ^^^^^^^^^^^^^
| |
| expected enum `std::option::Option`, found enum `xlang_abi::option::Option`
| help: change the output type to match the trait: `std::option::Option<ProgramHeaderType>`
|
= note:expected fn pointer `fn(_) -> std::option::Option<ProgramHeaderType>`
found fn pointer `fn(_) -> xlang_abi::option::Option<ProgramHeaderType>`
= note: this error originates in the derive macro `FromPrimitive` (in Nightlybuilds, run with -Z macro-backtrace for more info)
This can be solved by specifying core::option::Option in any place where Option is used.
The text was updated successfully, but these errors were encountered:
57: Emit full paths for `Option` and `Result` r=cuviper a=cuviper
This drops any assumption about having `Option` and `Result` through the
normal prelude. This also fixes#51 hygiene, as weird local types by the
same name won't affect the derived code.
Co-authored-by: Josh Stone <cuviper@gmail.com>
When using this alongside the
xlang_abi
crate, the following error is thrown:This can be solved by specifying
core::option::Option
in any place whereOption
is used.The text was updated successfully, but these errors were encountered: