@@ -4,8 +4,9 @@ Version 1.51.0 (2021-03-25)
4
4
Language
5
5
--------
6
6
- [ You can now parameterize items such as functions, traits, and ` struct ` s by constant
7
- values in addition to by types.] [ 79135 ] E.g. you can now write the following. Note:
8
- Only values of primitive integers, ` bool ` , or ` char ` types are currently permitted.
7
+ values in addition to by types and lifetimes.] [ 79135 ] Also known as "const generics"
8
+ E.g. you can now write the following. Note: Only values of primitive integers,
9
+ ` bool ` , or ` char ` types are currently permitted.
9
10
``` rust
10
11
struct GenericArray <T , const LENGTH : usize > {
11
12
inner : [T ; LENGTH ]
@@ -26,10 +27,11 @@ Language
26
27
Compiler
27
28
--------
28
29
29
- - [ Added the ` -Csplit-debuginfo ` codegen option.] [ 79570 ] This option controls whether
30
- debug information is split across multiple files or packed into a single file.
31
- - [ Added tier 3\* support for ` aarch64_be-unknown-linux-gnu ` , ` aarch64-unknown-linux-gnu_ilp32 ` ,
32
- and ` aarch64_be-unknown-linux-gnu_ilp32 ` targets.] [ 81455 ]
30
+ - [ Added the ` -Csplit-debuginfo ` codegen option for macOS platforms.] [ 79570 ]
31
+ This option controls whether debug information is split across multiple files
32
+ or packed into a single file. ** Note** This option is unstable on other platforms.
33
+ - [ Added tier 3\* support for ` aarch64_be-unknown-linux-gnu ` ,
34
+ ` aarch64-unknown-linux-gnu_ilp32 ` , and ` aarch64_be-unknown-linux-gnu_ilp32 ` targets.] [ 81455 ]
33
35
- [ Added tier 3 support for ` i386-unknown-linux-gnu ` and ` i486-unknown-linux-gnu ` targets.] [ 80662 ]
34
36
- [ The ` target-cpu=native ` option will now detect individual features of CPUs.] [ 80749 ]
35
37
- [ Rust now uses ` inline-asm ` for stack probes when used with LLVM 11.0.1+] [ 77885 ]
@@ -72,6 +74,21 @@ Stabilized APIs
72
74
- [ ` sync::OnceState ` ]
73
75
- [ ` task::Wake ` ]
74
76
77
+ Cargo
78
+ -----
79
+ - [ Added the ` split-debuginfo ` profile option to control the -Csplit-debuginfo
80
+ codegen option.] [ cargo/9112 ]
81
+ - [ Added the ` resolver ` field to ` Cargo.toml ` to enable the new feature resolver
82
+ and CLI option behavior.] [ cargo/8997 ] Version 2 of the feature resolver will try
83
+ to avoid unifying features of dependencies where that unification could be unwanted.
84
+ Such as using the same dependency at build time (such as build scripts and
85
+ proc-macros). See the [ Cargo book documentation] [ feature-resolver@2.0 ]
86
+ for more information on the feature.
87
+
88
+ [ feature-resolver@2.0 ] : https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2
89
+ [ cargo/8997 ] : https://github.com/rust-lang/cargo/pull/8997
90
+ [ cargo/9112 ] : https://github.com/rust-lang/cargo/pull/9112
91
+
75
92
Rustdoc
76
93
-------
77
94
@@ -94,7 +111,7 @@ Compatibility Notes
94
111
-------------------
95
112
96
113
- [ Bumped the minimum ` g++ ` for ` linux-gnu ` targets to ` g++-8 ` from ` g++-7 ` .] [ 81521 ]
97
- - [ WASI platforms no longer use the ` wasm-bindgen ` ABI.] [ 79998 ]
114
+ - [ WASI platforms no longer use the ` wasm-bindgen ` ABI, and instead use the wasm32 ABI .] [ 79998 ]
98
115
- [ ` rustc ` no longer promotes division, modulo and indexing operations to ` const ` that
99
116
could fail.] [ 80579 ]
100
117
0 commit comments