-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
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
Tracking issue for #[ffi_returns_twice] #58314
Comments
Implemented in #58315 |
Deprecate vfork The compiler may generate incorrect code for `vfork` and `setjmp` because they are missing the `#[returns_twice]` attribute which is currently unstable ([tracking issue](rust-lang/rust#58314)). Since `vfork` is impossible to use safely, I propose deprecating it until `#[returns_twice]` is stable.
Could we stabilize this feature now? I'm not sure if this is unstable because it's newly added or there's a blocker but it'd be great if we could de-deprecate |
I am very hesitant to do so since it would stabilize a horrible hack that C uses for two functions:
|
Ah, fair enough! I just thought this was missed from stabilizing eyes since rust-lang/libc#1574's OP says "I propose deprecating it until |
Closing because rust-lang/rfcs#2633 was closed. (The ffi-unwind project is looking at this.) |
…, r=compiler-errors Remove `ffi_returns_twice` feature The [tracking issue](rust-lang#58314) and [RFC](rust-lang/rfcs#2633) have been closed for a couple of years. There is also an attribute gate in R-A which should be removed if this lands.
…, r=compiler-errors Remove `ffi_returns_twice` feature The [tracking issue](rust-lang#58314) and [RFC](rust-lang/rfcs#2633) have been closed for a couple of years. There is also an attribute gate in R-A which should be removed if this lands.
…, r=compiler-errors Remove `ffi_returns_twice` feature The [tracking issue](rust-lang#58314) and [RFC](rust-lang/rfcs#2633) have been closed for a couple of years. There is also an attribute gate in R-A which should be removed if this lands.
Rollup merge of rust-lang#120502 - clubby789:remove-ffi-returns-twice, r=compiler-errors Remove `ffi_returns_twice` feature The [tracking issue](rust-lang#58314) and [RFC](rust-lang/rfcs#2633) have been closed for a couple of years. There is also an attribute gate in R-A which should be removed if this lands.
…ler-errors Remove `ffi_returns_twice` feature The [tracking issue](rust-lang/rust#58314) and [RFC](rust-lang/rfcs#2633) have been closed for a couple of years. There is also an attribute gate in R-A which should be removed if this lands.
Whatever became of this? Since FFI-unwind was mentioned, C-unwind now exists and is stable, so is it time to revisit this? |
This is completely unrelated to unwinding. It's about the weird ABI used by functions like |
I'll update with the PR and RFC links when those are ready.PR: #58315
RFC: rust-lang/rfcs#2633
The text was updated successfully, but these errors were encountered: