forked from darfink/detour-rs
-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
retour fails to build on latest nightly rust toolchain with the following error:
Checking retour v0.4.0-alpha.3
error[E0570]: "stdcall" is not a supported ABI for the current target
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/retour-0.4.0-alpha.3/src/macros.rs:184:56
|
184 | impl_hookable!(@impl_pair ($($nm : $ty),*) (extern "stdcall" fn($($ty),*) -> Ret));
| ^^^^^^^^^
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/retour-0.4.0-alpha.3/src/traits.rs:28:1
|
28 | / impl_hookable! {
29 | | __arg_0: A, __arg_1: B, __arg_2: C, __arg_3: D, __arg_4: E, __arg_5: F, __arg_6: G,
30 | | __arg_7: H, __arg_8: I, __arg_9: J, __arg_10: K, __arg_11: L, __arg_12: M, __arg_13: N
31 | | }
| |_- in this macro invocation
|
= help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"`
= note: this error originates in the macro `impl_hookable` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0570]: "fastcall" is not a supported ABI for the current target
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/retour-0.4.0-alpha.3/src/macros.rs:185:56
|
185 | impl_hookable!(@impl_pair ($($nm : $ty),*) (extern "fastcall" fn($($ty),*) -> Ret));
| ^^^^^^^^^^
|
::: /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/retour-0.4.0-alpha.3/src/traits.rs:28:1
|
28 | / impl_hookable! {
29 | | __arg_0: A, __arg_1: B, __arg_2: C, __arg_3: D, __arg_4: E, __arg_5: F, __arg_6: G,
30 | | __arg_7: H, __arg_8: I, __arg_9: J, __arg_10: K, __arg_11: L, __arg_12: M, __arg_13: N
31 | | }
| |_- in this macro invocation
|
= note: this error originates in the macro `impl_hookable` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0570`.
error: could not compile `retour` (lib) due to 30 previous errors
warning: build failed, waiting for other jobs to finish...
Error: Process completed with exit code 101.
I was able to make it compile upon deleting the two lines in the macro definition, but not sure whether that's generally applicable.
Yumekui, phimuemue and jonhermansen
Metadata
Metadata
Assignees
Labels
No labels