@@ -44,6 +44,7 @@ Stabilized APIs
44
44
- [`Result::unwrap_unchecked`]
45
45
- [`Result::unwrap_err_unchecked`]
46
46
- [`NonZero{unsigned}::is_power_of_two`]
47
+ - [`File::options`]
47
48
48
49
These APIs are now usable in const contexts:
49
50
@@ -141,6 +142,7 @@ and related tools.
141
142
[`Result::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_unchecked
142
143
[`Result::unwrap_err_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_err_unchecked
143
144
[`NonZero{unsigned}::is_power_of_two`]: https://doc.rust-lang.org/stable/std/num/struct.NonZeroU8.html#method.is_power_of_two
145
+ [`File::options`]: https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.options
144
146
[`unix::process::ExitStatusExt::core_dumped`]: https://doc.rust-lang.org/stable/std/os/unix/process/trait.ExitStatusExt.html#tymethod.core_dumped
145
147
[`unix::process::ExitStatusExt::stopped_signal`]: https://doc.rust-lang.org/stable/std/os/unix/process/trait.ExitStatusExt.html#tymethod.stopped_signal
146
148
[`unix::process::ExitStatusExt::continued`]: https://doc.rust-lang.org/stable/std/os/unix/process/trait.ExitStatusExt.html#tymethod.continued
@@ -2588,6 +2590,11 @@ Language
2588
2590
- [Visibility modifiers (e.g. `pub`) are now syntactically allowed on trait items and
2589
2591
enum variants.][66183] These are still rejected semantically, but
2590
2592
can be seen and parsed by procedural macros and conditional compilation.
2593
+ - [You can now define a Rust `extern "C"` function with `Box<T>` and use `T*` as the corresponding
2594
+ type on the C side.][62514] Please see [the documentation][box-memory-layout] for more information,
2595
+ including the important caveat about preferring to avoid `Box<T>` in Rust signatures for functions defined in C.
2596
+
2597
+ [box-memory-layout]: https://doc.rust-lang.org/std/boxed/index.html#memory-layout
2591
2598
2592
2599
Compiler
2593
2600
--------
@@ -2662,6 +2669,7 @@ Compatibility Notes
2662
2669
2663
2670
[54733]: https://github.com/rust-lang/rust/pull/54733/
2664
2671
[61351]: https://github.com/rust-lang/rust/pull/61351/
2672
+ [62514]: https://github.com/rust-lang/rust/pull/62514/
2665
2673
[67255]: https://github.com/rust-lang/rust/pull/67255/
2666
2674
[66661]: https://github.com/rust-lang/rust/pull/66661/
2667
2675
[66771]: https://github.com/rust-lang/rust/pull/66771/
0 commit comments