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
@RalfJung It doesn't -- it even generates a warning:
warning: attribute should be applied to a function or static
--> src/ffi/mod.rs:3:1
|
3 | #[no_mangle]
| ^^^^^^^^^^^^
4 | #[cfg(feature="std")]
5 | use std::{thread,panic, io, boxed, any, string};
| ------------------------------------------------ not a function or static
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
Activity
RalfJung commentedon Jun 13, 2021
@hyd-dev found out that the issue boils down to this strange bit of code
Does it make any sense to put
no_mangleon auseitem...??syvb commentedon Jun 14, 2021
@RalfJung It doesn't -- it even generates a warning:
syvb commentedon Jun 14, 2021
@rustbot claim
Mangle in invalid #[no_mangle] contexts
Auto merge of #1833 - hyd-dev:82261, r=RalfJung
Auto merge of rust-lang#86323 - hyd-dev:miri, r=RalfJung