Skip to content

Commit 3f55461

Browse files
committed
Auto merge of #63262 - pietroalbini:beta-rollup, r=pietroalbini
[beta] Rollup backports Cherry picked: * Updated RELEASES.md for 1.37.0 #63147 * Require a value for configure --debuginfo-level #62906 * Make the parser TokenStream more resilient after mismatched delimiter recovery #62887 * ci: move .azure-pipelines to src/ci/azure-pipelines #63242 Rolled up: * [BETA] Update cargo #62911 * [beta] Backport #61207 #63254 r? @ghost
2 parents 61d1607 + 775ffd9 commit 3f55461

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1794
-41
lines changed

RELEASES.md

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,121 @@
1+
Version 1.37.0 (2019-08-15)
2+
==========================
3+
4+
Language
5+
--------
6+
- `#[must_use]` will now warn if the type is contained in a [tuple][61100],
7+
[`Box`][62228], or an [array][62235] and unused.
8+
- [You can now use the `cfg` and `cfg_attr` attributes on
9+
generic parameters.][61547]
10+
- [You can now use enum variants through type alias.][61682] e.g. You can
11+
write the following:
12+
```rust
13+
type MyOption = Option<u8>;
14+
15+
fn increment_or_zero(x: MyOption) -> u8 {
16+
match x {
17+
MyOption::Some(y) => y + 1,
18+
MyOption::None => 0,
19+
}
20+
}
21+
```
22+
- [You can now use `_` as an identifier for consts.][61347] e.g. You can write
23+
`const _: u32 = 5;`.
24+
- [You can now use `#[repr(align(X)]` on enums.][61229]
25+
- [The `?`/_"Kleene"_ macro operator is now available in the
26+
2015 edition.][60932]
27+
28+
Compiler
29+
--------
30+
- [You can now enable Profile-Guided Optimization with the `-C profile-generate`
31+
and `-C profile-use` flags.][61268] For more information on how to use profile
32+
guided optimization, please refer to the [rustc book][rustc-book-pgo].
33+
- [The `rust-lldb` wrapper script should now work again.][61827]
34+
35+
Libraries
36+
---------
37+
- [`mem::MaybeUninit<T>` is now ABI-compatible with `T`.][61802]
38+
39+
Stabilized APIs
40+
---------------
41+
- [`BufReader::buffer`]
42+
- [`BufWriter::buffer`]
43+
- [`Cell::from_mut`]
44+
- [`Cell<[T]>::as_slice_of_cells`][`Cell<slice>::as_slice_of_cells`]
45+
- [`DoubleEndedIterator::nth_back`]
46+
- [`Option::xor`]
47+
- [`Wrapping::reverse_bits`]
48+
- [`i128::reverse_bits`]
49+
- [`i16::reverse_bits`]
50+
- [`i32::reverse_bits`]
51+
- [`i64::reverse_bits`]
52+
- [`i8::reverse_bits`]
53+
- [`isize::reverse_bits`]
54+
- [`slice::copy_within`]
55+
- [`u128::reverse_bits`]
56+
- [`u16::reverse_bits`]
57+
- [`u32::reverse_bits`]
58+
- [`u64::reverse_bits`]
59+
- [`u8::reverse_bits`]
60+
- [`usize::reverse_bits`]
61+
62+
Cargo
63+
-----
64+
- [`Cargo.lock` files are now included by default when publishing executable crates
65+
with executables.][cargo/7026]
66+
- [You can now specify `default-run="foo"` in `[package]` to specify the
67+
default executable to use for `cargo run`.][cargo/7056]
68+
69+
Misc
70+
----
71+
72+
Compatibility Notes
73+
-------------------
74+
- [Using `...` for inclusive range patterns will now warn by default.][61342]
75+
Please transition your code to using the `..=` syntax for inclusive
76+
ranges instead.
77+
- [Using a trait object without the `dyn` will now warn by default.][61203]
78+
Please transition your code to use `dyn Trait` for trait objects instead.
79+
80+
[62228]: https://github.com/rust-lang/rust/pull/62228/
81+
[62235]: https://github.com/rust-lang/rust/pull/62235/
82+
[61802]: https://github.com/rust-lang/rust/pull/61802/
83+
[61827]: https://github.com/rust-lang/rust/pull/61827/
84+
[61547]: https://github.com/rust-lang/rust/pull/61547/
85+
[61682]: https://github.com/rust-lang/rust/pull/61682/
86+
[61268]: https://github.com/rust-lang/rust/pull/61268/
87+
[61342]: https://github.com/rust-lang/rust/pull/61342/
88+
[61347]: https://github.com/rust-lang/rust/pull/61347/
89+
[61100]: https://github.com/rust-lang/rust/pull/61100/
90+
[61203]: https://github.com/rust-lang/rust/pull/61203/
91+
[61229]: https://github.com/rust-lang/rust/pull/61229/
92+
[60932]: https://github.com/rust-lang/rust/pull/60932/
93+
[cargo/7026]: https://github.com/rust-lang/cargo/pull/7026/
94+
[cargo/7056]: https://github.com/rust-lang/cargo/pull/7056/
95+
[`BufReader::buffer`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.buffer
96+
[`BufWriter::buffer`]: https://doc.rust-lang.org/std/io/struct.BufWriter.html#method.buffer
97+
[`Cell::from_mut`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.from_mut
98+
[`Cell<slice>::as_slice_of_cells`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_slice_of_cells
99+
[`DoubleEndedIterator::nth_back`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.nth_back
100+
[`Option::xor`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.xor
101+
[`RefCell::try_borrow_unguarded`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_unguarded
102+
[`Wrapping::reverse_bits`]: https://doc.rust-lang.org/std/num/struct.Wrapping.html#method.reverse_bits
103+
[`i128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i128.html#method.reverse_bits
104+
[`i16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i16.html#method.reverse_bits
105+
[`i32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i32.html#method.reverse_bits
106+
[`i64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i64.html#method.reverse_bits
107+
[`i8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i8.html#method.reverse_bits
108+
[`isize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.isize.html#method.reverse_bits
109+
[`slice::copy_within`]: https://doc.rust-lang.org/std/primitive.slice.html#method.copy_within
110+
[`u128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u128.html#method.reverse_bits
111+
[`u16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u16.html#method.reverse_bits
112+
[`u32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u32.html#method.reverse_bits
113+
[`u64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u64.html#method.reverse_bits
114+
[`u8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u8.html#method.reverse_bits
115+
[`usize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.usize.html#method.reverse_bits
116+
[rustc-book-pgo]: https://doc.rust-lang.org/rustc/profile-guided-optimization.html
117+
118+
1119
Version 1.36.0 (2019-07-04)
2120
==========================
3121

src/bootstrap/configure.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ def v(*args):
7676
o("llvm-assertions", "llvm.assertions", "build LLVM with assertions")
7777
o("debug-assertions", "rust.debug-assertions", "build with debugging assertions")
7878
o("llvm-release-debuginfo", "llvm.release-debuginfo", "build LLVM with debugger metadata")
79-
o("debuginfo-level", "rust.debuginfo-level", "debuginfo level for Rust code")
80-
o("debuginfo-level-rustc", "rust.debuginfo-level-rustc", "debuginfo level for the compiler")
81-
o("debuginfo-level-std", "rust.debuginfo-level-std", "debuginfo level for the standard library")
82-
o("debuginfo-level-tools", "rust.debuginfo-level-tools", "debuginfo level for the tools")
83-
o("debuginfo-level-tests", "rust.debuginfo-level-tests", "debuginfo level for the test suites run with compiletest")
79+
v("debuginfo-level", "rust.debuginfo-level", "debuginfo level for Rust code")
80+
v("debuginfo-level-rustc", "rust.debuginfo-level-rustc", "debuginfo level for the compiler")
81+
v("debuginfo-level-std", "rust.debuginfo-level-std", "debuginfo level for the standard library")
82+
v("debuginfo-level-tools", "rust.debuginfo-level-tools", "debuginfo level for the tools")
83+
v("debuginfo-level-tests", "rust.debuginfo-level-tests", "debuginfo level for the test suites run with compiletest")
8484
v("save-toolstates", "rust.save-toolstates", "save build and test status of external tools into this file")
8585

8686
v("prefix", "install.prefix", "set installation prefix")
File renamed without changes.
File renamed without changes.

.azure-pipelines/steps/install-windows-build-deps.yml renamed to src/ci/azure-pipelines/steps/install-windows-build-deps.yml

File renamed without changes.

0 commit comments

Comments
 (0)