Skip to content

Commit

Permalink
Rollup merge of rust-lang#92506 - nico-abram:uwu, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Document Box<T> FFI guarantee in 1.41.0 release notes

Fixes rust-lang#68676
  • Loading branch information
matthiaskrgr authored Jan 12, 2022
2 parents 6726f1e + fc8af98 commit 9ea9e18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2588,6 +2588,11 @@ Language
- [Visibility modifiers (e.g. `pub`) are now syntactically allowed on trait items and
enum variants.][66183] These are still rejected semantically, but
can be seen and parsed by procedural macros and conditional compilation.
- [You can now define a Rust `extern "C"` function with `Box<T>` and use `T*` as the corresponding
type on the C side.][62514] Please see [the documentation][box-memory-layout] for more information,
including the important caveat about preferring to avoid `Box<T>` in Rust signatures for functions defined in C.

[box-memory-layout]: https://doc.rust-lang.org/std/boxed/index.html#memory-layout

Compiler
--------
Expand Down Expand Up @@ -2662,6 +2667,7 @@ Compatibility Notes

[54733]: https://github.com/rust-lang/rust/pull/54733/
[61351]: https://github.com/rust-lang/rust/pull/61351/
[62514]: https://github.com/rust-lang/rust/pull/62514/
[67255]: https://github.com/rust-lang/rust/pull/67255/
[66661]: https://github.com/rust-lang/rust/pull/66661/
[66771]: https://github.com/rust-lang/rust/pull/66771/
Expand Down

0 comments on commit 9ea9e18

Please sign in to comment.