Commit 316dcfc
committed
Re-update rust to version 1.44.0.
Pkgsrc changes:
* Remove the clutter caused by the cross-compile setup from Makefile
(Now consigned to my own private cross.mk file.)
* Remove a couple of patches which are now integrated upstream.
* Minor adjustments to a couple of other patches.
* Adjust cargo checksums after upstream upgrades.
* Belatedly bump the curl dependency
* If doing a "dist" build, unset DESTDIR during the build phase,
to work around a mysterious build bug deep in the bowels of llvm,
causing llvm tools to be installed to a directory unexpecetd by
the rest of the rust build, ref.
rust-lang/rust#73132
A "dist" build is not expected to be followed by an "install".
* Bump nearly all bootstraps to 1.43.1; NetBSD earmv7hf bootstrap
bumped to 1.44.0, as that one now finally builds and works.
Upstream changes:
Version 1.44.0 (2020-06-04)
==========================
Language
--------
- [You can now use `async/.await` with `#[no_std]` enabled.][69033]
- [Added the `unused_braces` lint.][70081]
**Syntax-only changes**
- [Expansion-driven outline module parsing][69838]
```rust
#[cfg(FALSE)]
mod foo {
mod bar {
mod baz; // `foo/bar/baz.rs` doesn't exist, but no error!
}
}
```
These are still rejected semantically, so you will likely receive an error but
these changes can be seen and parsed by macros and conditional compilation.
Compiler
--------
- [Rustc now respects the `-C codegen-units` flag in incremental mode.][70156]
Additionally when in incremental mode rustc defaults to 256 codegen units.
- [Refactored `catch_unwind`, to have zero-cost unless unwinding is enabled and
a panic is thrown.][67502]
- [Added tier 3\* support for the `aarch64-unknown-none` and
`aarch64-unknown-none-softfloat` targets.][68334]
- [Added tier 3 support for `arm64-apple-tvos` and
`x86_64-apple-tvos` targets.][68191]
Libraries
---------
- [Special cased `vec![]` to map directly to `Vec::new()`.][70632] This allows
`vec![]` to be able to be used in `const` contexts.
- [`convert::Infallible` now implements `Hash`.][70281]
- [`OsString` now implements `DerefMut` and `IndexMut` returning
a `&mut OsStr`.][70048]
- [Unicode 13 is now supported.][69929]
- [`String` now implements `From<&mut str>`.][69661]
- [`IoSlice` now implements `Copy`.][69403]
- [`Vec<T>` now implements `From<[T; N]>`.][68692] Where `N` is less than 32.
- [`proc_macro::LexError` now implements `fmt::Display` and `Error`.][68899]
- [`from_le_bytes`, `to_le_bytes`, `from_be_bytes`, `to_be_bytes`,
`from_ne_bytes`, and `to_ne_bytes` methods are now `const` for all
integer types.][69373]
Stabilized APIs
---------------
- [`PathBuf::with_capacity`]
- [`PathBuf::capacity`]
- [`PathBuf::clear`]
- [`PathBuf::reserve`]
- [`PathBuf::reserve_exact`]
- [`PathBuf::shrink_to_fit`]
- [`f32::to_int_unchecked`]
- [`f64::to_int_unchecked`]
- [`Layout::align_to`]
- [`Layout::pad_to_align`]
- [`Layout::array`]
- [`Layout::extend`]
Cargo
-----
- [Added the `cargo tree` command which will print a tree graph of
your dependencies.][cargo/8062] E.g.
```
mdbook v0.3.2 (/Users/src/rust/mdbook)
+-- ammonia v3.0.0
| +-- html5ever v0.24.0
| | +-- log v0.4.8
| | | +-- cfg-if v0.1.9
| | +-- mac v0.1.1
| | +-- markup5ever v0.9.0
| | +-- log v0.4.8 (*)
| | +-- phf v0.7.24
| | | +-- phf_shared v0.7.24
| | | +-- siphasher v0.2.3
| | | +-- unicase v1.4.2
| | | [build-dependencies]
| | | +-- version_check v0.1.5
...
```
You can also display dependencies on multiple versions of the same crate with
`cargo tree -d` (short for `cargo tree --duplicates`).
Misc
----
- [Rustdoc now allows you to specify `--crate-version` to have rustdoc include
the version in the sidebar.][69494]
Compatibility Notes
-------------------
- [Rustc now correctly generates static libraries on Windows GNU targets with
the `.a` extension, rather than the previous `.lib`.][70937]
- [Removed the `-C no_integrated_as` flag from rustc.][70345]
- [The `file_name` property in JSON output of macro errors now points the actual
source file rather than the previous format of `<NAME macros>`.][70969]
**Note:** this may not point a file that actually exists on the user's system.
- [The minimum required external LLVM version has been bumped to LLVM 8.][71147]
- [`mem::{zeroed, uninitialised}` will now panic when used with types that do
not allow zero initialization such as `NonZeroU8`.][66059] This was
previously a warning.
- [In 1.45.0 (the next release) converting a `f64` to `u32` using the `as`
operator has been defined as a saturating operation.][71269] This was
previously undefined behaviour, you can use the `{f64, f32}::to_int_unchecked`
methods to continue using the current behaviour which may desirable in rare
performance sensitive situations.
Internal Only
-------------
These changes provide no direct user facing benefits, but represent significant
improvements to the internals and overall performance of rustc and
related tools.
- [dep_graph Avoid allocating a set on when the number reads are small.][69778]
- [Replace big JS dict with JSON parsing.][71250]
[69373]: rust-lang/rust#69373
[66059]: rust-lang/rust#66059
[68191]: rust-lang/rust#68191
[68899]: rust-lang/rust#68899
[71147]: rust-lang/rust#71147
[71250]: rust-lang/rust#71250
[70937]: rust-lang/rust#70937
[70969]: rust-lang/rust#70969
[70632]: rust-lang/rust#70632
[70281]: rust-lang/rust#70281
[70345]: rust-lang/rust#70345
[70048]: rust-lang/rust#70048
[70081]: rust-lang/rust#70081
[70156]: rust-lang/rust#70156
[71269]: rust-lang/rust#71269
[69838]: rust-lang/rust#69838
[69929]: rust-lang/rust#69929
[69661]: rust-lang/rust#69661
[69778]: rust-lang/rust#69778
[69494]: rust-lang/rust#69494
[69403]: rust-lang/rust#69403
[69033]: rust-lang/rust#69033
[68692]: rust-lang/rust#68692
[68334]: rust-lang/rust#68334
[67502]: rust-lang/rust#67502
[cargo/8062]: rust-lang/cargo#8062
[`PathBuf::with_capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.with_capacity
[`PathBuf::capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.capacity
[`PathBuf::clear`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.clear
[`PathBuf::reserve`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve
[`PathBuf::reserve_exact`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve_exact
[`PathBuf::shrink_to_fit`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.shrink_to_fit
[`f32::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_int_unchecked
[`f64::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_int_unchecked
[`Layout::align_to`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.align_to
[`Layout::pad_to_align`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.pad_to_align
[`Layout::array`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.array
[`Layout::extend`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.extend1 parent 52140e4 commit 316dcfc
File tree
6 files changed
+134
-216
lines changed- lang/rust
- patches
6 files changed
+134
-216
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | 51 | | |
94 | 52 | | |
95 | 53 | | |
| |||
204 | 162 | | |
205 | 163 | | |
206 | 164 | | |
207 | | - | |
| 165 | + | |
208 | 166 | | |
209 | 167 | | |
210 | 168 | | |
211 | 169 | | |
212 | 170 | | |
213 | 171 | | |
214 | 172 | | |
215 | | - | |
| 173 | + | |
216 | 174 | | |
217 | 175 | | |
218 | 176 | | |
219 | 177 | | |
220 | 178 | | |
221 | 179 | | |
222 | 180 | | |
223 | | - | |
| 181 | + | |
224 | 182 | | |
225 | 183 | | |
226 | 184 | | |
227 | 185 | | |
228 | 186 | | |
229 | 187 | | |
230 | 188 | | |
231 | | - | |
| 189 | + | |
232 | 190 | | |
233 | 191 | | |
234 | 192 | | |
| |||
237 | 195 | | |
238 | 196 | | |
239 | 197 | | |
240 | | - | |
| 198 | + | |
241 | 199 | | |
242 | 200 | | |
243 | 201 | | |
244 | 202 | | |
245 | 203 | | |
246 | 204 | | |
247 | 205 | | |
248 | | - | |
| 206 | + | |
249 | 207 | | |
250 | 208 | | |
251 | 209 | | |
252 | 210 | | |
253 | 211 | | |
254 | 212 | | |
255 | 213 | | |
256 | | - | |
| 214 | + | |
257 | 215 | | |
258 | 216 | | |
259 | 217 | | |
| |||
270 | 228 | | |
271 | 229 | | |
272 | 230 | | |
273 | | - | |
| 231 | + | |
274 | 232 | | |
275 | 233 | | |
276 | 234 | | |
277 | 235 | | |
278 | 236 | | |
279 | 237 | | |
280 | 238 | | |
281 | | - | |
| 239 | + | |
282 | 240 | | |
283 | 241 | | |
284 | 242 | | |
| |||
288 | 246 | | |
289 | 247 | | |
290 | 248 | | |
291 | | - | |
| 249 | + | |
292 | 250 | | |
293 | 251 | | |
294 | 252 | | |
| |||
298 | 256 | | |
299 | 257 | | |
300 | 258 | | |
301 | | - | |
| 259 | + | |
302 | 260 | | |
303 | 261 | | |
304 | 262 | | |
| |||
309 | 267 | | |
310 | 268 | | |
311 | 269 | | |
312 | | - | |
| 270 | + | |
313 | 271 | | |
314 | 272 | | |
315 | 273 | | |
| |||
346 | 304 | | |
347 | 305 | | |
348 | 306 | | |
349 | | - | |
350 | | - | |
| 307 | + | |
| 308 | + | |
351 | 309 | | |
352 | 310 | | |
353 | | - | |
354 | | - | |
| 311 | + | |
| 312 | + | |
355 | 313 | | |
356 | 314 | | |
357 | 315 | | |
| |||
415 | 373 | | |
416 | 374 | | |
417 | 375 | | |
418 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
419 | 380 | | |
420 | 381 | | |
421 | 382 | | |
| |||
539 | 500 | | |
540 | 501 | | |
541 | 502 | | |
| 503 | + | |
542 | 504 | | |
543 | 505 | | |
0 commit comments