1 Version 1.62.1 (2022-07-19)
2 ==========================
4 Rust 1.62.1 addresses a few recent regressions in the compiler and standard
5 library, and also mitigates a CPU vulnerability on Intel SGX.
7 * [The compiler fixed unsound function coercions involving `impl Trait` return types.][98608]
8 * [The compiler fixed an incremental compilation bug with `async fn` lifetimes.][98890]
9 * [Windows added a fallback for overlapped I/O in synchronous reads and writes.][98950]
10 * [The `x86_64-fortanix-unknown-sgx` target added a mitigation for the
11 MMIO stale data vulnerability][98126], advisory [INTEL-SA-00615].
13 [98608]: https://github.com/rust-lang/rust/issues/98608
14 [98890]: https://github.com/rust-lang/rust/issues/98890
15 [98950]: https://github.com/rust-lang/rust/pull/98950
16 [98126]: https://github.com/rust-lang/rust/pull/98126
17 [INTEL-SA-00615]: https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00615.html
19 Version 1.62.0 (2022-06-30)
20 ==========================
25 - [Stabilize `#[derive(Default)]` on enums with a `#[default]` variant][94457]
26 - [Teach flow sensitive checks that visibly uninhabited call expressions never return][93313]
27 - [Fix constants not getting dropped if part of a diverging expression][94775]
28 - [Support unit struct/enum variant in destructuring assignment][95380]
29 - [Remove mutable_borrow_reservation_conflict lint and allow the code pattern][96268]
34 - [linker: Stop using whole-archive on dependencies of dylibs][96436]
35 - [Make `unaligned_references` lint deny-by-default][95372]
36 This lint is also a future compatibility lint, and is expected to eventually
38 - [Only add codegen backend to dep info if -Zbinary-dep-depinfo is used][93969]
39 - [Reject `#[thread_local]` attribute on non-static items][95006]
40 - [Add tier 3 `aarch64-pc-windows-gnullvm` and `x86_64-pc-windows-gnullvm` targets\*][94872]
41 - [Implement a lint to warn about unused macro rules][96150]
42 - [Promote `x86_64-unknown-none` target to Tier 2\*][95705]
44 \* Refer to Rust's [platform support page][platform-support-doc] for more
45 information on Rust's tiered platform support.
50 - [Windows: Use a pipe relay for chaining pipes][95841]
51 - [Replace Linux Mutex and Condvar with futex based ones.][95035]
52 - [Replace RwLock by a futex based one on Linux][95801]
53 - [std: directly use pthread in UNIX parker implementation][96393]
62 - [`windows::CommandExt::raw_arg`]
63 - [`impl<T: Default> Default for AssertUnwindSafe<T>`]
64 - [`From<Rc<str>> for Rc<[u8]>`][rc-u8-from-str]
65 - [`From<Arc<str>> for Arc<[u8]>`][arc-u8-from-str]
66 - [`FusedIterator for EncodeWide`]
67 - [RDM intrinsics on aarch64][stdarch/1285]
72 - [Create clippy lint against unexpectedly late drop for temporaries in match scrutinee expressions][94206]
77 - Added the `cargo add` command for adding dependencies to `Cargo.toml` from
79 [docs](https://doc.rust-lang.org/nightly/cargo/commands/cargo-add.html)
80 - Package ID specs now support `name@version` syntax in addition to the
81 previous `name:version` to align with the behavior in `cargo add` and other
82 tools. `cargo install` and `cargo yank` also now support this syntax so the
83 version does not need to passed as a separate flag.
84 - The `git` and `registry` directories in Cargo's home directory (usually
85 `~/.cargo`) are now marked as cache directories so that they are not
86 included in backups or content indexing (on Windows).
87 - Added automatic `@` argfile support, which will use "response files" if the
88 command-line to `rustc` exceeds the operating system's limit.
93 - `cargo test` now passes `--target` to `rustdoc` if the specified target is
94 the same as the host target.
95 [#10594](https://github.com/rust-lang/cargo/pull/10594)
96 - [rustdoc: doctests are now run on unexported `macro_rules!` macros, matching other private items][96630]
97 - [rustdoc: Remove .woff font files][96279]
98 - [Enforce Copy bounds for repeat elements while considering lifetimes][95819]
99 - [Windows: Fix potentinal unsoundness by aborting if `File` reads or writes cannot
100 complete synchronously][95469].
105 - [Unify ReentrantMutex implementations across all platforms][96042]
107 These changes provide no direct user facing benefits, but represent significant
108 improvements to the internals and overall performance of rustc
111 [93313]: https://github.com/rust-lang/rust/pull/93313/
112 [93969]: https://github.com/rust-lang/rust/pull/93969/
113 [94206]: https://github.com/rust-lang/rust/pull/94206/
114 [94457]: https://github.com/rust-lang/rust/pull/94457/
115 [94775]: https://github.com/rust-lang/rust/pull/94775/
116 [94872]: https://github.com/rust-lang/rust/pull/94872/
117 [95006]: https://github.com/rust-lang/rust/pull/95006/
118 [95035]: https://github.com/rust-lang/rust/pull/95035/
119 [95372]: https://github.com/rust-lang/rust/pull/95372/
120 [95380]: https://github.com/rust-lang/rust/pull/95380/
121 [95431]: https://github.com/rust-lang/rust/pull/95431/
122 [95469]: https://github.com/rust-lang/rust/pull/95469/
123 [95705]: https://github.com/rust-lang/rust/pull/95705/
124 [95801]: https://github.com/rust-lang/rust/pull/95801/
125 [95819]: https://github.com/rust-lang/rust/pull/95819/
126 [95841]: https://github.com/rust-lang/rust/pull/95841/
127 [96042]: https://github.com/rust-lang/rust/pull/96042/
128 [96150]: https://github.com/rust-lang/rust/pull/96150/
129 [96268]: https://github.com/rust-lang/rust/pull/96268/
130 [96279]: https://github.com/rust-lang/rust/pull/96279/
131 [96393]: https://github.com/rust-lang/rust/pull/96393/
132 [96436]: https://github.com/rust-lang/rust/pull/96436/
133 [96557]: https://github.com/rust-lang/rust/pull/96557/
134 [96630]: https://github.com/rust-lang/rust/pull/96630/
136 [`bool::then_some`]: https://doc.rust-lang.org/stable/std/primitive.bool.html#method.then_some
137 [`f32::total_cmp`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.total_cmp
138 [`f64::total_cmp`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.total_cmp
139 [`Stdin::lines`]: https://doc.rust-lang.org/stable/std/io/struct.Stdin.html#method.lines
140 [`impl<T: Default> Default for AssertUnwindSafe<T>`]: https://doc.rust-lang.org/stable/std/panic/struct.AssertUnwindSafe.html#impl-Default
141 [rc-u8-from-str]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#impl-From%3CRc%3Cstr%3E%3E
142 [arc-u8-from-str]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#impl-From%3CArc%3Cstr%3E%3E
143 [stdarch/1285]: https://github.com/rust-lang/stdarch/pull/1285
144 [`windows::CommandExt::raw_arg`]: https://doc.rust-lang.org/stable/std/os/windows/process/trait.CommandExt.html#tymethod.raw_arg
145 [`FusedIterator for EncodeWide`]: https://doc.rust-lang.org/stable/std/os/windows/ffi/struct.EncodeWide.html#impl-FusedIterator
147 Version 1.61.0 (2022-05-19)
148 ==========================
153 - [`const fn` signatures can now include generic trait bounds][93827]
154 - [`const fn` signatures can now use `impl Trait` in argument and return position][93827]
155 - [Function pointers can now be created, cast, and passed around in a `const fn`][93827]
156 - [Recursive calls can now set the value of a function's opaque `impl Trait` return type][94081]
161 - [Linking modifier syntax in `#[link]` attributes and on the command line, as well as the `whole-archive` modifier specifically, are now supported][93901]
162 - [The `char` type is now described as UTF-32 in debuginfo][89887]
163 - The [`#[target_feature]`][target_feature] attribute [can now be used with aarch64 features][90621]
164 - X86 [`#[target_feature = "adx"]` is now stable][93745]
169 - [`ManuallyDrop<T>` is now documented to have the same layout as `T`][88375]
170 - [`#[ignore = "…"]` messages are printed when running tests][92714]
171 - [Consistently show absent stdio handles on Windows as NULL handles][93263]
172 - [Make `std::io::stdio::lock()` return `'static` handles.][93965] Previously, the creation of locked handles to stdin/stdout/stderr would borrow the handles being locked, which prevented writing `let out = std::io::stdout().lock();` because `out` would outlive the return value of `stdout()`. Such code now works, eliminating a common pitfall that affected many Rust users.
173 - [`Vec::from_raw_parts` is now less restrictive about its inputs][95016]
174 - [`std::thread::available_parallelism` now takes cgroup quotas into account.][92697] Since `available_parallelism` is often used to create a thread pool for parallel computation, which may be CPU-bound for performance, `available_parallelism` will return a value consistent with the ability to use that many threads continuously, if possible. For instance, in a container with 8 virtual CPUs but quotas only allowing for 50% usage, `available_parallelism` will return 4.
179 - [`Pin::static_mut`]
180 - [`Pin::static_ref`]
181 - [`Vec::retain_mut`]
182 - [`VecDeque::retain_mut`]
183 - [`Write` for `Cursor<[u8; N]>`][cursor-write-array]
184 - [`std::os::unix::net::SocketAddr::from_pathname`]
185 - [`std::process::ExitCode`] and [`std::process::Termination`]. The stabilization of these two APIs now makes it possible for programs to return errors from `main` with custom exit codes.
186 - [`std::thread::JoinHandle::is_finished`]
188 These APIs are now usable in const contexts:
190 - [`<*const T>::offset` and `<*mut T>::offset`][ptr-offset]
191 - [`<*const T>::wrapping_offset` and `<*mut T>::wrapping_offset`][ptr-wrapping_offset]
192 - [`<*const T>::add` and `<*mut T>::add`][ptr-add]
193 - [`<*const T>::sub` and `<*mut T>::sub`][ptr-sub]
194 - [`<*const T>::wrapping_add` and `<*mut T>::wrapping_add`][ptr-wrapping_add]
195 - [`<*const T>::wrapping_sub` and `<*mut T>::wrapping_sub`][ptr-wrapping_sub]
196 - [`<[T]>::as_mut_ptr`][slice-as_mut_ptr]
197 - [`<[T]>::as_ptr_range`][slice-as_ptr_range]
198 - [`<[T]>::as_mut_ptr_range`][slice-as_mut_ptr_range]
203 No feature changes, but see compatibility notes.
208 - Previously native static libraries were linked as `whole-archive` in some cases, but now rustc tries not to use `whole-archive` unless explicitly requested. This [change][93901] may result in linking errors in some cases. To fix such errors, native libraries linked from the command line, build scripts, or [`#[link]` attributes][link-attr] need to
209 - (more common) either be reordered to respect dependencies between them (if `a` depends on `b` then `a` should go first and `b` second)
210 - (less common) or be updated to use the [`+whole-archive`] modifier.
211 - [Catching a second unwind from FFI code while cleaning up from a Rust panic now causes the process to abort][92911]
212 - [Proc macros no longer see `ident` matchers wrapped in groups][92472]
213 - [The number of `#` in `r#` raw string literals is now required to be less than 256][95251]
214 - [When checking that a dyn type satisfies a trait bound, supertrait bounds are now enforced][92285]
215 - [`cargo vendor` now only accepts one value for each `--sync` flag][cargo/10448]
216 - [`cfg` predicates in `all()` and `any()` are always evaluated to detect errors, instead of short-circuiting.][94295] The compatibility considerations here arise in nightly-only code that used the short-circuiting behavior of `all` to write something like `cfg(all(feature = "nightly", syntax-requiring-nightly))`, which will now fail to compile. Instead, use either `cfg_attr(feature = "nightly", ...)` or nested uses of `cfg`.
217 - [bootstrap: static-libstdcpp is now enabled by default, and can now be disabled when llvm-tools is enabled][94832]
222 These changes provide no direct user facing benefits, but represent significant
223 improvements to the internals and overall performance of rustc
226 - [debuginfo: Refactor debuginfo generation for types][94261]
227 - [Remove the everybody loops pass][93913]
229 [88375]: https://github.com/rust-lang/rust/pull/88375/
230 [89887]: https://github.com/rust-lang/rust/pull/89887/
231 [90621]: https://github.com/rust-lang/rust/pull/90621/
232 [92285]: https://github.com/rust-lang/rust/pull/92285/
233 [92472]: https://github.com/rust-lang/rust/pull/92472/
234 [92697]: https://github.com/rust-lang/rust/pull/92697/
235 [92714]: https://github.com/rust-lang/rust/pull/92714/
236 [92911]: https://github.com/rust-lang/rust/pull/92911/
237 [93263]: https://github.com/rust-lang/rust/pull/93263/
238 [93745]: https://github.com/rust-lang/rust/pull/93745/
239 [93827]: https://github.com/rust-lang/rust/pull/93827/
240 [93901]: https://github.com/rust-lang/rust/pull/93901/
241 [93913]: https://github.com/rust-lang/rust/pull/93913/
242 [93965]: https://github.com/rust-lang/rust/pull/93965/
243 [94081]: https://github.com/rust-lang/rust/pull/94081/
244 [94261]: https://github.com/rust-lang/rust/pull/94261/
245 [94295]: https://github.com/rust-lang/rust/pull/94295/
246 [94832]: https://github.com/rust-lang/rust/pull/94832/
247 [95016]: https://github.com/rust-lang/rust/pull/95016/
248 [95251]: https://github.com/rust-lang/rust/pull/95251/
249 [`+whole-archive`]: https://doc.rust-lang.org/stable/rustc/command-line-arguments.html#linking-modifiers-whole-archive
250 [`Pin::static_mut`]: https://doc.rust-lang.org/stable/std/pin/struct.Pin.html#method.static_mut
251 [`Pin::static_ref`]: https://doc.rust-lang.org/stable/std/pin/struct.Pin.html#method.static_ref
252 [`Vec::retain_mut`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.retain_mut
253 [`VecDeque::retain_mut`]: https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.retain_mut
254 [`std::os::unix::net::SocketAddr::from_pathname`]: https://doc.rust-lang.org/stable/std/os/unix/net/struct.SocketAddr.html#method.from_pathname
255 [`std::process::ExitCode`]: https://doc.rust-lang.org/stable/std/process/struct.ExitCode.html
256 [`std::process::Termination`]: https://doc.rust-lang.org/stable/std/process/trait.Termination.html
257 [`std::thread::JoinHandle::is_finished`]: https://doc.rust-lang.org/stable/std/thread/struct.JoinHandle.html#method.is_finished
258 [cargo/10448]: https://github.com/rust-lang/cargo/pull/10448/
259 [cursor-write-array]: https://doc.rust-lang.org/stable/std/io/struct.Cursor.html#impl-Write-4
260 [link-attr]: https://doc.rust-lang.org/stable/reference/items/external-blocks.html#the-link-attribute
261 [ptr-add]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.add
262 [ptr-offset]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.offset
263 [ptr-sub]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.sub
264 [ptr-wrapping_add]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.wrapping_add
265 [ptr-wrapping_offset]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.wrapping_offset
266 [ptr-wrapping_sub]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.wrapping_sub
267 [slice-as_mut_ptr]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.as_mut_ptr
268 [slice-as_mut_ptr_range]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.as_mut_ptr_range
269 [slice-as_ptr_range]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.as_ptr_range
270 [target_feature]: https://doc.rust-lang.org/reference/attributes/codegen.html#the-target_feature-attribute
273 Version 1.60.0 (2022-04-07)
274 ==========================
278 - [Stabilize `#[cfg(panic = "...")]` for either `"unwind"` or `"abort"`.][93658]
279 - [Stabilize `#[cfg(target_has_atomic = "...")]` for each integer size and `"ptr"`.][93824]
283 - [Enable combining `+crt-static` and `relocation-model=pic` on `x86_64-unknown-linux-gnu`][86374]
284 - [Fixes wrong `unreachable_pub` lints on nested and glob public reexport][87487]
285 - [Stabilize `-Z instrument-coverage` as `-C instrument-coverage`][90132]
286 - [Stabilize `-Z print-link-args` as `--print link-args`][91606]
287 - [Add new Tier 3 target `mips64-openwrt-linux-musl`\*][92300]
288 - [Add new Tier 3 target `armv7-unknown-linux-uclibceabi` (softfloat)\*][92383]
289 - [Fix invalid removal of newlines from doc comments][92357]
290 - [Add kernel target for RustyHermit][92670]
291 - [Deny mixing bin crate type with lib crate types][92933]
292 - [Make rustc use `RUST_BACKTRACE=full` by default][93566]
293 - [Upgrade to LLVM 14][93577]
295 \* Refer to Rust's [platform support page][platform-support-doc] for more
296 information on Rust's tiered platform support.
300 - [Guarantee call order for `sort_by_cached_key`][89621]
301 - [Improve `Duration::try_from_secs_f32`/`f64` accuracy by directly processing exponent and mantissa][90247]
302 - [Make `Instant::{duration_since, elapsed, sub}` saturating][89926]
303 - [Remove non-monotonic clocks workarounds in `Instant::now`][89926]
304 - [Make `BuildHasherDefault`, `iter::Empty` and `future::Pending` covariant][92630]
308 - [`Arc::new_cyclic`][arc_new_cyclic]
309 - [`Rc::new_cyclic`][rc_new_cyclic]
310 - [`slice::EscapeAscii`][slice_escape_ascii]
311 - [`<[u8]>::escape_ascii`][slice_u8_escape_ascii]
312 - [`u8::escape_ascii`][u8_escape_ascii]
313 - [`Vec::spare_capacity_mut`][vec_spare_capacity_mut]
314 - [`MaybeUninit::assume_init_drop`][assume_init_drop]
315 - [`MaybeUninit::assume_init_read`][assume_init_read]
316 - [`i8::abs_diff`][i8_abs_diff]
317 - [`i16::abs_diff`][i16_abs_diff]
318 - [`i32::abs_diff`][i32_abs_diff]
319 - [`i64::abs_diff`][i64_abs_diff]
320 - [`i128::abs_diff`][i128_abs_diff]
321 - [`isize::abs_diff`][isize_abs_diff]
322 - [`u8::abs_diff`][u8_abs_diff]
323 - [`u16::abs_diff`][u16_abs_diff]
324 - [`u32::abs_diff`][u32_abs_diff]
325 - [`u64::abs_diff`][u64_abs_diff]
326 - [`u128::abs_diff`][u128_abs_diff]
327 - [`usize::abs_diff`][usize_abs_diff]
328 - [`Display for io::ErrorKind`][display_error_kind]
329 - [`From<u8> for ExitCode`][from_u8_exit_code]
330 - [`Not for !` (the "never" type)][not_never]
331 - [_Op_`Assign<$t> for Wrapping<$t>`][wrapping_assign_ops]
332 - [`arch::is_aarch64_feature_detected!`][is_aarch64_feature_detected]
336 - [Port cargo from `toml-rs` to `toml_edit`][cargo/10086]
337 - [Stabilize `-Ztimings` as `--timings`][cargo/10245]
338 - [Stabilize namespaced and weak dependency features.][cargo/10269]
339 - [Accept more `cargo:rustc-link-arg-*` types from build script output.][cargo/10274]
340 - [cargo-new should not add ignore rule on Cargo.lock inside subdirs][cargo/10379]
344 - [Ship docs on Tier 2 platforms by reusing the closest Tier 1 platform docs][92800]
345 - [Drop rustc-docs from complete profile][93742]
346 - [bootstrap: tidy up flag handling for llvm build][93918]
350 - [Remove compiler-rt linking hack on Android][83822]
351 - [Mitigations for platforms with non-monotonic clocks have been removed from
352 `Instant::now`][89926]. On platforms that don't provide monotonic clocks, an
353 instant is not guaranteed to be greater than an earlier instant anymore.
354 - [`Instant::{duration_since, elapsed, sub}` do not panic anymore on underflow,
355 saturating to `0` instead][89926]. In the real world the panic happened mostly
356 on platforms with buggy monotonic clock implementations rather than catching
357 programming errors like reversing the start and end times. Such programming
358 errors will now results in `0` rather than a panic.
359 - In a future release we're planning to increase the baseline requirements for
360 the Linux kernel to version 3.2, and for glibc to version 2.17. We'd love
361 your feedback in [PR #95026][95026].
366 These changes provide no direct user facing benefits, but represent significant
367 improvements to the internals and overall performance of rustc
370 - [Switch all libraries to the 2021 edition][92068]
372 [83822]: https://github.com/rust-lang/rust/pull/83822
373 [86374]: https://github.com/rust-lang/rust/pull/86374
374 [87487]: https://github.com/rust-lang/rust/pull/87487
375 [89621]: https://github.com/rust-lang/rust/pull/89621
376 [89926]: https://github.com/rust-lang/rust/pull/89926
377 [90132]: https://github.com/rust-lang/rust/pull/90132
378 [90247]: https://github.com/rust-lang/rust/pull/90247
379 [91606]: https://github.com/rust-lang/rust/pull/91606
380 [92068]: https://github.com/rust-lang/rust/pull/92068
381 [92300]: https://github.com/rust-lang/rust/pull/92300
382 [92357]: https://github.com/rust-lang/rust/pull/92357
383 [92383]: https://github.com/rust-lang/rust/pull/92383
384 [92630]: https://github.com/rust-lang/rust/pull/92630
385 [92670]: https://github.com/rust-lang/rust/pull/92670
386 [92800]: https://github.com/rust-lang/rust/pull/92800
387 [92933]: https://github.com/rust-lang/rust/pull/92933
388 [93566]: https://github.com/rust-lang/rust/pull/93566
389 [93577]: https://github.com/rust-lang/rust/pull/93577
390 [93658]: https://github.com/rust-lang/rust/pull/93658
391 [93742]: https://github.com/rust-lang/rust/pull/93742
392 [93824]: https://github.com/rust-lang/rust/pull/93824
393 [93918]: https://github.com/rust-lang/rust/pull/93918
394 [95026]: https://github.com/rust-lang/rust/pull/95026
396 [cargo/10086]: https://github.com/rust-lang/cargo/pull/10086
397 [cargo/10245]: https://github.com/rust-lang/cargo/pull/10245
398 [cargo/10269]: https://github.com/rust-lang/cargo/pull/10269
399 [cargo/10274]: https://github.com/rust-lang/cargo/pull/10274
400 [cargo/10379]: https://github.com/rust-lang/cargo/pull/10379
402 [arc_new_cyclic]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.new_cyclic
403 [rc_new_cyclic]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.new_cyclic
404 [slice_escape_ascii]: https://doc.rust-lang.org/stable/std/slice/struct.EscapeAscii.html
405 [slice_u8_escape_ascii]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.escape_ascii
406 [u8_escape_ascii]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.escape_ascii
407 [vec_spare_capacity_mut]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.spare_capacity_mut
408 [assume_init_drop]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_drop
409 [assume_init_read]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_read
410 [i8_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.abs_diff
411 [i16_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.abs_diff
412 [i32_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.abs_diff
413 [i64_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.abs_diff
414 [i128_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.abs_diff
415 [isize_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.abs_diff
416 [u8_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.abs_diff
417 [u16_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.abs_diff
418 [u32_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.abs_diff
419 [u64_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.abs_diff
420 [u128_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.abs_diff
421 [usize_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.abs_diff
422 [display_error_kind]: https://doc.rust-lang.org/stable/std/io/enum.ErrorKind.html#impl-Display
423 [from_u8_exit_code]: https://doc.rust-lang.org/stable/std/process/struct.ExitCode.html#impl-From%3Cu8%3E
424 [not_never]: https://doc.rust-lang.org/stable/std/primitive.never.html#impl-Not
425 [wrapping_assign_ops]: https://doc.rust-lang.org/stable/std/num/struct.Wrapping.html#trait-implementations
426 [is_aarch64_feature_detected]: https://doc.rust-lang.org/stable/std/arch/macro.is_aarch64_feature_detected.html
428 Version 1.59.0 (2022-02-24)
429 ==========================
434 - [Stabilize default arguments for const parameters and remove the ordering restriction for type and const parameters][90207]
435 - [Stabilize destructuring assignment][90521]
436 - [Relax private in public lint on generic bounds and where clauses of trait impls][90586]
437 - [Stabilize asm! and global_asm! for x86, x86_64, ARM, Aarch64, and RISC-V][91728]
442 - [Stabilize new symbol mangling format, leaving it opt-in (-Csymbol-mangling-version=v0)][90128]
443 - [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
444 - [Fix sparc64 ABI for aggregates with floating point members][91003]
445 - [Warn when a `#[test]`-like built-in attribute macro is present multiple times.][91172]
446 - [Add support for riscv64gc-unknown-freebsd][91284]
447 - [Stabilize `-Z emit-future-incompat` as `--json future-incompat`][91535]
448 - [Soft disable incremental compilation][94124]
450 This release disables incremental compilation, unless the user has explicitly
451 opted in via the newly added RUSTC_FORCE_INCREMENTAL=1 environment variable.
452 This is due to a known and relatively frequently occurring bug in incremental
453 compilation, which causes builds to issue internal compiler errors. This
454 particular bug is already fixed on nightly, but that fix has not yet rolled out
455 to stable and is deemed too risky for a direct stable backport.
457 As always, we encourage users to test with nightly and report bugs so that we
458 can track failures and fix issues earlier.
460 See [94124] for more details.
462 [94124]: https://github.com/rust-lang/rust/issues/94124
467 - [Remove unnecessary bounds for some Hash{Map,Set} methods][91593]
472 - [`std::thread::available_parallelism`][available_parallelism]
473 - [`Result::copied`][result-copied]
474 - [`Result::cloned`][result-cloned]
475 - [`arch::asm!`][asm]
476 - [`arch::global_asm!`][global_asm]
477 - [`ops::ControlFlow::is_break`][is_break]
478 - [`ops::ControlFlow::is_continue`][is_continue]
479 - [`TryFrom<char> for u8`][try_from_char_u8]
480 - [`char::TryFromCharError`][try_from_char_err]
481 implementing `Clone`, `Debug`, `Display`, `PartialEq`, `Copy`, `Eq`, `Error`
483 - [`NonZeroU8::is_power_of_two`][is_power_of_two8]
484 - [`NonZeroU16::is_power_of_two`][is_power_of_two16]
485 - [`NonZeroU32::is_power_of_two`][is_power_of_two32]
486 - [`NonZeroU64::is_power_of_two`][is_power_of_two64]
487 - [`NonZeroU128::is_power_of_two`][is_power_of_two128]
488 - [`NonZeroUsize::is_power_of_two`][is_power_of_two_usize]
489 - [`DoubleEndedIterator for ToLowercase`][lowercase]
490 - [`DoubleEndedIterator for ToUppercase`][uppercase]
491 - [`TryFrom<&mut [T]> for [T; N]`][tryfrom_ref_arr]
492 - [`UnwindSafe for Once`][unwindsafe_once]
493 - [`RefUnwindSafe for Once`][refunwindsafe_once]
494 - [armv8 neon intrinsics for aarch64][stdarch/1266]
498 - [`mem::MaybeUninit::as_ptr`][muninit_ptr]
499 - [`mem::MaybeUninit::assume_init`][muninit_init]
500 - [`mem::MaybeUninit::assume_init_ref`][muninit_init_ref]
501 - [`ffi::CStr::from_bytes_with_nul_unchecked`][cstr_from_bytes]
506 - [Stabilize the `strip` profile option][cargo/10088]
507 - [Stabilize future-incompat-report][cargo/10165]
508 - [Support abbreviating `--release` as `-r`][cargo/10133]
509 - [Support `term.quiet` configuration][cargo/10152]
510 - [Remove `--host` from cargo {publish,search,login}][cargo/10145]
515 - [Refactor weak symbols in std::sys::unix][90846]
516 This may add new, versioned, symbols when building with a newer glibc, as the
517 standard library uses weak linkage rather than dynamically attempting to load
518 certain symbols at runtime.
519 - [Deprecate crate_type and crate_name nested inside `#![cfg_attr]`][83744]
520 This adds a future compatibility lint to supporting the use of cfg_attr
521 wrapping either crate_type or crate_name specification within Rust files;
522 it is recommended that users migrate to setting the equivalent command line
524 - [Remove effect of `#[no_link]` attribute on name resolution][92034]
525 This may expose new names, leading to conflicts with preexisting names in a
526 given namespace and a compilation failure.
527 - [Cargo will document libraries before binaries.][cargo/10172]
528 - [Respect doc=false in dependencies, not just the root crate][cargo/10201]
529 - [Weaken guarantee around advancing underlying iterators in zip][83791]
530 - [Make split_inclusive() on an empty slice yield an empty output][89825]
531 - [Update std::env::temp_dir to use GetTempPath2 on Windows when available.][89999]
532 - [unreachable! was updated to match other formatting macro behavior on Rust 2021][92137]
537 These changes provide no direct user facing benefits, but represent significant
538 improvements to the internals and overall performance of rustc
541 - [Fix many cases of normalization-related ICEs][91255]
542 - [Replace dominators algorithm with simple Lengauer-Tarjan][85013]
543 - [Store liveness in interval sets for region inference][90637]
545 - [Remove `in_band_lifetimes` from the compiler and standard library, in preparation for removing this
546 unstable feature.][91867]
548 [91867]: https://github.com/rust-lang/rust/issues/91867
549 [83744]: https://github.com/rust-lang/rust/pull/83744/
550 [83791]: https://github.com/rust-lang/rust/pull/83791/
551 [85013]: https://github.com/rust-lang/rust/pull/85013/
552 [89825]: https://github.com/rust-lang/rust/pull/89825/
553 [89999]: https://github.com/rust-lang/rust/pull/89999/
554 [90128]: https://github.com/rust-lang/rust/pull/90128/
555 [90207]: https://github.com/rust-lang/rust/pull/90207/
556 [90521]: https://github.com/rust-lang/rust/pull/90521/
557 [90586]: https://github.com/rust-lang/rust/pull/90586/
558 [90637]: https://github.com/rust-lang/rust/pull/90637/
559 [90833]: https://github.com/rust-lang/rust/pull/90833/
560 [90846]: https://github.com/rust-lang/rust/pull/90846/
561 [91003]: https://github.com/rust-lang/rust/pull/91003/
562 [91172]: https://github.com/rust-lang/rust/pull/91172/
563 [91255]: https://github.com/rust-lang/rust/pull/91255/
564 [91284]: https://github.com/rust-lang/rust/pull/91284/
565 [91535]: https://github.com/rust-lang/rust/pull/91535/
566 [91593]: https://github.com/rust-lang/rust/pull/91593/
567 [91728]: https://github.com/rust-lang/rust/pull/91728/
568 [91878]: https://github.com/rust-lang/rust/pull/91878/
569 [91896]: https://github.com/rust-lang/rust/pull/91896/
570 [91926]: https://github.com/rust-lang/rust/pull/91926/
571 [91984]: https://github.com/rust-lang/rust/pull/91984/
572 [92020]: https://github.com/rust-lang/rust/pull/92020/
573 [92034]: https://github.com/rust-lang/rust/pull/92034/
574 [92137]: https://github.com/rust-lang/rust/pull/92137/
575 [92483]: https://github.com/rust-lang/rust/pull/92483/
576 [cargo/10088]: https://github.com/rust-lang/cargo/pull/10088/
577 [cargo/10133]: https://github.com/rust-lang/cargo/pull/10133/
578 [cargo/10145]: https://github.com/rust-lang/cargo/pull/10145/
579 [cargo/10152]: https://github.com/rust-lang/cargo/pull/10152/
580 [cargo/10165]: https://github.com/rust-lang/cargo/pull/10165/
581 [cargo/10172]: https://github.com/rust-lang/cargo/pull/10172/
582 [cargo/10201]: https://github.com/rust-lang/cargo/pull/10201/
583 [cargo/10269]: https://github.com/rust-lang/cargo/pull/10269/
585 [cstr_from_bytes]: https://doc.rust-lang.org/stable/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked
586 [muninit_ptr]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.as_ptr
587 [muninit_init]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init
588 [muninit_init_ref]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
589 [unwindsafe_once]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#impl-UnwindSafe
590 [refunwindsafe_once]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#impl-RefUnwindSafe
591 [tryfrom_ref_arr]: https://doc.rust-lang.org/stable/std/convert/trait.TryFrom.html#impl-TryFrom%3C%26%27_%20mut%20%5BT%5D%3E
592 [lowercase]: https://doc.rust-lang.org/stable/std/char/struct.ToLowercase.html#impl-DoubleEndedIterator
593 [uppercase]: https://doc.rust-lang.org/stable/std/char/struct.ToUppercase.html#impl-DoubleEndedIterator
594 [try_from_char_err]: https://doc.rust-lang.org/stable/std/char/struct.TryFromCharError.html
595 [available_parallelism]: https://doc.rust-lang.org/stable/std/thread/fn.available_parallelism.html
596 [result-copied]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.copied
597 [result-cloned]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.cloned
598 [asm]: https://doc.rust-lang.org/stable/core/arch/macro.asm.html
599 [global_asm]: https://doc.rust-lang.org/stable/core/arch/macro.global_asm.html
600 [is_break]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html#method.is_break
601 [is_continue]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html#method.is_continue
602 [try_from_char_u8]: https://doc.rust-lang.org/stable/std/primitive.char.html#impl-TryFrom%3Cchar%3E
603 [zip]: https://doc.rust-lang.org/stable/std/iter/fn.zip.html
604 [is_power_of_two8]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU8.html#method.is_power_of_two
605 [is_power_of_two16]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU16.html#method.is_power_of_two
606 [is_power_of_two32]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU32.html#method.is_power_of_two
607 [is_power_of_two64]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU64.html#method.is_power_of_two
608 [is_power_of_two128]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU128.html#method.is_power_of_two
609 [is_power_of_two_usize]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroUsize.html#method.is_power_of_two
610 [stdarch/1266]: https://github.com/rust-lang/stdarch/pull/1266
612 Version 1.58.1 (2022-01-19)
613 ===========================
615 * Fix race condition in `std::fs::remove_dir_all` ([CVE-2022-21658])
616 * [Handle captured arguments in the `useless_format` Clippy lint][clippy/8295]
617 * [Move `non_send_fields_in_send_ty` Clippy lint to nursery][clippy/8075]
618 * [Fix wrong error message displayed when some imports are missing][91254]
619 * [Fix rustfmt not formatting generated files from stdin][92912]
621 [CVE-2022-21658]: https://www.cve.org/CVERecord?id=CVE-2022-21658
622 [91254]: https://github.com/rust-lang/rust/pull/91254
623 [92912]: https://github.com/rust-lang/rust/pull/92912
624 [clippy/8075]: https://github.com/rust-lang/rust-clippy/pull/8075
625 [clippy/8295]: https://github.com/rust-lang/rust-clippy/pull/8295
627 Version 1.58.0 (2022-01-13)
628 ==========================
633 - [Format strings can now capture arguments simply by writing `{ident}` in the string.][90473] This works in all macros accepting format strings. Support for this in `panic!` (`panic!("{ident}")`) requires the 2021 edition; panic invocations in previous editions that appear to be trying to use this will result in a warning lint about not having the intended effect.
634 - [`*const T` pointers can now be dereferenced in const contexts.][89551]
635 - [The rules for when a generic struct implements `Unsize` have been relaxed.][90417]
640 - [Add LLVM CFI support to the Rust compiler][89652]
641 - [Stabilize -Z strip as -C strip][90058]. Note that while release builds already don't add debug symbols for the code you compile, the compiled standard library that ships with Rust includes debug symbols, so you may want to use the `strip` option to remove these symbols to produce smaller release binaries. Note that this release only includes support in rustc, not directly in cargo.
642 - [Add support for LLVM coverage mapping format versions 5 and 6][91207]
643 - [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
644 - [Update the minimum external LLVM to 12][90175]
645 - [Add `x86_64-unknown-none` at Tier 3*][89062]
646 - [Build musl dist artifacts with debuginfo enabled][90733]. When building release binaries using musl, you may want to use the newly stabilized strip option to remove these debug symbols, reducing the size of your binaries.
647 - [Don't abort compilation after giving a lint error][87337]
648 - [Error messages point at the source of trait bound obligations in more places][89580]
650 \* Refer to Rust's [platform support page][platform-support-doc] for more
651 information on Rust's tiered platform support.
656 - [All remaining functions in the standard library have `#[must_use]` annotations where appropriate][89692], producing a warning when ignoring their return value. This helps catch mistakes such as expecting a function to mutate a value in place rather than return a new value.
657 - [Paths are automatically canonicalized on Windows for operations that support it][89174]
658 - [Re-enable debug checks for `copy` and `copy_nonoverlapping`][90041]
659 - [Implement `RefUnwindSafe` for `Rc<T>`][87467]
660 - [Make RSplit<T, P>: Clone not require T: Clone][90117]
661 - [Implement `Termination` for `Result<Infallible, E>`][88601]. This allows writing `fn main() -> Result<Infallible, ErrorType>`, for a program whose successful exits never involve returning from `main` (for instance, a program that calls `exit`, or that uses `exec` to run another program).
666 - [`Metadata::is_symlink`]
667 - [`Path::is_symlink`]
668 - [`{integer}::saturating_div`]
669 - [`Option::unwrap_unchecked`]
670 - [`Result::unwrap_unchecked`]
671 - [`Result::unwrap_err_unchecked`]
674 These APIs are now usable in const contexts:
677 - [`Duration::checked_add`]
678 - [`Duration::saturating_add`]
679 - [`Duration::checked_sub`]
680 - [`Duration::saturating_sub`]
681 - [`Duration::checked_mul`]
682 - [`Duration::saturating_mul`]
683 - [`Duration::checked_div`]
688 - [Add --message-format for install command][cargo/10107]
689 - [Warn when alias shadows external subcommand][cargo/10082]
694 - [Show all Deref implementations recursively in rustdoc][90183]
695 - [Use computed visibility in rustdoc][88447]
700 - [Try all stable method candidates first before trying unstable ones][90329]. This change ensures that adding new nightly-only methods to the Rust standard library will not break code invoking methods of the same name from traits outside the standard library.
701 - Windows: [`std::process::Command` will no longer search the current directory for executables.][87704]
702 - [All proc-macro backward-compatibility lints are now deny-by-default.][88041]
703 - [proc_macro: Append .0 to unsuffixed float if it would otherwise become int token][90297]
704 - [Refactor weak symbols in std::sys::unix][90846]. This optimizes accesses to glibc functions, by avoiding the use of dlopen. This does not increase the [minimum expected version of glibc](https://doc.rust-lang.org/nightly/rustc/platform-support.html). However, software distributions that use symbol versions to detect library dependencies, and which take weak symbols into account in that analysis, may detect rust binaries as requiring newer versions of glibc.
705 - [rustdoc now rejects some unexpected semicolons in doctests][91026]
710 These changes provide no direct user facing benefits, but represent significant
711 improvements to the internals and overall performance of rustc
714 - [Implement coherence checks for negative trait impls][90104]
715 - [Add rustc lint, warning when iterating over hashmaps][89558]
716 - [Optimize live point computation][90491]
717 - [Enable verification for 1/32nd of queries loaded from disk][90361]
718 - [Implement version of normalize_erasing_regions that allows for normalization failure][91255]
720 [87337]: https://github.com/rust-lang/rust/pull/87337/
721 [87467]: https://github.com/rust-lang/rust/pull/87467/
722 [87704]: https://github.com/rust-lang/rust/pull/87704/
723 [88041]: https://github.com/rust-lang/rust/pull/88041/
724 [88447]: https://github.com/rust-lang/rust/pull/88447/
725 [88601]: https://github.com/rust-lang/rust/pull/88601/
726 [89062]: https://github.com/rust-lang/rust/pull/89062/
727 [89174]: https://github.com/rust-lang/rust/pull/89174/
728 [89551]: https://github.com/rust-lang/rust/pull/89551/
729 [89558]: https://github.com/rust-lang/rust/pull/89558/
730 [89580]: https://github.com/rust-lang/rust/pull/89580/
731 [89652]: https://github.com/rust-lang/rust/pull/89652/
732 [90041]: https://github.com/rust-lang/rust/pull/90041/
733 [90058]: https://github.com/rust-lang/rust/pull/90058/
734 [90104]: https://github.com/rust-lang/rust/pull/90104/
735 [90117]: https://github.com/rust-lang/rust/pull/90117/
736 [90175]: https://github.com/rust-lang/rust/pull/90175/
737 [90183]: https://github.com/rust-lang/rust/pull/90183/
738 [90297]: https://github.com/rust-lang/rust/pull/90297/
739 [90329]: https://github.com/rust-lang/rust/pull/90329/
740 [90361]: https://github.com/rust-lang/rust/pull/90361/
741 [90417]: https://github.com/rust-lang/rust/pull/90417/
742 [90473]: https://github.com/rust-lang/rust/pull/90473/
743 [90491]: https://github.com/rust-lang/rust/pull/90491/
744 [90733]: https://github.com/rust-lang/rust/pull/90733/
745 [90833]: https://github.com/rust-lang/rust/pull/90833/
746 [90846]: https://github.com/rust-lang/rust/pull/90846/
747 [91026]: https://github.com/rust-lang/rust/pull/91026/
748 [91207]: https://github.com/rust-lang/rust/pull/91207/
749 [91255]: https://github.com/rust-lang/rust/pull/91255/
750 [cargo/10082]: https://github.com/rust-lang/cargo/pull/10082/
751 [cargo/10107]: https://github.com/rust-lang/cargo/pull/10107/
752 [`Metadata::is_symlink`]: https://doc.rust-lang.org/stable/std/fs/struct.Metadata.html#method.is_symlink
753 [`Path::is_symlink`]: https://doc.rust-lang.org/stable/std/path/struct.Path.html#method.is_symlink
754 [`{integer}::saturating_div`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.saturating_div
755 [`Option::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.unwrap_unchecked
756 [`Result::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_unchecked
757 [`Result::unwrap_err_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_err_unchecked
758 [`File::options`]: https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.options
759 [`Duration::new`]: https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.new
761 Version 1.57.0 (2021-12-02)
762 ==========================
767 - [Macro attributes may follow `#[derive]` and will see the original (pre-`cfg`) input.][87220]
768 - [Accept curly-brace macros in expressions, like `m!{ .. }.method()` and `m!{ .. }?`.][88690]
769 - [Allow panicking in constant evaluation.][89508]
770 - [Ignore derived `Clone` and `Debug` implementations during dead code analysis.][85200]
775 - [Create more accurate debuginfo for vtables.][89597]
776 - [Add `armv6k-nintendo-3ds` at Tier 3\*.][88529]
777 - [Add `armv7-unknown-linux-uclibceabihf` at Tier 3\*.][88952]
778 - [Add `m68k-unknown-linux-gnu` at Tier 3\*.][88321]
779 - [Add SOLID targets at Tier 3\*:][86191] `aarch64-kmc-solid_asp3`, `armv7a-kmc-solid_asp3-eabi`, `armv7a-kmc-solid_asp3-eabihf`
781 \* Refer to Rust's [platform support page][platform-support-doc] for more
782 information on Rust's tiered platform support.
787 - [Avoid allocations and copying in `Vec::leak`][89337]
788 - [Add `#[repr(i8)]` to `Ordering`][89507]
789 - [Optimize `File::read_to_end` and `read_to_string`][89582]
790 - [Update to Unicode 14.0][89614]
791 - [Many more functions are marked `#[must_use]`][89692], producing a warning
792 when ignoring their return value. This helps catch mistakes such as expecting
793 a function to mutate a value in place rather than return a new value.
798 - [`[T; N]::as_mut_slice`][`array::as_mut_slice`]
799 - [`[T; N]::as_slice`][`array::as_slice`]
800 - [`collections::TryReserveError`]
801 - [`HashMap::try_reserve`]
802 - [`HashSet::try_reserve`]
803 - [`String::try_reserve`]
804 - [`String::try_reserve_exact`]
805 - [`Vec::try_reserve`]
806 - [`Vec::try_reserve_exact`]
807 - [`VecDeque::try_reserve`]
808 - [`VecDeque::try_reserve_exact`]
809 - [`Iterator::map_while`]
811 - [`proc_macro::is_available`]
812 - [`Command::get_program`]
813 - [`Command::get_args`]
814 - [`Command::get_envs`]
815 - [`Command::get_current_dir`]
819 These APIs are now usable in const contexts:
821 - [`hint::unreachable_unchecked`]
826 - [Stabilize custom profiles][cargo/9943]
831 - [Ignore derived `Clone` and `Debug` implementations during dead code analysis.][85200]
832 This will break some builds that set `#![deny(dead_code)]`.
836 These changes provide no direct user facing benefits, but represent significant
837 improvements to the internals and overall performance of rustc
840 - [Added an experimental backend for codegen with `libgccjit`.][87260]
842 [85200]: https://github.com/rust-lang/rust/pull/85200/
843 [86191]: https://github.com/rust-lang/rust/pull/86191/
844 [87220]: https://github.com/rust-lang/rust/pull/87220/
845 [87260]: https://github.com/rust-lang/rust/pull/87260/
846 [88321]: https://github.com/rust-lang/rust/pull/88321/
847 [88529]: https://github.com/rust-lang/rust/pull/88529/
848 [88690]: https://github.com/rust-lang/rust/pull/88690/
849 [88952]: https://github.com/rust-lang/rust/pull/88952/
850 [89337]: https://github.com/rust-lang/rust/pull/89337/
851 [89507]: https://github.com/rust-lang/rust/pull/89507/
852 [89508]: https://github.com/rust-lang/rust/pull/89508/
853 [89582]: https://github.com/rust-lang/rust/pull/89582/
854 [89597]: https://github.com/rust-lang/rust/pull/89597/
855 [89614]: https://github.com/rust-lang/rust/pull/89614/
856 [89692]: https://github.com/rust-lang/rust/issues/89692/
857 [cargo/9943]: https://github.com/rust-lang/cargo/pull/9943/
858 [`array::as_mut_slice`]: https://doc.rust-lang.org/std/primitive.array.html#method.as_mut_slice
859 [`array::as_slice`]: https://doc.rust-lang.org/std/primitive.array.html#method.as_slice
860 [`collections::TryReserveError`]: https://doc.rust-lang.org/std/collections/struct.TryReserveError.html
861 [`HashMap::try_reserve`]: https://doc.rust-lang.org/std/collections/hash_map/struct.HashMap.html#method.try_reserve
862 [`HashSet::try_reserve`]: https://doc.rust-lang.org/std/collections/hash_set/struct.HashSet.html#method.try_reserve
863 [`String::try_reserve`]: https://doc.rust-lang.org/alloc/string/struct.String.html#method.try_reserve
864 [`String::try_reserve_exact`]: https://doc.rust-lang.org/alloc/string/struct.String.html#method.try_reserve_exact
865 [`Vec::try_reserve`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve
866 [`Vec::try_reserve_exact`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve_exact
867 [`VecDeque::try_reserve`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.try_reserve
868 [`VecDeque::try_reserve_exact`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.try_reserve_exact
869 [`Iterator::map_while`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.map_while
870 [`iter::MapWhile`]: https://doc.rust-lang.org/std/iter/struct.MapWhile.html
871 [`proc_macro::is_available`]: https://doc.rust-lang.org/proc_macro/fn.is_available.html
872 [`Command::get_program`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_program
873 [`Command::get_args`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_args
874 [`Command::get_envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_envs
875 [`Command::get_current_dir`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_current_dir
876 [`CommandArgs`]: https://doc.rust-lang.org/std/process/struct.CommandArgs.html
877 [`CommandEnvs`]: https://doc.rust-lang.org/std/process/struct.CommandEnvs.html
879 Version 1.56.1 (2021-11-01)
880 ===========================
882 - New lints to detect the presence of bidirectional-override Unicode
883 codepoints in the compiled source code ([CVE-2021-42574])
885 [CVE-2021-42574]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42574
887 Version 1.56.0 (2021-10-21)
888 ========================
893 - [The 2021 Edition is now stable.][rust#88100]
894 See [the edition guide][rust-2021-edition-guide] for more details.
895 - [The pattern in `binding @ pattern` can now also introduce new bindings.][rust#85305]
896 - [Union field access is permitted in `const fn`.][rust#85769]
898 [rust-2021-edition-guide]: https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html
903 - [Upgrade to LLVM 13.][rust#87570]
904 - [Support memory, address, and thread sanitizers on aarch64-unknown-freebsd.][rust#88023]
905 - [Allow specifying a deployment target version for all iOS targets][rust#87699]
906 - [Warnings can be forced on with `--force-warn`.][rust#87472]
907 This feature is primarily intended for usage by `cargo fix`, rather than end users.
908 - [Promote `aarch64-apple-ios-sim` to Tier 2\*.][rust#87760]
909 - [Add `powerpc-unknown-freebsd` at Tier 3\*.][rust#87370]
910 - [Add `riscv32imc-esp-espidf` at Tier 3\*.][rust#87666]
912 \* Refer to Rust's [platform support page][platform-support-doc] for more
913 information on Rust's tiered platform support.
918 - [Allow writing of incomplete UTF-8 sequences via stdout/stderr on Windows.][rust#83342]
919 The Windows console still requires valid Unicode, but this change allows
920 splitting a UTF-8 character across multiple write calls. This allows, for
921 instance, programs that just read and write data buffers (e.g. copying a file
922 to stdout) without regard for Unicode or character boundaries.
923 - [Prefer `AtomicU{64,128}` over Mutex for Instant backsliding protection.][rust#83093]
924 For this use case, atomics scale much better under contention.
925 - [Implement `Extend<(A, B)>` for `(Extend<A>, Extend<B>)`][rust#85835]
926 - [impl Default, Copy, Clone for std::io::Sink and std::io::Empty][rust#86744]
927 - [`impl From<[(K, V); N]>` for all collections.][rust#84111]
928 - [Remove `P: Unpin` bound on impl Future for Pin.][rust#81363]
929 - [Treat invalid environment variable names as non-existent.][rust#86183]
930 Previously, the environment functions would panic if given a variable name
931 with an internal null character or equal sign (`=`). Now, these functions will
932 just treat such names as non-existent variables, since the OS cannot represent
933 the existence of a variable with such a name.
938 - [`std::os::unix::fs::chroot`]
939 - [`UnsafeCell::raw_get`]
940 - [`BufWriter::into_parts`]
941 - [`core::panic::{UnwindSafe, RefUnwindSafe, AssertUnwindSafe}`]
942 These APIs were previously stable in `std`, but are now also available in `core`.
944 - [`String::shrink_to`]
945 - [`OsString::shrink_to`]
946 - [`PathBuf::shrink_to`]
947 - [`BinaryHeap::shrink_to`]
948 - [`VecDeque::shrink_to`]
949 - [`HashMap::shrink_to`]
950 - [`HashSet::shrink_to`]
952 These APIs are now usable in const contexts:
954 - [`std::mem::transmute`]
955 - [`[T]::first`][`slice::first`]
956 - [`[T]::split_first`][`slice::split_first`]
957 - [`[T]::last`][`slice::last`]
958 - [`[T]::split_last`][`slice::split_last`]
963 - [Cargo supports specifying a minimum supported Rust version in Cargo.toml.][`rust-version`]
964 This has no effect at present on dependency version selection.
965 We encourage crates to specify their minimum supported Rust version, and we encourage CI systems
966 that support Rust code to include a crate's specified minimum version in the test matrix for that
972 - [Update to new argument parsing rules on Windows.][rust#87580]
973 This adjusts Rust's standard library to match the behavior of the standard
974 libraries for C/C++. The rules have changed slightly over time, and this PR
975 brings us to the latest set of rules (changed in 2008).
976 - [Disallow the aapcs calling convention on aarch64][rust#88399]
977 This was already not supported by LLVM; this change surfaces this lack of
978 support with a better error message.
979 - [Make `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` warn by default][rust#87385]
980 - [Warn when an escaped newline skips multiple lines.][rust#87671]
981 - [Calls to `libc::getpid` / `std::process::id` from `Command::pre_exec`
982 may return different values on glibc <= 2.24.][rust#81825]
983 Rust now invokes the `clone3` system call directly, when available, to use new functionality
984 available via that system call. Older versions of glibc cache the result of `getpid`, and only
985 update that cache when calling glibc's clone/fork functions, so a direct system call bypasses
986 that cache update. glibc 2.25 and newer no longer cache `getpid` for exactly this reason.
990 These changes provide no direct user facing benefits, but represent significant
991 improvements to the internals and overall performance of rustc
994 - [LLVM is compiled with PGO in published x86_64-unknown-linux-gnu artifacts.][rust#88069]
995 This improves the performance of most Rust builds.
996 - [Unify representation of macros in internal data structures.][rust#88019]
997 This change fixes a host of bugs with the handling of macros by the compiler,
1000 [`std::os::unix::fs::chroot`]: https://doc.rust-lang.org/stable/std/os/unix/fs/fn.chroot.html
1001 [`UnsafeCell::raw_get`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.raw_get
1002 [`BufWriter::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.BufWriter.html#method.into_parts
1003 [`core::panic::{UnwindSafe, RefUnwindSafe, AssertUnwindSafe}`]: https://github.com/rust-lang/rust/pull/84662
1004 [`Vec::shrink_to`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.shrink_to
1005 [`String::shrink_to`]: https://doc.rust-lang.org/stable/std/string/struct.String.html#method.shrink_to
1006 [`OsString::shrink_to`]: https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.shrink_to
1007 [`PathBuf::shrink_to`]: https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.shrink_to
1008 [`BinaryHeap::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/struct.BinaryHeap.html#method.shrink_to
1009 [`VecDeque::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.shrink_to
1010 [`HashMap::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/hash_map/struct.HashMap.html#method.shrink_to
1011 [`HashSet::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/hash_set/struct.HashSet.html#method.shrink_to
1012 [`std::mem::transmute`]: https://doc.rust-lang.org/stable/std/mem/fn.transmute.html
1013 [`slice::first`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.first
1014 [`slice::split_first`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.split_first
1015 [`slice::last`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.last
1016 [`slice::split_last`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.split_last
1017 [`rust-version`]: https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field
1018 [rust#87671]: https://github.com/rust-lang/rust/pull/87671
1019 [rust#86183]: https://github.com/rust-lang/rust/pull/86183
1020 [rust#87385]: https://github.com/rust-lang/rust/pull/87385
1021 [rust#88100]: https://github.com/rust-lang/rust/pull/88100
1022 [rust#85305]: https://github.com/rust-lang/rust/pull/85305
1023 [rust#88069]: https://github.com/rust-lang/rust/pull/88069
1024 [rust#87472]: https://github.com/rust-lang/rust/pull/87472
1025 [rust#87699]: https://github.com/rust-lang/rust/pull/87699
1026 [rust#87570]: https://github.com/rust-lang/rust/pull/87570
1027 [rust#88023]: https://github.com/rust-lang/rust/pull/88023
1028 [rust#87760]: https://github.com/rust-lang/rust/pull/87760
1029 [rust#87370]: https://github.com/rust-lang/rust/pull/87370
1030 [rust#87580]: https://github.com/rust-lang/rust/pull/87580
1031 [rust#83342]: https://github.com/rust-lang/rust/pull/83342
1032 [rust#83093]: https://github.com/rust-lang/rust/pull/83093
1033 [rust#85835]: https://github.com/rust-lang/rust/pull/85835
1034 [rust#86744]: https://github.com/rust-lang/rust/pull/86744
1035 [rust#81363]: https://github.com/rust-lang/rust/pull/81363
1036 [rust#84111]: https://github.com/rust-lang/rust/pull/84111
1037 [rust#85769]: https://github.com/rust-lang/rust/pull/85769#issuecomment-854363720
1038 [rust#88399]: https://github.com/rust-lang/rust/pull/88399
1039 [rust#81825]: https://github.com/rust-lang/rust/pull/81825#issuecomment-808406918
1040 [rust#88019]: https://github.com/rust-lang/rust/pull/88019
1041 [rust#87666]: https://github.com/rust-lang/rust/pull/87666
1043 Version 1.55.0 (2021-09-09)
1044 ============================
1048 - [You can now write open "from" range patterns (`X..`), which will start at `X` and
1049 will end at the maximum value of the integer.][83918]
1050 - [You can now explicitly import the prelude of different editions
1051 through `std::prelude` (e.g. `use std::prelude::rust_2021::*;`).][86294]
1055 - [Added tier 3\* support for `powerpc64le-unknown-freebsd`.][83572]
1057 \* Refer to Rust's [platform support page][platform-support-doc] for more
1058 information on Rust's tiered platform support.
1063 - [Updated std's float parsing to use the Eisel-Lemire algorithm.][86761]
1064 These improvements should in general provide faster string parsing of floats,
1065 no longer reject certain valid floating point values, and reduce
1066 the produced code size for non-stripped artifacts.
1067 - [`string::Drain` now implements `AsRef<str>` and `AsRef<[u8]>`.][86858]
1074 - [`IntoInnerError::into_error`]
1075 - [`IntoInnerError::into_parts`]
1076 - [`MaybeUninit::assume_init_mut`]
1077 - [`MaybeUninit::assume_init_ref`]
1078 - [`MaybeUninit::write`]
1080 - [`ops::ControlFlow`]
1082 - [`x86::_bittestandcomplement`]
1083 - [`x86::_bittestandreset`]
1084 - [`x86::_bittestandset`]
1085 - [`x86_64::_bittest64`]
1086 - [`x86_64::_bittestandcomplement64`]
1087 - [`x86_64::_bittestandreset64`]
1088 - [`x86_64::_bittestandset64`]
1090 The following previously stable functions are now `const`.
1092 - [`str::from_utf8_unchecked`]
1097 - [Cargo will now deduplicate compiler diagnostics to the terminal when invoking
1098 rustc in parallel such as when using `cargo test`.][cargo/9675]
1099 - [The package definition in `cargo metadata` now includes the `"default_run"`
1100 field from the manifest.][cargo/9550]
1101 - [Added `cargo d` as an alias for `cargo doc`.][cargo/9680]
1102 - [Added `{lib}` as formatting option for `cargo tree` to print the `"lib_name"`
1103 of packages.][cargo/9663]
1107 - [Added "Go to item on exact match" search option.][85876]
1108 - [The "Implementors" section on traits no longer shows redundant
1109 method definitions.][85970]
1110 - [Trait implementations are toggled open by default.][86260] This should make the
1111 implementations more searchable by tools like `CTRL+F` in your browser.
1112 - [Intra-doc links should now correctly resolve associated items (e.g. methods)
1113 through type aliases.][86334]
1114 - [Traits which are marked with `#[doc(hidden)]` will no longer appear in the
1115 "Trait Implementations" section.][86513]
1120 - [std functions that return an `io::Error` will no longer use the
1121 `ErrorKind::Other` variant.][85746] This is to better reflect that these
1122 kinds of errors could be categorised [into newer more specific `ErrorKind`
1123 variants][79965], and that they do not represent a user error.
1124 - [Using environment variable names with `process::Command` on Windows now
1125 behaves as expected.][85270] Previously using envionment variables with
1126 `Command` would cause them to be ASCII-uppercased.
1127 - [Rustdoc will now warn on using rustdoc lints that aren't prefixed
1128 with `rustdoc::`][86849]
1129 - `RUSTFLAGS` is no longer set for build scripts. Build scripts
1130 should use `CARGO_ENCODED_RUSTFLAGS` instead. See the
1131 [documentation](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts)
1134 [86849]: https://github.com/rust-lang/rust/pull/86849
1135 [86513]: https://github.com/rust-lang/rust/pull/86513
1136 [86334]: https://github.com/rust-lang/rust/pull/86334
1137 [86260]: https://github.com/rust-lang/rust/pull/86260
1138 [85970]: https://github.com/rust-lang/rust/pull/85970
1139 [85876]: https://github.com/rust-lang/rust/pull/85876
1140 [83572]: https://github.com/rust-lang/rust/pull/83572
1141 [86294]: https://github.com/rust-lang/rust/pull/86294
1142 [86858]: https://github.com/rust-lang/rust/pull/86858
1143 [86761]: https://github.com/rust-lang/rust/pull/86761
1144 [85746]: https://github.com/rust-lang/rust/pull/85746
1145 [85270]: https://github.com/rust-lang/rust/pull/85270
1146 [83918]: https://github.com/rust-lang/rust/pull/83918
1147 [79965]: https://github.com/rust-lang/rust/pull/79965
1148 [cargo/9663]: https://github.com/rust-lang/cargo/pull/9663
1149 [cargo/9675]: https://github.com/rust-lang/cargo/pull/9675
1150 [cargo/9550]: https://github.com/rust-lang/cargo/pull/9550
1151 [cargo/9680]: https://github.com/rust-lang/cargo/pull/9680
1152 [`array::map`]: https://doc.rust-lang.org/stable/std/primitive.array.html#method.map
1153 [`Bound::cloned`]: https://doc.rust-lang.org/stable/std/ops/enum.Bound.html#method.cloned
1154 [`Drain::as_str`]: https://doc.rust-lang.org/stable/std/string/struct.Drain.html#method.as_str
1155 [`IntoInnerError::into_error`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_error
1156 [`IntoInnerError::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_parts
1157 [`MaybeUninit::assume_init_mut`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_mut
1158 [`MaybeUninit::assume_init_ref`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
1159 [`MaybeUninit::write`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.write
1160 [`ops::ControlFlow`]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html
1161 [`str::from_utf8_unchecked`]: https://doc.rust-lang.org/stable/std/str/fn.from_utf8_unchecked.html
1162 [`x86::_bittest`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittest.html
1163 [`x86::_bittestandcomplement`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandcomplement.html
1164 [`x86::_bittestandreset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandreset.html
1165 [`x86::_bittestandset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandset.html
1166 [`x86_64::_bittest64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittest64.html
1167 [`x86_64::_bittestandcomplement64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandcomplement64.html
1168 [`x86_64::_bittestandreset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandreset64.html
1169 [`x86_64::_bittestandset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandset64.html
1172 Version 1.54.0 (2021-07-29)
1173 ============================
1176 -----------------------
1178 - [You can now use macros for values in some built-in attributes.][83366]
1179 This primarily allows you to call macros within the `#[doc]` attribute. For
1180 example, to include external documentation in your crate, you can now write
1183 #![doc = include_str!("README.md")]
1186 - [You can now cast between unsized slice types (and types which contain
1187 unsized slices) in `const fn`.][85078]
1188 - [You can now use multiple generic lifetimes with `impl Trait` where the
1189 lifetimes don't explicitly outlive another.][84701] In code this means
1190 that you can now have `impl Trait<'a, 'b>` where as before you could
1191 only have `impl Trait<'a, 'b> where 'b: 'a`.
1194 -----------------------
1196 - [Rustc will now search for custom JSON targets in
1197 `/lib/rustlib/<target-triple>/target.json` where `/` is the "sysroot"
1198 directory.][83800] You can find your sysroot directory by running
1199 `rustc --print sysroot`.
1200 - [Added `wasm` as a `target_family` for WebAssembly platforms.][84072]
1201 - [You can now use `#[target_feature]` on safe functions when targeting
1202 WebAssembly platforms.][84988]
1203 - [Improved debugger output for enums on Windows MSVC platforms.][85292]
1204 - [Added tier 3\* support for `bpfel-unknown-none`
1205 and `bpfeb-unknown-none`.][79608]
1206 - [`-Zmutable-noalias=yes`][82834] is enabled by default when using LLVM 12 or above.
1208 \* Refer to Rust's [platform support page][platform-support-doc] for more
1209 information on Rust's tiered platform support.
1212 -----------------------
1214 - [`panic::panic_any` will now `#[track_caller]`.][85745]
1215 - [Added `OutOfMemory` as a variant of `io::ErrorKind`.][84744]
1216 - [ `proc_macro::Literal` now implements `FromStr`.][84717]
1217 - [The implementations of vendor intrinsics in core::arch have been
1218 significantly refactored.][83278] The main user-visible changes are
1219 a 50% reduction in the size of libcore.rlib and stricter validation
1220 of constant operands passed to intrinsics. The latter is technically
1221 a breaking change, but allows Rust to more closely match the C vendor
1227 - [`BTreeMap::into_keys`]
1228 - [`BTreeMap::into_values`]
1229 - [`HashMap::into_keys`]
1230 - [`HashMap::into_values`]
1232 - [`VecDeque::binary_search`]
1233 - [`VecDeque::binary_search_by`]
1234 - [`VecDeque::binary_search_by_key`]
1235 - [`VecDeque::partition_point`]
1240 - [Added the `--prune <spec>` option to `cargo-tree` to remove a package from
1241 the dependency graph.][cargo/9520]
1242 - [Added the `--depth` option to `cargo-tree` to print only to a certain depth
1243 in the tree ][cargo/9499]
1244 - [Added the `no-proc-macro` value to `cargo-tree --edges` to hide procedural
1245 macro dependencies.][cargo/9488]
1246 - [A new environment variable named `CARGO_TARGET_TMPDIR` is available.][cargo/9375]
1247 This variable points to a directory that integration tests and benches
1248 can use as a "scratchpad" for testing filesystem operations.
1252 - [Mixing Option and Result via `?` is no longer permitted in closures for inferred types.][86831]
1253 - [Previously unsound code is no longer permitted where different constructors in branches
1254 could require different lifetimes.][85574]
1255 - As previously mentioned the [`std::arch` instrinsics now uses stricter const checking][83278]
1256 than before and may reject some previously accepted code.
1257 - [`i128` multiplication on Cortex M0+ platforms currently unconditionally causes overflow
1258 when compiled with `codegen-units = 1`.][86063]
1260 [85574]: https://github.com/rust-lang/rust/issues/85574
1261 [86831]: https://github.com/rust-lang/rust/issues/86831
1262 [86063]: https://github.com/rust-lang/rust/issues/86063
1263 [79608]: https://github.com/rust-lang/rust/pull/79608
1264 [84988]: https://github.com/rust-lang/rust/pull/84988
1265 [84701]: https://github.com/rust-lang/rust/pull/84701
1266 [84072]: https://github.com/rust-lang/rust/pull/84072
1267 [85745]: https://github.com/rust-lang/rust/pull/85745
1268 [84744]: https://github.com/rust-lang/rust/pull/84744
1269 [85078]: https://github.com/rust-lang/rust/pull/85078
1270 [84717]: https://github.com/rust-lang/rust/pull/84717
1271 [83800]: https://github.com/rust-lang/rust/pull/83800
1272 [83366]: https://github.com/rust-lang/rust/pull/83366
1273 [83278]: https://github.com/rust-lang/rust/pull/83278
1274 [85292]: https://github.com/rust-lang/rust/pull/85292
1275 [82834]: https://github.com/rust-lang/rust/pull/82834
1276 [cargo/9520]: https://github.com/rust-lang/cargo/pull/9520
1277 [cargo/9499]: https://github.com/rust-lang/cargo/pull/9499
1278 [cargo/9488]: https://github.com/rust-lang/cargo/pull/9488
1279 [cargo/9375]: https://github.com/rust-lang/cargo/pull/9375
1280 [`BTreeMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_keys
1281 [`BTreeMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_values
1282 [`HashMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_keys
1283 [`HashMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_values
1284 [`arch::wasm32`]: https://doc.rust-lang.org/core/arch/wasm32/index.html
1285 [`VecDeque::binary_search`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search
1286 [`VecDeque::binary_search_by`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by
1288 [`VecDeque::binary_search_by_key`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by_key
1290 [`VecDeque::partition_point`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.partition_point
1292 Version 1.53.0 (2021-06-17)
1293 ============================
1296 -----------------------
1297 - [You can now use unicode for identifiers.][83799] This allows multilingual
1298 identifiers but still doesn't allow glyphs that are not considered characters
1299 such as `◆` or `🦀`. More specifically you can now use any identifier that
1300 matches the UAX #31 "Unicode Identifier and Pattern Syntax" standard. This
1301 is the same standard as languages like Python, however Rust uses NFC
1302 normalization which may be different from other languages.
1303 - [You can now specify "or patterns" inside pattern matches.][79278]
1304 Previously you could only use `|` (OR) on complete patterns. E.g.
1308 matches!(x, Some(1) | Some(2));
1310 matches!(x, Some(1 | 2));
1312 - [Added the `:pat_param` `macro_rules!` matcher.][83386] This matcher
1313 has the same semantics as the `:pat` matcher. This is to allow `:pat`
1314 to change semantics to being a pattern fragment in a future edition.
1317 -----------------------
1318 - [Updated the minimum external LLVM version to LLVM 10.][83387]
1319 - [Added Tier 3\* support for the `wasm64-unknown-unknown` target.][80525]
1320 - [Improved debuginfo for closures and async functions on Windows MSVC.][83941]
1322 \* Refer to Rust's [platform support page][platform-support-doc] for more
1323 information on Rust's tiered platform support.
1326 -----------------------
1327 - [Abort messages will now forward to `android_set_abort_message` on
1328 Android platforms when available.][81469]
1329 - [`slice::IterMut<'_, T>` now implements `AsRef<[T]>`][82771]
1330 - [Arrays of any length now implement `IntoIterator`.][84147]
1331 Currently calling `.into_iter()` as a method on an array will
1332 return `impl Iterator<Item=&T>`, but this may change in a
1333 future edition to change `Item` to `T`. Calling `IntoIterator::into_iter`
1334 directly on arrays will provide `impl Iterator<Item=T>` as expected.
1335 - [`leading_zeros`, and `trailing_zeros` are now available on all
1336 `NonZero` integer types.][84082]
1337 - [`{f32, f64}::from_str` now parse and print special values
1338 (`NaN`, `-0`) according to IEEE 754.][78618]
1339 - [You can now index into slices using `(Bound<usize>, Bound<usize>)`.][77704]
1340 - [Add the `BITS` associated constant to all numeric types.][82565]
1344 - [`AtomicBool::fetch_update`]
1345 - [`AtomicPtr::fetch_update`]
1346 - [`BTreeMap::retain`]
1347 - [`BTreeSet::retain`]
1348 - [`BufReader::seek_relative`]
1349 - [`DebugStruct::non_exhaustive`]
1351 - [`Duration::ZERO`]
1352 - [`Duration::is_zero`]
1353 - [`Duration::saturating_add`]
1354 - [`Duration::saturating_mul`]
1355 - [`Duration::saturating_sub`]
1356 - [`ErrorKind::Unsupported`]
1357 - [`Option::insert`]
1358 - [`Ordering::is_eq`]
1359 - [`Ordering::is_ge`]
1360 - [`Ordering::is_gt`]
1361 - [`Ordering::is_le`]
1362 - [`Ordering::is_lt`]
1363 - [`Ordering::is_ne`]
1364 - [`OsStr::is_ascii`]
1365 - [`OsStr::make_ascii_lowercase`]
1366 - [`OsStr::make_ascii_uppercase`]
1367 - [`OsStr::to_ascii_lowercase`]
1368 - [`OsStr::to_ascii_uppercase`]
1369 - [`Peekable::peek_mut`]
1370 - [`Rc::decrement_strong_count`]
1371 - [`Rc::increment_strong_count`]
1372 - [`Vec::extend_from_within`]
1373 - [`array::from_mut`]
1374 - [`array::from_ref`]
1375 - [`cmp::max_by_key`]
1377 - [`cmp::min_by_key`]
1379 - [`f32::is_subnormal`]
1380 - [`f64::is_subnormal`]
1383 -----------------------
1384 - [Cargo now supports git repositories where the default `HEAD` branch is not
1385 "master".][cargo/9392] This also includes a switch to the version 3 `Cargo.lock` format
1386 which can handle default branches correctly.
1387 - [macOS targets now default to `unpacked` split-debuginfo.][cargo/9298]
1388 - [The `authors` field is no longer included in `Cargo.toml` for new
1389 projects.][cargo/9282]
1392 -----------------------
1393 - [Added the `rustdoc::bare_urls` lint that warns when you have URLs
1394 without hyperlinks.][81764]
1398 - [Implement token-based handling of attributes during expansion][82608]
1399 - [`Ipv4::from_str` will now reject octal format IP addresses in addition
1400 to rejecting hexadecimal IP addresses.][83652] The octal format can lead
1401 to confusion and potential security vulnerabilities and [is no
1402 longer recommended][ietf6943].
1403 - [The added `BITS` constant may conflict with external definitions.][85667]
1404 In particular, this was known to be a problem in the `lexical-core` crate,
1405 but they have published fixes for semantic versions 0.4 through 0.7. To
1406 update this dependency alone, use `cargo update -p lexical-core`.
1407 - Incremental compilation remains off by default, unless one uses the `RUSTC_FORCE_INCREMENTAL=1` environment variable added in 1.52.1.
1411 These changes provide no direct user facing benefits, but represent significant
1412 improvements to the internals and overall performance of rustc and
1415 - [Rework the `std::sys::windows::alloc` implementation.][83065]
1416 - [rustdoc: Don't enter an infer_ctxt in get_blanket_impls for impls that aren't blanket impls.][82864]
1417 - [rustdoc: Only look at blanket impls in `get_blanket_impls`][83681]
1418 - [Rework rustdoc const type][82873]
1420 [85667]: https://github.com/rust-lang/rust/pull/85667
1421 [83386]: https://github.com/rust-lang/rust/pull/83386
1422 [82771]: https://github.com/rust-lang/rust/pull/82771
1423 [84147]: https://github.com/rust-lang/rust/pull/84147
1424 [84082]: https://github.com/rust-lang/rust/pull/84082
1425 [83799]: https://github.com/rust-lang/rust/pull/83799
1426 [83681]: https://github.com/rust-lang/rust/pull/83681
1427 [83652]: https://github.com/rust-lang/rust/pull/83652
1428 [83387]: https://github.com/rust-lang/rust/pull/83387
1429 [82873]: https://github.com/rust-lang/rust/pull/82873
1430 [82864]: https://github.com/rust-lang/rust/pull/82864
1431 [82608]: https://github.com/rust-lang/rust/pull/82608
1432 [82565]: https://github.com/rust-lang/rust/pull/82565
1433 [80525]: https://github.com/rust-lang/rust/pull/80525
1434 [79278]: https://github.com/rust-lang/rust/pull/79278
1435 [78618]: https://github.com/rust-lang/rust/pull/78618
1436 [77704]: https://github.com/rust-lang/rust/pull/77704
1437 [83941]: https://github.com/rust-lang/rust/pull/83941
1438 [83065]: https://github.com/rust-lang/rust/pull/83065
1439 [81764]: https://github.com/rust-lang/rust/pull/81764
1440 [81469]: https://github.com/rust-lang/rust/pull/81469
1441 [cargo/9298]: https://github.com/rust-lang/cargo/pull/9298
1442 [cargo/9282]: https://github.com/rust-lang/cargo/pull/9282
1443 [cargo/9392]: https://github.com/rust-lang/cargo/pull/9392
1444 [`AtomicBool::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicBool.html#method.fetch_update
1445 [`AtomicPtr::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicPtr.html#method.fetch_update
1446 [`BTreeMap::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.retain
1447 [`BTreeSet::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeSet.html#method.retain
1448 [`BufReader::seek_relative`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.seek_relative
1449 [`DebugStruct::non_exhaustive`]: https://doc.rust-lang.org/std/fmt/struct.DebugStruct.html#method.finish_non_exhaustive
1450 [`Duration::MAX`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.MAX
1451 [`Duration::ZERO`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.ZERO
1452 [`Duration::is_zero`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.is_zero
1453 [`Duration::saturating_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_add
1454 [`Duration::saturating_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_mul
1455 [`Duration::saturating_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_sub
1456 [`ErrorKind::Unsupported`]: https://doc.rust-lang.org/std/io/enum.ErrorKind.html#variant.Unsupported
1457 [`Option::insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.insert
1458 [`Ordering::is_eq`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_eq
1459 [`Ordering::is_ge`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ge
1460 [`Ordering::is_gt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_gt
1461 [`Ordering::is_le`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_le
1462 [`Ordering::is_lt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_lt
1463 [`Ordering::is_ne`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ne
1464 [`OsStr::is_ascii`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.is_ascii
1465 [`OsStr::make_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_lowercase
1466 [`OsStr::make_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_uppercase
1467 [`OsStr::to_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_lowercase
1468 [`OsStr::to_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_uppercase
1469 [`Peekable::peek_mut`]: https://doc.rust-lang.org/std/iter/struct.Peekable.html#method.peek_mut
1470 [`Rc::decrement_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
1471 [`Rc::increment_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
1472 [`Vec::extend_from_within`]: https://doc.rust-lang.org/beta/std/vec/struct.Vec.html#method.extend_from_within
1473 [`array::from_mut`]: https://doc.rust-lang.org/beta/std/array/fn.from_mut.html
1474 [`array::from_ref`]: https://doc.rust-lang.org/beta/std/array/fn.from_ref.html
1475 [`cmp::max_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by_key.html
1476 [`cmp::max_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by.html
1477 [`cmp::min_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by_key.html
1478 [`cmp::min_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by.html
1479 [`f32::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
1480 [`f64::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
1481 [ietf6943]: https://datatracker.ietf.org/doc/html/rfc6943#section-3.1.1
1484 Version 1.52.1 (2021-05-10)
1485 ============================
1487 This release disables incremental compilation, unless the user has explicitly
1488 opted in via the newly added RUSTC_FORCE_INCREMENTAL=1 environment variable.
1490 This is due to the widespread, and frequently occurring, breakage encountered by
1491 Rust users due to newly enabled incremental verification in 1.52.0. Notably,
1492 Rust users **should** upgrade to 1.52.0 or 1.52.1: the bugs that are detected by
1493 newly added incremental verification are still present in past stable versions,
1494 and are not yet fixed on any channel. These bugs can lead to miscompilation of
1497 These problems only affect incremental builds, so release builds with Cargo
1498 should not be affected unless the user has explicitly opted into incremental.
1499 Debug and check builds are affected.
1501 See [84970] for more details.
1503 [84970]: https://github.com/rust-lang/rust/issues/84970
1505 Version 1.52.0 (2021-05-06)
1506 ============================
1510 - [Added the `unsafe_op_in_unsafe_fn` lint, which checks whether the unsafe code
1511 in an `unsafe fn` is wrapped in a `unsafe` block.][79208] This lint
1512 is allowed by default, and may become a warning or hard error in a
1514 - [You can now cast mutable references to arrays to a pointer of the same type as
1515 the element.][81479]
1519 - [Upgraded the default LLVM to LLVM 12.][81451]
1521 Added tier 3\* support for the following targets.
1523 - [`s390x-unknown-linux-musl`][82166]
1524 - [`riscv32gc-unknown-linux-musl` & `riscv64gc-unknown-linux-musl`][82202]
1525 - [`powerpc-unknown-openbsd`][82733]
1527 \* Refer to Rust's [platform support page][platform-support-doc] for more
1528 information on Rust's tiered platform support.
1532 - [`OsString` now implements `Extend` and `FromIterator`.][82121]
1533 - [`cmp::Reverse` now has `#[repr(transparent)]` representation.][81879]
1534 - [`Arc<impl Error>` now implements `error::Error`.][80553]
1535 - [All integer division and remainder operations are now `const`.][80962]
1539 - [`Arguments::as_str`]
1541 - [`char::REPLACEMENT_CHARACTER`]
1542 - [`char::UNICODE_VERSION`]
1543 - [`char::decode_utf16`]
1544 - [`char::from_digit`]
1545 - [`char::from_u32_unchecked`]
1546 - [`char::from_u32`]
1547 - [`slice::partition_point`]
1548 - [`str::rsplit_once`]
1549 - [`str::split_once`]
1551 The following previously stable APIs are now `const`.
1553 - [`char::len_utf8`]
1554 - [`char::len_utf16`]
1555 - [`char::to_ascii_uppercase`]
1556 - [`char::to_ascii_lowercase`]
1557 - [`char::eq_ignore_ascii_case`]
1558 - [`u8::to_ascii_uppercase`]
1559 - [`u8::to_ascii_lowercase`]
1560 - [`u8::eq_ignore_ascii_case`]
1564 - [Rustdoc lints are now treated as a tool lint, meaning that
1565 lints are now prefixed with `rustdoc::` (e.g. `#[warn(rustdoc::broken_intra_doc_links)]`).][80527]
1566 Using the old style is still allowed, and will become a warning in
1568 - [Rustdoc now supports argument files.][82261]
1569 - [Rustdoc now generates smart punctuation for documentation.][79423]
1570 - [You can now use "task lists" in Rustdoc Markdown.][81766] E.g.
1578 - [You can now pass multiple filters to tests.][81356] E.g.
1579 `cargo test -- foo bar` will run all tests that match `foo` and `bar`.
1580 - [Rustup now distributes PDB symbols for the `std` library on Windows,
1581 allowing you to see `std` symbols when debugging.][82218]
1585 These changes provide no direct user facing benefits, but represent significant
1586 improvements to the internals and overall performance of rustc and
1589 - [Check the result cache before the DepGraph when ensuring queries][81855]
1590 - [Try fast_reject::simplify_type in coherence before doing full check][81744]
1591 - [Only store a LocalDefId in some HIR nodes][81611]
1592 - [Store HIR attributes in a side table][79519]
1596 - [Cargo build scripts are now forbidden from setting `RUSTC_BOOTSTRAP`.][cargo/9181]
1597 - [Removed support for the `x86_64-rumprun-netbsd` target.][82594]
1598 - [Deprecated the `x86_64-sun-solaris` target in favor of `x86_64-pc-solaris`.][82216]
1599 - [Rustdoc now only accepts `,`, ` `, and `\t` as delimiters for specifying
1600 languages in code blocks.][78429]
1601 - [Rustc now catches more cases of `pub_use_of_private_extern_crate`][80763]
1602 - [Changes in how proc macros handle whitespace may lead to panics when used
1603 with older `proc-macro-hack` versions. A `cargo update` should be sufficient to fix this in all cases.][84136]
1604 - [Turn `#[derive]` into a regular macro attribute][79078]
1606 [84136]: https://github.com/rust-lang/rust/issues/84136
1607 [80763]: https://github.com/rust-lang/rust/pull/80763
1608 [82166]: https://github.com/rust-lang/rust/pull/82166
1609 [82121]: https://github.com/rust-lang/rust/pull/82121
1610 [81879]: https://github.com/rust-lang/rust/pull/81879
1611 [82261]: https://github.com/rust-lang/rust/pull/82261
1612 [82218]: https://github.com/rust-lang/rust/pull/82218
1613 [82216]: https://github.com/rust-lang/rust/pull/82216
1614 [82202]: https://github.com/rust-lang/rust/pull/82202
1615 [81855]: https://github.com/rust-lang/rust/pull/81855
1616 [81766]: https://github.com/rust-lang/rust/pull/81766
1617 [81744]: https://github.com/rust-lang/rust/pull/81744
1618 [81611]: https://github.com/rust-lang/rust/pull/81611
1619 [81479]: https://github.com/rust-lang/rust/pull/81479
1620 [81451]: https://github.com/rust-lang/rust/pull/81451
1621 [81356]: https://github.com/rust-lang/rust/pull/81356
1622 [80962]: https://github.com/rust-lang/rust/pull/80962
1623 [80553]: https://github.com/rust-lang/rust/pull/80553
1624 [80527]: https://github.com/rust-lang/rust/pull/80527
1625 [79519]: https://github.com/rust-lang/rust/pull/79519
1626 [79423]: https://github.com/rust-lang/rust/pull/79423
1627 [79208]: https://github.com/rust-lang/rust/pull/79208
1628 [78429]: https://github.com/rust-lang/rust/pull/78429
1629 [82733]: https://github.com/rust-lang/rust/pull/82733
1630 [82594]: https://github.com/rust-lang/rust/pull/82594
1631 [79078]: https://github.com/rust-lang/rust/pull/79078
1632 [cargo/9181]: https://github.com/rust-lang/cargo/pull/9181
1633 [`char::MAX`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.MAX
1634 [`char::REPLACEMENT_CHARACTER`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.REPLACEMENT_CHARACTER
1635 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.UNICODE_VERSION
1636 [`char::decode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.decode_utf16
1637 [`char::from_u32`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32
1638 [`char::from_u32_unchecked`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32_unchecked
1639 [`char::from_digit`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_digit
1640 [`Peekable::next_if`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if
1641 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if_eq
1642 [`Arguments::as_str`]: https://doc.rust-lang.org/stable/std/fmt/struct.Arguments.html#method.as_str
1643 [`str::split_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.split_once
1644 [`str::rsplit_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.rsplit_once
1645 [`slice::partition_point`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.partition_point
1646 [`char::len_utf8`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf8
1647 [`char::len_utf16`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf16
1648 [`char::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_uppercase
1649 [`char::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_lowercase
1650 [`char::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.eq_ignore_ascii_case
1651 [`u8::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_uppercase
1652 [`u8::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_lowercase
1653 [`u8::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.eq_ignore_ascii_case
1655 Version 1.51.0 (2021-03-25)
1656 ============================
1660 - [You can now parameterize items such as functions, traits, and `struct`s by constant
1661 values in addition to by types and lifetimes.][79135] Also known as "const generics"
1662 E.g. you can now write the following. Note: Only values of primitive integers,
1663 `bool`, or `char` types are currently permitted.
1665 struct GenericArray<T, const LENGTH: usize> {
1669 impl<T, const LENGTH: usize> GenericArray<T, LENGTH> {
1670 const fn last(&self) -> Option<&T> {
1674 Some(&self.inner[LENGTH - 1])
1684 - [Added the `-Csplit-debuginfo` codegen option for macOS platforms.][79570]
1685 This option controls whether debug information is split across multiple files
1686 or packed into a single file. **Note** This option is unstable on other platforms.
1687 - [Added tier 3\* support for `aarch64_be-unknown-linux-gnu`,
1688 `aarch64-unknown-linux-gnu_ilp32`, and `aarch64_be-unknown-linux-gnu_ilp32` targets.][81455]
1689 - [Added tier 3 support for `i386-unknown-linux-gnu` and `i486-unknown-linux-gnu` targets.][80662]
1690 - [The `target-cpu=native` option will now detect individual features of CPUs.][80749]
1692 \* Refer to Rust's [platform support page][platform-support-doc] for more
1693 information on Rust's tiered platform support.
1698 - [`Box::downcast` is now also implemented for any `dyn Any + Send + Sync` object.][80945]
1699 - [`str` now implements `AsMut<str>`.][80279]
1700 - [`u64` and `u128` now implement `From<char>`.][79502]
1701 - [`Error` is now implemented for `&T` where `T` implements `Error`.][75180]
1702 - [`Poll::{map_ok, map_err}` are now implemented for `Poll<Option<Result<T, E>>>`.][80968]
1703 - [`unsigned_abs` is now implemented for all signed integer types.][80959]
1704 - [`io::Empty` now implements `io::Seek`.][78044]
1705 - [`rc::Weak<T>` and `sync::Weak<T>`'s methods such as `as_ptr` are now implemented for
1706 `T: ?Sized` types.][80764]
1707 - [`Div` and `Rem` by their `NonZero` variant is now implemented for all unsigned integers.][79134]
1713 - [`Arc::decrement_strong_count`]
1714 - [`Arc::increment_strong_count`]
1715 - [`Once::call_once_force`]
1716 - [`Peekable::next_if_eq`]
1717 - [`Peekable::next_if`]
1718 - [`Seek::stream_position`]
1719 - [`array::IntoIter`]
1720 - [`panic::panic_any`]
1722 - [`ptr::addr_of_mut!`]
1723 - [`slice::fill_with`]
1724 - [`slice::split_inclusive_mut`]
1725 - [`slice::split_inclusive`]
1726 - [`slice::strip_prefix`]
1727 - [`slice::strip_suffix`]
1728 - [`str::split_inclusive`]
1729 - [`sync::OnceState`]
1731 - [`VecDeque::range`]
1732 - [`VecDeque::range_mut`]
1736 - [Added the `split-debuginfo` profile option to control the -Csplit-debuginfo
1737 codegen option.][cargo/9112]
1738 - [Added the `resolver` field to `Cargo.toml` to enable the new feature resolver
1739 and CLI option behavior.][cargo/8997] Version 2 of the feature resolver will try
1740 to avoid unifying features of dependencies where that unification could be unwanted.
1741 Such as using the same dependency with a `std` feature in a build scripts and
1742 proc-macros, while using the `no-std` feature in the final binary. See the
1743 [Cargo book documentation][feature-resolver@2.0] for more information on the feature.
1748 - [Rustdoc will now include documentation for methods available from _nested_ `Deref` traits.][80653]
1749 - [You can now provide a `--default-theme` flag which sets the default theme to use for
1750 documentation.][79642]
1752 Various improvements to intra-doc links:
1754 - [You can link to non-path primitives such as `slice`.][80181]
1755 - [You can link to associated items.][74489]
1756 - [You can now include generic parameters when linking to items, like `Vec<T>`.][76934]
1760 - [You can now pass `--include-ignored` to tests (e.g. with
1761 `cargo test -- --include-ignored`) to include testing tests marked `#[ignore]`.][80053]
1766 - [WASI platforms no longer use the `wasm-bindgen` ABI, and instead use the wasm32 ABI.][79998]
1767 - [`rustc` no longer promotes division, modulo and indexing operations to `const` that
1769 - [The minimum version of glibc for the following platforms has been bumped to version 2.31
1770 for the distributed artifacts.][81521]
1771 - `armv5te-unknown-linux-gnueabi`
1772 - `sparc64-unknown-linux-gnu`
1773 - `thumbv7neon-unknown-linux-gnueabihf`
1774 - `armv7-unknown-linux-gnueabi`
1775 - `x86_64-unknown-linux-gnux32`
1776 - [`atomic::spin_loop_hint` has been deprecated.][80966] It's recommended to use `hint::spin_loop` instead.
1781 - [Consistently avoid constructing optimized MIR when not doing codegen][80718]
1783 [79135]: https://github.com/rust-lang/rust/pull/79135
1784 [74489]: https://github.com/rust-lang/rust/pull/74489
1785 [76934]: https://github.com/rust-lang/rust/pull/76934
1786 [79570]: https://github.com/rust-lang/rust/pull/79570
1787 [80181]: https://github.com/rust-lang/rust/pull/80181
1788 [79642]: https://github.com/rust-lang/rust/pull/79642
1789 [80945]: https://github.com/rust-lang/rust/pull/80945
1790 [80279]: https://github.com/rust-lang/rust/pull/80279
1791 [80053]: https://github.com/rust-lang/rust/pull/80053
1792 [79502]: https://github.com/rust-lang/rust/pull/79502
1793 [75180]: https://github.com/rust-lang/rust/pull/75180
1794 [81521]: https://github.com/rust-lang/rust/pull/81521
1795 [80968]: https://github.com/rust-lang/rust/pull/80968
1796 [80959]: https://github.com/rust-lang/rust/pull/80959
1797 [80718]: https://github.com/rust-lang/rust/pull/80718
1798 [80653]: https://github.com/rust-lang/rust/pull/80653
1799 [80579]: https://github.com/rust-lang/rust/pull/80579
1800 [79998]: https://github.com/rust-lang/rust/pull/79998
1801 [78044]: https://github.com/rust-lang/rust/pull/78044
1802 [81455]: https://github.com/rust-lang/rust/pull/81455
1803 [80764]: https://github.com/rust-lang/rust/pull/80764
1804 [80749]: https://github.com/rust-lang/rust/pull/80749
1805 [80662]: https://github.com/rust-lang/rust/pull/80662
1806 [79134]: https://github.com/rust-lang/rust/pull/79134
1807 [80966]: https://github.com/rust-lang/rust/pull/80966
1808 [cargo/8997]: https://github.com/rust-lang/cargo/pull/8997
1809 [cargo/9112]: https://github.com/rust-lang/cargo/pull/9112
1810 [feature-resolver@2.0]: https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2
1811 [`Once::call_once_force`]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#method.call_once_force
1812 [`sync::OnceState`]: https://doc.rust-lang.org/stable/std/sync/struct.OnceState.html
1813 [`panic::panic_any`]: https://doc.rust-lang.org/stable/std/panic/fn.panic_any.html
1814 [`slice::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
1815 [`slice::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
1816 [`Arc::increment_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.increment_strong_count
1817 [`Arc::decrement_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.decrement_strong_count
1818 [`slice::fill_with`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.fill_with
1819 [`ptr::addr_of!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of.html
1820 [`ptr::addr_of_mut!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of_mut.html
1821 [`array::IntoIter`]: https://doc.rust-lang.org/nightly/std/array/struct.IntoIter.html
1822 [`slice::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive
1823 [`slice::split_inclusive_mut`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive_mut
1824 [`str::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_inclusive
1825 [`task::Wake`]: https://doc.rust-lang.org/nightly/std/task/trait.Wake.html
1826 [`Seek::stream_position`]: https://doc.rust-lang.org/nightly/std/io/trait.Seek.html#method.stream_position
1827 [`Peekable::next_if`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if
1828 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if_eq
1829 [`VecDeque::range`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range
1830 [`VecDeque::range_mut`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range_mut
1832 Version 1.50.0 (2021-02-11)
1833 ============================
1836 -----------------------
1837 - [You can now use `const` values for `x` in `[x; N]` array expressions.][79270]
1838 This has been technically possible since 1.38.0, as it was unintentionally stabilized.
1839 - [Assignments to `ManuallyDrop<T>` union fields are now considered safe.][78068]
1842 -----------------------
1843 - [Added tier 3\* support for the `armv5te-unknown-linux-uclibceabi` target.][78142]
1844 - [Added tier 3 support for the `aarch64-apple-ios-macabi` target.][77484]
1845 - [The `x86_64-unknown-freebsd` is now built with the full toolset.][79484]
1846 - [Dropped support for all cloudabi targets.][78439]
1848 \* Refer to Rust's [platform support page][platform-support-doc] for more
1849 information on Rust's tiered platform support.
1852 -----------------------
1854 - [`proc_macro::Punct` now implements `PartialEq<char>`.][78636]
1855 - [`ops::{Index, IndexMut}` are now implemented for fixed sized arrays of any length.][74989]
1856 - [On Unix platforms, the `std::fs::File` type now has a "niche" of `-1`.][74699]
1857 This value cannot be a valid file descriptor, and now means `Option<File>` takes
1858 up the same amount of space as `File`.
1864 - [`btree_map::Entry::or_insert_with_key`]
1867 - [`hash_map::Entry::or_insert_with_key`]
1871 - [`UnsafeCell::get_mut`]
1873 The following previously stable methods are now `const`.
1875 - [`IpAddr::is_ipv4`]
1876 - [`IpAddr::is_ipv6`]
1877 - [`IpAddr::is_unspecified`]
1878 - [`IpAddr::is_loopback`]
1879 - [`IpAddr::is_multicast`]
1880 - [`Ipv4Addr::octets`]
1881 - [`Ipv4Addr::is_loopback`]
1882 - [`Ipv4Addr::is_private`]
1883 - [`Ipv4Addr::is_link_local`]
1884 - [`Ipv4Addr::is_multicast`]
1885 - [`Ipv4Addr::is_broadcast`]
1886 - [`Ipv4Addr::is_documentation`]
1887 - [`Ipv4Addr::to_ipv6_compatible`]
1888 - [`Ipv4Addr::to_ipv6_mapped`]
1889 - [`Ipv6Addr::segments`]
1890 - [`Ipv6Addr::is_unspecified`]
1891 - [`Ipv6Addr::is_loopback`]
1892 - [`Ipv6Addr::is_multicast`]
1893 - [`Ipv6Addr::to_ipv4`]
1896 - [`Layout::from_size_align`]
1897 - `pow` for all integer types.
1898 - `checked_pow` for all integer types.
1899 - `saturating_pow` for all integer types.
1900 - `wrapping_pow` for all integer types.
1901 - `next_power_of_two` for all unsigned integer types.
1902 - `checked_next_power_of_two` for all unsigned integer types.
1905 -----------------------
1907 - [Added the `[build.rustc-workspace-wrapper]` option.][cargo/8976]
1908 This option sets a wrapper to execute instead of `rustc`, for workspace members only.
1909 - [`cargo:rerun-if-changed` will now, if provided a directory, scan the entire
1910 contents of that directory for changes.][cargo/8973]
1911 - [Added the `--workspace` flag to the `cargo update` command.][cargo/8725]
1916 - [The search results tab and the help button are focusable with keyboard in rustdoc.][79896]
1917 - [Running tests will now print the total time taken to execute.][75752]
1922 - [The `compare_and_swap` method on atomics has been deprecated.][79261] It's
1923 recommended to use the `compare_exchange` and `compare_exchange_weak` methods instead.
1924 - [Changes in how `TokenStream`s are checked have fixed some cases where you could write
1925 unhygenic `macro_rules!` macros.][79472]
1926 - [`#![test]` as an inner attribute is now considered unstable like other inner macro
1927 attributes, and reports an error by default through the `soft_unstable` lint.][79003]
1928 - [Overriding a `forbid` lint at the same level that it was set is now a hard error.][78864]
1929 - [You can no longer intercept `panic!` calls by supplying your own macro.][78343] It's
1930 recommended to use the `#[panic_handler]` attribute to provide your own implementation.
1931 - [Semi-colons after item statements (e.g. `struct Foo {};`) now produce a warning.][78296]
1933 [74989]: https://github.com/rust-lang/rust/pull/74989
1934 [79261]: https://github.com/rust-lang/rust/pull/79261
1935 [79896]: https://github.com/rust-lang/rust/pull/79896
1936 [79484]: https://github.com/rust-lang/rust/pull/79484
1937 [79472]: https://github.com/rust-lang/rust/pull/79472
1938 [79270]: https://github.com/rust-lang/rust/pull/79270
1939 [79003]: https://github.com/rust-lang/rust/pull/79003
1940 [78864]: https://github.com/rust-lang/rust/pull/78864
1941 [78636]: https://github.com/rust-lang/rust/pull/78636
1942 [78439]: https://github.com/rust-lang/rust/pull/78439
1943 [78343]: https://github.com/rust-lang/rust/pull/78343
1944 [78296]: https://github.com/rust-lang/rust/pull/78296
1945 [78068]: https://github.com/rust-lang/rust/pull/78068
1946 [75752]: https://github.com/rust-lang/rust/pull/75752
1947 [74699]: https://github.com/rust-lang/rust/pull/74699
1948 [78142]: https://github.com/rust-lang/rust/pull/78142
1949 [77484]: https://github.com/rust-lang/rust/pull/77484
1950 [cargo/8976]: https://github.com/rust-lang/cargo/pull/8976
1951 [cargo/8973]: https://github.com/rust-lang/cargo/pull/8973
1952 [cargo/8725]: https://github.com/rust-lang/cargo/pull/8725
1953 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv4
1954 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv6
1955 [`IpAddr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_unspecified
1956 [`IpAddr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_loopback
1957 [`IpAddr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_multicast
1958 [`Ipv4Addr::octets`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.octets
1959 [`Ipv4Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_loopback
1960 [`Ipv4Addr::is_private`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_private
1961 [`Ipv4Addr::is_link_local`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_link_local
1962 [`Ipv4Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_multicast
1963 [`Ipv4Addr::is_broadcast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_broadcast
1964 [`Ipv4Addr::is_documentation`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_documentation
1965 [`Ipv4Addr::to_ipv6_compatible`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_compatible
1966 [`Ipv4Addr::to_ipv6_mapped`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_mapped
1967 [`Ipv6Addr::segments`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.segments
1968 [`Ipv6Addr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_unspecified
1969 [`Ipv6Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_loopback
1970 [`Ipv6Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_multicast
1971 [`Ipv6Addr::to_ipv4`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.to_ipv4
1972 [`Layout::align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.align
1973 [`Layout::from_size_align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.from_size_align
1974 [`Layout::size`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.size
1975 [`Ord::clamp`]: https://doc.rust-lang.org/stable/std/cmp/trait.Ord.html#method.clamp
1976 [`RefCell::take`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.take
1977 [`UnsafeCell::get_mut`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.get_mut
1978 [`bool::then`]: https://doc.rust-lang.org/stable/std/primitive.bool.html#method.then
1979 [`btree_map::Entry::or_insert_with_key`]: https://doc.rust-lang.org/stable/std/collections/btree_map/enum.Entry.html#method.or_insert_with_key
1980 [`f32::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.clamp
1981 [`f64::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.clamp
1982 [`hash_map::Entry::or_insert_with_key`]: https://doc.rust-lang.org/stable/std/collections/hash_map/enum.Entry.html#method.or_insert_with_key
1983 [`slice::fill`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.fill
1986 Version 1.49.0 (2020-12-31)
1987 ============================
1990 -----------------------
1992 - [Unions can now implement `Drop`, and you can now have a field in a union
1993 with `ManuallyDrop<T>`.][77547]
1994 - [You can now cast uninhabited enums to integers.][76199]
1995 - [You can now bind by reference and by move in patterns.][76119] This
1996 allows you to selectively borrow individual components of a type. E.g.
2004 let person = Person {
2005 name: String::from("Alice"),
2009 // `name` is moved out of person, but `age` is referenced.
2010 let Person { name, ref age } = person;
2011 println!("{} {}", name, age);
2015 -----------------------
2017 - [Added tier 1\* support for `aarch64-unknown-linux-gnu`.][78228]
2018 - [Added tier 2 support for `aarch64-apple-darwin`.][75991]
2019 - [Added tier 2 support for `aarch64-pc-windows-msvc`.][75914]
2020 - [Added tier 3 support for `mipsel-unknown-none`.][78676]
2021 - [Raised the minimum supported LLVM version to LLVM 9.][78848]
2022 - [Output from threads spawned in tests is now captured.][78227]
2023 - [Change os and vendor values to "none" and "unknown" for some targets][78951]
2025 \* Refer to Rust's [platform support page][platform-support-doc] for more
2026 information on Rust's tiered platform support.
2029 -----------------------
2031 - [`RangeInclusive` now checks for exhaustion when calling `contains` and indexing.][78109]
2032 - [`ToString::to_string` now no longer shrinks the internal buffer in the default implementation.][77997]
2037 - [`slice::select_nth_unstable`]
2038 - [`slice::select_nth_unstable_by`]
2039 - [`slice::select_nth_unstable_by_key`]
2041 The following previously stable methods are now `const`.
2043 - [`Poll::is_ready`]
2044 - [`Poll::is_pending`]
2047 -----------------------
2048 - [Building a crate with `cargo-package` should now be independently reproducible.][cargo/8864]
2049 - [`cargo-tree` now marks proc-macro crates.][cargo/8765]
2050 - [Added `CARGO_PRIMARY_PACKAGE` build-time environment variable.][cargo/8758] This
2051 variable will be set if the crate being built is one the user selected to build, either
2052 with `-p` or through defaults.
2053 - [You can now use glob patterns when specifying packages & targets.][cargo/8752]
2059 - [Demoted `i686-unknown-freebsd` from host tier 2 to target tier 2 support.][78746]
2060 - [Macros that end with a semi-colon are now treated as statements even if they expand to nothing.][78376]
2061 - [Rustc will now check for the validity of some built-in attributes on enum variants.][77015]
2062 Previously such invalid or unused attributes could be ignored.
2063 - Leading whitespace is stripped more uniformly in documentation comments, which may change behavior. You
2064 read [this post about the changes][rustdoc-ws-post] for more details.
2065 - [Trait bounds are no longer inferred for associated types.][79904]
2069 These changes provide no direct user facing benefits, but represent significant
2070 improvements to the internals and overall performance of rustc and
2073 - [rustc's internal crates are now compiled using the `initial-exec` Thread
2074 Local Storage model.][78201]
2075 - [Calculate visibilities once in resolve.][78077]
2076 - [Added `system` to the `llvm-libunwind` bootstrap config option.][77703]
2077 - [Added `--color` for configuring terminal color support to bootstrap.][79004]
2080 [75991]: https://github.com/rust-lang/rust/pull/75991
2081 [78951]: https://github.com/rust-lang/rust/pull/78951
2082 [78848]: https://github.com/rust-lang/rust/pull/78848
2083 [78746]: https://github.com/rust-lang/rust/pull/78746
2084 [78376]: https://github.com/rust-lang/rust/pull/78376
2085 [78228]: https://github.com/rust-lang/rust/pull/78228
2086 [78227]: https://github.com/rust-lang/rust/pull/78227
2087 [78201]: https://github.com/rust-lang/rust/pull/78201
2088 [78109]: https://github.com/rust-lang/rust/pull/78109
2089 [78077]: https://github.com/rust-lang/rust/pull/78077
2090 [77997]: https://github.com/rust-lang/rust/pull/77997
2091 [77703]: https://github.com/rust-lang/rust/pull/77703
2092 [77547]: https://github.com/rust-lang/rust/pull/77547
2093 [77015]: https://github.com/rust-lang/rust/pull/77015
2094 [76199]: https://github.com/rust-lang/rust/pull/76199
2095 [76119]: https://github.com/rust-lang/rust/pull/76119
2096 [75914]: https://github.com/rust-lang/rust/pull/75914
2097 [79004]: https://github.com/rust-lang/rust/pull/79004
2098 [78676]: https://github.com/rust-lang/rust/pull/78676
2099 [79904]: https://github.com/rust-lang/rust/issues/79904
2100 [cargo/8864]: https://github.com/rust-lang/cargo/pull/8864
2101 [cargo/8765]: https://github.com/rust-lang/cargo/pull/8765
2102 [cargo/8758]: https://github.com/rust-lang/cargo/pull/8758
2103 [cargo/8752]: https://github.com/rust-lang/cargo/pull/8752
2104 [`slice::select_nth_unstable`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable
2105 [`slice::select_nth_unstable_by`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by
2106 [`slice::select_nth_unstable_by_key`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by_key
2107 [`Poll::is_ready`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_ready
2108 [`Poll::is_pending`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_pending
2109 [rustdoc-ws-post]: https://blog.guillaume-gomez.fr/articles/2020-11-11+New+doc+comment+handling+in+rustdoc
2111 Version 1.48.0 (2020-11-19)
2112 ==========================
2117 - [The `unsafe` keyword is now syntactically permitted on modules.][75857] This
2118 is still rejected *semantically*, but can now be parsed by procedural macros.
2122 - [Stabilised the `-C link-self-contained=<yes|no>` compiler flag.][76158] This tells
2123 `rustc` whether to link its own C runtime and libraries or to rely on a external
2124 linker to find them. (Supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.)
2125 - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386]
2126 Note: If you're using cargo you must explicitly pass the `--target` flag.
2127 - [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420]
2129 \* Refer to Rust's [platform support page][platform-support-doc] for more
2130 information on Rust's tiered platform support.
2134 - [`io::Write` is now implemented for `&ChildStdin` `&Sink`, `&Stdout`,
2135 and `&Stderr`.][76275]
2136 - [All arrays of any length now implement `TryFrom<Vec<T>>`.][76310]
2137 - [The `matches!` macro now supports having a trailing comma.][74880]
2138 - [`Vec<A>` now implements `PartialEq<[B]>` where `A: PartialEq<B>`.][74194]
2139 - [The `RefCell::{replace, replace_with, clone}` methods now all use `#[track_caller]`.][77055]
2143 - [`slice::as_ptr_range`]
2144 - [`slice::as_mut_ptr_range`]
2145 - [`VecDeque::make_contiguous`]
2146 - [`future::pending`]
2149 The following previously stable methods are now `const fn`'s:
2151 - [`Option::is_some`]
2152 - [`Option::is_none`]
2153 - [`Option::as_ref`]
2155 - [`Result::is_err`]
2156 - [`Result::as_ref`]
2157 - [`Ordering::reverse`]
2158 - [`Ordering::then`]
2165 - [You can now link to items in `rustdoc` using the intra-doc link
2166 syntax.][74430] E.g. ``/// Uses [`std::future`]`` will automatically generate
2167 a link to `std::future`'s documentation. See ["Linking to items by
2168 name"][intradoc-links] for more information.
2169 - [You can now specify `#[doc(alias = "<alias>")]` on items to add search aliases
2170 when searching through `rustdoc`'s UI.][75740]
2174 - [Promotion of references to `'static` lifetime inside `const fn` now follows the
2175 same rules as inside a `fn` body.][75502] In particular, `&foo()` will not be
2176 promoted to `'static` lifetime any more inside `const fn`s.
2177 - [Associated type bindings on trait objects are now verified to meet the bounds
2178 declared on the trait when checking that they implement the trait.][27675]
2179 - [When trait bounds on associated types or opaque types are ambiguous, the
2180 compiler no longer makes an arbitrary choice on which bound to use.][54121]
2181 - [Fixed recursive nonterminals not being expanded in macros during
2182 pretty-print/reparse check.][77153] This may cause errors if your macro wasn't
2183 correctly handling recursive nonterminal tokens.
2184 - [`&mut` references to non zero-sized types are no longer promoted.][75585]
2185 - [`rustc` will now warn if you use attributes like `#[link_name]` or `#[cold]`
2186 in places where they have no effect.][73461]
2187 - [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in
2188 `arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166]
2189 - [`mem::uninitialized` will now panic if any inner types inside a struct or enum
2190 disallow zero-initialization.][71274]
2191 - [`#[target_feature]` will now error if used in a place where it has no effect.][78143]
2192 - [Foreign exceptions are now caught by `catch_unwind` and will cause an abort.][70212]
2193 Note: This behaviour is not guaranteed and is still considered undefined behaviour,
2194 see the [`catch_unwind`] documentation for further information.
2200 These changes provide no direct user facing benefits, but represent significant
2201 improvements to the internals and overall performance of rustc and
2204 - [Building `rustc` from source now uses `ninja` by default over `make`.][74922]
2205 You can continue building with `make` by setting `ninja=false` in
2207 - [cg_llvm: `fewer_names` in `uncached_llvm_type`][76030]
2208 - [Made `ensure_sufficient_stack()` non-generic][76680]
2210 [78143]: https://github.com/rust-lang/rust/issues/78143
2211 [76680]: https://github.com/rust-lang/rust/pull/76680/
2212 [76030]: https://github.com/rust-lang/rust/pull/76030/
2213 [70212]: https://github.com/rust-lang/rust/pull/70212/
2214 [27675]: https://github.com/rust-lang/rust/issues/27675/
2215 [54121]: https://github.com/rust-lang/rust/issues/54121/
2216 [71274]: https://github.com/rust-lang/rust/pull/71274/
2217 [77386]: https://github.com/rust-lang/rust/pull/77386/
2218 [77153]: https://github.com/rust-lang/rust/pull/77153/
2219 [77055]: https://github.com/rust-lang/rust/pull/77055/
2220 [76275]: https://github.com/rust-lang/rust/pull/76275/
2221 [76310]: https://github.com/rust-lang/rust/pull/76310/
2222 [76420]: https://github.com/rust-lang/rust/pull/76420/
2223 [76158]: https://github.com/rust-lang/rust/pull/76158/
2224 [75857]: https://github.com/rust-lang/rust/pull/75857/
2225 [75585]: https://github.com/rust-lang/rust/pull/75585/
2226 [75740]: https://github.com/rust-lang/rust/pull/75740/
2227 [75502]: https://github.com/rust-lang/rust/pull/75502/
2228 [74880]: https://github.com/rust-lang/rust/pull/74880/
2229 [74922]: https://github.com/rust-lang/rust/pull/74922/
2230 [74430]: https://github.com/rust-lang/rust/pull/74430/
2231 [74194]: https://github.com/rust-lang/rust/pull/74194/
2232 [73461]: https://github.com/rust-lang/rust/pull/73461/
2233 [73166]: https://github.com/rust-lang/rust/pull/73166/
2234 [intradoc-links]: https://doc.rust-lang.org/rustdoc/linking-to-items-by-name.html
2235 [`catch_unwind`]: https://doc.rust-lang.org/std/panic/fn.catch_unwind.html
2236 [`Option::is_some`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some
2237 [`Option::is_none`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_none
2238 [`Option::as_ref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref
2239 [`Result::is_ok`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_ok
2240 [`Result::is_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_err
2241 [`Result::as_ref`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.as_ref
2242 [`Ordering::reverse`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.reverse
2243 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
2244 [`slice::as_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr_range
2245 [`slice::as_mut_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_mut_ptr_range
2246 [`VecDeque::make_contiguous`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.make_contiguous
2247 [`future::pending`]: https://doc.rust-lang.org/std/future/fn.pending.html
2248 [`future::ready`]: https://doc.rust-lang.org/std/future/fn.ready.html
2251 Version 1.47.0 (2020-10-08)
2252 ==========================
2256 - [Closures will now warn when not used.][74869]
2260 - [Stabilized the `-C control-flow-guard` codegen option][73893], which enables
2261 [Control Flow Guard][1.47.0-cfg] for Windows platforms, and is ignored on other
2263 - [Upgraded to LLVM 11.][73526]
2264 - [Added tier 3\* support for the `thumbv4t-none-eabi` target.][74419]
2265 - [Upgrade the FreeBSD toolchain to version 11.4][75204]
2266 - [`RUST_BACKTRACE`'s output is now more compact.][75048]
2268 \* Refer to Rust's [platform support page][platform-support-doc] for more
2269 information on Rust's tiered platform support.
2273 - [`CStr` now implements `Index<RangeFrom<usize>>`.][74021]
2274 - [Traits in `std`/`core` are now implemented for arrays of any length, not just
2275 those of length less than 33.][74060]
2276 - [`ops::RangeFull` and `ops::Range` now implement Default.][73197]
2277 - [`panic::Location` now implements `Copy`, `Clone`, `Eq`, `Hash`, `Ord`,
2278 `PartialEq`, and `PartialOrd`.][73583]
2282 - [`Ident::new_raw`]
2283 - [`Range::is_empty`]
2284 - [`RangeInclusive::is_empty`]
2285 - [`Result::as_deref`]
2286 - [`Result::as_deref_mut`]
2288 - [`pointer::offset_from`]
2292 The following previously stable APIs have now been made const.
2294 - [The `new` method for all `NonZero` integers.][73858]
2295 - [The `checked_add`,`checked_sub`,`checked_mul`,`checked_neg`, `checked_shl`,
2296 `checked_shr`, `saturating_add`, `saturating_sub`, and `saturating_mul`
2297 methods for all integers.][73858]
2298 - [The `checked_abs`, `saturating_abs`, `saturating_neg`, and `signum` for all
2299 signed integers.][73858]
2300 - [The `is_ascii_alphabetic`, `is_ascii_uppercase`, `is_ascii_lowercase`,
2301 `is_ascii_alphanumeric`, `is_ascii_digit`, `is_ascii_hexdigit`,
2302 `is_ascii_punctuation`, `is_ascii_graphic`, `is_ascii_whitespace`, and
2303 `is_ascii_control` methods for `char` and `u8`.][73858]
2307 - [`build-dependencies` are now built with opt-level 0 by default.][cargo/8500]
2308 You can override this by setting the following in your `Cargo.toml`.
2310 [profile.release.build-override]
2313 - [`cargo-help` will now display man pages for commands rather just the
2314 `--help` text.][cargo/8456]
2315 - [`cargo-metadata` now emits a `test` field indicating if a target has
2316 tests enabled.][cargo/8478]
2317 - [`workspace.default-members` now respects `workspace.exclude`.][cargo/8485]
2318 - [`cargo-publish` will now use an alternative registry by default if it's the
2319 only registry specified in `package.publish`.][cargo/8571]
2323 - [Added a help button beside Rustdoc's searchbar that explains rustdoc's
2324 type based search.][75366]
2325 - [Added the Ayu theme to rustdoc.][71237]
2329 - [Bumped the minimum supported Emscripten version to 1.39.20.][75716]
2330 - [Fixed a regression parsing `{} && false` in tail expressions.][74650]
2331 - [Added changes to how proc-macros are expanded in `macro_rules!` that should
2332 help to preserve more span information.][73084] These changes may cause
2333 compiliation errors if your macro was unhygenic or didn't correctly handle
2335 - [Moved support for the CloudABI target to tier 3.][75568]
2336 - [`linux-gnu` targets now require minimum kernel 2.6.32 and glibc 2.11.][74163]
2337 - [Added the `rustc-docs` component.][75560] This allows you to install
2338 and read the documentation for the compiler internal APIs. (Currently only
2339 available for `x86_64-unknown-linux-gnu`.)
2344 - [Improved default settings for bootstrapping in `x.py`.][73964] You can read details about this change in the ["Changes to `x.py` defaults"](https://blog.rust-lang.org/inside-rust/2020/08/30/changes-to-x-py-defaults.html) post on the Inside Rust blog.
2346 [1.47.0-cfg]: https://docs.microsoft.com/en-us/windows/win32/secbp/control-flow-guard
2347 [75048]: https://github.com/rust-lang/rust/pull/75048/
2348 [74163]: https://github.com/rust-lang/rust/pull/74163/
2349 [71237]: https://github.com/rust-lang/rust/pull/71237/
2350 [74869]: https://github.com/rust-lang/rust/pull/74869/
2351 [73858]: https://github.com/rust-lang/rust/pull/73858/
2352 [75716]: https://github.com/rust-lang/rust/pull/75716/
2353 [75560]: https://github.com/rust-lang/rust/pull/75560/
2354 [75568]: https://github.com/rust-lang/rust/pull/75568/
2355 [75366]: https://github.com/rust-lang/rust/pull/75366/
2356 [75204]: https://github.com/rust-lang/rust/pull/75204/
2357 [74650]: https://github.com/rust-lang/rust/pull/74650/
2358 [74419]: https://github.com/rust-lang/rust/pull/74419/
2359 [73964]: https://github.com/rust-lang/rust/pull/73964/
2360 [74021]: https://github.com/rust-lang/rust/pull/74021/
2361 [74060]: https://github.com/rust-lang/rust/pull/74060/
2362 [73893]: https://github.com/rust-lang/rust/pull/73893/
2363 [73526]: https://github.com/rust-lang/rust/pull/73526/
2364 [73583]: https://github.com/rust-lang/rust/pull/73583/
2365 [73084]: https://github.com/rust-lang/rust/pull/73084/
2366 [73197]: https://github.com/rust-lang/rust/pull/73197/
2367 [cargo/8456]: https://github.com/rust-lang/cargo/pull/8456/
2368 [cargo/8478]: https://github.com/rust-lang/cargo/pull/8478/
2369 [cargo/8485]: https://github.com/rust-lang/cargo/pull/8485/
2370 [cargo/8500]: https://github.com/rust-lang/cargo/pull/8500/
2371 [cargo/8571]: https://github.com/rust-lang/cargo/pull/8571/
2372 [`Ident::new_raw`]: https://doc.rust-lang.org/nightly/proc_macro/struct.Ident.html#method.new_raw
2373 [`Range::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.Range.html#method.is_empty
2374 [`RangeInclusive::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.RangeInclusive.html#method.is_empty
2375 [`Result::as_deref_mut`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref_mut
2376 [`Result::as_deref`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref
2377 [`Vec::leak`]: https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.leak
2378 [`f32::TAU`]: https://doc.rust-lang.org/nightly/std/f32/consts/constant.TAU.html
2379 [`f64::TAU`]: https://doc.rust-lang.org/nightly/std/f64/consts/constant.TAU.html
2380 [`pointer::offset_from`]: https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.offset_from
2383 Version 1.46.0 (2020-08-27)
2384 ==========================
2388 - [`if`, `match`, and `loop` expressions can now be used in const functions.][72437]
2389 - [Additionally you are now also able to coerce and cast to slices (`&[T]`) in
2390 const functions.][73862]
2391 - [The `#[track_caller]` attribute can now be added to functions to use the
2392 function's caller's location information for panic messages.][72445]
2393 - [Recursively indexing into tuples no longer needs parentheses.][71322] E.g.
2394 `x.0.0` over `(x.0).0`.
2395 - [`mem::transmute` can now be used in statics and constants.][72920] **Note**
2396 You currently can't use `mem::transmute` in constant functions.
2400 - [You can now use the `cdylib` target on Apple iOS and tvOS platforms.][73516]
2401 - [Enabled static "Position Independent Executables" by default
2402 for `x86_64-unknown-linux-musl`.][70740]
2406 - [`mem::forget` is now a `const fn`.][73887]
2407 - [`String` now implements `From<char>`.][73466]
2408 - [The `leading_ones`, and `trailing_ones` methods have been stabilised for all
2409 integer types.][73032]
2410 - [`vec::IntoIter<T>` now implements `AsRef<[T]>`.][72583]
2411 - [All non-zero integer types (`NonZeroU8`) now implement `TryFrom` for their
2412 zero-able equivalent (e.g. `TryFrom<u8>`).][72717]
2413 - [`&[T]` and `&mut [T]` now implement `PartialEq<Vec<T>>`.][71660]
2414 - [`(String, u16)` now implements `ToSocketAddrs`.][73007]
2415 - [`vec::Drain<'_, T>` now implements `AsRef<[T]>`.][72584]
2420 - [`vec::Drain::as_slice`]
2424 Added a number of new environment variables that are now available when
2425 compiling your crate.
2427 - [`CARGO_BIN_NAME` and `CARGO_CRATE_NAME`][cargo/8270] Providing the name of
2428 the specific binary being compiled and the name of the crate.
2429 - [`CARGO_PKG_LICENSE`][cargo/8325] The license from the manifest of the package.
2430 - [`CARGO_PKG_LICENSE_FILE`][cargo/8387] The path to the license file.
2434 - [The target configuration option `abi_blacklist` has been renamed
2435 to `unsupported_abis`.][74150] The old name will still continue to work.
2436 - [Rustc will now warn if you cast a C-like enum that implements `Drop`.][72331]
2437 This was previously accepted but will become a hard error in a future release.
2438 - [Rustc will fail to compile if you have a struct with
2439 `#[repr(i128)]` or `#[repr(u128)]`.][74109] This representation is currently only
2441 - [Tokens passed to `macro_rules!` are now always captured.][73293] This helps
2442 ensure that spans have the correct information, and may cause breakage if you
2443 were relying on receiving spans with dummy information.
2444 - [The InnoSetup installer for Windows is no longer available.][72569] This was
2445 a legacy installer that was replaced by a MSI installer a few years ago but
2446 was still being built.
2447 - [`{f32, f64}::asinh` now returns the correct values for negative numbers.][72486]
2448 - [Rustc will no longer accept overlapping trait implementations that only
2449 differ in how the lifetime was bound.][72493]
2450 - [Rustc now correctly relates the lifetime of an existential associated
2451 type.][71896] This fixes some edge cases where `rustc` would erroneously allow
2452 you to pass a shorter lifetime than expected.
2453 - [Rustc now dynamically links to `libz` (also called `zlib`) on Linux.][74420]
2454 The library will need to be installed for `rustc` to work, even though we
2455 expect it to be already available on most systems.
2456 - [Tests annotated with `#[should_panic]` are broken on ARMv7 while running
2458 - [Pretty printing of some tokens in procedural macros changed.][75453] The
2459 exact output returned by rustc's pretty printing is an unstable
2460 implementation detail: we recommend any macro relying on it to switch to a
2461 more robust parsing system.
2463 [75453]: https://github.com/rust-lang/rust/issues/75453/
2464 [74820]: https://github.com/rust-lang/rust/issues/74820/
2465 [74420]: https://github.com/rust-lang/rust/issues/74420/
2466 [74109]: https://github.com/rust-lang/rust/pull/74109/
2467 [74150]: https://github.com/rust-lang/rust/pull/74150/
2468 [73862]: https://github.com/rust-lang/rust/pull/73862/
2469 [73887]: https://github.com/rust-lang/rust/pull/73887/
2470 [73466]: https://github.com/rust-lang/rust/pull/73466/
2471 [73516]: https://github.com/rust-lang/rust/pull/73516/
2472 [73293]: https://github.com/rust-lang/rust/pull/73293/
2473 [73007]: https://github.com/rust-lang/rust/pull/73007/
2474 [73032]: https://github.com/rust-lang/rust/pull/73032/
2475 [72920]: https://github.com/rust-lang/rust/pull/72920/
2476 [72569]: https://github.com/rust-lang/rust/pull/72569/
2477 [72583]: https://github.com/rust-lang/rust/pull/72583/
2478 [72584]: https://github.com/rust-lang/rust/pull/72584/
2479 [72717]: https://github.com/rust-lang/rust/pull/72717/
2480 [72437]: https://github.com/rust-lang/rust/pull/72437/
2481 [72445]: https://github.com/rust-lang/rust/pull/72445/
2482 [72486]: https://github.com/rust-lang/rust/pull/72486/
2483 [72493]: https://github.com/rust-lang/rust/pull/72493/
2484 [72331]: https://github.com/rust-lang/rust/pull/72331/
2485 [71896]: https://github.com/rust-lang/rust/pull/71896/
2486 [71660]: https://github.com/rust-lang/rust/pull/71660/
2487 [71322]: https://github.com/rust-lang/rust/pull/71322/
2488 [70740]: https://github.com/rust-lang/rust/pull/70740/
2489 [cargo/8270]: https://github.com/rust-lang/cargo/pull/8270/
2490 [cargo/8325]: https://github.com/rust-lang/cargo/pull/8325/
2491 [cargo/8387]: https://github.com/rust-lang/cargo/pull/8387/
2492 [`Option::zip`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.zip
2493 [`vec::Drain::as_slice`]: https://doc.rust-lang.org/stable/std/vec/struct.Drain.html#method.as_slice
2496 Version 1.45.2 (2020-08-03)
2497 ==========================
2499 * [Fix bindings in tuple struct patterns][74954]
2500 * [Fix track_caller integration with trait objects][74784]
2502 [74954]: https://github.com/rust-lang/rust/issues/74954
2503 [74784]: https://github.com/rust-lang/rust/issues/74784
2506 Version 1.45.1 (2020-07-30)
2507 ==========================
2509 * [Fix const propagation with references.][73613]
2510 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
2511 * [Avoid spurious implicit region bound.][74509]
2512 * [Install clippy on x.py install][74457]
2514 [73613]: https://github.com/rust-lang/rust/pull/73613
2515 [73078]: https://github.com/rust-lang/rust/issues/73078
2516 [74509]: https://github.com/rust-lang/rust/pull/74509
2517 [74457]: https://github.com/rust-lang/rust/pull/74457
2520 Version 1.45.0 (2020-07-16)
2521 ==========================
2525 - [Out of range float to int conversions using `as` has been defined as a saturating
2526 conversion.][71269] This was previously undefined behaviour, but you can use the
2527 `{f64, f32}::to_int_unchecked` methods to continue using the current behaviour, which
2528 may be desirable in rare performance sensitive situations.
2529 - [`mem::Discriminant<T>` now uses `T`'s discriminant type instead of always
2530 using `u64`.][70705]
2531 - [Function like procedural macros can now be used in expression, pattern, and statement
2532 positions.][68717] This means you can now use a function-like procedural macro
2533 anywhere you can use a declarative (`macro_rules!`) macro.
2537 - [You can now override individual target features through the `target-feature`
2538 flag.][72094] E.g. `-C target-feature=+avx2 -C target-feature=+fma` is now
2539 equivalent to `-C target-feature=+avx2,+fma`.
2540 - [Added the `force-unwind-tables` flag.][69984] This option allows
2541 rustc to always generate unwind tables regardless of panic strategy.
2542 - [Added the `embed-bitcode` flag.][71716] This codegen flag allows rustc
2543 to include LLVM bitcode into generated `rlib`s (this is on by default).
2544 - [Added the `tiny` value to the `code-model` codegen flag.][72397]
2545 - [Added tier 3 support\* for the `mipsel-sony-psp` target.][72062]
2546 - [Added tier 3 support for the `thumbv7a-uwp-windows-msvc` target.][72133]
2547 - [Upgraded to LLVM 10.][67759]
2549 \* Refer to Rust's [platform support page][platform-support-doc] for more
2550 information on Rust's tiered platform support.
2555 - [`net::{SocketAddr, SocketAddrV4, SocketAddrV6}` now implements `PartialOrd`
2557 - [`proc_macro::TokenStream` now implements `Default`.][72234]
2558 - [You can now use `char` with
2559 `ops::{Range, RangeFrom, RangeFull, RangeInclusive, RangeTo}` to iterate over
2560 a range of codepoints.][72413] E.g.
2561 you can now write the following;
2563 for ch in 'a'..='z' {
2567 // Prints "abcdefghijklmnopqrstuvwxyz"
2569 - [`OsString` now implements `FromStr`.][71662]
2570 - [The `saturating_neg` method has been added to all signed integer primitive
2571 types, and the `saturating_abs` method has been added for all integer
2572 primitive types.][71886]
2573 - [`Arc<T>`, `Rc<T>` now implement `From<Cow<'_, T>>`, and `Box` now
2574 implements `From<Cow>` when `T` is `[T: Copy]`, `str`, `CStr`, `OsStr`,
2576 - [`Box<[T]>` now implements `From<[T; N]>`.][71095]
2577 - [`BitOr` and `BitOrAssign` are implemented for all `NonZero`
2578 integer types.][69813]
2579 - [The `fetch_min`, and `fetch_max` methods have been added to all atomic
2580 integer types.][72324]
2581 - [The `fetch_update` method has been added to all atomic integer types.][71843]
2586 - [`BTreeMap::remove_entry`]
2588 - [`rc::Weak::as_ptr`]
2589 - [`rc::Weak::from_raw`]
2590 - [`rc::Weak::into_raw`]
2591 - [`str::strip_prefix`]
2592 - [`str::strip_suffix`]
2593 - [`sync::Weak::as_ptr`]
2594 - [`sync::Weak::from_raw`]
2595 - [`sync::Weak::into_raw`]
2596 - [`char::UNICODE_VERSION`]
2597 - [`Span::resolved_at`]
2598 - [`Span::located_at`]
2599 - [`Span::mixed_site`]
2600 - [`unix::process::CommandExt::arg0`]
2605 - [Cargo uses the `embed-bitcode` flag to optimize disk usage and build
2610 - [Rustdoc now supports strikethrough text in Markdown.][71928] E.g.
2611 `~~outdated information~~` becomes "~~outdated information~~".
2612 - [Added an emoji to Rustdoc's deprecated API message.][72014]
2616 - [Trying to self initialize a static value (that is creating a value using
2617 itself) is unsound and now causes a compile error.][71140]
2618 - [`{f32, f64}::powi` now returns a slightly different value on Windows.][73420]
2619 This is due to changes in LLVM's intrinsics which `{f32, f64}::powi` uses.
2620 - [Rustdoc's CLI's extra error exit codes have been removed.][71900] These were
2621 previously undocumented and not intended for public use. Rustdoc still provides
2622 a non-zero exit code on errors.
2623 - [Rustc's `lto` flag is incompatible with the new `embed-bitcode=no`.][71848]
2624 This may cause issues if LTO is enabled through `RUSTFLAGS` or `cargo rustc`
2625 flags while cargo is adding `embed-bitcode` itself. The recommended way to
2626 control LTO is with Cargo profiles, either in `Cargo.toml` or `.cargo/config`,
2627 or by setting `CARGO_PROFILE_<name>_LTO` in the environment.
2631 - [Make clippy a git subtree instead of a git submodule][70655]
2632 - [Unify the undo log of all snapshot types][69464]
2634 [71848]: https://github.com/rust-lang/rust/issues/71848/
2635 [73420]: https://github.com/rust-lang/rust/issues/73420/
2636 [72324]: https://github.com/rust-lang/rust/pull/72324/
2637 [71843]: https://github.com/rust-lang/rust/pull/71843/
2638 [71886]: https://github.com/rust-lang/rust/pull/71886/
2639 [72234]: https://github.com/rust-lang/rust/pull/72234/
2640 [72239]: https://github.com/rust-lang/rust/pull/72239/
2641 [72397]: https://github.com/rust-lang/rust/pull/72397/
2642 [72413]: https://github.com/rust-lang/rust/pull/72413/
2643 [72014]: https://github.com/rust-lang/rust/pull/72014/
2644 [72062]: https://github.com/rust-lang/rust/pull/72062/
2645 [72094]: https://github.com/rust-lang/rust/pull/72094/
2646 [72133]: https://github.com/rust-lang/rust/pull/72133/
2647 [67759]: https://github.com/rust-lang/rust/pull/67759/
2648 [71900]: https://github.com/rust-lang/rust/pull/71900/
2649 [71928]: https://github.com/rust-lang/rust/pull/71928/
2650 [71662]: https://github.com/rust-lang/rust/pull/71662/
2651 [71716]: https://github.com/rust-lang/rust/pull/71716/
2652 [71447]: https://github.com/rust-lang/rust/pull/71447/
2653 [71269]: https://github.com/rust-lang/rust/pull/71269/
2654 [71095]: https://github.com/rust-lang/rust/pull/71095/
2655 [71140]: https://github.com/rust-lang/rust/pull/71140/
2656 [70655]: https://github.com/rust-lang/rust/pull/70655/
2657 [70705]: https://github.com/rust-lang/rust/pull/70705/
2658 [69984]: https://github.com/rust-lang/rust/pull/69984/
2659 [69813]: https://github.com/rust-lang/rust/pull/69813/
2660 [69464]: https://github.com/rust-lang/rust/pull/69464/
2661 [68717]: https://github.com/rust-lang/rust/pull/68717/
2662 [cargo/8066]: https://github.com/rust-lang/cargo/pull/8066
2663 [`Arc::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.as_ptr
2664 [`BTreeMap::remove_entry`]: https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html#method.remove_entry
2665 [`Rc::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.as_ptr
2666 [`rc::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.as_ptr
2667 [`rc::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.from_raw
2668 [`rc::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.into_raw
2669 [`sync::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.as_ptr
2670 [`sync::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.from_raw
2671 [`sync::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.into_raw
2672 [`str::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_prefix
2673 [`str::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_suffix
2674 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/stable/std/char/constant.UNICODE_VERSION.html
2675 [`Span::resolved_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.resolved_at
2676 [`Span::located_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.located_at
2677 [`Span::mixed_site`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.mixed_site
2678 [`unix::process::CommandExt::arg0`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.arg0
2681 Version 1.44.1 (2020-06-18)
2682 ===========================
2684 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
2685 * [Don't hash executable filenames on apple platforms, fixing backtraces.][cargo/8329]
2686 * [Fix crashes when finding backtrace on macOS.][71397]
2687 * [Clippy applies lint levels into different files.][clippy/5356]
2689 [71397]: https://github.com/rust-lang/rust/issues/71397
2690 [73078]: https://github.com/rust-lang/rust/issues/73078
2691 [cargo/8329]: https://github.com/rust-lang/cargo/pull/8329
2692 [clippy/5356]: https://github.com/rust-lang/rust-clippy/issues/5356
2695 Version 1.44.0 (2020-06-04)
2696 ==========================
2700 - [You can now use `async/.await` with `#[no_std]` enabled.][69033]
2701 - [Added the `unused_braces` lint.][70081]
2703 **Syntax-only changes**
2705 - [Expansion-driven outline module parsing][69838]
2710 mod baz; // `foo/bar/baz.rs` doesn't exist, but no error!
2715 These are still rejected semantically, so you will likely receive an error but
2716 these changes can be seen and parsed by macros and conditional compilation.
2720 - [Rustc now respects the `-C codegen-units` flag in incremental mode.][70156]
2721 Additionally when in incremental mode rustc defaults to 256 codegen units.
2722 - [Refactored `catch_unwind` to have zero-cost, unless unwinding is enabled and
2723 a panic is thrown.][67502]
2724 - [Added tier 3\* support for the `aarch64-unknown-none` and
2725 `aarch64-unknown-none-softfloat` targets.][68334]
2726 - [Added tier 3 support for `arm64-apple-tvos` and
2727 `x86_64-apple-tvos` targets.][68191]
2732 - [Special cased `vec![]` to map directly to `Vec::new()`.][70632] This allows
2733 `vec![]` to be able to be used in `const` contexts.
2734 - [`convert::Infallible` now implements `Hash`.][70281]
2735 - [`OsString` now implements `DerefMut` and `IndexMut` returning
2736 a `&mut OsStr`.][70048]
2737 - [Unicode 13 is now supported.][69929]
2738 - [`String` now implements `From<&mut str>`.][69661]
2739 - [`IoSlice` now implements `Copy`.][69403]
2740 - [`Vec<T>` now implements `From<[T; N]>`.][68692] Where `N` is at most 32.
2741 - [`proc_macro::LexError` now implements `fmt::Display` and `Error`.][68899]
2742 - [`from_le_bytes`, `to_le_bytes`, `from_be_bytes`, `to_be_bytes`,
2743 `from_ne_bytes`, and `to_ne_bytes` methods are now `const` for all
2744 integer types.][69373]
2748 - [`PathBuf::with_capacity`]
2749 - [`PathBuf::capacity`]
2750 - [`PathBuf::clear`]
2751 - [`PathBuf::reserve`]
2752 - [`PathBuf::reserve_exact`]
2753 - [`PathBuf::shrink_to_fit`]
2754 - [`f32::to_int_unchecked`]
2755 - [`f64::to_int_unchecked`]
2756 - [`Layout::align_to`]
2757 - [`Layout::pad_to_align`]
2759 - [`Layout::extend`]
2763 - [Added the `cargo tree` command which will print a tree graph of
2764 your dependencies.][cargo/8062] E.g.
2766 mdbook v0.3.2 (/Users/src/rust/mdbook)
2768 │ ├── html5ever v0.24.0
2770 │ │ │ └── cfg-if v0.1.9
2772 │ │ └── markup5ever v0.9.0
2773 │ │ ├── log v0.4.8 (*)
2775 │ │ │ └── phf_shared v0.7.24
2776 │ │ │ ├── siphasher v0.2.3
2777 │ │ │ └── unicase v1.4.2
2778 │ │ │ [build-dependencies]
2779 │ │ │ └── version_check v0.1.5
2782 You can also display dependencies on multiple versions of the same crate with
2783 `cargo tree -d` (short for `cargo tree --duplicates`).
2787 - [Rustdoc now allows you to specify `--crate-version` to have rustdoc include
2788 the version in the sidebar.][69494]
2792 - [Rustc now correctly generates static libraries on Windows GNU targets with
2793 the `.a` extension, rather than the previous `.lib`.][70937]
2794 - [Removed the `-C no_integrated_as` flag from rustc.][70345]
2795 - [The `file_name` property in JSON output of macro errors now points the actual
2796 source file rather than the previous format of `<NAME macros>`.][70969]
2797 **Note:** this may not point to a file that actually exists on the user's system.
2798 - [The minimum required external LLVM version has been bumped to LLVM 8.][71147]
2799 - [`mem::{zeroed, uninitialised}` will now panic when used with types that do
2800 not allow zero initialization such as `NonZeroU8`.][66059] This was
2801 previously a warning.
2802 - [In 1.45.0 (the next release) converting a `f64` to `u32` using the `as`
2803 operator has been defined as a saturating operation.][71269] This was previously
2804 undefined behaviour, but you can use the `{f64, f32}::to_int_unchecked` methods to
2805 continue using the current behaviour, which may be desirable in rare performance
2806 sensitive situations.
2810 These changes provide no direct user facing benefits, but represent significant
2811 improvements to the internals and overall performance of rustc and
2814 - [dep_graph Avoid allocating a set on when the number reads are small.][69778]
2815 - [Replace big JS dict with JSON parsing.][71250]
2817 [69373]: https://github.com/rust-lang/rust/pull/69373/
2818 [66059]: https://github.com/rust-lang/rust/pull/66059/
2819 [68191]: https://github.com/rust-lang/rust/pull/68191/
2820 [68899]: https://github.com/rust-lang/rust/pull/68899/
2821 [71147]: https://github.com/rust-lang/rust/pull/71147/
2822 [71250]: https://github.com/rust-lang/rust/pull/71250/
2823 [70937]: https://github.com/rust-lang/rust/pull/70937/
2824 [70969]: https://github.com/rust-lang/rust/pull/70969/
2825 [70632]: https://github.com/rust-lang/rust/pull/70632/
2826 [70281]: https://github.com/rust-lang/rust/pull/70281/
2827 [70345]: https://github.com/rust-lang/rust/pull/70345/
2828 [70048]: https://github.com/rust-lang/rust/pull/70048/
2829 [70081]: https://github.com/rust-lang/rust/pull/70081/
2830 [70156]: https://github.com/rust-lang/rust/pull/70156/
2831 [71269]: https://github.com/rust-lang/rust/pull/71269/
2832 [69838]: https://github.com/rust-lang/rust/pull/69838/
2833 [69929]: https://github.com/rust-lang/rust/pull/69929/
2834 [69661]: https://github.com/rust-lang/rust/pull/69661/
2835 [69778]: https://github.com/rust-lang/rust/pull/69778/
2836 [69494]: https://github.com/rust-lang/rust/pull/69494/
2837 [69403]: https://github.com/rust-lang/rust/pull/69403/
2838 [69033]: https://github.com/rust-lang/rust/pull/69033/
2839 [68692]: https://github.com/rust-lang/rust/pull/68692/
2840 [68334]: https://github.com/rust-lang/rust/pull/68334/
2841 [67502]: https://github.com/rust-lang/rust/pull/67502/
2842 [cargo/8062]: https://github.com/rust-lang/cargo/pull/8062/
2843 [`PathBuf::with_capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.with_capacity
2844 [`PathBuf::capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.capacity
2845 [`PathBuf::clear`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.clear
2846 [`PathBuf::reserve`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve
2847 [`PathBuf::reserve_exact`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve_exact
2848 [`PathBuf::shrink_to_fit`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.shrink_to_fit
2849 [`f32::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_int_unchecked
2850 [`f64::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_int_unchecked
2851 [`Layout::align_to`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.align_to
2852 [`Layout::pad_to_align`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.pad_to_align
2853 [`Layout::array`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.array
2854 [`Layout::extend`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.extend
2857 Version 1.43.1 (2020-05-07)
2858 ===========================
2860 * [Updated openssl-src to 1.1.1g for CVE-2020-1967.][71430]
2861 * [Fixed the stabilization of AVX-512 features.][71473]
2862 * [Fixed `cargo package --list` not working with unpublished dependencies.][cargo/8151]
2864 [71430]: https://github.com/rust-lang/rust/pull/71430
2865 [71473]: https://github.com/rust-lang/rust/issues/71473
2866 [cargo/8151]: https://github.com/rust-lang/cargo/issues/8151
2869 Version 1.43.0 (2020-04-23)
2870 ==========================
2874 - [Fixed using binary operations with `&{number}` (e.g. `&1.0`) not having
2875 the type inferred correctly.][68129]
2876 - [Attributes such as `#[cfg()]` can now be used on `if` expressions.][69201]
2878 **Syntax only changes**
2879 - [Allow `type Foo: Ord` syntactically.][69361]
2880 - [Fuse associated and extern items up to defaultness.][69194]
2881 - [Syntactically allow `self` in all `fn` contexts.][68764]
2882 - [Merge `fn` syntax + cleanup item parsing.][68728]
2883 - [`item` macro fragments can be interpolated into `trait`s, `impl`s, and `extern` blocks.][69366]
2884 For example, you may now write:
2886 macro_rules! mac_trait {
2896 These are still rejected *semantically*, so you will likely receive an error but
2897 these changes can be seen and parsed by macros and
2898 conditional compilation.
2903 - [You can now pass multiple lint flags to rustc to override the previous
2904 flags.][67885] For example; `rustc -D unused -A unused-variables` denies
2905 everything in the `unused` lint group except `unused-variables` which
2906 is explicitly allowed. However, passing `rustc -A unused-variables -D unused` denies
2907 everything in the `unused` lint group **including** `unused-variables` since
2908 the allow flag is specified before the deny flag (and therefore overridden).
2909 - [rustc will now prefer your system MinGW libraries over its bundled libraries
2910 if they are available on `windows-gnu`.][67429]
2911 - [rustc now buffers errors/warnings printed in JSON.][69227]
2915 - [`Arc<[T; N]>`, `Box<[T; N]>`, and `Rc<[T; N]>`, now implement
2916 `TryFrom<Arc<[T]>>`,`TryFrom<Box<[T]>>`, and `TryFrom<Rc<[T]>>`
2917 respectively.][69538] **Note** These conversions are only available when `N`
2919 - [You can now use associated constants on floats and integers directly, rather
2920 than having to import the module.][68952] e.g. You can now write `u32::MAX` or
2921 `f32::NAN` with no imports.
2922 - [`u8::is_ascii` is now `const`.][68984]
2923 - [`String` now implements `AsMut<str>`.][68742]
2924 - [Added the `primitive` module to `std` and `core`.][67637] This module
2925 reexports Rust's primitive types. This is mainly useful in macros
2926 where you want avoid these types being shadowed.
2927 - [Relaxed some of the trait bounds on `HashMap` and `HashSet`.][67642]
2928 - [`string::FromUtf8Error` now implements `Clone + Eq`.][68738]
2932 - [`Once::is_completed`]
2937 - [`iter::once_with`]
2941 - [You can now set config `[profile]`s in your `.cargo/config`, or through
2942 your environment.][cargo/7823]
2943 - [Cargo will now set `CARGO_BIN_EXE_<name>` pointing to a binary's
2944 executable path when running integration tests or benchmarks.][cargo/7697]
2945 `<name>` is the name of your binary as-is e.g. If you wanted the executable
2946 path for a binary named `my-program`you would use `env!("CARGO_BIN_EXE_my-program")`.
2950 - [Certain checks in the `const_err` lint were deemed unrelated to const
2951 evaluation][69185], and have been moved to the `unconditional_panic` and
2952 `arithmetic_overflow` lints.
2957 - [Having trailing syntax in the `assert!` macro is now a hard error.][69548] This
2958 has been a warning since 1.36.0.
2959 - [Fixed `Self` not having the correctly inferred type.][69340] This incorrectly
2960 led to some instances being accepted, and now correctly emits a hard error.
2962 [69340]: https://github.com/rust-lang/rust/pull/69340
2966 These changes provide no direct user facing benefits, but represent significant
2967 improvements to the internals and overall performance of `rustc` and
2970 - [All components are now built with `opt-level=3` instead of `2`.][67878]
2971 - [Improved how rustc generates drop code.][67332]
2972 - [Improved performance from `#[inline]`-ing certain hot functions.][69256]
2973 - [traits: preallocate 2 Vecs of known initial size][69022]
2974 - [Avoid exponential behaviour when relating types][68772]
2975 - [Skip `Drop` terminators for enum variants without drop glue][68943]
2976 - [Improve performance of coherence checks][68966]
2977 - [Deduplicate types in the generator witness][68672]
2978 - [Invert control in struct_lint_level.][68725]
2980 [67332]: https://github.com/rust-lang/rust/pull/67332/
2981 [67429]: https://github.com/rust-lang/rust/pull/67429/
2982 [67637]: https://github.com/rust-lang/rust/pull/67637/
2983 [67642]: https://github.com/rust-lang/rust/pull/67642/
2984 [67878]: https://github.com/rust-lang/rust/pull/67878/
2985 [67885]: https://github.com/rust-lang/rust/pull/67885/
2986 [68129]: https://github.com/rust-lang/rust/pull/68129/
2987 [68672]: https://github.com/rust-lang/rust/pull/68672/
2988 [68725]: https://github.com/rust-lang/rust/pull/68725/
2989 [68728]: https://github.com/rust-lang/rust/pull/68728/
2990 [68738]: https://github.com/rust-lang/rust/pull/68738/
2991 [68742]: https://github.com/rust-lang/rust/pull/68742/
2992 [68764]: https://github.com/rust-lang/rust/pull/68764/
2993 [68772]: https://github.com/rust-lang/rust/pull/68772/
2994 [68943]: https://github.com/rust-lang/rust/pull/68943/
2995 [68952]: https://github.com/rust-lang/rust/pull/68952/
2996 [68966]: https://github.com/rust-lang/rust/pull/68966/
2997 [68984]: https://github.com/rust-lang/rust/pull/68984/
2998 [69022]: https://github.com/rust-lang/rust/pull/69022/
2999 [69185]: https://github.com/rust-lang/rust/pull/69185/
3000 [69194]: https://github.com/rust-lang/rust/pull/69194/
3001 [69201]: https://github.com/rust-lang/rust/pull/69201/
3002 [69227]: https://github.com/rust-lang/rust/pull/69227/
3003 [69548]: https://github.com/rust-lang/rust/pull/69548/
3004 [69256]: https://github.com/rust-lang/rust/pull/69256/
3005 [69361]: https://github.com/rust-lang/rust/pull/69361/
3006 [69366]: https://github.com/rust-lang/rust/pull/69366/
3007 [69538]: https://github.com/rust-lang/rust/pull/69538/
3008 [cargo/7823]: https://github.com/rust-lang/cargo/pull/7823
3009 [cargo/7697]: https://github.com/rust-lang/cargo/pull/7697
3010 [`Once::is_completed`]: https://doc.rust-lang.org/std/sync/struct.Once.html#method.is_completed
3011 [`f32::LOG10_2`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG10_2.html
3012 [`f32::LOG2_10`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG2_10.html
3013 [`f64::LOG10_2`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG10_2.html
3014 [`f64::LOG2_10`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG2_10.html
3015 [`iter::once_with`]: https://doc.rust-lang.org/std/iter/fn.once_with.html
3018 Version 1.42.0 (2020-03-12)
3019 ==========================
3023 - [You can now use the slice pattern syntax with subslices.][67712] e.g.
3025 fn foo(words: &[&str]) {
3027 ["Hello", "World", "!", ..] => println!("Hello World!"),
3028 ["Foo", "Bar", ..] => println!("Baz"),
3029 rest => println!("{:?}", rest),
3033 - [You can now use `#[repr(transparent)]` on univariant `enum`s.][68122] Meaning
3034 that you can create an enum that has the exact layout and ABI of the type
3036 - [You can now use outer attribute procedural macros on inline modules.][64273]
3037 - [There are some *syntax-only* changes:][67131]
3038 - `default` is syntactically allowed before items in `trait` definitions.
3039 - Items in `impl`s (i.e. `const`s, `type`s, and `fn`s) may syntactically
3040 leave out their bodies in favor of `;`.
3041 - Bounds on associated types in `impl`s are now syntactically allowed
3042 (e.g. `type Foo: Ord;`).
3043 - `...` (the C-variadic type) may occur syntactically directly as the type of
3044 any function parameter.
3046 These are still rejected *semantically*, so you will likely receive an error
3047 but these changes can be seen and parsed by procedural macros and
3048 conditional compilation.
3052 - [Added tier 2\* support for `armv7a-none-eabi`.][68253]
3053 - [Added tier 2 support for `riscv64gc-unknown-linux-gnu`.][68339]
3054 - [`Option::{expect,unwrap}` and
3055 `Result::{expect, expect_err, unwrap, unwrap_err}` now produce panic messages
3056 pointing to the location where they were called, rather than
3057 `core`'s internals. ][67887]
3059 \* Refer to Rust's [platform support page][platform-support-doc] for more
3060 information on Rust's tiered platform support.
3064 - [`iter::Empty<T>` now implements `Send` and `Sync` for any `T`.][68348]
3065 - [`Pin::{map_unchecked, map_unchecked_mut}` no longer require the return type
3066 to implement `Sized`.][67935]
3067 - [`io::Cursor` now derives `PartialEq` and `Eq`.][67233]
3068 - [`Layout::new` is now `const`.][66254]
3069 - [Added Standard Library support for `riscv64gc-unknown-linux-gnu`.][66899]
3074 - [`CondVar::wait_while`]
3075 - [`CondVar::wait_timeout_while`]
3077 - [`DebugMap::value`]
3078 - [`ManuallyDrop::take`]
3080 - [`ptr::slice_from_raw_parts_mut`]
3081 - [`ptr::slice_from_raw_parts`]
3085 - [You no longer need to include `extern crate proc_macro;` to be able to
3086 `use proc_macro;` in the `2018` edition.][cargo/7700]
3090 - [`Error::description` has been deprecated, and its use will now produce a
3091 warning.][66919] It's recommended to use `Display`/`to_string` instead.
3093 [68253]: https://github.com/rust-lang/rust/pull/68253/
3094 [68348]: https://github.com/rust-lang/rust/pull/68348/
3095 [67935]: https://github.com/rust-lang/rust/pull/67935/
3096 [68339]: https://github.com/rust-lang/rust/pull/68339/
3097 [68122]: https://github.com/rust-lang/rust/pull/68122/
3098 [64273]: https://github.com/rust-lang/rust/pull/64273/
3099 [67712]: https://github.com/rust-lang/rust/pull/67712/
3100 [67887]: https://github.com/rust-lang/rust/pull/67887/
3101 [67131]: https://github.com/rust-lang/rust/pull/67131/
3102 [67233]: https://github.com/rust-lang/rust/pull/67233/
3103 [66899]: https://github.com/rust-lang/rust/pull/66899/
3104 [66919]: https://github.com/rust-lang/rust/pull/66919/
3105 [66254]: https://github.com/rust-lang/rust/pull/66254/
3106 [cargo/7700]: https://github.com/rust-lang/cargo/pull/7700
3107 [`DebugMap::key`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.key
3108 [`DebugMap::value`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.value
3109 [`ManuallyDrop::take`]: https://doc.rust-lang.org/stable/std/mem/struct.ManuallyDrop.html#method.take
3110 [`matches!`]: https://doc.rust-lang.org/stable/std/macro.matches.html
3111 [`ptr::slice_from_raw_parts_mut`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts_mut.html
3112 [`ptr::slice_from_raw_parts`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts.html
3113 [`CondVar::wait_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_while
3114 [`CondVar::wait_timeout_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_timeout_while
3117 Version 1.41.1 (2020-02-27)
3118 ===========================
3120 * [Always check types of static items][69145]
3121 * [Always check lifetime bounds of `Copy` impls][69145]
3122 * [Fix miscompilation in callers of `Layout::repeat`][69225]
3124 [69225]: https://github.com/rust-lang/rust/issues/69225
3125 [69145]: https://github.com/rust-lang/rust/pull/69145
3128 Version 1.41.0 (2020-01-30)
3129 ===========================
3134 - [You can now pass type parameters to foreign items when implementing
3135 traits.][65879] E.g. You can now write `impl<T> From<Foo> for Vec<T> {}`.
3136 - [You can now arbitrarily nest receiver types in the `self` position.][64325] E.g. you can
3137 now write `fn foo(self: Box<Box<Self>>) {}`. Previously only `Self`, `&Self`,
3138 `&mut Self`, `Arc<Self>`, `Rc<Self>`, and `Box<Self>` were allowed.
3139 - [You can now use any valid identifier in a `format_args` macro.][66847]
3140 Previously identifiers starting with an underscore were not allowed.
3141 - [Visibility modifiers (e.g. `pub`) are now syntactically allowed on trait items and
3142 enum variants.][66183] These are still rejected semantically, but
3143 can be seen and parsed by procedural macros and conditional compilation.
3144 - [You can now define a Rust `extern "C"` function with `Box<T>` and use `T*` as the corresponding
3145 type on the C side.][62514] Please see [the documentation][box-memory-layout] for more information,
3146 including the important caveat about preferring to avoid `Box<T>` in Rust signatures for functions defined in C.
3148 [box-memory-layout]: https://doc.rust-lang.org/std/boxed/index.html#memory-layout
3153 - [Rustc will now warn if you have unused loop `'label`s.][66325]
3154 - [Removed support for the `i686-unknown-dragonfly` target.][67255]
3155 - [Added tier 3 support\* for the `riscv64gc-unknown-linux-gnu` target.][66661]
3156 - [You can now pass an arguments file passing the `@path` syntax
3157 to rustc.][66172] Note that the format differs somewhat from what is
3158 found in other tooling; please see [the documentation][argfile-docs] for
3160 - [You can now provide `--extern` flag without a path, indicating that it is
3161 available from the search path or specified with an `-L` flag.][64882]
3163 \* Refer to Rust's [platform support page][platform-support-doc] for more
3164 information on Rust's tiered platform support.
3166 [argfile-docs]: https://doc.rust-lang.org/nightly/rustc/command-line-arguments.html#path-load-command-line-flags-from-a-path
3171 - [The `core::panic` module is now stable.][66771] It was already stable
3173 - [`NonZero*` numerics now implement `From<NonZero*>` if it's a smaller integer
3174 width.][66277] E.g. `NonZeroU16` now implements `From<NonZeroU8>`.
3175 - [`MaybeUninit<T>` now implements `fmt::Debug`.][65013]
3180 - [`Result::map_or`]
3181 - [`Result::map_or_else`]
3182 - [`std::rc::Weak::weak_count`]
3183 - [`std::rc::Weak::strong_count`]
3184 - [`std::sync::Weak::weak_count`]
3185 - [`std::sync::Weak::strong_count`]
3190 - [Cargo will now document all the private items for binary crates
3191 by default.][cargo/7593]
3192 - [`cargo-install` will now reinstall the package if it detects that it is out
3193 of date.][cargo/7560]
3194 - [Cargo.lock now uses a more git friendly format that should help to reduce
3195 merge conflicts.][cargo/7579]
3196 - [You can now override specific dependencies's build settings][cargo/7591] E.g.
3197 `[profile.dev.package.image] opt-level = 2` sets the `image` crate's
3198 optimisation level to `2` for debug builds. You can also use
3199 `[profile.<profile>.build-override]` to override build scripts and
3205 - [You can now specify `edition` in documentation code blocks to compile the block
3206 for that edition.][66238] E.g. `edition2018` tells rustdoc that the code sample
3207 should be compiled the 2018 edition of Rust.
3208 - [You can now provide custom themes to rustdoc with `--theme`, and check the
3209 current theme with `--check-theme`.][54733]
3210 - [You can use `#[cfg(doc)]` to compile an item when building documentation.][61351]
3215 - [As previously announced 1.41.0 will be the last tier 1 release for 32-bit
3216 Apple targets.][apple-32bit-drop] This means that the source code is still
3217 available to build, but the targets are no longer being tested and release
3218 binaries for those platforms will no longer be distributed by the Rust project.
3219 Please refer to the linked blog post for more information.
3221 [54733]: https://github.com/rust-lang/rust/pull/54733/
3222 [61351]: https://github.com/rust-lang/rust/pull/61351/
3223 [62514]: https://github.com/rust-lang/rust/pull/62514/
3224 [67255]: https://github.com/rust-lang/rust/pull/67255/
3225 [66661]: https://github.com/rust-lang/rust/pull/66661/
3226 [66771]: https://github.com/rust-lang/rust/pull/66771/
3227 [66847]: https://github.com/rust-lang/rust/pull/66847/
3228 [66238]: https://github.com/rust-lang/rust/pull/66238/
3229 [66277]: https://github.com/rust-lang/rust/pull/66277/
3230 [66325]: https://github.com/rust-lang/rust/pull/66325/
3231 [66172]: https://github.com/rust-lang/rust/pull/66172/
3232 [66183]: https://github.com/rust-lang/rust/pull/66183/
3233 [65879]: https://github.com/rust-lang/rust/pull/65879/
3234 [65013]: https://github.com/rust-lang/rust/pull/65013/
3235 [64882]: https://github.com/rust-lang/rust/pull/64882/
3236 [64325]: https://github.com/rust-lang/rust/pull/64325/
3237 [cargo/7560]: https://github.com/rust-lang/cargo/pull/7560/
3238 [cargo/7579]: https://github.com/rust-lang/cargo/pull/7579/
3239 [cargo/7591]: https://github.com/rust-lang/cargo/pull/7591/
3240 [cargo/7593]: https://github.com/rust-lang/cargo/pull/7593/
3241 [`Result::map_or_else`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or_else
3242 [`Result::map_or`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or
3243 [`std::rc::Weak::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.weak_count
3244 [`std::rc::Weak::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.strong_count
3245 [`std::sync::Weak::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.weak_count
3246 [`std::sync::Weak::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.strong_count
3247 [apple-32bit-drop]: https://blog.rust-lang.org/2020/01/03/reducing-support-for-32-bit-apple-targets.html
3249 Version 1.40.0 (2019-12-19)
3250 ===========================
3254 - [You can now use tuple `struct`s and tuple `enum` variant's constructors in
3255 `const` contexts.][65188] e.g.
3258 pub struct Point(i32, i32);
3260 const ORIGIN: Point = {
3261 let constructor = Point;
3267 - [You can now mark `struct`s, `enum`s, and `enum` variants with the `#[non_exhaustive]` attribute to
3268 indicate that there may be variants or fields added in the future.][64639]
3269 For example this requires adding a wild-card branch (`_ => {}`) to any match
3270 statements on a non-exhaustive `enum`. [(RFC 2008)]
3271 - [You can now use function-like procedural macros in `extern` blocks and in
3272 type positions.][63931] e.g. `type Generated = macro!();`
3273 - [Function-like and attribute procedural macros can now emit
3274 `macro_rules!` items, so you can now have your macros generate macros.][64035]
3275 - [The `meta` pattern matcher in `macro_rules!` now correctly matches the modern
3276 attribute syntax.][63674] For example `(#[$m:meta])` now matches `#[attr]`,
3277 `#[attr{tokens}]`, `#[attr[tokens]]`, and `#[attr(tokens)]`.
3281 - [Added tier 3 support\* for the
3282 `thumbv7neon-unknown-linux-musleabihf` target.][66103]
3283 - [Added tier 3 support for the
3284 `aarch64-unknown-none-softfloat` target.][64589]
3285 - [Added tier 3 support for the `mips64-unknown-linux-muslabi64`, and
3286 `mips64el-unknown-linux-muslabi64` targets.][65843]
3288 \* Refer to Rust's [platform support page][platform-support-doc] for more
3289 information on Rust's tiered platform support.
3293 - [The `is_power_of_two` method on unsigned numeric types is now a `const` function.][65092]
3297 - [`BTreeMap::get_key_value`]
3298 - [`HashMap::get_key_value`]
3299 - [`Option::as_deref_mut`]
3300 - [`Option::as_deref`]
3301 - [`Option::flatten`]
3302 - [`UdpSocket::peer_addr`]
3303 - [`f32::to_be_bytes`]
3304 - [`f32::to_le_bytes`]
3305 - [`f32::to_ne_bytes`]
3306 - [`f64::to_be_bytes`]
3307 - [`f64::to_le_bytes`]
3308 - [`f64::to_ne_bytes`]
3309 - [`f32::from_be_bytes`]
3310 - [`f32::from_le_bytes`]
3311 - [`f32::from_ne_bytes`]
3312 - [`f64::from_be_bytes`]
3313 - [`f64::from_le_bytes`]
3314 - [`f64::from_ne_bytes`]
3321 - [Cargo will now always display warnings, rather than only on
3322 fresh builds.][cargo/7450]
3323 - [Feature flags (except `--all-features`) passed to a virtual workspace will
3324 now produce an error.][cargo/7507] Previously these flags were ignored.
3325 - [You can now publish `dev-dependencies` without including
3326 a `version`.][cargo/7333]
3330 - [You can now specify the `#[cfg(doctest)]` attribute to include an item only
3331 when running documentation tests with `rustdoc`.][63803]
3335 - [As previously announced, any previous NLL warnings in the 2015 edition are
3336 now hard errors.][64221]
3337 - [The `include!` macro will now warn if it failed to include the
3338 entire file.][64284] The `include!` macro unintentionally only includes the
3339 first _expression_ in a file, and this can be unintuitive. This will become
3340 either a hard error in a future release, or the behavior may be fixed to include all expressions as expected.
3341 - [Using `#[inline]` on function prototypes and consts now emits a warning under
3342 `unused_attribute` lint.][65294] Using `#[inline]` anywhere else inside traits
3343 or `extern` blocks now correctly emits a hard error.
3345 [65294]: https://github.com/rust-lang/rust/pull/65294/
3346 [66103]: https://github.com/rust-lang/rust/pull/66103/
3347 [65843]: https://github.com/rust-lang/rust/pull/65843/
3348 [65188]: https://github.com/rust-lang/rust/pull/65188/
3349 [65092]: https://github.com/rust-lang/rust/pull/65092/
3350 [64589]: https://github.com/rust-lang/rust/pull/64589/
3351 [64639]: https://github.com/rust-lang/rust/pull/64639/
3352 [64221]: https://github.com/rust-lang/rust/pull/64221/
3353 [64284]: https://github.com/rust-lang/rust/pull/64284/
3354 [63931]: https://github.com/rust-lang/rust/pull/63931/
3355 [64035]: https://github.com/rust-lang/rust/pull/64035/
3356 [63674]: https://github.com/rust-lang/rust/pull/63674/
3357 [63803]: https://github.com/rust-lang/rust/pull/63803/
3358 [cargo/7450]: https://github.com/rust-lang/cargo/pull/7450/
3359 [cargo/7507]: https://github.com/rust-lang/cargo/pull/7507/
3360 [cargo/7333]: https://github.com/rust-lang/cargo/pull/7333/
3361 [(rfc 2008)]: https://rust-lang.github.io/rfcs/2008-non-exhaustive.html
3362 [`f32::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_be_bytes
3363 [`f32::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_le_bytes
3364 [`f32::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_ne_bytes
3365 [`f64::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_be_bytes
3366 [`f64::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_le_bytes
3367 [`f64::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_ne_bytes
3368 [`f32::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_be_bytes
3369 [`f32::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_le_bytes
3370 [`f32::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_ne_bytes
3371 [`f64::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_be_bytes
3372 [`f64::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_le_bytes
3373 [`f64::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_ne_bytes
3374 [`option::flatten`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.flatten
3375 [`option::as_deref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref
3376 [`option::as_deref_mut`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref_mut
3377 [`hashmap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.get_key_value
3378 [`btreemap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.get_key_value
3379 [`slice::repeat`]: https://doc.rust-lang.org/std/primitive.slice.html#method.repeat
3380 [`mem::take`]: https://doc.rust-lang.org/std/mem/fn.take.html
3381 [`udpsocket::peer_addr`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peer_addr
3382 [`todo!`]: https://doc.rust-lang.org/std/macro.todo.html
3385 Version 1.39.0 (2019-11-07)
3386 ===========================
3390 - [You can now create `async` functions and blocks with `async fn`, `async move {}`, and
3391 `async {}` respectively, and you can now call `.await` on async expressions.][63209]
3392 - [You can now use certain attributes on function, closure, and function pointer
3393 parameters.][64010] These attributes include `cfg`, `cfg_attr`, `allow`, `warn`,
3394 `deny`, `forbid` as well as inert helper attributes used by procedural macro
3395 attributes applied to items. e.g.
3398 #[cfg(windows)] slice: &[u16],
3399 #[cfg(not(windows))] slice: &[u8],
3404 - [You can now take shared references to bind-by-move patterns in the `if` guards
3405 of `match` arms.][63118] e.g.
3408 let array: Box<[u8; 4]> = Box::new([1, 2, 3, 4]);
3412 // ---- `nums` is bound by move.
3413 if nums.iter().sum::<u8>() == 10
3414 // ^------ `.iter()` implicitly takes a reference to `nums`.
3417 // ----------- Legal as `nums` was bound by move and so we have ownership.
3419 _ => unreachable!(),
3428 - [Added tier 3\* support for the `i686-unknown-uefi` target.][64334]
3429 - [Added tier 3 support for the `sparc64-unknown-openbsd` target.][63595]
3430 - [rustc will now trim code snippets in diagnostics to fit in your terminal.][63402]
3431 **Note** Cargo currently doesn't use this feature. Refer to
3432 [cargo#7315][cargo/7315] to track this feature's progress.
3433 - [You can now pass `--show-output` argument to test binaries to print the
3434 output of successful tests.][62600]
3437 \* Refer to Rust's [platform support page][platform-support-doc] for more
3438 information on Rust's tiered platform support.
3442 - [`Vec::new` and `String::new` are now `const` functions.][64028]
3443 - [`LinkedList::new` is now a `const` function.][63684]
3444 - [`str::len`, `[T]::len` and `str::as_bytes` are now `const` functions.][63770]
3445 - [The `abs`, `wrapping_abs`, and `overflowing_abs` numeric functions are
3446 now `const`.][63786]
3450 - [`Pin::into_inner`]
3451 - [`Instant::checked_duration_since`]
3452 - [`Instant::saturating_duration_since`]
3456 - [You can now publish git dependencies if supplied with a `version`.][cargo/7237]
3457 - [The `--all` flag has been renamed to `--workspace`.][cargo/7241] Using
3458 `--all` is now deprecated.
3462 - [You can now pass `-Clinker` to rustdoc to control the linker used
3463 for compiling doctests.][63834]
3467 - [Code that was previously accepted by the old borrow checker, but rejected by
3468 the NLL borrow checker is now a hard error in Rust 2018.][63565] This was
3469 previously a warning, and will also become a hard error in the Rust 2015
3470 edition in the 1.40.0 release.
3471 - [`rustdoc` now requires `rustc` to be installed and in the same directory to
3472 run tests.][63827] This should improve performance when running a large
3474 - [The `try!` macro will now issue a deprecation warning.][62672] It is
3475 recommended to use the `?` operator instead.
3476 - [`asinh(-0.0)` now correctly returns `-0.0`.][63698] Previously this
3479 [62600]: https://github.com/rust-lang/rust/pull/62600/
3480 [62672]: https://github.com/rust-lang/rust/pull/62672/
3481 [63118]: https://github.com/rust-lang/rust/pull/63118/
3482 [63209]: https://github.com/rust-lang/rust/pull/63209/
3483 [63402]: https://github.com/rust-lang/rust/pull/63402/
3484 [63565]: https://github.com/rust-lang/rust/pull/63565/
3485 [63595]: https://github.com/rust-lang/rust/pull/63595/
3486 [63684]: https://github.com/rust-lang/rust/pull/63684/
3487 [63698]: https://github.com/rust-lang/rust/pull/63698/
3488 [63770]: https://github.com/rust-lang/rust/pull/63770/
3489 [63786]: https://github.com/rust-lang/rust/pull/63786/
3490 [63827]: https://github.com/rust-lang/rust/pull/63827/
3491 [63834]: https://github.com/rust-lang/rust/pull/63834/
3492 [64010]: https://github.com/rust-lang/rust/pull/64010/
3493 [64028]: https://github.com/rust-lang/rust/pull/64028/
3494 [64334]: https://github.com/rust-lang/rust/pull/64334/
3495 [cargo/7237]: https://github.com/rust-lang/cargo/pull/7237/
3496 [cargo/7241]: https://github.com/rust-lang/cargo/pull/7241/
3497 [cargo/7315]: https://github.com/rust-lang/cargo/pull/7315/
3498 [`Pin::into_inner`]: https://doc.rust-lang.org/std/pin/struct.Pin.html#method.into_inner
3499 [`Instant::checked_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_duration_since
3500 [`Instant::saturating_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.saturating_duration_since
3502 Version 1.38.0 (2019-09-26)
3503 ==========================
3507 - [The `#[global_allocator]` attribute can now be used in submodules.][62735]
3508 - [The `#[deprecated]` attribute can now be used on macros.][62042]
3512 - [Added pipelined compilation support to `rustc`.][62766] This will
3513 improve compilation times in some cases. For further information please refer
3514 to the [_"Evaluating pipelined rustc compilation"_][pipeline-internals] thread.
3515 - [Added tier 3\* support for the `aarch64-uwp-windows-msvc`, `i686-uwp-windows-gnu`,
3516 `i686-uwp-windows-msvc`, `x86_64-uwp-windows-gnu`, and
3517 `x86_64-uwp-windows-msvc` targets.][60260]
3518 - [Added tier 3 support for the `armv7-unknown-linux-gnueabi` and
3519 `armv7-unknown-linux-musleabi` targets.][63107]
3520 - [Added tier 3 support for the `hexagon-unknown-linux-musl` target.][62814]
3521 - [Added tier 3 support for the `riscv32i-unknown-none-elf` target.][62784]
3522 - [Upgraded to LLVM 9.][62592]
3524 \* Refer to Rust's [platform support page][platform-support-doc] for more
3525 information on Rust's tiered platform support.
3529 - [`ascii::EscapeDefault` now implements `Clone` and `Display`.][63421]
3530 - [Derive macros for prelude traits (e.g. `Clone`, `Debug`, `Hash`) are now
3531 available at the same path as the trait.][63056] (e.g. The `Clone` derive macro
3532 is available at `std::clone::Clone`). This also makes all built-in macros
3533 available in `std`/`core` root. e.g. `std::include_bytes!`.
3534 - [`str::Chars` now implements `Debug`.][63000]
3535 - [`slice::{concat, connect, join}` now accepts `&[T]` in addition to `&T`.][62528]
3536 - [`*const T` and `*mut T` now implement `marker::Unpin`.][62583]
3537 - [`Arc<[T]>` and `Rc<[T]>` now implement `FromIterator<T>`.][61953]
3538 - [Added euclidean remainder and division operations (`div_euclid`,
3539 `rem_euclid`) to all numeric primitives.][61884] Additionally `checked`,
3540 `overflowing`, and `wrapping` versions are available for all
3542 - [`thread::AccessError` now implements `Clone`, `Copy`, `Eq`, `Error`, and
3543 `PartialEq`.][61491]
3544 - [`iter::{StepBy, Peekable, Take}` now implement `DoubleEndedIterator`.][61457]
3548 - [`<*const T>::cast`]
3549 - [`<*mut T>::cast`]
3550 - [`Duration::as_secs_f32`]
3551 - [`Duration::as_secs_f64`]
3552 - [`Duration::div_f32`]
3553 - [`Duration::div_f64`]
3554 - [`Duration::from_secs_f32`]
3555 - [`Duration::from_secs_f64`]
3556 - [`Duration::mul_f32`]
3557 - [`Duration::mul_f64`]
3558 - [`any::type_name`]
3562 - [Added pipelined compilation support to `cargo`.][cargo/7143]
3563 - [You can now pass the `--features` option multiple times to enable
3564 multiple features.][cargo/7084]
3569 - [Documentation on `pub use` statements is prepended to the documentation of the re-exported item][63048]
3573 - [`rustc` will now warn about some incorrect uses of
3574 `mem::{uninitialized, zeroed}` that are known to cause undefined behaviour.][63346]
3578 - The [`x86_64-unknown-uefi` platform can not be built][62785] with rustc
3580 - The [`armv7-unknown-linux-gnueabihf` platform is known to have
3581 issues][62896] with certain crates such as libc.
3583 [60260]: https://github.com/rust-lang/rust/pull/60260/
3584 [61457]: https://github.com/rust-lang/rust/pull/61457/
3585 [61491]: https://github.com/rust-lang/rust/pull/61491/
3586 [61884]: https://github.com/rust-lang/rust/pull/61884/
3587 [61953]: https://github.com/rust-lang/rust/pull/61953/
3588 [62042]: https://github.com/rust-lang/rust/pull/62042/
3589 [62528]: https://github.com/rust-lang/rust/pull/62528/
3590 [62583]: https://github.com/rust-lang/rust/pull/62583/
3591 [62735]: https://github.com/rust-lang/rust/pull/62735/
3592 [62766]: https://github.com/rust-lang/rust/pull/62766/
3593 [62784]: https://github.com/rust-lang/rust/pull/62784/
3594 [62592]: https://github.com/rust-lang/rust/pull/62592/
3595 [62785]: https://github.com/rust-lang/rust/issues/62785/
3596 [62814]: https://github.com/rust-lang/rust/pull/62814/
3597 [62896]: https://github.com/rust-lang/rust/issues/62896/
3598 [63000]: https://github.com/rust-lang/rust/pull/63000/
3599 [63056]: https://github.com/rust-lang/rust/pull/63056/
3600 [63107]: https://github.com/rust-lang/rust/pull/63107/
3601 [63346]: https://github.com/rust-lang/rust/pull/63346/
3602 [63421]: https://github.com/rust-lang/rust/pull/63421/
3603 [cargo/7084]: https://github.com/rust-lang/cargo/pull/7084/
3604 [cargo/7143]: https://github.com/rust-lang/cargo/pull/7143/
3605 [63048]: https://github.com/rust-lang/rust/pull/63048
3606 [`<*const T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
3607 [`<*mut T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
3608 [`Duration::as_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f32
3609 [`Duration::as_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f64
3610 [`Duration::div_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f32
3611 [`Duration::div_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f64
3612 [`Duration::from_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f32
3613 [`Duration::from_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f64
3614 [`Duration::mul_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f32
3615 [`Duration::mul_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f64
3616 [`any::type_name`]: https://doc.rust-lang.org/std/any/fn.type_name.html
3617 [platform-support-doc]: https://doc.rust-lang.org/nightly/rustc/platform-support.html
3618 [pipeline-internals]: https://internals.rust-lang.org/t/evaluating-pipelined-rustc-compilation/10199
3620 Version 1.37.0 (2019-08-15)
3621 ==========================
3625 - `#[must_use]` will now warn if the type is contained in a [tuple][61100],
3626 [`Box`][62228], or an [array][62235] and unused.
3627 - [You can now use the `cfg` and `cfg_attr` attributes on
3628 generic parameters.][61547]
3629 - [You can now use enum variants through type alias.][61682] e.g. You can
3630 write the following:
3632 type MyOption = Option<u8>;
3634 fn increment_or_zero(x: MyOption) -> u8 {
3636 MyOption::Some(y) => y + 1,
3637 MyOption::None => 0,
3641 - [You can now use `_` as an identifier for consts.][61347] e.g. You can write
3642 `const _: u32 = 5;`.
3643 - [You can now use `#[repr(align(X)]` on enums.][61229]
3644 - [The `?` Kleene macro operator is now available in the
3645 2015 edition.][60932]
3649 - [You can now enable Profile-Guided Optimization with the `-C profile-generate`
3650 and `-C profile-use` flags.][61268] For more information on how to use profile
3651 guided optimization, please refer to the [rustc book][rustc-book-pgo].
3652 - [The `rust-lldb` wrapper script should now work again.][61827]
3656 - [`mem::MaybeUninit<T>` is now ABI-compatible with `T`.][61802]
3660 - [`BufReader::buffer`]
3661 - [`BufWriter::buffer`]
3662 - [`Cell::from_mut`]
3663 - [`Cell<[T]>::as_slice_of_cells`][`Cell<slice>::as_slice_of_cells`]
3664 - [`DoubleEndedIterator::nth_back`]
3666 - [`Wrapping::reverse_bits`]
3667 - [`i128::reverse_bits`]
3668 - [`i16::reverse_bits`]
3669 - [`i32::reverse_bits`]
3670 - [`i64::reverse_bits`]
3671 - [`i8::reverse_bits`]
3672 - [`isize::reverse_bits`]
3673 - [`slice::copy_within`]
3674 - [`u128::reverse_bits`]
3675 - [`u16::reverse_bits`]
3676 - [`u32::reverse_bits`]
3677 - [`u64::reverse_bits`]
3678 - [`u8::reverse_bits`]
3679 - [`usize::reverse_bits`]
3683 - [`Cargo.lock` files are now included by default when publishing executable crates
3684 with executables.][cargo/7026]
3685 - [You can now specify `default-run="foo"` in `[package]` to specify the
3686 default executable to use for `cargo run`.][cargo/7056]
3693 - [Using `...` for inclusive range patterns will now warn by default.][61342]
3694 Please transition your code to using the `..=` syntax for inclusive
3696 - [Using a trait object without the `dyn` will now warn by default.][61203]
3697 Please transition your code to use `dyn Trait` for trait objects instead.
3699 [62228]: https://github.com/rust-lang/rust/pull/62228/
3700 [62235]: https://github.com/rust-lang/rust/pull/62235/
3701 [61802]: https://github.com/rust-lang/rust/pull/61802/
3702 [61827]: https://github.com/rust-lang/rust/pull/61827/
3703 [61547]: https://github.com/rust-lang/rust/pull/61547/
3704 [61682]: https://github.com/rust-lang/rust/pull/61682/
3705 [61268]: https://github.com/rust-lang/rust/pull/61268/
3706 [61342]: https://github.com/rust-lang/rust/pull/61342/
3707 [61347]: https://github.com/rust-lang/rust/pull/61347/
3708 [61100]: https://github.com/rust-lang/rust/pull/61100/
3709 [61203]: https://github.com/rust-lang/rust/pull/61203/
3710 [61229]: https://github.com/rust-lang/rust/pull/61229/
3711 [60932]: https://github.com/rust-lang/rust/pull/60932/
3712 [cargo/7026]: https://github.com/rust-lang/cargo/pull/7026/
3713 [cargo/7056]: https://github.com/rust-lang/cargo/pull/7056/
3714 [`BufReader::buffer`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.buffer
3715 [`BufWriter::buffer`]: https://doc.rust-lang.org/std/io/struct.BufWriter.html#method.buffer
3716 [`Cell::from_mut`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.from_mut
3717 [`Cell<slice>::as_slice_of_cells`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_slice_of_cells
3718 [`DoubleEndedIterator::nth_back`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.nth_back
3719 [`Option::xor`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.xor
3720 [`Wrapping::reverse_bits`]: https://doc.rust-lang.org/std/num/struct.Wrapping.html#method.reverse_bits
3721 [`i128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i128.html#method.reverse_bits
3722 [`i16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i16.html#method.reverse_bits
3723 [`i32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i32.html#method.reverse_bits
3724 [`i64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i64.html#method.reverse_bits
3725 [`i8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i8.html#method.reverse_bits
3726 [`isize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.isize.html#method.reverse_bits
3727 [`slice::copy_within`]: https://doc.rust-lang.org/std/primitive.slice.html#method.copy_within
3728 [`u128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u128.html#method.reverse_bits
3729 [`u16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u16.html#method.reverse_bits
3730 [`u32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u32.html#method.reverse_bits
3731 [`u64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u64.html#method.reverse_bits
3732 [`u8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u8.html#method.reverse_bits
3733 [`usize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.usize.html#method.reverse_bits
3734 [rustc-book-pgo]: https://doc.rust-lang.org/rustc/profile-guided-optimization.html
3737 Version 1.36.0 (2019-07-04)
3738 ==========================
3742 - [Non-Lexical Lifetimes are now enabled on the 2015 edition.][59114]
3743 - [The order of traits in trait objects no longer affects the semantics of that
3744 object.][59445] e.g. `dyn Send + fmt::Debug` is now equivalent to
3745 `dyn fmt::Debug + Send`, where this was previously not the case.
3749 - [`HashMap`'s implementation has been replaced with `hashbrown::HashMap` implementation.][58623]
3750 - [`TryFromSliceError` now implements `From<Infallible>`.][60318]
3751 - [`mem::needs_drop` is now available as a const fn.][60364]
3752 - [`alloc::Layout::from_size_align_unchecked` is now available as a const fn.][60370]
3753 - [`String` now implements `BorrowMut<str>`.][60404]
3754 - [`io::Cursor` now implements `Default`.][60234]
3755 - [Both `NonNull::{dangling, cast}` are now const fns.][60244]
3756 - [The `alloc` crate is now stable.][59675] `alloc` allows you to use a subset
3757 of `std` (e.g. `Vec`, `Box`, `Arc`) in `#![no_std]` environments if the
3758 environment has access to heap memory allocation.
3759 - [`String` now implements `From<&String>`.][59825]
3760 - [You can now pass multiple arguments to the `dbg!` macro.][59826] `dbg!` will
3761 return a tuple of each argument when there is multiple arguments.
3762 - [`Result::{is_err, is_ok}` are now `#[must_use]` and will produce a warning if
3767 - [`VecDeque::rotate_left`]
3768 - [`VecDeque::rotate_right`]
3769 - [`Iterator::copied`]
3771 - [`io::IoSliceMut`]
3772 - [`Read::read_vectored`]
3773 - [`Write::write_vectored`]
3774 - [`str::as_mut_ptr`]
3775 - [`mem::MaybeUninit`]
3776 - [`pointer::align_offset`]
3777 - [`future::Future`]
3779 - [`task::RawWaker`]
3780 - [`task::RawWakerVTable`]
3786 - [Cargo will now produce an error if you attempt to use the name of a required dependency as a feature.][cargo/6860]
3787 - [You can now pass the `--offline` flag to run cargo without accessing the network.][cargo/6934]
3789 You can find further change's in [Cargo's 1.36.0 release notes][cargo-1-36-0].
3793 There have been numerous additions and fixes to clippy, see [Clippy's 1.36.0 release notes][clippy-1-36-0] for more details.
3800 - With the stabilisation of `mem::MaybeUninit`, `mem::uninitialized` use is no
3801 longer recommended, and will be deprecated in 1.39.0.
3803 [60318]: https://github.com/rust-lang/rust/pull/60318/
3804 [60364]: https://github.com/rust-lang/rust/pull/60364/
3805 [60370]: https://github.com/rust-lang/rust/pull/60370/
3806 [60404]: https://github.com/rust-lang/rust/pull/60404/
3807 [60234]: https://github.com/rust-lang/rust/pull/60234/
3808 [60244]: https://github.com/rust-lang/rust/pull/60244/
3809 [58623]: https://github.com/rust-lang/rust/pull/58623/
3810 [59648]: https://github.com/rust-lang/rust/pull/59648/
3811 [59675]: https://github.com/rust-lang/rust/pull/59675/
3812 [59825]: https://github.com/rust-lang/rust/pull/59825/
3813 [59826]: https://github.com/rust-lang/rust/pull/59826/
3814 [59445]: https://github.com/rust-lang/rust/pull/59445/
3815 [59114]: https://github.com/rust-lang/rust/pull/59114/
3816 [cargo/6860]: https://github.com/rust-lang/cargo/pull/6860/
3817 [cargo/6934]: https://github.com/rust-lang/cargo/pull/6934/
3818 [`VecDeque::rotate_left`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_left
3819 [`VecDeque::rotate_right`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_right
3820 [`Iterator::copied`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#tymethod.copied
3821 [`io::IoSlice`]: https://doc.rust-lang.org/std/io/struct.IoSlice.html
3822 [`io::IoSliceMut`]: https://doc.rust-lang.org/std/io/struct.IoSliceMut.html
3823 [`Read::read_vectored`]: https://doc.rust-lang.org/std/io/trait.Read.html#method.read_vectored
3824 [`Write::write_vectored`]: https://doc.rust-lang.org/std/io/trait.Write.html#method.write_vectored
3825 [`str::as_mut_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_mut_ptr
3826 [`mem::MaybeUninit`]: https://doc.rust-lang.org/std/mem/union.MaybeUninit.html
3827 [`pointer::align_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.align_offset
3828 [`future::Future`]: https://doc.rust-lang.org/std/future/trait.Future.html
3829 [`task::Context`]: https://doc.rust-lang.org/beta/std/task/struct.Context.html
3830 [`task::RawWaker`]: https://doc.rust-lang.org/beta/std/task/struct.RawWaker.html
3831 [`task::RawWakerVTable`]: https://doc.rust-lang.org/beta/std/task/struct.RawWakerVTable.html
3832 [`task::Waker`]: https://doc.rust-lang.org/beta/std/task/struct.Waker.html
3833 [`task::Poll`]: https://doc.rust-lang.org/beta/std/task/enum.Poll.html
3834 [clippy-1-36-0]: https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#rust-136
3835 [cargo-1-36-0]: https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-136-2019-07-04
3838 Version 1.35.0 (2019-05-23)
3839 ==========================
3843 - [`FnOnce`, `FnMut`, and the `Fn` traits are now implemented for `Box<FnOnce>`,
3844 `Box<FnMut>`, and `Box<Fn>` respectively.][59500]
3845 - [You can now coerce closures into unsafe function pointers.][59580] e.g.
3847 unsafe fn call_unsafe(func: unsafe fn()) {
3852 unsafe { call_unsafe(|| {}); }
3859 - [Added the `armv6-unknown-freebsd-gnueabihf` and
3860 `armv7-unknown-freebsd-gnueabihf` targets.][58080]
3861 - [Added the `wasm32-unknown-wasi` target.][59464]
3866 - [`Thread` will now show its ID in `Debug` output.][59460]
3867 - [`StdinLock`, `StdoutLock`, and `StderrLock` now implement `AsRawFd`.][59512]
3868 - [`alloc::System` now implements `Default`.][59451]
3869 - [Expanded `Debug` output (`{:#?}`) for structs now has a trailing comma on the
3871 - [`char::{ToLowercase, ToUppercase}` now
3872 implement `ExactSizeIterator`.][58778]
3873 - [All `NonZero` numeric types now implement `FromStr`.][58717]
3874 - [Removed the `Read` trait bounds
3875 on the `BufReader::{get_ref, get_mut, into_inner}` methods.][58423]
3876 - [You can now call the `dbg!` macro without any parameters to print the file
3877 and line where it is called.][57847]
3878 - [In place ASCII case conversions are now up to 4× faster.][59283]
3879 e.g. `str::make_ascii_lowercase`
3880 - [`hash_map::{OccupiedEntry, VacantEntry}` now implement `Sync`
3887 - [`RefCell::replace_with`]
3888 - [`RefCell::map_split`]
3890 - [`Range::contains`]
3891 - [`RangeFrom::contains`]
3892 - [`RangeTo::contains`]
3893 - [`RangeInclusive::contains`]
3894 - [`RangeToInclusive::contains`]
3895 - [`Option::copied`]
3899 - [You can now set `cargo:rustc-cdylib-link-arg` at build time to pass custom
3900 linker arguments when building a `cdylib`.][cargo/6298] Its usage is highly
3905 - [The Rust toolchain is now available natively for musl based distros.][58575]
3907 [59460]: https://github.com/rust-lang/rust/pull/59460/
3908 [59464]: https://github.com/rust-lang/rust/pull/59464/
3909 [59500]: https://github.com/rust-lang/rust/pull/59500/
3910 [59512]: https://github.com/rust-lang/rust/pull/59512/
3911 [59580]: https://github.com/rust-lang/rust/pull/59580/
3912 [59283]: https://github.com/rust-lang/rust/pull/59283/
3913 [59451]: https://github.com/rust-lang/rust/pull/59451/
3914 [59076]: https://github.com/rust-lang/rust/pull/59076/
3915 [58778]: https://github.com/rust-lang/rust/pull/58778/
3916 [58717]: https://github.com/rust-lang/rust/pull/58717/
3917 [58369]: https://github.com/rust-lang/rust/pull/58369/
3918 [58423]: https://github.com/rust-lang/rust/pull/58423/
3919 [58080]: https://github.com/rust-lang/rust/pull/58080/
3920 [57847]: https://github.com/rust-lang/rust/pull/57847/
3921 [58575]: https://github.com/rust-lang/rust/pull/58575
3922 [cargo/6298]: https://github.com/rust-lang/cargo/pull/6298/
3923 [`f32::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.copysign
3924 [`f64::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.copysign
3925 [`RefCell::replace_with`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.replace_with
3926 [`RefCell::map_split`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.map_split
3927 [`ptr::hash`]: https://doc.rust-lang.org/stable/std/ptr/fn.hash.html
3928 [`Range::contains`]: https://doc.rust-lang.org/std/ops/struct.Range.html#method.contains
3929 [`RangeFrom::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeFrom.html#method.contains
3930 [`RangeTo::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeTo.html#method.contains
3931 [`RangeInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.contains
3932 [`RangeToInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html#method.contains
3933 [`Option::copied`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.copied
3935 Version 1.34.2 (2019-05-14)
3936 ===========================
3938 * [Destabilize the `Error::type_id` function due to a security
3939 vulnerability][60785] ([CVE-2019-12083])
3941 [60785]: https://github.com/rust-lang/rust/pull/60785
3942 [CVE-2019-12083]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12083
3944 Version 1.34.1 (2019-04-25)
3945 ===========================
3947 * [Fix false positives for the `redundant_closure` Clippy lint][clippy/3821]
3948 * [Fix false positives for the `missing_const_for_fn` Clippy lint][clippy/3844]
3949 * [Fix Clippy panic when checking some macros][clippy/3805]
3951 [clippy/3821]: https://github.com/rust-lang/rust-clippy/pull/3821
3952 [clippy/3844]: https://github.com/rust-lang/rust-clippy/pull/3844
3953 [clippy/3805]: https://github.com/rust-lang/rust-clippy/pull/3805
3955 Version 1.34.0 (2019-04-11)
3956 ==========================
3960 - [You can now use `#[deprecated = "reason"]`][58166] as a shorthand for
3961 `#[deprecated(note = "reason")]`. This was previously allowed by mistake
3963 - [You can now accept token streams in `#[attr()]`,`#[attr[]]`, and
3964 `#[attr{}]` procedural macros.][57367]
3965 - [You can now write `extern crate self as foo;`][57407] to import your
3966 crate's root into the extern prelude.
3971 - [You can now target `riscv64imac-unknown-none-elf` and
3972 `riscv64gc-unknown-none-elf`.][58406]
3973 - [You can now enable linker plugin LTO optimisations with
3974 `-C linker-plugin-lto`.][58057] This allows rustc to compile your Rust code
3975 into LLVM bitcode allowing LLVM to perform LTO optimisations across C/C++ FFI
3977 - [You can now target `powerpc64-unknown-freebsd`.][57809]
3982 - [The trait bounds have been removed on some of `HashMap<K, V, S>`'s and
3983 `HashSet<T, S>`'s basic methods.][58370] Most notably you no longer require
3984 the `Hash` trait to create an iterator.
3985 - [The `Ord` trait bounds have been removed on some of `BinaryHeap<T>`'s basic
3986 methods.][58421] Most notably you no longer require the `Ord` trait to create
3988 - [The methods `overflowing_neg` and `wrapping_neg` are now `const` functions
3989 for all numeric types.][58044]
3990 - [Indexing a `str` is now generic over all types that
3991 implement `SliceIndex<str>`.][57604]
3992 - [`str::trim`, `str::trim_matches`, `str::trim_{start, end}`, and
3993 `str::trim_{start, end}_matches` are now `#[must_use]`][57106] and will
3994 produce a warning if their returning type is unused.
3995 - [The methods `checked_pow`, `saturating_pow`, `wrapping_pow`, and
3996 `overflowing_pow` are now available for all numeric types.][57873] These are
3997 equivalent to methods such as `wrapping_add` for the `pow` operation.
4005 * [`Error::type_id`]
4006 * [`atomic::AtomicI16`]
4007 * [`atomic::AtomicI32`]
4008 * [`atomic::AtomicI64`]
4009 * [`atomic::AtomicI8`]
4010 * [`atomic::AtomicU16`]
4011 * [`atomic::AtomicU32`]
4012 * [`atomic::AtomicU64`]
4013 * [`atomic::AtomicU8`]
4014 * [`convert::Infallible`]
4015 * [`convert::TryFrom`]
4016 * [`convert::TryInto`]
4018 * [`iter::successors`]
4019 * [`num::NonZeroI128`]
4020 * [`num::NonZeroI16`]
4021 * [`num::NonZeroI32`]
4022 * [`num::NonZeroI64`]
4023 * [`num::NonZeroI8`]
4024 * [`num::NonZeroIsize`]
4025 * [`slice::sort_by_cached_key`]
4026 * [`str::escape_debug`]
4027 * [`str::escape_default`]
4028 * [`str::escape_unicode`]
4029 * [`str::split_ascii_whitespace`]
4032 * [`Instant::checked_add`]
4033 * [`Instant::checked_sub`]
4034 * [`SystemTime::checked_add`]
4035 * [`SystemTime::checked_sub`]
4039 - [You can now use alternative registries to crates.io.][cargo/6654]
4043 - [You can now use the `?` operator in your documentation tests without manually
4044 adding `fn main() -> Result<(), _> {}`.][56470]
4048 - [`Command::before_exec` is being replaced by the unsafe method
4049 `Command::pre_exec`][58059] and will be deprecated with Rust 1.37.0.
4050 - [Use of `ATOMIC_{BOOL, ISIZE, USIZE}_INIT` is now deprecated][57425] as you
4051 can now use `const` functions in `static` variables.
4053 [58370]: https://github.com/rust-lang/rust/pull/58370/
4054 [58406]: https://github.com/rust-lang/rust/pull/58406/
4055 [58421]: https://github.com/rust-lang/rust/pull/58421/
4056 [58166]: https://github.com/rust-lang/rust/pull/58166/
4057 [58044]: https://github.com/rust-lang/rust/pull/58044/
4058 [58057]: https://github.com/rust-lang/rust/pull/58057/
4059 [58059]: https://github.com/rust-lang/rust/pull/58059/
4060 [57809]: https://github.com/rust-lang/rust/pull/57809/
4061 [57873]: https://github.com/rust-lang/rust/pull/57873/
4062 [57604]: https://github.com/rust-lang/rust/pull/57604/
4063 [57367]: https://github.com/rust-lang/rust/pull/57367/
4064 [57407]: https://github.com/rust-lang/rust/pull/57407/
4065 [57425]: https://github.com/rust-lang/rust/pull/57425/
4066 [57106]: https://github.com/rust-lang/rust/pull/57106/
4067 [56470]: https://github.com/rust-lang/rust/pull/56470/
4068 [cargo/6654]: https://github.com/rust-lang/cargo/pull/6654/
4069 [`Any::type_id`]: https://doc.rust-lang.org/std/any/trait.Any.html#tymethod.type_id
4070 [`Error::type_id`]: https://doc.rust-lang.org/std/error/trait.Error.html#method.type_id
4071 [`atomic::AtomicI16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI16.html
4072 [`atomic::AtomicI32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI32.html
4073 [`atomic::AtomicI64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI64.html
4074 [`atomic::AtomicI8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI8.html
4075 [`atomic::AtomicU16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU16.html
4076 [`atomic::AtomicU32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU32.html
4077 [`atomic::AtomicU64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU64.html
4078 [`atomic::AtomicU8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html
4079 [`convert::Infallible`]: https://doc.rust-lang.org/std/convert/enum.Infallible.html
4080 [`convert::TryFrom`]: https://doc.rust-lang.org/std/convert/trait.TryFrom.html
4081 [`convert::TryInto`]: https://doc.rust-lang.org/std/convert/trait.TryInto.html
4082 [`iter::from_fn`]: https://doc.rust-lang.org/std/iter/fn.from_fn.html
4083 [`iter::successors`]: https://doc.rust-lang.org/std/iter/fn.successors.html
4084 [`num::NonZeroI128`]: https://doc.rust-lang.org/std/num/struct.NonZeroI128.html
4085 [`num::NonZeroI16`]: https://doc.rust-lang.org/std/num/struct.NonZeroI16.html
4086 [`num::NonZeroI32`]: https://doc.rust-lang.org/std/num/struct.NonZeroI32.html
4087 [`num::NonZeroI64`]: https://doc.rust-lang.org/std/num/struct.NonZeroI64.html
4088 [`num::NonZeroI8`]: https://doc.rust-lang.org/std/num/struct.NonZeroI8.html
4089 [`num::NonZeroIsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroIsize.html
4090 [`slice::sort_by_cached_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_by_cached_key
4091 [`str::escape_debug`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_debug
4092 [`str::escape_default`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_default
4093 [`str::escape_unicode`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_unicode
4094 [`str::split_ascii_whitespace`]: https://doc.rust-lang.org/std/primitive.str.html#method.split_ascii_whitespace
4095 [`Instant::checked_add`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_add
4096 [`Instant::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_sub
4097 [`SystemTime::checked_add`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_add
4098 [`SystemTime::checked_sub`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_sub
4101 Version 1.33.0 (2019-02-28)
4102 ==========================
4106 - [You can now use the `cfg(target_vendor)` attribute.][57465] E.g.
4107 `#[cfg(target_vendor="apple")] fn main() { println!("Hello Apple!"); }`
4108 - [Integer patterns such as in a match expression can now be exhaustive.][56362]
4109 E.g. You can have match statement on a `u8` that covers `0..=255` and
4110 you would no longer be required to have a `_ => unreachable!()` case.
4111 - [You can now have multiple patterns in `if let` and `while let`
4112 expressions.][57532] You can do this with the same syntax as a `match`
4122 let state = Creature::Crab("Ferris");
4124 if let Creature::Crab(name) | Creature::Person(name) = state {
4125 println!("This creature's name is: {}", name);
4129 - [You can now have irrefutable `if let` and `while let` patterns.][57535] Using
4130 this feature will by default produce a warning as this behaviour can be
4131 unintuitive. E.g. `if let _ = 5 {}`
4132 - [You can now use `let` bindings, assignments, expression statements,
4133 and irrefutable pattern destructuring in const functions.][57175]
4134 - [You can now call unsafe const functions.][57067] E.g.
4136 const unsafe fn foo() -> i32 { 5 }
4137 const fn bar() -> i32 {
4141 - [You can now specify multiple attributes in a `cfg_attr` attribute.][57332]
4142 E.g. `#[cfg_attr(all(), must_use, optimize)]`
4143 - [You can now specify a specific alignment with the `#[repr(packed)]`
4144 attribute.][57049] E.g. `#[repr(packed(2))] struct Foo(i16, i32);` is a struct
4145 with an alignment of 2 bytes and a size of 6 bytes.
4146 - [You can now import an item from a module as an `_`.][56303] This allows you to
4147 import a trait's impls, and not have the name in the namespace. E.g.
4149 use std::io::Read as _;
4151 // Allowed as there is only one `Read` in the module.
4154 - [You may now use `Rc`, `Arc`, and `Pin` as method receivers][56805].
4158 - [You can now set a linker flavor for `rustc` with the `-Clinker-flavor`
4159 command line argument.][56351]
4160 - [The minimum required LLVM version has been bumped to 6.0.][56642]
4161 - [Added support for the PowerPC64 architecture on FreeBSD.][57615]
4162 - [The `x86_64-fortanix-unknown-sgx` target support has been upgraded to
4163 tier 2 support.][57130] Visit the [platform support][platform-support] page for
4164 information on Rust's platform support.
4165 - [Added support for the `thumbv7neon-linux-androideabi` and
4166 `thumbv7neon-unknown-linux-gnueabihf` targets.][56947]
4167 - [Added support for the `x86_64-unknown-uefi` target.][56769]
4171 - [The methods `overflowing_{add, sub, mul, shl, shr}` are now `const`
4172 functions for all numeric types.][57566]
4173 - [The methods `rotate_left`, `rotate_right`, and `wrapping_{add, sub, mul, shl, shr}`
4174 are now `const` functions for all numeric types.][57105]
4175 - [The methods `is_positive` and `is_negative` are now `const` functions for
4176 all signed numeric types.][57105]
4177 - [The `get` method for all `NonZero` types is now `const`.][57167]
4178 - [The methods `count_ones`, `count_zeros`, `leading_zeros`, `trailing_zeros`,
4179 `swap_bytes`, `from_be`, `from_le`, `to_be`, `to_le` are now `const` for all
4180 numeric types.][57234]
4181 - [`Ipv4Addr::new` is now a `const` function][57234]
4185 - [`unix::FileExt::read_exact_at`]
4186 - [`unix::FileExt::write_all_at`]
4187 - [`Option::transpose`]
4188 - [`Result::transpose`]
4189 - [`convert::identity`]
4192 - [`marker::PhantomPinned`]
4193 - [`Vec::resize_with`]
4194 - [`VecDeque::resize_with`]
4195 - [`Duration::as_millis`]
4196 - [`Duration::as_micros`]
4197 - [`Duration::as_nanos`]
4202 - [You can now publish crates that require a feature flag to compile with
4203 `cargo publish --features` or `cargo publish --all-features`.][cargo/6453]
4204 - [Cargo should now rebuild a crate if a file was modified during the initial
4209 - The methods `str::{trim_left, trim_right, trim_left_matches, trim_right_matches}`
4210 are now deprecated in the standard library, and their usage will now produce a warning.
4211 Please use the `str::{trim_start, trim_end, trim_start_matches, trim_end_matches}`
4213 - The `Error::cause` method has been deprecated in favor of `Error::source` which supports
4215 - [Libtest no longer creates a new thread for each test when
4216 `--test-threads=1`. It also runs the tests in deterministic order][56243]
4218 [56243]: https://github.com/rust-lang/rust/pull/56243
4219 [56303]: https://github.com/rust-lang/rust/pull/56303/
4220 [56351]: https://github.com/rust-lang/rust/pull/56351/
4221 [56362]: https://github.com/rust-lang/rust/pull/56362
4222 [56642]: https://github.com/rust-lang/rust/pull/56642/
4223 [56769]: https://github.com/rust-lang/rust/pull/56769/
4224 [56805]: https://github.com/rust-lang/rust/pull/56805
4225 [56947]: https://github.com/rust-lang/rust/pull/56947/
4226 [57049]: https://github.com/rust-lang/rust/pull/57049/
4227 [57067]: https://github.com/rust-lang/rust/pull/57067/
4228 [57105]: https://github.com/rust-lang/rust/pull/57105
4229 [57130]: https://github.com/rust-lang/rust/pull/57130/
4230 [57167]: https://github.com/rust-lang/rust/pull/57167/
4231 [57175]: https://github.com/rust-lang/rust/pull/57175/
4232 [57234]: https://github.com/rust-lang/rust/pull/57234/
4233 [57332]: https://github.com/rust-lang/rust/pull/57332/
4234 [57465]: https://github.com/rust-lang/rust/pull/57465/
4235 [57532]: https://github.com/rust-lang/rust/pull/57532/
4236 [57535]: https://github.com/rust-lang/rust/pull/57535/
4237 [57566]: https://github.com/rust-lang/rust/pull/57566/
4238 [57615]: https://github.com/rust-lang/rust/pull/57615/
4239 [cargo/6453]: https://github.com/rust-lang/cargo/pull/6453/
4240 [cargo/6484]: https://github.com/rust-lang/cargo/pull/6484/
4241 [`unix::FileExt::read_exact_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.read_exact_at
4242 [`unix::FileExt::write_all_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.write_all_at
4243 [`Option::transpose`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.transpose
4244 [`Result::transpose`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.transpose
4245 [`convert::identity`]: https://doc.rust-lang.org/std/convert/fn.identity.html
4246 [`pin::Pin`]: https://doc.rust-lang.org/std/pin/struct.Pin.html
4247 [`marker::Unpin`]: https://doc.rust-lang.org/stable/std/marker/trait.Unpin.html
4248 [`marker::PhantomPinned`]: https://doc.rust-lang.org/nightly/std/marker/struct.PhantomPinned.html
4249 [`Vec::resize_with`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.resize_with
4250 [`VecDeque::resize_with`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.resize_with
4251 [`Duration::as_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_millis
4252 [`Duration::as_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_micros
4253 [`Duration::as_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_nanos
4254 [platform-support]: https://forge.rust-lang.org/platform-support.html
4256 Version 1.32.0 (2019-01-17)
4257 ==========================
4262 - [You can now use the `?` operator in macro definitions.][56245] The `?`
4263 operator allows you to specify zero or one repetitions similar to the `*` and
4265 - [Module paths with no leading keyword like `super`, `self`, or `crate`, will
4266 now always resolve to the item (`enum`, `struct`, etc.) available in the
4267 module if present, before resolving to a external crate or an item the prelude.][56759]
4270 enum Color { Red, Green, Blue }
4276 - [You can now match against `PhantomData<T>` types.][55837]
4277 - [You can now match against literals in macros with the `literal`
4278 specifier.][56072] This will match against a literal of any type.
4279 E.g. `1`, `'A'`, `"Hello World"`
4280 - [Self can now be used as a constructor and pattern for unit and tuple structs.][56365] E.g.
4282 struct Point(i32, i32);
4285 pub fn new(x: i32, y: i32) -> Self {
4289 pub fn is_origin(&self) -> bool {
4297 - [Self can also now be used in type definitions.][56366] E.g.
4301 Self: PartialOrd<Self> // can write `Self` instead of `List<T>`
4304 Cons(T, Box<Self>) // likewise here
4307 - [You can now mark traits with `#[must_use]`.][55663] This provides a warning if
4308 a `impl Trait` or `dyn Trait` is returned and unused in the program.
4312 - [The default allocator has changed from jemalloc to the default allocator on
4313 your system.][55238] The compiler itself on Linux & macOS will still use
4314 jemalloc, but programs compiled with it will use the system allocator.
4315 - [Added the `aarch64-pc-windows-msvc` target.][55702]
4319 - [`PathBuf` now implements `FromStr`.][55148]
4320 - [`Box<[T]>` now implements `FromIterator<T>`.][55843]
4321 - [The `dbg!` macro has been stabilized.][56395] This macro enables you to
4322 easily debug expressions in your rust program. E.g.
4325 let b = dbg!(a * 2) + 1;
4326 // ^-- prints: [src/main.rs:4] a * 2 = 4
4330 The following APIs are now `const` functions and can be used in a
4334 - [`UnsafeCell::get`]
4335 - [`char::is_ascii`]
4337 - [`ManuallyDrop::new`]
4338 - [`ManuallyDrop::into_inner`]
4339 - [`RangeInclusive::start`]
4340 - [`RangeInclusive::end`]
4341 - [`NonNull::as_ptr`]
4344 - [`Duration::as_secs`]
4345 - [`Duration::subsec_millis`]
4346 - [`Duration::subsec_micros`]
4347 - [`Duration::subsec_nanos`]
4349 - [`Ipv4Addr::is_unspecified`]
4351 - [`Ipv6Addr::octets`]
4355 - [`i8::to_be_bytes`]
4356 - [`i8::to_le_bytes`]
4357 - [`i8::to_ne_bytes`]
4358 - [`i8::from_be_bytes`]
4359 - [`i8::from_le_bytes`]
4360 - [`i8::from_ne_bytes`]
4361 - [`i16::to_be_bytes`]
4362 - [`i16::to_le_bytes`]
4363 - [`i16::to_ne_bytes`]
4364 - [`i16::from_be_bytes`]
4365 - [`i16::from_le_bytes`]
4366 - [`i16::from_ne_bytes`]
4367 - [`i32::to_be_bytes`]
4368 - [`i32::to_le_bytes`]
4369 - [`i32::to_ne_bytes`]
4370 - [`i32::from_be_bytes`]
4371 - [`i32::from_le_bytes`]
4372 - [`i32::from_ne_bytes`]
4373 - [`i64::to_be_bytes`]
4374 - [`i64::to_le_bytes`]
4375 - [`i64::to_ne_bytes`]
4376 - [`i64::from_be_bytes`]
4377 - [`i64::from_le_bytes`]
4378 - [`i64::from_ne_bytes`]
4379 - [`i128::to_be_bytes`]
4380 - [`i128::to_le_bytes`]
4381 - [`i128::to_ne_bytes`]
4382 - [`i128::from_be_bytes`]
4383 - [`i128::from_le_bytes`]
4384 - [`i128::from_ne_bytes`]
4385 - [`isize::to_be_bytes`]
4386 - [`isize::to_le_bytes`]
4387 - [`isize::to_ne_bytes`]
4388 - [`isize::from_be_bytes`]
4389 - [`isize::from_le_bytes`]
4390 - [`isize::from_ne_bytes`]
4391 - [`u8::to_be_bytes`]
4392 - [`u8::to_le_bytes`]
4393 - [`u8::to_ne_bytes`]
4394 - [`u8::from_be_bytes`]
4395 - [`u8::from_le_bytes`]
4396 - [`u8::from_ne_bytes`]
4397 - [`u16::to_be_bytes`]
4398 - [`u16::to_le_bytes`]
4399 - [`u16::to_ne_bytes`]
4400 - [`u16::from_be_bytes`]
4401 - [`u16::from_le_bytes`]
4402 - [`u16::from_ne_bytes`]
4403 - [`u32::to_be_bytes`]
4404 - [`u32::to_le_bytes`]
4405 - [`u32::to_ne_bytes`]
4406 - [`u32::from_be_bytes`]
4407 - [`u32::from_le_bytes`]
4408 - [`u32::from_ne_bytes`]
4409 - [`u64::to_be_bytes`]
4410 - [`u64::to_le_bytes`]
4411 - [`u64::to_ne_bytes`]
4412 - [`u64::from_be_bytes`]
4413 - [`u64::from_le_bytes`]
4414 - [`u64::from_ne_bytes`]
4415 - [`u128::to_be_bytes`]
4416 - [`u128::to_le_bytes`]
4417 - [`u128::to_ne_bytes`]
4418 - [`u128::from_be_bytes`]
4419 - [`u128::from_le_bytes`]
4420 - [`u128::from_ne_bytes`]
4421 - [`usize::to_be_bytes`]
4422 - [`usize::to_le_bytes`]
4423 - [`usize::to_ne_bytes`]
4424 - [`usize::from_be_bytes`]
4425 - [`usize::from_le_bytes`]
4426 - [`usize::from_ne_bytes`]
4430 - [You can now run `cargo c` as an alias for `cargo check`.][cargo/6218]
4431 - [Usernames are now allowed in alt registry URLs.][cargo/6242]
4435 - [`libproc_macro` has been added to the `rust-src` distribution.][55280]
4439 - [The argument types for AVX's
4440 `_mm256_stream_si256`, `_mm256_stream_pd`, `_mm256_stream_ps`][55610] have
4441 been changed from `*const` to `*mut` as the previous implementation
4445 [55148]: https://github.com/rust-lang/rust/pull/55148/
4446 [55238]: https://github.com/rust-lang/rust/pull/55238/
4447 [55280]: https://github.com/rust-lang/rust/pull/55280/
4448 [55610]: https://github.com/rust-lang/rust/pull/55610/
4449 [55663]: https://github.com/rust-lang/rust/pull/55663/
4450 [55702]: https://github.com/rust-lang/rust/pull/55702/
4451 [55837]: https://github.com/rust-lang/rust/pull/55837/
4452 [55843]: https://github.com/rust-lang/rust/pull/55843/
4453 [56072]: https://github.com/rust-lang/rust/pull/56072/
4454 [56245]: https://github.com/rust-lang/rust/pull/56245/
4455 [56365]: https://github.com/rust-lang/rust/pull/56365/
4456 [56366]: https://github.com/rust-lang/rust/pull/56366/
4457 [56395]: https://github.com/rust-lang/rust/pull/56395/
4458 [56759]: https://github.com/rust-lang/rust/pull/56759/
4459 [cargo/6218]: https://github.com/rust-lang/cargo/pull/6218/
4460 [cargo/6242]: https://github.com/rust-lang/cargo/pull/6242/
4461 [`CStr::as_ptr`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.as_ptr
4462 [`Cell::as_ptr`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr
4463 [`Duration::as_secs`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs
4464 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
4465 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
4466 [`Duration::subsec_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_nanos
4467 [`Ipv4Addr::is_unspecified`]: https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified
4468 [`Ipv6Addr::new`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.new
4469 [`Ipv6Addr::octets`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets
4470 [`ManuallyDrop::into_inner`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.into_inner
4471 [`ManuallyDrop::new`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.new
4472 [`NonNull::as_ptr`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.as_ptr
4473 [`RangeInclusive::end`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.end
4474 [`RangeInclusive::start`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.start
4475 [`UnsafeCell::get`]: https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html#method.get
4476 [`slice::as_ptr`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr
4477 [`char::is_ascii`]: https://doc.rust-lang.org/std/primitive.char.html#method.is_ascii
4478 [`i128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_be_bytes
4479 [`i128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_le_bytes
4480 [`i128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_ne_bytes
4481 [`i128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_be_bytes
4482 [`i128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_le_bytes
4483 [`i128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_ne_bytes
4484 [`i16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_be_bytes
4485 [`i16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_le_bytes
4486 [`i16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_ne_bytes
4487 [`i16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_be_bytes
4488 [`i16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_le_bytes
4489 [`i16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_ne_bytes
4490 [`i32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_be_bytes
4491 [`i32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_le_bytes
4492 [`i32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_ne_bytes
4493 [`i32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_be_bytes
4494 [`i32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_le_bytes
4495 [`i32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_ne_bytes
4496 [`i64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_be_bytes
4497 [`i64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_le_bytes
4498 [`i64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_ne_bytes
4499 [`i64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_be_bytes
4500 [`i64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_le_bytes
4501 [`i64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_ne_bytes
4502 [`i8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_be_bytes
4503 [`i8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_le_bytes
4504 [`i8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_ne_bytes
4505 [`i8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_be_bytes
4506 [`i8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_le_bytes
4507 [`i8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_ne_bytes
4508 [`isize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_be_bytes
4509 [`isize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_le_bytes
4510 [`isize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_ne_bytes
4511 [`isize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_be_bytes
4512 [`isize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_le_bytes
4513 [`isize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_ne_bytes
4514 [`iter::empty`]: https://doc.rust-lang.org/std/iter/fn.empty.html
4515 [`str::as_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_ptr
4516 [`u128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_be_bytes
4517 [`u128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_le_bytes
4518 [`u128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_ne_bytes
4519 [`u128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_be_bytes
4520 [`u128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_le_bytes
4521 [`u128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_ne_bytes
4522 [`u16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_be_bytes
4523 [`u16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_le_bytes
4524 [`u16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_ne_bytes
4525 [`u16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_be_bytes
4526 [`u16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_le_bytes
4527 [`u16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_ne_bytes
4528 [`u32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_be_bytes
4529 [`u32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_le_bytes
4530 [`u32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_ne_bytes
4531 [`u32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_be_bytes
4532 [`u32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_le_bytes
4533 [`u32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_ne_bytes
4534 [`u64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_be_bytes
4535 [`u64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_le_bytes
4536 [`u64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_ne_bytes
4537 [`u64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_be_bytes
4538 [`u64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_le_bytes
4539 [`u64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_ne_bytes
4540 [`u8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_be_bytes
4541 [`u8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_le_bytes
4542 [`u8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_ne_bytes
4543 [`u8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_be_bytes
4544 [`u8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_le_bytes
4545 [`u8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ne_bytes
4546 [`usize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_be_bytes
4547 [`usize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_le_bytes
4548 [`usize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_ne_bytes
4549 [`usize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_be_bytes
4550 [`usize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_le_bytes
4551 [`usize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_ne_bytes
4554 Version 1.31.1 (2018-12-20)
4555 ===========================
4557 - [Fix Rust failing to build on `powerpc-unknown-netbsd`][56562]
4558 - [Fix broken go-to-definition in RLS][rls/1171]
4559 - [Fix infinite loop on hover in RLS][rls/1170]
4561 [56562]: https://github.com/rust-lang/rust/pull/56562
4562 [rls/1171]: https://github.com/rust-lang/rls/issues/1171
4563 [rls/1170]: https://github.com/rust-lang/rls/pull/1170
4565 Version 1.31.0 (2018-12-06)
4566 ==========================
4570 - 🎉 [This version marks the release of the 2018 edition of Rust.][54057] 🎉
4571 - [New lifetime elision rules now allow for eliding lifetimes in functions and
4572 impl headers.][54778] E.g. `impl<'a> Reader for BufReader<'a> {}` can now be
4573 `impl Reader for BufReader<'_> {}`. Lifetimes are still required to be defined
4575 - [You can now define and use `const` functions.][54835] These are currently
4576 a strict minimal subset of the [const fn RFC][RFC-911]. Refer to the
4577 [language reference][const-reference] for what exactly is available.
4578 - [You can now use tool lints, which allow you to scope lints from external
4579 tools using attributes.][54870] E.g. `#[allow(clippy::filter_map)]`.
4580 - [`#[no_mangle]` and `#[export_name]` attributes can now be located anywhere in
4581 a crate, not just in exported functions.][54451]
4582 - [You can now use parentheses in pattern matches.][54497]
4586 - [Updated musl to 1.1.20][54430]
4590 - [You can now convert `num::NonZero*` types to their raw equivalents using the
4591 `From` trait.][54240] E.g. `u8` now implements `From<NonZeroU8>`.
4592 - [You can now convert a `&Option<T>` into `Option<&T>` and `&mut Option<T>`
4593 into `Option<&mut T>` using the `From` trait.][53218]
4594 - [You can now multiply (`*`) a `time::Duration` by a `u32`.][52813]
4599 - [`slice::align_to`]
4600 - [`slice::align_to_mut`]
4601 - [`slice::chunks_exact`]
4602 - [`slice::chunks_exact_mut`]
4603 - [`slice::rchunks`]
4604 - [`slice::rchunks_mut`]
4605 - [`slice::rchunks_exact`]
4606 - [`slice::rchunks_exact_mut`]
4607 - [`Option::replace`]
4611 - [Cargo will now download crates in parallel using HTTP/2.][cargo/6005]
4612 - [You can now rename packages in your Cargo.toml][cargo/6319] We have a guide
4613 on [how to use the `package` key in your dependencies.][cargo-rename-reference]
4615 [52813]: https://github.com/rust-lang/rust/pull/52813/
4616 [53218]: https://github.com/rust-lang/rust/pull/53218/
4617 [54057]: https://github.com/rust-lang/rust/pull/54057/
4618 [54240]: https://github.com/rust-lang/rust/pull/54240/
4619 [54430]: https://github.com/rust-lang/rust/pull/54430/
4620 [54451]: https://github.com/rust-lang/rust/pull/54451/
4621 [54497]: https://github.com/rust-lang/rust/pull/54497/
4622 [54778]: https://github.com/rust-lang/rust/pull/54778/
4623 [54835]: https://github.com/rust-lang/rust/pull/54835/
4624 [54870]: https://github.com/rust-lang/rust/pull/54870/
4625 [RFC-911]: https://github.com/rust-lang/rfcs/pull/911
4626 [`Option::replace`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.replace
4627 [`slice::align_to_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to_mut
4628 [`slice::align_to`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to
4629 [`slice::chunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact_mut
4630 [`slice::chunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact
4631 [`slice::rchunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
4632 [`slice::rchunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_exact
4633 [`slice::rchunks_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
4634 [`slice::rchunks`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks
4635 [cargo/6005]: https://github.com/rust-lang/cargo/pull/6005/
4636 [cargo/6319]: https://github.com/rust-lang/cargo/pull/6319/
4637 [cargo-rename-reference]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
4638 [const-reference]: https://doc.rust-lang.org/reference/items/functions.html#const-functions
4640 Version 1.30.1 (2018-11-08)
4641 ===========================
4643 - [Fixed overflow ICE in rustdoc][54199]
4644 - [Cap Cargo progress bar width at 60 in MSYS terminals][cargo/6122]
4646 [54199]: https://github.com/rust-lang/rust/pull/54199
4647 [cargo/6122]: https://github.com/rust-lang/cargo/pull/6122
4649 Version 1.30.0 (2018-10-25)
4650 ==========================
4654 - [Procedural macros are now available.][52081] These kinds of macros allow for
4655 more powerful code generation. There is a [new chapter available][proc-macros]
4656 in the Rust Programming Language book that goes further in depth.
4657 - [You can now use keywords as identifiers using the raw identifiers
4658 syntax (`r#`),][53236] e.g. `let r#for = true;`
4659 - [Using anonymous parameters in traits is now deprecated with a warning and
4660 will be a hard error in the 2018 edition.][53272]
4661 - [You can now use `crate` in paths.][54404] This allows you to refer to the
4662 crate root in the path, e.g. `use crate::foo;` refers to `foo` in `src/lib.rs`.
4663 - [Using a external crate no longer requires being prefixed with `::`.][54404]
4664 Previously, using a external crate in a module without a use statement
4665 required `let json = ::serde_json::from_str(foo);` but can now be written
4666 as `let json = serde_json::from_str(foo);`.
4667 - [You can now apply the `#[used]` attribute to static items to prevent the
4668 compiler from optimising them away, even if they appear to be unused,][51363]
4669 e.g. `#[used] static FOO: u32 = 1;`
4670 - [You can now import and reexport macros from other crates with the `use`
4671 syntax.][50911] Macros exported with `#[macro_export]` are now placed into
4672 the root module of the crate. If your macro relies on calling other local
4673 macros, it is recommended to export with the
4674 `#[macro_export(local_inner_macros)]` attribute so users won't have to import
4676 - [You can now catch visibility keywords (e.g. `pub`, `pub(crate)`) in macros
4677 using the `vis` specifier.][53370]
4678 - [Non-macro attributes now allow all forms of literals, not just
4679 strings.][53044] Previously, you would write `#[attr("true")]`, and you can now
4680 write `#[attr(true)]`.
4681 - [You can now specify a function to handle a panic in the Rust runtime with the
4682 `#[panic_handler]` attribute.][51366]
4686 - [Added the `riscv32imc-unknown-none-elf` target.][53822]
4687 - [Added the `aarch64-unknown-netbsd` target][53165]
4688 - [Upgraded to LLVM 8.][53611]
4692 - [`ManuallyDrop` now allows the inner type to be unsized.][53033]
4696 - [`Ipv4Addr::BROADCAST`]
4697 - [`Ipv4Addr::LOCALHOST`]
4698 - [`Ipv4Addr::UNSPECIFIED`]
4699 - [`Ipv6Addr::LOCALHOST`]
4700 - [`Ipv6Addr::UNSPECIFIED`]
4701 - [`Iterator::find_map`]
4703 The following methods are replacement methods for `trim_left`, `trim_right`,
4704 `trim_left_matches`, and `trim_right_matches`, which will be deprecated
4706 - [`str::trim_end_matches`]
4708 - [`str::trim_start_matches`]
4709 - [`str::trim_start`]
4713 - [`cargo run` doesn't require specifying a package in workspaces.][cargo/5877]
4714 - [`cargo doc` now supports `--message-format=json`.][cargo/5878] This is
4715 equivalent to calling `rustdoc --error-format=json`.
4716 - [Cargo will now provide a progress bar for builds.][cargo/5995]
4720 - [`rustdoc` allows you to specify what edition to treat your code as with the
4721 `--edition` option.][54057]
4722 - [`rustdoc` now has the `--color` (specify whether to output color) and
4723 `--error-format` (specify error format, e.g. `json`) options.][53003]
4724 - [We now distribute a `rust-gdbgui` script that invokes `gdbgui` with Rust
4725 debug symbols.][53774]
4726 - [Attributes from Rust tools such as `rustfmt` or `clippy` are now
4727 available,][53459] e.g. `#[rustfmt::skip]` will skip formatting the next item.
4729 [50911]: https://github.com/rust-lang/rust/pull/50911/
4730 [51363]: https://github.com/rust-lang/rust/pull/51363/
4731 [51366]: https://github.com/rust-lang/rust/pull/51366/
4732 [52081]: https://github.com/rust-lang/rust/pull/52081/
4733 [53003]: https://github.com/rust-lang/rust/pull/53003/
4734 [53033]: https://github.com/rust-lang/rust/pull/53033/
4735 [53044]: https://github.com/rust-lang/rust/pull/53044/
4736 [53165]: https://github.com/rust-lang/rust/pull/53165/
4737 [53611]: https://github.com/rust-lang/rust/pull/53611/
4738 [53236]: https://github.com/rust-lang/rust/pull/53236/
4739 [53272]: https://github.com/rust-lang/rust/pull/53272/
4740 [53370]: https://github.com/rust-lang/rust/pull/53370/
4741 [53459]: https://github.com/rust-lang/rust/pull/53459/
4742 [53774]: https://github.com/rust-lang/rust/pull/53774/
4743 [53822]: https://github.com/rust-lang/rust/pull/53822/
4744 [54057]: https://github.com/rust-lang/rust/pull/54057/
4745 [54404]: https://github.com/rust-lang/rust/pull/54404/
4746 [cargo/5877]: https://github.com/rust-lang/cargo/pull/5877/
4747 [cargo/5878]: https://github.com/rust-lang/cargo/pull/5878/
4748 [cargo/5995]: https://github.com/rust-lang/cargo/pull/5995/
4749 [proc-macros]: https://doc.rust-lang.org/nightly/book/2018-edition/ch19-06-macros.html
4751 [`Ipv4Addr::BROADCAST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.BROADCAST
4752 [`Ipv4Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.LOCALHOST
4753 [`Ipv4Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.UNSPECIFIED
4754 [`Ipv6Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.LOCALHOST
4755 [`Ipv6Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.UNSPECIFIED
4756 [`Iterator::find_map`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.find_map
4757 [`str::trim_end_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end_matches
4758 [`str::trim_end`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end
4759 [`str::trim_start_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start_matches
4760 [`str::trim_start`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start
4763 Version 1.29.2 (2018-10-11)
4764 ===========================
4766 - [Workaround for an aliasing-related LLVM bug, which caused miscompilation.][54639]
4767 - The `rls-preview` component on the windows-gnu targets has been restored.
4769 [54639]: https://github.com/rust-lang/rust/pull/54639
4772 Version 1.29.1 (2018-09-25)
4773 ===========================
4778 - The standard library's `str::repeat` function contained an out of bounds write
4779 caused by an integer overflow. This has been fixed by deterministically
4780 panicking when an overflow happens.
4782 Thank you to Scott McMurray for responsibly disclosing this vulnerability to
4786 Version 1.29.0 (2018-09-13)
4787 ==========================
4791 - [Bumped minimum LLVM version to 5.0.][51899]
4792 - [Added `powerpc64le-unknown-linux-musl` target.][51619]
4793 - [Added `aarch64-unknown-hermit` and `x86_64-unknown-hermit` targets.][52861]
4794 - [Upgraded to LLVM 7.][51966]
4798 - [`Once::call_once` no longer requires `Once` to be `'static`.][52239]
4799 - [`BuildHasherDefault` now implements `PartialEq` and `Eq`.][52402]
4800 - [`Box<CStr>`, `Box<OsStr>`, and `Box<Path>` now implement `Clone`.][51912]
4801 - [Implemented `PartialEq<&str>` for `OsString` and `PartialEq<OsString>`
4803 - [`Cell<T>` now allows `T` to be unsized.][50494]
4804 - [`SocketAddr` is now stable on Redox.][52656]
4809 - [`Iterator::flatten`]
4814 - [Cargo can silently fix some bad lockfiles.][cargo/5831] You can use
4815 `--locked` to disable this behavior.
4816 - [`cargo-install` will now allow you to cross compile an install
4817 using `--target`.][cargo/5614]
4818 - [Added the `cargo-fix` subcommand to automatically move project code from
4819 2015 edition to 2018.][cargo/5723]
4820 - [`cargo doc` can now optionally document private types using the
4821 `--document-private-items` flag.][cargo/5543]
4825 - [`rustdoc` now has the `--cap-lints` option which demotes all lints above
4826 the specified level to that level.][52354] For example `--cap-lints warn`
4827 will demote `deny` and `forbid` lints to `warn`.
4828 - [`rustc` and `rustdoc` will now have the exit code of `1` if compilation
4829 fails and `101` if there is a panic.][52197]
4830 - [A preview of clippy has been made available through rustup.][51122]
4831 You can install the preview with `rustup component add clippy-preview`.
4835 - [`str::{slice_unchecked, slice_unchecked_mut}` are now deprecated.][51807]
4836 Use `str::get_unchecked(begin..end)` instead.
4837 - [`std::env::home_dir` is now deprecated for its unintuitive behavior.][51656]
4838 Consider using the `home_dir` function from
4839 https://crates.io/crates/dirs instead.
4840 - [`rustc` will no longer silently ignore invalid data in target spec.][52330]
4841 - [`cfg` attributes and `--cfg` command line flags are now more
4842 strictly validated.][53893]
4844 [53893]: https://github.com/rust-lang/rust/pull/53893/
4845 [52861]: https://github.com/rust-lang/rust/pull/52861/
4846 [51966]: https://github.com/rust-lang/rust/pull/51966/
4847 [52656]: https://github.com/rust-lang/rust/pull/52656/
4848 [52239]: https://github.com/rust-lang/rust/pull/52239/
4849 [52330]: https://github.com/rust-lang/rust/pull/52330/
4850 [52354]: https://github.com/rust-lang/rust/pull/52354/
4851 [52402]: https://github.com/rust-lang/rust/pull/52402/
4852 [52197]: https://github.com/rust-lang/rust/pull/52197/
4853 [51807]: https://github.com/rust-lang/rust/pull/51807/
4854 [51899]: https://github.com/rust-lang/rust/pull/51899/
4855 [51912]: https://github.com/rust-lang/rust/pull/51912/
4856 [51619]: https://github.com/rust-lang/rust/pull/51619/
4857 [51656]: https://github.com/rust-lang/rust/pull/51656/
4858 [51178]: https://github.com/rust-lang/rust/pull/51178/
4859 [51122]: https://github.com/rust-lang/rust/pull/51122
4860 [50494]: https://github.com/rust-lang/rust/pull/50494/
4861 [cargo/5543]: https://github.com/rust-lang/cargo/pull/5543
4862 [cargo/5614]: https://github.com/rust-lang/cargo/pull/5614/
4863 [cargo/5723]: https://github.com/rust-lang/cargo/pull/5723/
4864 [cargo/5831]: https://github.com/rust-lang/cargo/pull/5831/
4865 [`Arc::downcast`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.downcast
4866 [`Iterator::flatten`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.flatten
4867 [`Rc::downcast`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.downcast
4870 Version 1.28.0 (2018-08-02)
4871 ===========================
4875 - [The `#[repr(transparent)]` attribute is now stable.][51562] This attribute
4876 allows a Rust newtype wrapper (`struct NewType<T>(T);`) to be represented as
4877 the inner type across Foreign Function Interface (FFI) boundaries.
4878 - [The keywords `pure`, `sizeof`, `alignof`, and `offsetof` have been unreserved
4879 and can now be used as identifiers.][51196]
4880 - [The `GlobalAlloc` trait and `#[global_allocator]` attribute are now
4881 stable.][51241] This will allow users to specify a global allocator for
4883 - [Unit test functions marked with the `#[test]` attribute can now return
4884 `Result<(), E: Debug>` in addition to `()`.][51298]
4885 - [The `lifetime` specifier for `macro_rules!` is now stable.][50385] This
4886 allows macros to easily target lifetimes.
4890 - [The `s` and `z` optimisation levels are now stable.][50265] These optimisations
4891 prioritise making smaller binary sizes. `z` is the same as `s` with the
4892 exception that it does not vectorise loops, which typically results in an even
4894 - [The short error format is now stable.][49546] Specified with
4895 `--error-format=short` this option will provide a more compressed output of
4896 rust error messages.
4897 - [Added a lint warning when you have duplicated `macro_export`s.][50143]
4898 - [Reduced the number of allocations in the macro parser.][50855] This can
4899 improve compile times of macro heavy crates on average by 5%.
4903 - [Implemented `Default` for `&mut str`.][51306]
4904 - [Implemented `From<bool>` for all integer and unsigned number types.][50554]
4905 - [Implemented `Extend` for `()`.][50234]
4906 - [The `Debug` implementation of `time::Duration` should now be more easily
4907 human readable.][50364] Previously a `Duration` of one second would printed as
4908 `Duration { secs: 1, nanos: 0 }` and will now be printed as `1s`.
4909 - [Implemented `From<&String>` for `Cow<str>`, `From<&Vec<T>>` for `Cow<[T]>`,
4910 `From<Cow<CStr>>` for `CString`, `From<CString>, From<CStr>, From<&CString>`
4911 for `Cow<CStr>`, `From<OsString>, From<OsStr>, From<&OsString>` for
4912 `Cow<OsStr>`, `From<&PathBuf>` for `Cow<Path>`, and `From<Cow<Path>>`
4913 for `PathBuf`.][50170]
4914 - [Implemented `Shl` and `Shr` for `Wrapping<u128>`
4915 and `Wrapping<i128>`.][50465]
4916 - [`DirEntry::metadata` now uses `fstatat` instead of `lstat` when
4917 possible.][51050] This can provide up to a 40% speed increase.
4918 - [Improved error messages when using `format!`.][50610]
4922 - [`Iterator::step_by`]
4923 - [`Path::ancestors`]
4924 - [`SystemTime::UNIX_EPOCH`]
4925 - [`alloc::GlobalAlloc`]
4927 - [`alloc::LayoutErr`]
4930 - [`alloc::alloc_zeroed`]
4931 - [`alloc::dealloc`]
4932 - [`alloc::realloc`]
4933 - [`alloc::handle_alloc_error`]
4934 - [`btree_map::Entry::or_default`]
4935 - [`fmt::Alignment`]
4936 - [`hash_map::Entry::or_default`]
4937 - [`iter::repeat_with`]
4938 - [`num::NonZeroUsize`]
4939 - [`num::NonZeroU128`]
4940 - [`num::NonZeroU16`]
4941 - [`num::NonZeroU32`]
4942 - [`num::NonZeroU64`]
4943 - [`num::NonZeroU8`]
4944 - [`ops::RangeBounds`]
4945 - [`slice::SliceIndex`]
4946 - [`slice::from_mut`]
4947 - [`slice::from_ref`]
4948 - [`{Any + Send + Sync}::downcast_mut`]
4949 - [`{Any + Send + Sync}::downcast_ref`]
4950 - [`{Any + Send + Sync}::is`]
4954 - [Cargo will now no longer allow you to publish crates with build scripts that
4955 modify the `src` directory.][cargo/5584] The `src` directory in a crate should be
4956 considered to be immutable.
4960 - [The `suggestion_applicability` field in `rustc`'s json output is now
4961 stable.][50486] This will allow dev tools to check whether a code suggestion
4962 would apply to them.
4966 - [Rust will consider trait objects with duplicated constraints to be the same
4967 type as without the duplicated constraint.][51276] For example the below code will
4968 now fail to compile.
4973 fn test(&self) { println!("one"); } //~ ERROR duplicate definitions with name `test`
4976 impl Trait + Send + Send {
4977 fn test(&self) { println!("two"); }
4981 [49546]: https://github.com/rust-lang/rust/pull/49546/
4982 [50143]: https://github.com/rust-lang/rust/pull/50143/
4983 [50170]: https://github.com/rust-lang/rust/pull/50170/
4984 [50234]: https://github.com/rust-lang/rust/pull/50234/
4985 [50265]: https://github.com/rust-lang/rust/pull/50265/
4986 [50364]: https://github.com/rust-lang/rust/pull/50364/
4987 [50385]: https://github.com/rust-lang/rust/pull/50385/
4988 [50465]: https://github.com/rust-lang/rust/pull/50465/
4989 [50486]: https://github.com/rust-lang/rust/pull/50486/
4990 [50554]: https://github.com/rust-lang/rust/pull/50554/
4991 [50610]: https://github.com/rust-lang/rust/pull/50610/
4992 [50855]: https://github.com/rust-lang/rust/pull/50855/
4993 [51050]: https://github.com/rust-lang/rust/pull/51050/
4994 [51196]: https://github.com/rust-lang/rust/pull/51196/
4995 [51241]: https://github.com/rust-lang/rust/pull/51241/
4996 [51276]: https://github.com/rust-lang/rust/pull/51276/
4997 [51298]: https://github.com/rust-lang/rust/pull/51298/
4998 [51306]: https://github.com/rust-lang/rust/pull/51306/
4999 [51562]: https://github.com/rust-lang/rust/pull/51562/
5000 [cargo/5584]: https://github.com/rust-lang/cargo/pull/5584/
5001 [`Iterator::step_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.step_by
5002 [`Path::ancestors`]: https://doc.rust-lang.org/std/path/struct.Path.html#method.ancestors
5003 [`SystemTime::UNIX_EPOCH`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#associatedconstant.UNIX_EPOCH
5004 [`alloc::GlobalAlloc`]: https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html
5005 [`alloc::Layout`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html
5006 [`alloc::LayoutErr`]: https://doc.rust-lang.org/std/alloc/struct.LayoutErr.html
5007 [`alloc::System`]: https://doc.rust-lang.org/std/alloc/struct.System.html
5008 [`alloc::alloc`]: https://doc.rust-lang.org/std/alloc/fn.alloc.html
5009 [`alloc::alloc_zeroed`]: https://doc.rust-lang.org/std/alloc/fn.alloc_zeroed.html
5010 [`alloc::dealloc`]: https://doc.rust-lang.org/std/alloc/fn.dealloc.html
5011 [`alloc::realloc`]: https://doc.rust-lang.org/std/alloc/fn.realloc.html
5012 [`alloc::handle_alloc_error`]: https://doc.rust-lang.org/std/alloc/fn.handle_alloc_error.html
5013 [`btree_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.or_default
5014 [`fmt::Alignment`]: https://doc.rust-lang.org/std/fmt/enum.Alignment.html
5015 [`hash_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.or_default
5016 [`iter::repeat_with`]: https://doc.rust-lang.org/std/iter/fn.repeat_with.html
5017 [`num::NonZeroUsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroUsize.html
5018 [`num::NonZeroU128`]: https://doc.rust-lang.org/std/num/struct.NonZeroU128.html
5019 [`num::NonZeroU16`]: https://doc.rust-lang.org/std/num/struct.NonZeroU16.html
5020 [`num::NonZeroU32`]: https://doc.rust-lang.org/std/num/struct.NonZeroU32.html
5021 [`num::NonZeroU64`]: https://doc.rust-lang.org/std/num/struct.NonZeroU64.html
5022 [`num::NonZeroU8`]: https://doc.rust-lang.org/std/num/struct.NonZeroU8.html
5023 [`ops::RangeBounds`]: https://doc.rust-lang.org/std/ops/trait.RangeBounds.html
5024 [`slice::SliceIndex`]: https://doc.rust-lang.org/std/slice/trait.SliceIndex.html
5025 [`slice::from_mut`]: https://doc.rust-lang.org/std/slice/fn.from_mut.html
5026 [`slice::from_ref`]: https://doc.rust-lang.org/std/slice/fn.from_ref.html
5027 [`{Any + Send + Sync}::downcast_mut`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_mut-2
5028 [`{Any + Send + Sync}::downcast_ref`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_ref-2
5029 [`{Any + Send + Sync}::is`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.is-2
5031 Version 1.27.2 (2018-07-20)
5032 ===========================
5037 - The borrow checker was fixed to avoid potential unsoundness when using
5038 match ergonomics: [#52213][52213].
5040 [52213]: https://github.com/rust-lang/rust/issues/52213
5042 Version 1.27.1 (2018-07-10)
5043 ===========================
5048 - rustdoc would execute plugins in the /tmp/rustdoc/plugins directory
5049 when running, which enabled executing code as some other user on a
5050 given machine. This release fixes that vulnerability; you can read
5051 more about this on the [blog][rustdoc-sec]. The associated CVE is [CVE-2018-1000622].
5053 Thank you to Red Hat for responsibly disclosing this vulnerability to us.
5058 - The borrow checker was fixed to avoid an additional potential unsoundness when using
5059 match ergonomics: [#51415][51415], [#49534][49534].
5061 [51415]: https://github.com/rust-lang/rust/issues/51415
5062 [49534]: https://github.com/rust-lang/rust/issues/49534
5063 [rustdoc-sec]: https://blog.rust-lang.org/2018/07/06/security-advisory-for-rustdoc.html
5064 [CVE-2018-1000622]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=%20CVE-2018-1000622
5066 Version 1.27.0 (2018-06-21)
5067 ==========================
5071 - [Removed 'proc' from the reserved keywords list.][49699] This allows `proc` to
5072 be used as an identifier.
5073 - [The dyn syntax is now available.][49968] This syntax is equivalent to the
5074 bare `Trait` syntax, and should make it clearer when being used in tandem with
5075 `impl Trait` because it is equivalent to the following syntax:
5076 `&Trait == &dyn Trait`, `&mut Trait == &mut dyn Trait`, and
5077 `Box<Trait> == Box<dyn Trait>`.
5078 - [Attributes on generic parameters such as types and lifetimes are
5079 now stable.][48851] e.g.
5080 `fn foo<#[lifetime_attr] 'a, #[type_attr] T: 'a>() {}`
5081 - [The `#[must_use]` attribute can now also be used on functions as well as
5082 types.][48925] It provides a lint that by default warns users when the
5083 value returned by a function has not been used.
5087 - [Added the `armv5te-unknown-linux-musleabi` target.][50423]
5091 - [SIMD (Single Instruction Multiple Data) on x86/x86_64 is now stable.][49664]
5092 This includes [`arch::x86`] & [`arch::x86_64`] modules which contain
5093 SIMD intrinsics, a new macro called `is_x86_feature_detected!`, the
5094 `#[target_feature(enable="")]` attribute, and adding `target_feature = ""` to
5095 the `cfg` attribute.
5096 - [A lot of methods for `[u8]`, `f32`, and `f64` previously only available in
5097 std are now available in core.][49896]
5098 - [The generic `Rhs` type parameter on `ops::{Shl, ShlAssign, Shr}` now defaults
5100 - [`std::str::replace` now has the `#[must_use]` attribute][50177] to clarify
5101 that the operation isn't done in place.
5102 - [`Clone::clone`, `Iterator::collect`, and `ToOwned::to_owned` now have
5103 the `#[must_use]` attribute][49533] to warn about unused potentially
5104 expensive allocations.
5108 - [`DoubleEndedIterator::rfind`]
5109 - [`DoubleEndedIterator::rfold`]
5110 - [`DoubleEndedIterator::try_rfold`]
5111 - [`Duration::from_micros`]
5112 - [`Duration::from_nanos`]
5113 - [`Duration::subsec_micros`]
5114 - [`Duration::subsec_millis`]
5115 - [`HashMap::remove_entry`]
5116 - [`Iterator::try_fold`]
5117 - [`Iterator::try_for_each`]
5119 - [`Option::filter`]
5120 - [`String::replace_range`]
5121 - [`Take::set_limit`]
5122 - [`hint::unreachable_unchecked`]
5123 - [`os::unix::process::parent_id`]
5124 - [`ptr::swap_nonoverlapping`]
5125 - [`slice::rsplit_mut`]
5127 - [`slice::swap_with_slice`]
5131 - [`cargo-metadata` now includes `authors`, `categories`, `keywords`,
5132 `readme`, and `repository` fields.][cargo/5386]
5133 - [`cargo-metadata` now includes a package's `metadata` table.][cargo/5360]
5134 - [Added the `--target-dir` optional argument.][cargo/5393] This allows you to specify
5135 a different directory than `target` for placing compilation artifacts.
5136 - [Cargo will be adding automatic target inference for binaries, benchmarks,
5137 examples, and tests in the Rust 2018 edition.][cargo/5335] If your project specifies
5138 specific targets, e.g. using `[[bin]]`, and have other binaries in locations
5139 where cargo would infer a binary, Cargo will produce a warning. You can
5140 disable this feature ahead of time by setting any of the following to false:
5141 `autobins`, `autobenches`, `autoexamples`, `autotests`.
5142 - [Cargo will now cache compiler information.][cargo/5359] This can be disabled by
5143 setting `CARGO_CACHE_RUSTC_INFO=0` in your environment.
5147 - [Added “The Rustc book” into the official documentation.][49707]
5148 [“The Rustc book”] documents and teaches how to use the rustc compiler.
5149 - [All books available on `doc.rust-lang.org` are now searchable.][49623]
5153 - [Calling a `CharExt` or `StrExt` method directly on core will no longer
5154 work.][49896] e.g. `::core::prelude::v1::StrExt::is_empty("")` will not
5155 compile, `"".is_empty()` will still compile.
5156 - [`Debug` output on `atomic::{AtomicBool, AtomicIsize, AtomicPtr, AtomicUsize}`
5157 will only print the inner type.][48553] E.g.
5158 `print!("{:?}", AtomicBool::new(true))` will print `true`,
5159 not `AtomicBool(true)`.
5160 - [The maximum number for `repr(align(N))` is now 2²⁹.][50378] Previously you
5161 could enter higher numbers but they were not supported by LLVM. Up to 512MB
5162 alignment should cover all use cases.
5163 - The `.description()` method on the `std::error::Error` trait
5164 [has been soft-deprecated][50163]. It is no longer required to implement it.
5166 [48553]: https://github.com/rust-lang/rust/pull/48553/
5167 [48851]: https://github.com/rust-lang/rust/pull/48851/
5168 [48925]: https://github.com/rust-lang/rust/pull/48925/
5169 [49533]: https://github.com/rust-lang/rust/pull/49533/
5170 [49623]: https://github.com/rust-lang/rust/pull/49623/
5171 [49630]: https://github.com/rust-lang/rust/pull/49630/
5172 [49664]: https://github.com/rust-lang/rust/pull/49664/
5173 [49699]: https://github.com/rust-lang/rust/pull/49699/
5174 [49707]: https://github.com/rust-lang/rust/pull/49707/
5175 [49896]: https://github.com/rust-lang/rust/pull/49896/
5176 [49968]: https://github.com/rust-lang/rust/pull/49968/
5177 [50163]: https://github.com/rust-lang/rust/pull/50163
5178 [50177]: https://github.com/rust-lang/rust/pull/50177/
5179 [50378]: https://github.com/rust-lang/rust/pull/50378/
5180 [50423]: https://github.com/rust-lang/rust/pull/50423/
5181 [cargo/5335]: https://github.com/rust-lang/cargo/pull/5335/
5182 [cargo/5359]: https://github.com/rust-lang/cargo/pull/5359/
5183 [cargo/5360]: https://github.com/rust-lang/cargo/pull/5360/
5184 [cargo/5386]: https://github.com/rust-lang/cargo/pull/5386/
5185 [cargo/5393]: https://github.com/rust-lang/cargo/pull/5393/
5186 [`DoubleEndedIterator::rfind`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfind
5187 [`DoubleEndedIterator::rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfold
5188 [`DoubleEndedIterator::try_rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.try_rfold
5189 [`Duration::from_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_micros
5190 [`Duration::from_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_nanos
5191 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
5192 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
5193 [`HashMap::remove_entry`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.remove_entry
5194 [`Iterator::try_fold`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_fold
5195 [`Iterator::try_for_each`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_for_each
5196 [`NonNull::cast`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.cast
5197 [`Option::filter`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.filter
5198 [`String::replace_range`]: https://doc.rust-lang.org/std/string/struct.String.html#method.replace_range
5199 [`Take::set_limit`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.set_limit
5200 [`hint::unreachable_unchecked`]: https://doc.rust-lang.org/std/hint/fn.unreachable_unchecked.html
5201 [`os::unix::process::parent_id`]: https://doc.rust-lang.org/std/os/unix/process/fn.parent_id.html
5202 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
5203 [`ptr::swap_nonoverlapping`]: https://doc.rust-lang.org/std/ptr/fn.swap_nonoverlapping.html
5204 [`slice::rsplit_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit_mut
5205 [`slice::rsplit`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit
5206 [`slice::swap_with_slice`]: https://doc.rust-lang.org/std/primitive.slice.html#method.swap_with_slice
5207 [`arch::x86_64`]: https://doc.rust-lang.org/std/arch/x86_64/index.html
5208 [`arch::x86`]: https://doc.rust-lang.org/std/arch/x86/index.html
5209 [“The Rustc book”]: https://doc.rust-lang.org/rustc
5212 Version 1.26.2 (2018-06-05)
5213 ==========================
5218 - [The borrow checker was fixed to avoid unsoundness when using match ergonomics.][51117]
5220 [51117]: https://github.com/rust-lang/rust/issues/51117
5223 Version 1.26.1 (2018-05-29)
5224 ==========================
5229 - [RLS now works on Windows.][50646]
5230 - [Rustfmt stopped badly formatting text in some cases.][rustfmt/2695]
5236 - [`fn main() -> impl Trait` no longer works for non-Termination
5238 This reverts an accidental stabilization.
5239 - [`NaN > NaN` no longer returns true in const-fn contexts.][50812]
5240 - [Prohibit using turbofish for `impl Trait` in method arguments.][50950]
5242 [50646]: https://github.com/rust-lang/rust/issues/50646
5243 [50656]: https://github.com/rust-lang/rust/pull/50656
5244 [50812]: https://github.com/rust-lang/rust/pull/50812
5245 [50950]: https://github.com/rust-lang/rust/issues/50950
5246 [rustfmt/2695]: https://github.com/rust-lang-nursery/rustfmt/issues/2695
5248 Version 1.26.0 (2018-05-10)
5249 ==========================
5253 - [Closures now implement `Copy` and/or `Clone` if all captured variables
5254 implement either or both traits.][49299]
5255 - [The inclusive range syntax e.g. `for x in 0..=10` is now stable.][47813]
5256 - [The `'_` lifetime is now stable. The underscore lifetime can be used anywhere a
5257 lifetime can be elided.][49458]
5258 - [`impl Trait` is now stable allowing you to have abstract types in returns
5259 or in function parameters.][49255] E.g. `fn foo() -> impl Iterator<Item=u8>` or
5260 `fn open(path: impl AsRef<Path>)`.
5261 - [Pattern matching will now automatically apply dereferences.][49394]
5262 - [128-bit integers in the form of `u128` and `i128` are now stable.][49101]
5263 - [`main` can now return `Result<(), E: Debug>`][49162] in addition to `()`.
5264 - [A lot of operations are now available in a const context.][46882] E.g. You
5265 can now index into constant arrays, reference and dereference into constants,
5266 and use tuple struct constructors.
5267 - [Fixed entry slice patterns are now stable.][48516] E.g.
5269 let points = [1, 2, 3, 4];
5271 [1, 2, 3, 4] => println!("All points were sequential."),
5272 _ => println!("Not all points were sequential."),
5279 - [LLD is now used as the default linker for `wasm32-unknown-unknown`.][48125]
5280 - [Fixed exponential projection complexity on nested types.][48296]
5281 This can provide up to a ~12% reduction in compile times for certain crates.
5282 - [Added the `--remap-path-prefix` option to rustc.][48359] Allowing you
5283 to remap path prefixes outputted by the compiler.
5284 - [Added `powerpc-unknown-netbsd` target.][48281]
5288 - [Implemented `From<u16> for usize` & `From<{u8, i16}> for isize`.][49305]
5289 - [Added hexadecimal formatting for integers with fmt::Debug][48978]
5290 e.g. `assert!(format!("{:02x?}", b"Foo\0") == "[46, 6f, 6f, 00]")`
5291 - [Implemented `Default, Hash` for `cmp::Reverse`.][48628]
5292 - [Optimized `str::repeat` being 8x faster in large cases.][48657]
5293 - [`ascii::escape_default` is now available in libcore.][48735]
5294 - [Trailing commas are now supported in std and core macros.][48056]
5295 - [Implemented `Copy, Clone` for `cmp::Reverse`][47379]
5296 - [Implemented `Clone` for `char::{ToLowercase, ToUppercase}`.][48629]
5301 - [`*const T::copy_to_nonoverlapping`]
5302 - [`*const T::copy_to`]
5303 - [`*const T::read_unaligned`]
5304 - [`*const T::read_volatile`]
5305 - [`*const T::read`]
5307 - [`*const T::wrapping_add`]
5308 - [`*const T::wrapping_sub`]
5310 - [`*mut T::copy_to_nonoverlapping`]
5311 - [`*mut T::copy_to`]
5312 - [`*mut T::read_unaligned`]
5313 - [`*mut T::read_volatile`]
5315 - [`*mut T::replace`]
5318 - [`*mut T::wrapping_add`]
5319 - [`*mut T::wrapping_sub`]
5320 - [`*mut T::write_bytes`]
5321 - [`*mut T::write_unaligned`]
5322 - [`*mut T::write_volatile`]
5325 - [`FromUtf8Error::as_bytes`]
5326 - [`LocalKey::try_with`]
5327 - [`Option::cloned`]
5328 - [`btree_map::Entry::and_modify`]
5329 - [`fs::read_to_string`]
5332 - [`hash_map::Entry::and_modify`]
5333 - [`iter::FusedIterator`]
5334 - [`ops::RangeInclusive`]
5335 - [`ops::RangeToInclusive`]
5337 - [`slice::rotate_left`]
5338 - [`slice::rotate_right`]
5339 - [`String::retain`]
5344 - [Cargo will now output path to custom commands when `-v` is
5345 passed with `--list`][cargo/5041]
5346 - [The Cargo binary version is now the same as the Rust version][cargo/5083]
5350 - [The second edition of "The Rust Programming Language" book is now recommended
5351 over the first.][48404]
5356 - [aliasing a `Fn` trait as `dyn` no longer works.][48481] E.g. the following
5357 syntax is now invalid.
5359 use std::ops::Fn as dyn;
5360 fn g(_: Box<dyn(std::fmt::Debug)>) {}
5362 - [The result of dereferences are no longer promoted to `'static`.][47408]
5366 const PAIR: &(i32, i32) = &(0, 1);
5367 let _reversed_pair: &'static _ = &(PAIR.1, PAIR.0); // Doesn't work
5370 - [Deprecate `AsciiExt` trait in favor of inherent methods.][49109]
5371 - [`".e0"` will now no longer parse as `0.0` and will instead cause
5373 - [Removed hoedown from rustdoc.][48274]
5374 - [Bounds on higher-kinded lifetimes a hard error.][48326]
5376 [46882]: https://github.com/rust-lang/rust/pull/46882
5377 [47379]: https://github.com/rust-lang/rust/pull/47379
5378 [47408]: https://github.com/rust-lang/rust/pull/47408
5379 [47813]: https://github.com/rust-lang/rust/pull/47813
5380 [48056]: https://github.com/rust-lang/rust/pull/48056
5381 [48125]: https://github.com/rust-lang/rust/pull/48125
5382 [48235]: https://github.com/rust-lang/rust/pull/48235
5383 [48274]: https://github.com/rust-lang/rust/pull/48274
5384 [48281]: https://github.com/rust-lang/rust/pull/48281
5385 [48296]: https://github.com/rust-lang/rust/pull/48296
5386 [48326]: https://github.com/rust-lang/rust/pull/48326
5387 [48359]: https://github.com/rust-lang/rust/pull/48359
5388 [48404]: https://github.com/rust-lang/rust/pull/48404
5389 [48481]: https://github.com/rust-lang/rust/pull/48481
5390 [48516]: https://github.com/rust-lang/rust/pull/48516
5391 [48628]: https://github.com/rust-lang/rust/pull/48628
5392 [48629]: https://github.com/rust-lang/rust/pull/48629
5393 [48657]: https://github.com/rust-lang/rust/pull/48657
5394 [48735]: https://github.com/rust-lang/rust/pull/48735
5395 [48978]: https://github.com/rust-lang/rust/pull/48978
5396 [49101]: https://github.com/rust-lang/rust/pull/49101
5397 [49109]: https://github.com/rust-lang/rust/pull/49109
5398 [49162]: https://github.com/rust-lang/rust/pull/49162
5399 [49255]: https://github.com/rust-lang/rust/pull/49255
5400 [49299]: https://github.com/rust-lang/rust/pull/49299
5401 [49305]: https://github.com/rust-lang/rust/pull/49305
5402 [49394]: https://github.com/rust-lang/rust/pull/49394
5403 [49458]: https://github.com/rust-lang/rust/pull/49458
5404 [`*const T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add
5405 [`*const T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping
5406 [`*const T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to
5407 [`*const T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned
5408 [`*const T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile
5409 [`*const T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read
5410 [`*const T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub
5411 [`*const T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add
5412 [`*const T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub
5413 [`*mut T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add-1
5414 [`*mut T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping-1
5415 [`*mut T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to-1
5416 [`*mut T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned-1
5417 [`*mut T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile-1
5418 [`*mut T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read-1
5419 [`*mut T::replace`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.replace
5420 [`*mut T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub-1
5421 [`*mut T::swap`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.swap
5422 [`*mut T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add-1
5423 [`*mut T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub-1
5424 [`*mut T::write_bytes`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_bytes
5425 [`*mut T::write_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_unaligned
5426 [`*mut T::write_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_volatile
5427 [`*mut T::write`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write
5428 [`Box::leak`]: https://doc.rust-lang.org/std/boxed/struct.Box.html#method.leak
5429 [`FromUtf8Error::as_bytes`]: https://doc.rust-lang.org/std/string/struct.FromUtf8Error.html#method.as_bytes
5430 [`LocalKey::try_with`]: https://doc.rust-lang.org/std/thread/struct.LocalKey.html#method.try_with
5431 [`Option::cloned`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.cloned
5432 [`btree_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.and_modify
5433 [`fs::read_to_string`]: https://doc.rust-lang.org/std/fs/fn.read_to_string.html
5434 [`fs::read`]: https://doc.rust-lang.org/std/fs/fn.read.html
5435 [`fs::write`]: https://doc.rust-lang.org/std/fs/fn.write.html
5436 [`hash_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.and_modify
5437 [`iter::FusedIterator`]: https://doc.rust-lang.org/std/iter/trait.FusedIterator.html
5438 [`ops::RangeInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html
5439 [`ops::RangeToInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html
5440 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
5441 [`slice::rotate_left`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_left
5442 [`slice::rotate_right`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_right
5443 [`String::retain`]: https://doc.rust-lang.org/std/string/struct.String.html#method.retain
5444 [cargo/5041]: https://github.com/rust-lang/cargo/pull/5041
5445 [cargo/5083]: https://github.com/rust-lang/cargo/pull/5083
5448 Version 1.25.0 (2018-03-29)
5449 ==========================
5453 - [The `#[repr(align(x))]` attribute is now stable.][47006] [RFC 1358]
5454 - [You can now use nested groups of imports.][47948]
5455 e.g. `use std::{fs::File, io::Read, path::{Path, PathBuf}};`
5456 - [You can now have `|` at the start of a match arm.][47947] e.g.
5458 enum Foo { A, B, C }
5464 | Foo::B => println!("AB"),
5465 | Foo::C => println!("C"),
5472 - [Upgraded to LLVM 6.][47828]
5473 - [Added `-C lto=val` option.][47521]
5474 - [Added `i586-unknown-linux-musl` target][47282]
5478 - [Impl Send for `process::Command` on Unix.][47760]
5479 - [Impl PartialEq and Eq for `ParseCharError`.][47790]
5480 - [`UnsafeCell::into_inner` is now safe.][47204]
5481 - [Implement libstd for CloudABI.][47268]
5482 - [`Float::{from_bits, to_bits}` is now available in libcore.][46931]
5483 - [Implement `AsRef<Path>` for Component][46985]
5484 - [Implemented `Write` for `Cursor<&mut Vec<u8>>`][46830]
5485 - [Moved `Duration` to libcore.][46666]
5489 - [`Location::column`]
5492 The following functions can now be used in a constant expression.
5493 eg. `static MINUTE: Duration = Duration::from_secs(60);`
5494 - [`Duration::new`][47300]
5495 - [`Duration::from_secs`][47300]
5496 - [`Duration::from_millis`][47300]
5500 - [`cargo new` no longer removes `rust` or `rs` prefixs/suffixs.][cargo/5013]
5501 - [`cargo new` now defaults to creating a binary crate, instead of a
5502 library crate.][cargo/5029]
5506 - [Rust by example is now shipped with new releases][46196]
5510 - [Deprecated `net::lookup_host`.][47510]
5511 - [`rustdoc` has switched to pulldown as the default markdown renderer.][47398]
5512 - The borrow checker was sometimes incorrectly permitting overlapping borrows
5513 around indexing operations (see [#47349][47349]). This has been fixed (which also
5514 enabled some correct code that used to cause errors (e.g. [#33903][33903] and [#46095][46095]).
5515 - [Removed deprecated unstable attribute `#[simd]`.][47251]
5517 [33903]: https://github.com/rust-lang/rust/pull/33903
5518 [47947]: https://github.com/rust-lang/rust/pull/47947
5519 [47948]: https://github.com/rust-lang/rust/pull/47948
5520 [47760]: https://github.com/rust-lang/rust/pull/47760
5521 [47790]: https://github.com/rust-lang/rust/pull/47790
5522 [47828]: https://github.com/rust-lang/rust/pull/47828
5523 [47398]: https://github.com/rust-lang/rust/pull/47398
5524 [47510]: https://github.com/rust-lang/rust/pull/47510
5525 [47521]: https://github.com/rust-lang/rust/pull/47521
5526 [47204]: https://github.com/rust-lang/rust/pull/47204
5527 [47251]: https://github.com/rust-lang/rust/pull/47251
5528 [47268]: https://github.com/rust-lang/rust/pull/47268
5529 [47282]: https://github.com/rust-lang/rust/pull/47282
5530 [47300]: https://github.com/rust-lang/rust/pull/47300
5531 [47349]: https://github.com/rust-lang/rust/pull/47349
5532 [46931]: https://github.com/rust-lang/rust/pull/46931
5533 [46985]: https://github.com/rust-lang/rust/pull/46985
5534 [47006]: https://github.com/rust-lang/rust/pull/47006
5535 [46830]: https://github.com/rust-lang/rust/pull/46830
5536 [46095]: https://github.com/rust-lang/rust/pull/46095
5537 [46666]: https://github.com/rust-lang/rust/pull/46666
5538 [46196]: https://github.com/rust-lang/rust/pull/46196
5539 [cargo/5013]: https://github.com/rust-lang/cargo/pull/5013
5540 [cargo/5029]: https://github.com/rust-lang/cargo/pull/5029
5541 [RFC 1358]: https://github.com/rust-lang/rfcs/pull/1358
5542 [`Location::column`]: https://doc.rust-lang.org/std/panic/struct.Location.html#method.column
5543 [`ptr::NonNull`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html
5546 Version 1.24.1 (2018-03-01)
5547 ==========================
5549 - [Do not abort when unwinding through FFI][48251]
5550 - [Emit UTF-16 files for linker arguments on Windows][48318]
5551 - [Make the error index generator work again][48308]
5552 - [Cargo will warn on Windows 7 if an update is needed][cargo/5069].
5554 [48251]: https://github.com/rust-lang/rust/issues/48251
5555 [48308]: https://github.com/rust-lang/rust/issues/48308
5556 [48318]: https://github.com/rust-lang/rust/issues/48318
5557 [cargo/5069]: https://github.com/rust-lang/cargo/pull/5069
5560 Version 1.24.0 (2018-02-15)
5561 ==========================
5565 - [External `sysv64` ffi is now available.][46528]
5566 eg. `extern "sysv64" fn foo () {}`
5570 - [rustc now uses 16 codegen units by default for release builds.][46910]
5571 For the fastest builds, utilize `codegen-units=1`.
5572 - [Added `armv4t-unknown-linux-gnueabi` target.][47018]
5573 - [Add `aarch64-unknown-openbsd` support][46760]
5577 - [`str::find::<char>` now uses memchr.][46735] This should lead to a 10x
5578 improvement in performance in the majority of cases.
5579 - [`OsStr`'s `Debug` implementation is now lossless and consistent
5580 with Windows.][46798]
5581 - [`time::{SystemTime, Instant}` now implement `Hash`.][46828]
5582 - [impl `From<bool>` for `AtomicBool`][46293]
5583 - [impl `From<{CString, &CStr}>` for `{Arc<CStr>, Rc<CStr>}`][45990]
5584 - [impl `From<{OsString, &OsStr}>` for `{Arc<OsStr>, Rc<OsStr>}`][45990]
5585 - [impl `From<{PathBuf, &Path}>` for `{Arc<Path>, Rc<Path>}`][45990]
5586 - [float::from_bits now just uses transmute.][46012] This provides
5587 some optimisations from LLVM.
5588 - [Copied `AsciiExt` methods onto `char`][46077]
5589 - [Remove `T: Sized` requirement on `ptr::is_null()`][46094]
5590 - [impl `From<RecvError>` for `{TryRecvError, RecvTimeoutError}`][45506]
5591 - [Optimised `f32::{min, max}` to generate more efficient x86 assembly][47080]
5592 - [`[u8]::contains` now uses memchr which provides a 3x speed improvement][46713]
5596 - [`RefCell::replace`]
5598 - [`atomic::spin_loop_hint`]
5600 The following functions can now be used in a constant expression.
5601 eg. `let buffer: [u8; size_of::<usize>()];`, `static COUNTER: AtomicUsize = AtomicUsize::new(1);`
5603 - [`AtomicBool::new`][46287]
5604 - [`AtomicUsize::new`][46287]
5605 - [`AtomicIsize::new`][46287]
5606 - [`AtomicPtr::new`][46287]
5607 - [`Cell::new`][46287]
5608 - [`{integer}::min_value`][46287]
5609 - [`{integer}::max_value`][46287]
5610 - [`mem::size_of`][46287]
5611 - [`mem::align_of`][46287]
5612 - [`ptr::null`][46287]
5613 - [`ptr::null_mut`][46287]
5614 - [`RefCell::new`][46287]
5615 - [`UnsafeCell::new`][46287]
5619 - [Added a `workspace.default-members` config that
5620 overrides implied `--all` in virtual workspaces.][cargo/4743]
5621 - [Enable incremental by default on development builds.][cargo/4817] Also added
5622 configuration keys to `Cargo.toml` and `.cargo/config` to disable on a
5623 per-project or global basis respectively.
5630 - [Floating point types `Debug` impl now always prints a decimal point.][46831]
5631 - [`Ipv6Addr` now rejects superfluous `::`'s in IPv6 addresses][46671] This is
5632 in accordance with IETF RFC 4291 §2.2.
5633 - [Unwinding will no longer go past FFI boundaries, and will instead abort.][46833]
5634 - [`Formatter::flags` method is now deprecated.][46284] The `sign_plus`,
5635 `sign_minus`, `alternate`, and `sign_aware_zero_pad` should be used instead.
5636 - [Leading zeros in tuple struct members is now an error][47084]
5637 - [`column!()` macro is one-based instead of zero-based][46977]
5638 - [`fmt::Arguments` can no longer be shared across threads][45198]
5639 - [Access to `#[repr(packed)]` struct fields is now unsafe][44884]
5640 - [Cargo sets a different working directory for the compiler][cargo/4788]
5642 [44884]: https://github.com/rust-lang/rust/pull/44884
5643 [45198]: https://github.com/rust-lang/rust/pull/45198
5644 [45506]: https://github.com/rust-lang/rust/pull/45506
5645 [45990]: https://github.com/rust-lang/rust/pull/45990
5646 [46012]: https://github.com/rust-lang/rust/pull/46012
5647 [46077]: https://github.com/rust-lang/rust/pull/46077
5648 [46094]: https://github.com/rust-lang/rust/pull/46094
5649 [46284]: https://github.com/rust-lang/rust/pull/46284
5650 [46287]: https://github.com/rust-lang/rust/pull/46287
5651 [46293]: https://github.com/rust-lang/rust/pull/46293
5652 [46528]: https://github.com/rust-lang/rust/pull/46528
5653 [46671]: https://github.com/rust-lang/rust/pull/46671
5654 [46713]: https://github.com/rust-lang/rust/pull/46713
5655 [46735]: https://github.com/rust-lang/rust/pull/46735
5656 [46760]: https://github.com/rust-lang/rust/pull/46760
5657 [46798]: https://github.com/rust-lang/rust/pull/46798
5658 [46828]: https://github.com/rust-lang/rust/pull/46828
5659 [46831]: https://github.com/rust-lang/rust/pull/46831
5660 [46833]: https://github.com/rust-lang/rust/pull/46833
5661 [46910]: https://github.com/rust-lang/rust/pull/46910
5662 [46977]: https://github.com/rust-lang/rust/pull/46977
5663 [47018]: https://github.com/rust-lang/rust/pull/47018
5664 [47080]: https://github.com/rust-lang/rust/pull/47080
5665 [47084]: https://github.com/rust-lang/rust/pull/47084
5666 [cargo/4743]: https://github.com/rust-lang/cargo/pull/4743
5667 [cargo/4788]: https://github.com/rust-lang/cargo/pull/4788
5668 [cargo/4817]: https://github.com/rust-lang/cargo/pull/4817
5669 [`RefCell::replace`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.replace
5670 [`RefCell::swap`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.swap
5671 [`atomic::spin_loop_hint`]: https://doc.rust-lang.org/std/sync/atomic/fn.spin_loop_hint.html
5674 Version 1.23.0 (2018-01-04)
5675 ==========================
5679 - [Arbitrary `auto` traits are now permitted in trait objects.][45772]
5680 - [rustc now uses subtyping on the left hand side of binary operations.][45435]
5681 Which should fix some confusing errors in some operations.
5685 - [Enabled `TrapUnreachable` in LLVM which should mitigate the impact of
5686 undefined behavior.][45920]
5687 - [rustc now suggests renaming import if names clash.][45660]
5688 - [Display errors/warnings correctly when there are zero-width or
5689 wide characters.][45711]
5690 - [rustc now avoids unnecessary copies of arguments that are
5691 simple bindings][45380] This should improve memory usage on average by 5-10%.
5692 - [Updated musl used to build musl rustc to 1.1.17][45393]
5696 - [Allow a trailing comma in `assert_eq/ne` macro][45887]
5697 - [Implement Hash for raw pointers to unsized types][45483]
5698 - [impl `From<*mut T>` for `AtomicPtr<T>`][45610]
5699 - [impl `From<usize/isize>` for `AtomicUsize/AtomicIsize`.][45610]
5700 - [Removed the `T: Sync` requirement for `RwLock<T>: Send`][45267]
5701 - [Removed `T: Sized` requirement for `{<*const T>, <*mut T>}::as_ref`
5702 and `<*mut T>::as_mut`][44932]
5703 - [Optimized `Thread::{park, unpark}` implementation][45524]
5704 - [Improved `SliceExt::binary_search` performance.][45333]
5705 - [impl `FromIterator<()>` for `()`][45379]
5706 - [Copied `AsciiExt` trait methods to primitive types.][44042] Use of `AsciiExt`
5714 - [Cargo now supports uninstallation of multiple packages][cargo/4561]
5715 eg. `cargo uninstall foo bar` uninstalls `foo` and `bar`.
5716 - [Added unit test checking to `cargo check`][cargo/4592]
5717 - [Cargo now lets you install a specific version
5718 using `cargo install --version`][cargo/4637]
5722 - [Releases now ship with the Cargo book documentation.][45692]
5723 - [rustdoc now prints rendering warnings on every run.][45324]
5727 - [Changes have been made to type equality to make it more correct,
5728 in rare cases this could break some code.][45853] [Tracking issue for
5729 further information][45852]
5730 - [`char::escape_debug` now uses Unicode 10 over 9.][45571]
5731 - [Upgraded Android SDK to 27, and NDK to r15c.][45580] This drops support for
5732 Android 9, the minimum supported version is Android 14.
5733 - [Bumped the minimum LLVM to 3.9][45326]
5735 [44042]: https://github.com/rust-lang/rust/pull/44042
5736 [44932]: https://github.com/rust-lang/rust/pull/44932
5737 [45267]: https://github.com/rust-lang/rust/pull/45267
5738 [45324]: https://github.com/rust-lang/rust/pull/45324
5739 [45326]: https://github.com/rust-lang/rust/pull/45326
5740 [45333]: https://github.com/rust-lang/rust/pull/45333
5741 [45379]: https://github.com/rust-lang/rust/pull/45379
5742 [45380]: https://github.com/rust-lang/rust/pull/45380
5743 [45393]: https://github.com/rust-lang/rust/pull/45393
5744 [45435]: https://github.com/rust-lang/rust/pull/45435
5745 [45483]: https://github.com/rust-lang/rust/pull/45483
5746 [45524]: https://github.com/rust-lang/rust/pull/45524
5747 [45571]: https://github.com/rust-lang/rust/pull/45571
5748 [45580]: https://github.com/rust-lang/rust/pull/45580
5749 [45610]: https://github.com/rust-lang/rust/pull/45610
5750 [45660]: https://github.com/rust-lang/rust/pull/45660
5751 [45692]: https://github.com/rust-lang/rust/pull/45692
5752 [45711]: https://github.com/rust-lang/rust/pull/45711
5753 [45772]: https://github.com/rust-lang/rust/pull/45772
5754 [45852]: https://github.com/rust-lang/rust/issues/45852
5755 [45853]: https://github.com/rust-lang/rust/pull/45853
5756 [45887]: https://github.com/rust-lang/rust/pull/45887
5757 [45920]: https://github.com/rust-lang/rust/pull/45920
5758 [cargo/4561]: https://github.com/rust-lang/cargo/pull/4561
5759 [cargo/4592]: https://github.com/rust-lang/cargo/pull/4592
5760 [cargo/4637]: https://github.com/rust-lang/cargo/pull/4637
5763 Version 1.22.1 (2017-11-22)
5764 ==========================
5766 - [Update Cargo to fix an issue with macOS 10.13 "High Sierra"][46183]
5768 [46183]: https://github.com/rust-lang/rust/pull/46183
5770 Version 1.22.0 (2017-11-22)
5771 ==========================
5775 - [`non_snake_case` lint now allows extern no-mangle functions][44966]
5776 - [Now accepts underscores in unicode escapes][43716]
5777 - [`T op= &T` now works for numeric types.][44287] eg. `let mut x = 2; x += &8;`
5778 - [types that impl `Drop` are now allowed in `const` and `static` types][44456]
5782 - [rustc now defaults to having 16 codegen units at debug on supported platforms.][45064]
5783 - [rustc will no longer inline in codegen units when compiling for debug][45075]
5784 This should decrease compile times for debug builds.
5785 - [strict memory alignment now enabled on ARMv6][45094]
5786 - [Remove support for the PNaCl target `le32-unknown-nacl`][45041]
5790 - [Allow atomic operations up to 32 bits
5791 on `armv5te_unknown_linux_gnueabi`][44978]
5792 - [`Box<Error>` now impls `From<Cow<str>>`][44466]
5793 - [`std::mem::Discriminant` is now guaranteed to be `Send + Sync`][45095]
5794 - [`fs::copy` now returns the length of the main stream on NTFS.][44895]
5795 - [Properly detect overflow in `Instant += Duration`.][44220]
5796 - [impl `Hasher` for `{&mut Hasher, Box<Hasher>}`][44015]
5797 - [impl `fmt::Debug` for `SplitWhitespace`.][44303]
5798 - [`Option<T>` now impls `Try`][42526] This allows for using `?` with `Option` types.
5805 - [Cargo will now build multi file examples in subdirectories of the `examples`
5806 folder that have a `main.rs` file.][cargo/4496]
5807 - [Changed `[root]` to `[package]` in `Cargo.lock`][cargo/4571] Packages with
5808 the old format will continue to work and can be updated with `cargo update`.
5809 - [Now supports vendoring git repositories][cargo/3992]
5813 - [`libbacktrace` is now available on Apple platforms.][44251]
5814 - [Stabilised the `compile_fail` attribute for code fences in doc-comments.][43949]
5815 This now lets you specify that a given code example will fail to compile.
5819 - [The minimum Android version that rustc can build for has been bumped
5820 to `4.0` from `2.3`][45656]
5821 - [Allowing `T op= &T` for numeric types has broken some type
5822 inference cases][45480]
5825 [42526]: https://github.com/rust-lang/rust/pull/42526
5826 [43716]: https://github.com/rust-lang/rust/pull/43716
5827 [43949]: https://github.com/rust-lang/rust/pull/43949
5828 [44015]: https://github.com/rust-lang/rust/pull/44015
5829 [44220]: https://github.com/rust-lang/rust/pull/44220
5830 [44251]: https://github.com/rust-lang/rust/pull/44251
5831 [44287]: https://github.com/rust-lang/rust/pull/44287
5832 [44303]: https://github.com/rust-lang/rust/pull/44303
5833 [44456]: https://github.com/rust-lang/rust/pull/44456
5834 [44466]: https://github.com/rust-lang/rust/pull/44466
5835 [44895]: https://github.com/rust-lang/rust/pull/44895
5836 [44966]: https://github.com/rust-lang/rust/pull/44966
5837 [44978]: https://github.com/rust-lang/rust/pull/44978
5838 [45041]: https://github.com/rust-lang/rust/pull/45041
5839 [45064]: https://github.com/rust-lang/rust/pull/45064
5840 [45075]: https://github.com/rust-lang/rust/pull/45075
5841 [45094]: https://github.com/rust-lang/rust/pull/45094
5842 [45095]: https://github.com/rust-lang/rust/pull/45095
5843 [45480]: https://github.com/rust-lang/rust/issues/45480
5844 [45656]: https://github.com/rust-lang/rust/pull/45656
5845 [cargo/3992]: https://github.com/rust-lang/cargo/pull/3992
5846 [cargo/4496]: https://github.com/rust-lang/cargo/pull/4496
5847 [cargo/4571]: https://github.com/rust-lang/cargo/pull/4571
5854 Version 1.21.0 (2017-10-12)
5855 ==========================
5859 - [You can now use static references for literals.][43838]
5863 let x: &'static u32 = &0;
5866 - [Relaxed path syntax. Optional `::` before `<` is now allowed in all contexts.][43540]
5869 my_macro!(Vec<i32>::new); // Always worked
5870 my_macro!(Vec::<i32>::new); // Now works
5875 - [Upgraded jemalloc to 4.5.0][43911]
5876 - [Enabled unwinding panics on Redox][43917]
5877 - [Now runs LLVM in parallel during translation phase.][43506]
5878 This should reduce peak memory usage.
5882 - [Generate builtin impls for `Clone` for all arrays and tuples that
5883 are `T: Clone`][43690]
5884 - [`Stdin`, `Stdout`, and `Stderr` now implement `AsRawFd`.][43459]
5885 - [`Rc` and `Arc` now implement `From<&[T]> where T: Clone`, `From<str>`,
5886 `From<String>`, `From<Box<T>> where T: ?Sized`, and `From<Vec<T>>`.][42565]
5891 [`std::mem::discriminant`]
5895 - [You can now call `cargo install` with multiple package names][cargo/4216]
5896 - [Cargo commands inside a virtual workspace will now implicitly
5897 pass `--all`][cargo/4335]
5898 - [Added a `[patch]` section to `Cargo.toml` to handle
5899 prepublication dependencies][cargo/4123] [RFC 1969]
5900 - [`include` & `exclude` fields in `Cargo.toml` now accept gitignore
5901 like patterns][cargo/4270]
5902 - [Added the `--all-targets` option][cargo/4400]
5903 - [Using required dependencies as a feature is now deprecated and emits
5904 a warning][cargo/4364]
5909 - [Cargo docs are moving][43916]
5910 to [doc.rust-lang.org/cargo](https://doc.rust-lang.org/cargo)
5911 - [The rustdoc book is now available][43863]
5912 at [doc.rust-lang.org/rustdoc](https://doc.rust-lang.org/rustdoc)
5913 - [Added a preview of RLS has been made available through rustup][44204]
5914 Install with `rustup component add rls-preview`
5915 - [`std::os` documentation for Unix, Linux, and Windows now appears on doc.rust-lang.org][43348]
5916 Previously only showed `std::os::unix`.
5920 - [Changes in method matching against higher-ranked types][43880] This may cause
5921 breakage in subtyping corner cases. [A more in-depth explanation is available.][info/43880]
5922 - [rustc's JSON error output's byte position start at top of file.][42973]
5923 Was previously relative to the rustc's internal `CodeMap` struct which
5924 required the unstable library `libsyntax` to correctly use.
5925 - [`unused_results` lint no longer ignores booleans][43728]
5927 [42565]: https://github.com/rust-lang/rust/pull/42565
5928 [42973]: https://github.com/rust-lang/rust/pull/42973
5929 [43348]: https://github.com/rust-lang/rust/pull/43348
5930 [43459]: https://github.com/rust-lang/rust/pull/43459
5931 [43506]: https://github.com/rust-lang/rust/pull/43506
5932 [43540]: https://github.com/rust-lang/rust/pull/43540
5933 [43690]: https://github.com/rust-lang/rust/pull/43690
5934 [43728]: https://github.com/rust-lang/rust/pull/43728
5935 [43838]: https://github.com/rust-lang/rust/pull/43838
5936 [43863]: https://github.com/rust-lang/rust/pull/43863
5937 [43880]: https://github.com/rust-lang/rust/pull/43880
5938 [43911]: https://github.com/rust-lang/rust/pull/43911
5939 [43916]: https://github.com/rust-lang/rust/pull/43916
5940 [43917]: https://github.com/rust-lang/rust/pull/43917
5941 [44204]: https://github.com/rust-lang/rust/pull/44204
5942 [cargo/4123]: https://github.com/rust-lang/cargo/pull/4123
5943 [cargo/4216]: https://github.com/rust-lang/cargo/pull/4216
5944 [cargo/4270]: https://github.com/rust-lang/cargo/pull/4270
5945 [cargo/4335]: https://github.com/rust-lang/cargo/pull/4335
5946 [cargo/4364]: https://github.com/rust-lang/cargo/pull/4364
5947 [cargo/4400]: https://github.com/rust-lang/cargo/pull/4400
5948 [RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969
5949 [info/43880]: https://github.com/rust-lang/rust/issues/44224#issuecomment-330058902
5950 [`std::mem::discriminant`]: https://doc.rust-lang.org/std/mem/fn.discriminant.html
5952 Version 1.20.0 (2017-08-31)
5953 ===========================
5957 - [Associated constants are now stabilised.][42809]
5958 - [A lot of macro bugs are now fixed.][42913]
5963 - [Struct fields are now properly coerced to the expected field type.][42807]
5964 - [Enabled wasm LLVM backend][42571] WASM can now be built with the
5965 `wasm32-experimental-emscripten` target.
5966 - [Changed some of the error messages to be more helpful.][42033]
5967 - [Add support for RELRO(RELocation Read-Only) for platforms that support
5969 - [rustc now reports the total number of errors on compilation failure][43015]
5970 previously this was only the number of errors in the pass that failed.
5971 - [Expansion in rustc has been sped up 29x.][42533]
5972 - [added `msp430-none-elf` target.][43099]
5973 - [rustc will now suggest one-argument enum variant to fix type mismatch when
5975 - [Fixes backtraces on Redox][43228]
5976 - [rustc now identifies different versions of same crate when absolute paths of
5977 different types match in an error message.][42826]
5983 - [Relaxed Debug constraints on `{HashMap,BTreeMap}::{Keys,Values}`.][42854]
5984 - [Impl `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Debug`, `Hash` for unsized
5986 - [Impl `fmt::{Display, Debug}` for `Ref`, `RefMut`, `MutexGuard`,
5987 `RwLockReadGuard`, `RwLockWriteGuard`][42822]
5988 - [Impl `Clone` for `DefaultHasher`.][42799]
5989 - [Impl `Sync` for `SyncSender`.][42397]
5990 - [Impl `FromStr` for `char`][42271]
5991 - [Fixed how `{f32, f64}::{is_sign_negative, is_sign_positive}` handles
5993 - [allow messages in the `unimplemented!()` macro.][42155]
5994 ie. `unimplemented!("Waiting for 1.21 to be stable")`
5995 - [`pub(restricted)` is now supported in the `thread_local!` macro.][43185]
5996 - [Upgrade to Unicode 10.0.0][42999]
5997 - [Reimplemented `{f32, f64}::{min, max}` in Rust instead of using CMath.][42430]
5998 - [Skip the main thread's manual stack guard on Linux][43072]
5999 - [Iterator::nth for `ops::{Range, RangeFrom}` is now done in *O*(1) time][43077]
6000 - [`#[repr(align(N))]` attribute max number is now 2^31 - 1.][43097] This was
6002 - [`{OsStr, Path}::Display` now avoids allocations where possible][42613]
6007 - [`CStr::into_c_string`]
6008 - [`CString::as_c_str`]
6009 - [`CString::into_boxed_c_str`]
6010 - [`Chain::get_mut`]
6011 - [`Chain::get_ref`]
6012 - [`Chain::into_inner`]
6013 - [`Option::get_or_insert_with`]
6014 - [`Option::get_or_insert`]
6015 - [`OsStr::into_os_string`]
6016 - [`OsString::into_boxed_os_str`]
6019 - [`Utf8Error::error_len`]
6020 - [`char::EscapeDebug`]
6021 - [`char::escape_debug`]
6022 - [`compile_error!`]
6023 - [`f32::from_bits`]
6025 - [`f64::from_bits`]
6027 - [`mem::ManuallyDrop`]
6028 - [`slice::sort_unstable_by_key`]
6029 - [`slice::sort_unstable_by`]
6030 - [`slice::sort_unstable`]
6031 - [`str::from_boxed_utf8_unchecked`]
6032 - [`str::as_bytes_mut`]
6033 - [`str::as_bytes_mut`]
6034 - [`str::from_utf8_mut`]
6035 - [`str::from_utf8_unchecked_mut`]
6037 - [`str::get_unchecked_mut`]
6038 - [`str::get_unchecked`]
6040 - [`str::into_boxed_bytes`]
6045 - [Cargo API token location moved from `~/.cargo/config` to
6046 `~/.cargo/credentials`.][cargo/3978]
6047 - [Cargo will now build `main.rs` binaries that are in sub-directories of
6048 `src/bin`.][cargo/4214] ie. Having `src/bin/server/main.rs` and
6049 `src/bin/client/main.rs` generates `target/debug/server` and `target/debug/client`
6050 - [You can now specify version of a binary when installed through
6051 `cargo install` using `--vers`.][cargo/4229]
6052 - [Added `--no-fail-fast` flag to cargo to run all benchmarks regardless of
6053 failure.][cargo/4248]
6054 - [Changed the convention around which file is the crate root.][cargo/4259]
6059 - [Functions with `'static` in their return types will now not be as usable as
6060 if they were using lifetime parameters instead.][42417]
6061 - [The reimplementation of `{f32, f64}::is_sign_{negative, positive}` now
6062 takes the sign of NaN into account where previously didn't.][42430]
6064 [42033]: https://github.com/rust-lang/rust/pull/42033
6065 [42155]: https://github.com/rust-lang/rust/pull/42155
6066 [42271]: https://github.com/rust-lang/rust/pull/42271
6067 [42397]: https://github.com/rust-lang/rust/pull/42397
6068 [42417]: https://github.com/rust-lang/rust/pull/42417
6069 [42430]: https://github.com/rust-lang/rust/pull/42430
6070 [42431]: https://github.com/rust-lang/rust/pull/42431
6071 [42533]: https://github.com/rust-lang/rust/pull/42533
6072 [42571]: https://github.com/rust-lang/rust/pull/42571
6073 [42613]: https://github.com/rust-lang/rust/pull/42613
6074 [42799]: https://github.com/rust-lang/rust/pull/42799
6075 [42807]: https://github.com/rust-lang/rust/pull/42807
6076 [42809]: https://github.com/rust-lang/rust/pull/42809
6077 [42822]: https://github.com/rust-lang/rust/pull/42822
6078 [42826]: https://github.com/rust-lang/rust/pull/42826
6079 [42854]: https://github.com/rust-lang/rust/pull/42854
6080 [42913]: https://github.com/rust-lang/rust/pull/42913
6081 [42999]: https://github.com/rust-lang/rust/pull/42999
6082 [43011]: https://github.com/rust-lang/rust/pull/43011
6083 [43015]: https://github.com/rust-lang/rust/pull/43015
6084 [43072]: https://github.com/rust-lang/rust/pull/43072
6085 [43077]: https://github.com/rust-lang/rust/pull/43077
6086 [43097]: https://github.com/rust-lang/rust/pull/43097
6087 [43099]: https://github.com/rust-lang/rust/pull/43099
6088 [43170]: https://github.com/rust-lang/rust/pull/43170
6089 [43178]: https://github.com/rust-lang/rust/pull/43178
6090 [43185]: https://github.com/rust-lang/rust/pull/43185
6091 [43228]: https://github.com/rust-lang/rust/pull/43228
6092 [cargo/3978]: https://github.com/rust-lang/cargo/pull/3978
6093 [cargo/4214]: https://github.com/rust-lang/cargo/pull/4214
6094 [cargo/4229]: https://github.com/rust-lang/cargo/pull/4229
6095 [cargo/4248]: https://github.com/rust-lang/cargo/pull/4248
6096 [cargo/4259]: https://github.com/rust-lang/cargo/pull/4259
6097 [`CStr::into_c_string`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.into_c_string
6098 [`CString::as_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.as_c_str
6099 [`CString::into_boxed_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.into_boxed_c_str
6100 [`Chain::get_mut`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_mut
6101 [`Chain::get_ref`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_ref
6102 [`Chain::into_inner`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.into_inner
6103 [`Option::get_or_insert_with`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert_with
6104 [`Option::get_or_insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert
6105 [`OsStr::into_os_string`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.into_os_string
6106 [`OsString::into_boxed_os_str`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.into_boxed_os_str
6107 [`Take::get_mut`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_mut
6108 [`Take::get_ref`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_ref
6109 [`Utf8Error::error_len`]: https://doc.rust-lang.org/std/str/struct.Utf8Error.html#method.error_len
6110 [`char::EscapeDebug`]: https://doc.rust-lang.org/std/char/struct.EscapeDebug.html
6111 [`char::escape_debug`]: https://doc.rust-lang.org/std/primitive.char.html#method.escape_debug
6112 [`compile_error!`]: https://doc.rust-lang.org/std/macro.compile_error.html
6113 [`f32::from_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_bits
6114 [`f32::to_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_bits
6115 [`f64::from_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_bits
6116 [`f64::to_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_bits
6117 [`mem::ManuallyDrop`]: https://doc.rust-lang.org/std/mem/union.ManuallyDrop.html
6118 [`slice::sort_unstable_by_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by_key
6119 [`slice::sort_unstable_by`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by
6120 [`slice::sort_unstable`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable
6121 [`str::from_boxed_utf8_unchecked`]: https://doc.rust-lang.org/std/str/fn.from_boxed_utf8_unchecked.html
6122 [`str::as_bytes_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_bytes_mut
6123 [`str::from_utf8_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_mut.html
6124 [`str::from_utf8_unchecked_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_unchecked_mut.html
6125 [`str::get_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_mut
6126 [`str::get_unchecked_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked_mut
6127 [`str::get_unchecked`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked
6128 [`str::get`]: https://doc.rust-lang.org/std/primitive.str.html#method.get
6129 [`str::into_boxed_bytes`]: https://doc.rust-lang.org/std/primitive.str.html#method.into_boxed_bytes
6132 Version 1.19.0 (2017-07-20)
6133 ===========================
6138 - [Numeric fields can now be used for creating tuple structs.][41145] [RFC 1506]
6139 For example `struct Point(u32, u32); let x = Point { 0: 7, 1: 0 };`.
6140 - [Macro recursion limit increased to 1024 from 64.][41676]
6141 - [Added lint for detecting unused macros.][41907]
6142 - [`loop` can now return a value with `break`.][42016] [RFC 1624]
6143 For example: `let x = loop { break 7; };`
6144 - [C compatible `union`s are now available.][42068] [RFC 1444] They can only
6145 contain `Copy` types and cannot have a `Drop` implementation.
6146 Example: `union Foo { bar: u8, baz: usize }`
6147 - [Non capturing closures can now be coerced into `fn`s,][42162] [RFC 1558]
6148 Example: `let foo: fn(u8) -> u8 = |v: u8| { v };`
6153 - [Add support for bootstrapping the Rust compiler toolchain on Android.][41370]
6154 - [Change `arm-linux-androideabi` to correspond to the `armeabi`
6155 official ABI.][41656] If you wish to continue targeting the `armeabi-v7a` ABI
6156 you should use `--target armv7-linux-androideabi`.
6157 - [Fixed ICE when removing a source file between compilation sessions.][41873]
6158 - [Minor optimisation of string operations.][42037]
6159 - [Compiler error message is now `aborting due to previous error(s)` instead of
6160 `aborting due to N previous errors`][42150] This was previously inaccurate and
6161 would only count certain kinds of errors.
6162 - [The compiler now supports Visual Studio 2017][42225]
6163 - [The compiler is now built against LLVM 4.0.1 by default][42948]
6164 - [Added a lot][42264] of [new error codes][42302]
6165 - [Added `target-feature=+crt-static` option][37406] [RFC 1721] Which allows
6166 libraries with C Run-time Libraries(CRT) to be statically linked.
6167 - [Fixed various ARM codegen bugs][42740]
6172 - [`String` now implements `FromIterator<Cow<'a, str>>` and
6173 `Extend<Cow<'a, str>>`][41449]
6174 - [`Vec` now implements `From<&mut [T]>`][41530]
6175 - [`Box<[u8]>` now implements `From<Box<str>>`][41258]
6176 - [`SplitWhitespace` now implements `Clone`][41659]
6177 - [`[u8]::reverse` is now 5x faster and `[u16]::reverse` is now
6179 - [`eprint!` and `eprintln!` macros added to prelude.][41192] Same as the `print!`
6180 macros, but for printing to stderr.
6185 - [`OsString::shrink_to_fit`]
6188 - [`thread::ThreadId`]
6193 - [Build scripts can now add environment variables to the environment
6194 the crate is being compiled in.
6195 Example: `println!("cargo:rustc-env=FOO=bar");`][cargo/3929]
6196 - [Subcommands now replace the current process rather than spawning a new
6197 child process][cargo/3970]
6198 - [Workspace members can now accept glob file patterns][cargo/3979]
6199 - [Added `--all` flag to the `cargo bench` subcommand to run benchmarks of all
6200 the members in a given workspace.][cargo/3988]
6201 - [Updated `libssh2-sys` to 0.2.6][cargo/4008]
6202 - [Target directory path is now in the cargo metadata][cargo/4022]
6203 - [Cargo no longer checks out a local working directory for the
6204 crates.io index][cargo/4026] This should provide smaller file size for the
6205 registry, and improve cloning times, especially on Windows machines.
6206 - [Added an `--exclude` option for excluding certain packages when using the
6207 `--all` option][cargo/4031]
6208 - [Cargo will now automatically retry when receiving a 5xx error
6209 from crates.io][cargo/4032]
6210 - [The `--features` option now accepts multiple comma or space
6211 delimited values.][cargo/4084]
6212 - [Added support for custom target specific runners][cargo/3954]
6217 - [Added `rust-windbg.cmd`][39983] for loading rust `.natvis` files in the
6219 - [Rust will now release XZ compressed packages][rust-installer/57]
6220 - [rustup will now prefer to download rust packages with
6221 XZ compression][rustup/1100] over GZip packages.
6222 - [Added the ability to escape `#` in rust documentation][41785] By adding
6223 additional `#`'s ie. `##` is now `#`
6228 - [`MutexGuard<T>` may only be `Sync` if `T` is `Sync`.][41624]
6229 - [`-Z` flags are now no longer allowed to be used on the stable
6230 compiler.][41751] This has been a warning for a year previous to this.
6231 - [As a result of the `-Z` flag change, the `cargo-check` plugin no
6232 longer works][42844]. Users should migrate to the built-in `check`
6233 command, which has been available since 1.16.
6234 - [Ending a float literal with `._` is now a hard error.
6235 Example: `42._` .][41946]
6236 - [Any use of a private `extern crate` outside of its module is now a
6237 hard error.][36886] This was previously a warning.
6238 - [`use ::self::foo;` is now a hard error.][36888] `self` paths are always
6239 relative while the `::` prefix makes a path absolute, but was ignored and the
6240 path was relative regardless.
6241 - [Floating point constants in match patterns is now a hard error][36890]
6242 This was previously a warning.
6243 - [Struct or enum constants that don't derive `PartialEq` & `Eq` used
6244 match patterns is now a hard error][36891] This was previously a warning.
6245 - [Lifetimes named `'_` are no longer allowed.][36892] This was previously
6247 - [From the pound escape, lines consisting of multiple `#`s are
6249 - [It is an error to re-export private enum variants][42460]. This is
6250 known to break a number of crates that depend on an older version of
6252 - [On Windows, if `VCINSTALLDIR` is set incorrectly, `rustc` will try
6253 to use it to find the linker, and the build will fail where it did
6254 not previously][42607]
6256 [36886]: https://github.com/rust-lang/rust/issues/36886
6257 [36888]: https://github.com/rust-lang/rust/issues/36888
6258 [36890]: https://github.com/rust-lang/rust/issues/36890
6259 [36891]: https://github.com/rust-lang/rust/issues/36891
6260 [36892]: https://github.com/rust-lang/rust/issues/36892
6261 [37406]: https://github.com/rust-lang/rust/issues/37406
6262 [39983]: https://github.com/rust-lang/rust/pull/39983
6263 [41145]: https://github.com/rust-lang/rust/pull/41145
6264 [41192]: https://github.com/rust-lang/rust/pull/41192
6265 [41258]: https://github.com/rust-lang/rust/pull/41258
6266 [41370]: https://github.com/rust-lang/rust/pull/41370
6267 [41449]: https://github.com/rust-lang/rust/pull/41449
6268 [41530]: https://github.com/rust-lang/rust/pull/41530
6269 [41624]: https://github.com/rust-lang/rust/pull/41624
6270 [41656]: https://github.com/rust-lang/rust/pull/41656
6271 [41659]: https://github.com/rust-lang/rust/pull/41659
6272 [41676]: https://github.com/rust-lang/rust/pull/41676
6273 [41751]: https://github.com/rust-lang/rust/pull/41751
6274 [41764]: https://github.com/rust-lang/rust/pull/41764
6275 [41785]: https://github.com/rust-lang/rust/pull/41785
6276 [41873]: https://github.com/rust-lang/rust/pull/41873
6277 [41907]: https://github.com/rust-lang/rust/pull/41907
6278 [41946]: https://github.com/rust-lang/rust/pull/41946
6279 [42016]: https://github.com/rust-lang/rust/pull/42016
6280 [42037]: https://github.com/rust-lang/rust/pull/42037
6281 [42068]: https://github.com/rust-lang/rust/pull/42068
6282 [42150]: https://github.com/rust-lang/rust/pull/42150
6283 [42162]: https://github.com/rust-lang/rust/pull/42162
6284 [42225]: https://github.com/rust-lang/rust/pull/42225
6285 [42264]: https://github.com/rust-lang/rust/pull/42264
6286 [42302]: https://github.com/rust-lang/rust/pull/42302
6287 [42460]: https://github.com/rust-lang/rust/issues/42460
6288 [42607]: https://github.com/rust-lang/rust/issues/42607
6289 [42740]: https://github.com/rust-lang/rust/pull/42740
6290 [42844]: https://github.com/rust-lang/rust/issues/42844
6291 [42948]: https://github.com/rust-lang/rust/pull/42948
6292 [RFC 1444]: https://github.com/rust-lang/rfcs/pull/1444
6293 [RFC 1506]: https://github.com/rust-lang/rfcs/pull/1506
6294 [RFC 1558]: https://github.com/rust-lang/rfcs/pull/1558
6295 [RFC 1624]: https://github.com/rust-lang/rfcs/pull/1624
6296 [RFC 1721]: https://github.com/rust-lang/rfcs/pull/1721
6297 [`Command::envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.envs
6298 [`OsString::shrink_to_fit`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.shrink_to_fit
6299 [`cmp::Reverse`]: https://doc.rust-lang.org/std/cmp/struct.Reverse.html
6300 [`thread::ThreadId`]: https://doc.rust-lang.org/std/thread/struct.ThreadId.html
6301 [cargo/3929]: https://github.com/rust-lang/cargo/pull/3929
6302 [cargo/3954]: https://github.com/rust-lang/cargo/pull/3954
6303 [cargo/3970]: https://github.com/rust-lang/cargo/pull/3970
6304 [cargo/3979]: https://github.com/rust-lang/cargo/pull/3979
6305 [cargo/3988]: https://github.com/rust-lang/cargo/pull/3988
6306 [cargo/4008]: https://github.com/rust-lang/cargo/pull/4008
6307 [cargo/4022]: https://github.com/rust-lang/cargo/pull/4022
6308 [cargo/4026]: https://github.com/rust-lang/cargo/pull/4026
6309 [cargo/4031]: https://github.com/rust-lang/cargo/pull/4031
6310 [cargo/4032]: https://github.com/rust-lang/cargo/pull/4032
6311 [cargo/4084]: https://github.com/rust-lang/cargo/pull/4084
6312 [rust-installer/57]: https://github.com/rust-lang/rust-installer/pull/57
6313 [rustup/1100]: https://github.com/rust-lang-nursery/rustup.rs/pull/1100
6316 Version 1.18.0 (2017-06-08)
6317 ===========================
6322 - [Stabilize pub(restricted)][40556] `pub` can now accept a module path to
6323 make the item visible to just that module tree. Also accepts the keyword
6324 `crate` to make something public to the whole crate but not users of the
6325 library. Example: `pub(crate) mod utils;`. [RFC 1422].
6326 - [Stabilize `#![windows_subsystem]` attribute][40870] conservative exposure of the
6327 `/SUBSYSTEM` linker flag on Windows platforms. [RFC 1665].
6328 - [Refactor of trait object type parsing][40043] Now `ty` in macros can accept
6329 types like `Write + Send`, trailing `+` are now supported in trait objects,
6330 and better error reporting for trait objects starting with `?Sized`.
6331 - [0e+10 is now a valid floating point literal][40589]
6332 - [Now warns if you bind a lifetime parameter to 'static][40734]
6333 - [Tuples, Enum variant fields, and structs with no `repr` attribute or with
6334 `#[repr(Rust)]` are reordered to minimize padding and produce a smaller
6335 representation in some cases.][40377]
6340 - [rustc can now emit mir with `--emit mir`][39891]
6341 - [Improved LLVM IR for trivial functions][40367]
6342 - [Added explanation for E0090(Wrong number of lifetimes are supplied)][40723]
6343 - [rustc compilation is now 15%-20% faster][41469] Thanks to optimisation
6344 opportunities found through profiling
6345 - [Improved backtrace formatting when panicking][38165]
6350 - [Specialized `Vec::from_iter` being passed `vec::IntoIter`][40731] if the
6351 iterator hasn't been advanced the original `Vec` is reassembled with no actual
6352 iteration or reallocation.
6353 - [Simplified HashMap Bucket interface][40561] provides performance
6354 improvements for iterating and cloning.
6355 - [Specialize Vec::from_elem to use calloc][40409]
6356 - [Fixed Race condition in fs::create_dir_all][39799]
6357 - [No longer caching stdio on Windows][40516]
6358 - [Optimized insertion sort in slice][40807] insertion sort in some cases
6359 2.50%~ faster and in one case now 12.50% faster.
6360 - [Optimized `AtomicBool::fetch_nand`][41143]
6365 - [`Child::try_wait`]
6366 - [`HashMap::retain`]
6367 - [`HashSet::retain`]
6369 - [`TcpStream::peek`]
6370 - [`UdpSocket::peek`]
6371 - [`UdpSocket::peek_from`]
6376 - [Added partial Pijul support][cargo/3842] Pijul is a version control system in Rust.
6377 You can now create new cargo projects with Pijul using `cargo new --vcs pijul`
6378 - [Now always emits build script warnings for crates that fail to build][cargo/3847]
6379 - [Added Android build support][cargo/3885]
6380 - [Added `--bins` and `--tests` flags][cargo/3901] now you can build all programs
6381 of a certain type, for example `cargo build --bins` will build all
6383 - [Added support for haiku][cargo/3952]
6388 - [rustdoc can now use pulldown-cmark with the `--enable-commonmark` flag][40338]
6389 - [Rust now uses the official cross compiler for NetBSD][40612]
6390 - [rustdoc now accepts `#` at the start of files][40828]
6391 - [Fixed jemalloc support for musl][41168]
6396 - [Changes to how the `0` flag works in format!][40241] Padding zeroes are now
6397 always placed after the sign if it exists and before the digits. With the `#`
6398 flag the zeroes are placed after the prefix and before the digits.
6399 - [Due to the struct field optimisation][40377], using `transmute` on structs
6400 that have no `repr` attribute or `#[repr(Rust)]` will no longer work. This has
6401 always been undefined behavior, but is now more likely to break in practice.
6402 - [The refactor of trait object type parsing][40043] fixed a bug where `+` was
6403 receiving the wrong priority parsing things like `&for<'a> Tr<'a> + Send` as
6404 `&(for<'a> Tr<'a> + Send)` instead of `(&for<'a> Tr<'a>) + Send`
6405 - [Overlapping inherent `impl`s are now a hard error][40728]
6406 - [`PartialOrd` and `Ord` must agree on the ordering.][41270]
6407 - [`rustc main.rs -o out --emit=asm,llvm-ir`][41085] Now will output
6408 `out.asm` and `out.ll` instead of only one of the filetypes.
6409 - [ calling a function that returns `Self` will no longer work][41805] when
6410 the size of `Self` cannot be statically determined.
6411 - [rustc now builds with a "pthreads" flavour of MinGW for Windows GNU][40805]
6412 this has caused a few regressions namely:
6414 - Changed the link order of local static/dynamic libraries (respecting the
6415 order on given rather than having the compiler reorder).
6416 - Changed how MinGW is linked, native code linked to dynamic libraries
6417 may require manually linking to the gcc support library (for the native
6420 [38165]: https://github.com/rust-lang/rust/pull/38165
6421 [39799]: https://github.com/rust-lang/rust/pull/39799
6422 [39891]: https://github.com/rust-lang/rust/pull/39891
6423 [40043]: https://github.com/rust-lang/rust/pull/40043
6424 [40241]: https://github.com/rust-lang/rust/pull/40241
6425 [40338]: https://github.com/rust-lang/rust/pull/40338
6426 [40367]: https://github.com/rust-lang/rust/pull/40367
6427 [40377]: https://github.com/rust-lang/rust/pull/40377
6428 [40409]: https://github.com/rust-lang/rust/pull/40409
6429 [40516]: https://github.com/rust-lang/rust/pull/40516
6430 [40556]: https://github.com/rust-lang/rust/pull/40556
6431 [40561]: https://github.com/rust-lang/rust/pull/40561
6432 [40589]: https://github.com/rust-lang/rust/pull/40589
6433 [40612]: https://github.com/rust-lang/rust/pull/40612
6434 [40723]: https://github.com/rust-lang/rust/pull/40723
6435 [40728]: https://github.com/rust-lang/rust/pull/40728
6436 [40731]: https://github.com/rust-lang/rust/pull/40731
6437 [40734]: https://github.com/rust-lang/rust/pull/40734
6438 [40805]: https://github.com/rust-lang/rust/pull/40805
6439 [40807]: https://github.com/rust-lang/rust/pull/40807
6440 [40828]: https://github.com/rust-lang/rust/pull/40828
6441 [40870]: https://github.com/rust-lang/rust/pull/40870
6442 [41085]: https://github.com/rust-lang/rust/pull/41085
6443 [41143]: https://github.com/rust-lang/rust/pull/41143
6444 [41168]: https://github.com/rust-lang/rust/pull/41168
6445 [41270]: https://github.com/rust-lang/rust/issues/41270
6446 [41469]: https://github.com/rust-lang/rust/pull/41469
6447 [41805]: https://github.com/rust-lang/rust/issues/41805
6448 [RFC 1422]: https://github.com/rust-lang/rfcs/blob/master/text/1422-pub-restricted.md
6449 [RFC 1665]: https://github.com/rust-lang/rfcs/blob/master/text/1665-windows-subsystem.md
6450 [`Child::try_wait`]: https://doc.rust-lang.org/std/process/struct.Child.html#method.try_wait
6451 [`HashMap::retain`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.retain
6452 [`HashSet::retain`]: https://doc.rust-lang.org/std/collections/struct.HashSet.html#method.retain
6453 [`PeekMut::pop`]: https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html#method.pop
6454 [`TcpStream::peek`]: https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.peek
6455 [`UdpSocket::peek_from`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek_from
6456 [`UdpSocket::peek`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek
6457 [cargo/3842]: https://github.com/rust-lang/cargo/pull/3842
6458 [cargo/3847]: https://github.com/rust-lang/cargo/pull/3847
6459 [cargo/3885]: https://github.com/rust-lang/cargo/pull/3885
6460 [cargo/3901]: https://github.com/rust-lang/cargo/pull/3901
6461 [cargo/3952]: https://github.com/rust-lang/cargo/pull/3952
6464 Version 1.17.0 (2017-04-27)
6465 ===========================
6470 * [The lifetime of statics and consts defaults to `'static`][39265]. [RFC 1623]
6471 * [Fields of structs may be initialized without duplicating the field/variable
6472 names][39761]. [RFC 1682]
6473 * [`Self` may be included in the `where` clause of `impls`][38864]. [RFC 1647]
6474 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
6475 there is no subtyping between `T` and `U` when `T: Unsize<U>`. For example,
6476 coercing `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to
6477 `'b`. Soundness fix.
6478 * [Values passed to the indexing operator, `[]`, automatically coerce][40166]
6479 * [Static variables may contain references to other statics][40027]
6484 * [Exit quickly on only `--emit dep-info`][40336]
6485 * [Make `-C relocation-model` more correctly determine whether the linker
6486 creates a position-independent executable][40245]
6487 * [Add `-C overflow-checks` to directly control whether integer overflow
6489 * [The rustc type checker now checks items on demand instead of in a single
6490 in-order pass][40008]. This is mostly an internal refactoring in support of
6491 future work, including incremental type checking, but also resolves [RFC
6492 1647], allowing `Self` to appear in `impl` `where` clauses.
6493 * [Optimize vtable loads][39995]
6494 * [Turn off vectorization for Emscripten targets][39990]
6495 * [Provide suggestions for unknown macros imported with `use`][39953]
6496 * [Fix ICEs in path resolution][39939]
6497 * [Strip exception handling code on Emscripten when `panic=abort`][39193]
6498 * [Add clearer error message using `&str + &str`][39116]
6509 * [`Ordering::then`]
6510 * [`Ordering::then_with`]
6511 * [`BTreeMap::range`]
6512 * [`BTreeMap::range_mut`]
6513 * [`collections::Bound`]
6514 * [`process::abort`]
6515 * [`ptr::read_unaligned`]
6516 * [`ptr::write_unaligned`]
6517 * [`Result::expect_err`]
6520 * [`Cell::into_inner`]
6526 * [`BTreeMap` and `BTreeSet` can iterate over ranges][27787]
6527 * [`Cell` can store non-`Copy` types][39793]. [RFC 1651]
6528 * [`String` implements `FromIterator<&char>`][40028]
6529 * `Box` [implements][40009] a number of new conversions:
6530 `From<Box<str>> for String`,
6531 `From<Box<[T]>> for Vec<T>`,
6532 `From<Box<CStr>> for CString`,
6533 `From<Box<OsStr>> for OsString`,
6534 `From<Box<Path>> for PathBuf`,
6535 `Into<Box<str>> for String`,
6536 `Into<Box<[T]>> for Vec<T>`,
6537 `Into<Box<CStr>> for CString`,
6538 `Into<Box<OsStr>> for OsString`,
6539 `Into<Box<Path>> for PathBuf`,
6540 `Default for Box<str>`,
6541 `Default for Box<CStr>`,
6542 `Default for Box<OsStr>`,
6543 `From<&CStr> for Box<CStr>`,
6544 `From<&OsStr> for Box<OsStr>`,
6545 `From<&Path> for Box<Path>`
6546 * [`ffi::FromBytesWithNulError` implements `Error` and `Display`][39960]
6547 * [Specialize `PartialOrd<A> for [A] where A: Ord`][39642]
6548 * [Slightly optimize `slice::sort`][39538]
6549 * [Add `ToString` trait specialization for `Cow<'a, str>` and `String`][39440]
6550 * [`Box<[T]>` implements `From<&[T]> where T: Copy`,
6551 `Box<str>` implements `From<&str>`][39438]
6552 * [`IpAddr` implements `From` for various arrays. `SocketAddr` implements
6553 `From<(I, u16)> where I: Into<IpAddr>`][39372]
6554 * [`format!` estimates the needed capacity before writing a string][39356]
6555 * [Support unprivileged symlink creation in Windows][38921]
6556 * [`PathBuf` implements `Default`][38764]
6557 * [Implement `PartialEq<[A]>` for `VecDeque<A>`][38661]
6558 * [`HashMap` resizes adaptively][38368] to guard against DOS attacks
6559 and poor hash functions.
6564 * [Add `cargo check --all`][cargo/3731]
6565 * [Add an option to ignore SSL revocation checking][cargo/3699]
6566 * [Add `cargo run --package`][cargo/3691]
6567 * [Add `required_features`][cargo/3667]
6568 * [Assume `build.rs` is a build script][cargo/3664]
6569 * [Find workspace via `workspace_root` link in containing member][cargo/3562]
6574 * [Documentation is rendered with mdbook instead of the obsolete, in-tree
6576 * [The "Unstable Book" documents nightly-only features][ubook]
6577 * [Improve the style of the sidebar in rustdoc output][40265]
6578 * [Configure build correctly on 64-bit CPU's with the armhf ABI][40261]
6579 * [Fix MSP430 breakage due to `i128`][40257]
6580 * [Preliminary Solaris/SPARCv9 support][39903]
6581 * [`rustc` is linked statically on Windows MSVC targets][39837], allowing it to
6582 run without installing the MSVC runtime.
6583 * [`rustdoc --test` includes file names in test names][39788]
6584 * This release includes builds of `std` for `sparc64-unknown-linux-gnu`,
6585 `aarch64-unknown-linux-fuchsia`, and `x86_64-unknown-linux-fuchsia`.
6586 * [Initial support for `aarch64-unknown-freebsd`][39491]
6587 * [Initial support for `i686-unknown-netbsd`][39426]
6588 * [This release no longer includes the old makefile build system][39431]. Rust
6589 is built with a custom build system, written in Rust, and with Cargo.
6590 * [Add Debug implementations for libcollection structs][39002]
6591 * [`TypeId` implements `PartialOrd` and `Ord`][38981]
6592 * [`--test-threads=0` produces an error][38945]
6593 * [`rustup` installs documentation by default][40526]
6594 * [The Rust source includes NatVis visualizations][39843]. These can be used by
6595 WinDbg and Visual Studio to improve the debugging experience.
6600 * [Rust 1.17 does not correctly detect the MSVC 2017 linker][38584]. As a
6601 workaround, either use MSVC 2015 or run vcvars.bat.
6602 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
6603 disallow subtyping between `T` and `U` when `T: Unsize<U>`, e.g. coercing
6604 `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to `'b`. Soundness
6606 * [`format!` and `Display::to_string` panic if an underlying formatting
6607 implementation returns an error][40117]. Previously the error was silently
6608 ignored. It is incorrect for `write_fmt` to return an error when writing
6610 * [In-tree crates are verified to be unstable][39851]. Previously, some minor
6611 crates were marked stable and could be accessed from the stable toolchain.
6612 * [Rust git source no longer includes vendored crates][39728]. Those that need
6613 to build with vendored crates should build from release tarballs.
6614 * [Fix inert attributes from `proc_macro_derives`][39572]
6615 * [During crate resolution, rustc prefers a crate in the sysroot if two crates
6616 are otherwise identical][39518]. Unlikely to be encountered outside the Rust
6618 * [Fixed bugs around how type inference interacts with dead-code][39485]. The
6619 existing code generally ignores the type of dead-code unless a type-hint is
6620 provided; this can cause surprising inference interactions particularly around
6621 defaulting. The new code uniformly ignores the result type of dead-code.
6622 * [Tuple-struct constructors with private fields are no longer visible][38932]
6623 * [Lifetime parameters that do not appear in the arguments are now considered
6624 early-bound][38897], resolving a soundness bug (#[32330]). The
6625 `hr_lifetime_in_assoc_type` future-compatibility lint has been in effect since
6627 * [rustdoc: fix doctests with non-feature crate attributes][38161]
6628 * [Make transmuting from fn item types to pointer-sized types a hard
6631 [27787]: https://github.com/rust-lang/rust/issues/27787
6632 [32330]: https://github.com/rust-lang/rust/issues/32330
6633 [34198]: https://github.com/rust-lang/rust/pull/34198
6634 [38161]: https://github.com/rust-lang/rust/pull/38161
6635 [38368]: https://github.com/rust-lang/rust/pull/38368
6636 [38584]: https://github.com/rust-lang/rust/issues/38584
6637 [38661]: https://github.com/rust-lang/rust/pull/38661
6638 [38764]: https://github.com/rust-lang/rust/pull/38764
6639 [38864]: https://github.com/rust-lang/rust/issues/38864
6640 [38897]: https://github.com/rust-lang/rust/pull/38897
6641 [38921]: https://github.com/rust-lang/rust/pull/38921
6642 [38932]: https://github.com/rust-lang/rust/pull/38932
6643 [38945]: https://github.com/rust-lang/rust/pull/38945
6644 [38981]: https://github.com/rust-lang/rust/pull/38981
6645 [39002]: https://github.com/rust-lang/rust/pull/39002
6646 [39116]: https://github.com/rust-lang/rust/pull/39116
6647 [39193]: https://github.com/rust-lang/rust/pull/39193
6648 [39265]: https://github.com/rust-lang/rust/pull/39265
6649 [39356]: https://github.com/rust-lang/rust/pull/39356
6650 [39372]: https://github.com/rust-lang/rust/pull/39372
6651 [39426]: https://github.com/rust-lang/rust/pull/39426
6652 [39431]: https://github.com/rust-lang/rust/pull/39431
6653 [39438]: https://github.com/rust-lang/rust/pull/39438
6654 [39440]: https://github.com/rust-lang/rust/pull/39440
6655 [39485]: https://github.com/rust-lang/rust/pull/39485
6656 [39491]: https://github.com/rust-lang/rust/pull/39491
6657 [39518]: https://github.com/rust-lang/rust/pull/39518
6658 [39538]: https://github.com/rust-lang/rust/pull/39538
6659 [39572]: https://github.com/rust-lang/rust/pull/39572
6660 [39633]: https://github.com/rust-lang/rust/pull/39633
6661 [39642]: https://github.com/rust-lang/rust/pull/39642
6662 [39728]: https://github.com/rust-lang/rust/pull/39728
6663 [39761]: https://github.com/rust-lang/rust/pull/39761
6664 [39788]: https://github.com/rust-lang/rust/pull/39788
6665 [39793]: https://github.com/rust-lang/rust/pull/39793
6666 [39837]: https://github.com/rust-lang/rust/pull/39837
6667 [39843]: https://github.com/rust-lang/rust/pull/39843
6668 [39851]: https://github.com/rust-lang/rust/pull/39851
6669 [39903]: https://github.com/rust-lang/rust/pull/39903
6670 [39939]: https://github.com/rust-lang/rust/pull/39939
6671 [39953]: https://github.com/rust-lang/rust/pull/39953
6672 [39960]: https://github.com/rust-lang/rust/pull/39960
6673 [39990]: https://github.com/rust-lang/rust/pull/39990
6674 [39995]: https://github.com/rust-lang/rust/pull/39995
6675 [40008]: https://github.com/rust-lang/rust/pull/40008
6676 [40009]: https://github.com/rust-lang/rust/pull/40009
6677 [40027]: https://github.com/rust-lang/rust/pull/40027
6678 [40028]: https://github.com/rust-lang/rust/pull/40028
6679 [40037]: https://github.com/rust-lang/rust/pull/40037
6680 [40117]: https://github.com/rust-lang/rust/pull/40117
6681 [40166]: https://github.com/rust-lang/rust/pull/40166
6682 [40245]: https://github.com/rust-lang/rust/pull/40245
6683 [40257]: https://github.com/rust-lang/rust/pull/40257
6684 [40261]: https://github.com/rust-lang/rust/pull/40261
6685 [40265]: https://github.com/rust-lang/rust/pull/40265
6686 [40319]: https://github.com/rust-lang/rust/pull/40319
6687 [40336]: https://github.com/rust-lang/rust/pull/40336
6688 [40526]: https://github.com/rust-lang/rust/pull/40526
6689 [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
6690 [RFC 1647]: https://github.com/rust-lang/rfcs/blob/master/text/1647-allow-self-in-where-clauses.md
6691 [RFC 1651]: https://github.com/rust-lang/rfcs/blob/master/text/1651-movecell.md
6692 [RFC 1682]: https://github.com/rust-lang/rfcs/blob/master/text/1682-field-init-shorthand.md
6693 [`Arc::from_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.from_raw
6694 [`Arc::into_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.into_raw
6695 [`Arc::ptr_eq`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.ptr_eq
6696 [`BTreeMap::range_mut`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range_mut
6697 [`BTreeMap::range`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range
6698 [`Cell::into_inner`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.into_inner
6699 [`Cell::replace`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.replace
6700 [`Cell::swap`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.swap
6701 [`Cell::take`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.take
6702 [`Ordering::then_with`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then_with
6703 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
6704 [`Rc::from_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.from_raw
6705 [`Rc::into_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.into_raw
6706 [`Rc::ptr_eq`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.ptr_eq
6707 [`Result::expect_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.expect_err
6708 [`collections::Bound`]: https://doc.rust-lang.org/std/collections/enum.Bound.html
6709 [`process::abort`]: https://doc.rust-lang.org/std/process/fn.abort.html
6710 [`ptr::read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
6711 [`ptr::write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
6712 [cargo/3562]: https://github.com/rust-lang/cargo/pull/3562
6713 [cargo/3664]: https://github.com/rust-lang/cargo/pull/3664
6714 [cargo/3667]: https://github.com/rust-lang/cargo/pull/3667
6715 [cargo/3691]: https://github.com/rust-lang/cargo/pull/3691
6716 [cargo/3699]: https://github.com/rust-lang/cargo/pull/3699
6717 [cargo/3731]: https://github.com/rust-lang/cargo/pull/3731
6718 [ubook]: https://doc.rust-lang.org/unstable-book/
6721 Version 1.16.0 (2017-03-16)
6722 ===========================
6727 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
6728 * [Uninhabitable enums (those without any variants) no longer permit wildcard
6729 match patterns][38069]
6730 * [Clean up semantics of `self` in an import list][38313]
6731 * [`Self` may appear in `impl` headers][38920]
6732 * [`Self` may appear in struct expressions][39282]
6737 * [`rustc` now supports `--emit=metadata`, which causes rustc to emit
6738 a `.rmeta` file containing only crate metadata][38571]. This can be
6739 used by tools like the Rust Language Service to perform
6740 metadata-only builds.
6741 * [Levenshtein based typo suggestions now work in most places, while
6742 previously they worked only for fields and sometimes for local
6743 variables][38927]. Together with the overhaul of "no
6744 resolution"/"unexpected resolution" errors (#[38154]) they result in
6745 large and systematic improvement in resolution diagnostics.
6746 * [Fix `transmute::<T, U>` where `T` requires a bigger alignment than
6748 * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798]
6749 * [`rustc` no longer attempts to provide "consider using an explicit
6750 lifetime" suggestions][37057]. They were inaccurate.
6755 * [`VecDeque::truncate`]
6756 * [`VecDeque::resize`]
6757 * [`String::insert_str`]
6758 * [`Duration::checked_add`]
6759 * [`Duration::checked_sub`]
6760 * [`Duration::checked_div`]
6761 * [`Duration::checked_mul`]
6764 * [`SocketAddr::is_ipv4`]
6765 * [`SocketAddr::is_ipv6`]
6766 * [`IpAddr::is_ipv4`]
6767 * [`IpAddr::is_ipv6`]
6769 * [`Vec::dedup_by_key`]
6770 * [`Result::unwrap_or_default`]
6771 * [`<*const T>::wrapping_offset`]
6772 * [`<*mut T>::wrapping_offset`]
6773 * `CommandExt::creation_flags`
6774 * [`File::set_permissions`]
6775 * [`String::split_off`]
6780 * [`[T]::binary_search` and `[T]::binary_search_by_key` now take
6781 their argument by `Borrow` parameter][37761]
6782 * [All public types in std implement `Debug`][38006]
6783 * [`IpAddr` implements `From<Ipv4Addr>` and `From<Ipv6Addr>`][38327]
6784 * [`Ipv6Addr` implements `From<[u16; 8]>`][38131]
6785 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
6787 * [std: Fix partial writes in `LineWriter`][38062]
6788 * [std: Clamp max read/write sizes on Unix][38622]
6789 * [Use more specific panic message for `&str` slicing errors][38066]
6790 * [`TcpListener::set_only_v6` is deprecated][38304]. This
6791 functionality cannot be achieved in std currently.
6792 * [`writeln!`, like `println!`, now accepts a form with no string
6793 or formatting arguments, to just print a newline][38469]
6794 * [Implement `iter::Sum` and `iter::Product` for `Result`][38580]
6795 * [Reduce the size of static data in `std_unicode::tables`][38781]
6796 * [`char::EscapeDebug`, `EscapeDefault`, `EscapeUnicode`,
6797 `CaseMappingIter`, `ToLowercase`, `ToUppercase`, implement
6799 * [`Duration` implements `Sum`][38712]
6800 * [`String` implements `ToSocketAddrs`][39048]
6805 * [The `cargo check` command does a type check of a project without
6806 building it][cargo/3296]
6807 * [crates.io will display CI badges from Travis and AppVeyor, if
6808 specified in Cargo.toml][cargo/3546]
6809 * [crates.io will display categories listed in Cargo.toml][cargo/3301]
6810 * [Compilation profiles accept integer values for `debug`, in addition
6811 to `true` and `false`. These are passed to `rustc` as the value to
6812 `-C debuginfo`][cargo/3534]
6813 * [Implement `cargo --version --verbose`][cargo/3604]
6814 * [All builds now output 'dep-info' build dependencies compatible with
6815 make and ninja][cargo/3557]
6816 * [Build all workspace members with `build --all`][cargo/3511]
6817 * [Document all workspace members with `doc --all`][cargo/3515]
6818 * [Path deps outside workspace are not members][cargo/3443]
6823 * [`rustdoc` has a `--sysroot` argument that, like `rustc`, specifies
6824 the path to the Rust implementation][38589]
6825 * [The `armv7-linux-androideabi` target no longer enables NEON
6826 extensions, per Google's ABI guide][38413]
6827 * [The stock standard library can be compiled for Redox OS][38401]
6828 * [Rust has initial SPARC support][38726]. Tier 3. No builds
6830 * [Rust has experimental support for Nvidia PTX][38559]. Tier 3. No
6832 * [Fix backtraces on i686-pc-windows-gnu by disabling FPO][39379]
6837 * [Uninhabitable enums (those without any variants) no longer permit wildcard
6838 match patterns][38069]
6839 * In this release, references to uninhabited types can not be
6840 pattern-matched. This was accidentally allowed in 1.15.
6841 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
6842 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
6844 * [Clean up semantics of `self` in an import list][38313]
6845 * Reimplemented lifetime elision. This change was almost entirely compatible
6846 with existing code, but it did close a number of small bugs and loopholes,
6847 as well as being more accepting in some other [cases][41105].
6849 [37057]: https://github.com/rust-lang/rust/pull/37057
6850 [37761]: https://github.com/rust-lang/rust/pull/37761
6851 [38006]: https://github.com/rust-lang/rust/pull/38006
6852 [38051]: https://github.com/rust-lang/rust/pull/38051
6853 [38062]: https://github.com/rust-lang/rust/pull/38062
6854 [38622]: https://github.com/rust-lang/rust/pull/38622
6855 [38066]: https://github.com/rust-lang/rust/pull/38066
6856 [38069]: https://github.com/rust-lang/rust/pull/38069
6857 [38131]: https://github.com/rust-lang/rust/pull/38131
6858 [38154]: https://github.com/rust-lang/rust/pull/38154
6859 [38274]: https://github.com/rust-lang/rust/pull/38274
6860 [38304]: https://github.com/rust-lang/rust/pull/38304
6861 [38313]: https://github.com/rust-lang/rust/pull/38313
6862 [38327]: https://github.com/rust-lang/rust/pull/38327
6863 [38401]: https://github.com/rust-lang/rust/pull/38401
6864 [38413]: https://github.com/rust-lang/rust/pull/38413
6865 [38469]: https://github.com/rust-lang/rust/pull/38469
6866 [38559]: https://github.com/rust-lang/rust/pull/38559
6867 [38571]: https://github.com/rust-lang/rust/pull/38571
6868 [38580]: https://github.com/rust-lang/rust/pull/38580
6869 [38589]: https://github.com/rust-lang/rust/pull/38589
6870 [38670]: https://github.com/rust-lang/rust/pull/38670
6871 [38712]: https://github.com/rust-lang/rust/pull/38712
6872 [38726]: https://github.com/rust-lang/rust/pull/38726
6873 [38781]: https://github.com/rust-lang/rust/pull/38781
6874 [38798]: https://github.com/rust-lang/rust/pull/38798
6875 [38909]: https://github.com/rust-lang/rust/pull/38909
6876 [38920]: https://github.com/rust-lang/rust/pull/38920
6877 [38927]: https://github.com/rust-lang/rust/pull/38927
6878 [39048]: https://github.com/rust-lang/rust/pull/39048
6879 [39282]: https://github.com/rust-lang/rust/pull/39282
6880 [39379]: https://github.com/rust-lang/rust/pull/39379
6881 [41105]: https://github.com/rust-lang/rust/issues/41105
6882 [`<*const T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
6883 [`<*mut T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
6884 [`Duration::checked_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_add
6885 [`Duration::checked_div`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_div
6886 [`Duration::checked_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_mul
6887 [`Duration::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_sub
6888 [`File::set_permissions`]: https://doc.rust-lang.org/std/fs/struct.File.html#method.set_permissions
6889 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv4
6890 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv6
6891 [`Result::unwrap_or_default`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.unwrap_or_default
6892 [`SocketAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv4
6893 [`SocketAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv6
6894 [`String::insert_str`]: https://doc.rust-lang.org/std/string/struct.String.html#method.insert_str
6895 [`String::split_off`]: https://doc.rust-lang.org/std/string/struct.String.html#method.split_off
6896 [`Vec::dedup_by_key`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by_key
6897 [`Vec::dedup_by`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by
6898 [`VecDeque::resize`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.resize
6899 [`VecDeque::truncate`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.truncate
6900 [`str::repeat`]: https://doc.rust-lang.org/std/primitive.str.html#method.repeat
6901 [`str::replacen`]: https://doc.rust-lang.org/std/primitive.str.html#method.replacen
6902 [cargo/3296]: https://github.com/rust-lang/cargo/pull/3296
6903 [cargo/3301]: https://github.com/rust-lang/cargo/pull/3301
6904 [cargo/3443]: https://github.com/rust-lang/cargo/pull/3443
6905 [cargo/3511]: https://github.com/rust-lang/cargo/pull/3511
6906 [cargo/3515]: https://github.com/rust-lang/cargo/pull/3515
6907 [cargo/3534]: https://github.com/rust-lang/cargo/pull/3534
6908 [cargo/3546]: https://github.com/rust-lang/cargo/pull/3546
6909 [cargo/3557]: https://github.com/rust-lang/cargo/pull/3557
6910 [cargo/3604]: https://github.com/rust-lang/cargo/pull/3604
6913 Version 1.15.1 (2017-02-09)
6914 ===========================
6916 * [Fix IntoIter::as_mut_slice's signature][39466]
6917 * [Compile compiler builtins with `-fPIC` on 32-bit platforms][39523]
6919 [39466]: https://github.com/rust-lang/rust/pull/39466
6920 [39523]: https://github.com/rust-lang/rust/pull/39523
6923 Version 1.15.0 (2017-02-02)
6924 ===========================
6929 * Basic procedural macros allowing custom `#[derive]`, aka "macros 1.1", are
6930 stable. This allows popular code-generating crates like Serde and Diesel to
6931 work ergonomically. [RFC 1681].
6932 * [Tuple structs may be empty. Unary and empty tuple structs may be instantiated
6933 with curly braces][36868]. Part of [RFC 1506].
6934 * [A number of minor changes to name resolution have been activated][37127].
6935 They add up to more consistent semantics, allowing for future evolution of
6936 Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
6937 details of what is different. The breaking changes here have been transitioned
6938 through the [`legacy_imports`] lint since 1.14, with no known regressions.
6939 * [In `macro_rules`, `path` fragments can now be parsed as type parameter
6941 * [`?Sized` can be used in `where` clauses][37791]
6942 * [There is now a limit on the size of monomorphized types and it can be
6943 modified with the `#![type_size_limit]` crate attribute, similarly to
6944 the `#![recursion_limit]` attribute][37789]
6949 * [On Windows, the compiler will apply dllimport attributes when linking to
6950 extern functions][37973]. Additional attributes and flags can control which
6951 library kind is linked and its name. [RFC 1717].
6952 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
6953 * [The `--test` flag works with procedural macro crates][38107]
6954 * [Fix `extern "aapcs" fn` ABI][37814]
6955 * [The `-C no-stack-check` flag is deprecated][37636]. It does nothing.
6956 * [The `format!` expander recognizes incorrect `printf` and shell-style
6957 formatting directives and suggests the correct format][37613].
6958 * [Only report one error for all unused imports in an import list][37456]
6960 Compiler Performance
6961 --------------------
6963 * [Avoid unnecessary `mk_ty` calls in `Ty::super_fold_with`][37705]
6964 * [Avoid more unnecessary `mk_ty` calls in `Ty::super_fold_with`][37979]
6965 * [Don't clone in `UnificationTable::probe`][37848]
6966 * [Remove `scope_auxiliary` to cut RSS by 10%][37764]
6967 * [Use small vectors in type walker][37760]
6968 * [Macro expansion performance was improved][37701]
6969 * [Change `HirVec<P<T>>` to `HirVec<T>` in `hir::Expr`][37642]
6970 * [Replace FNV with a faster hash function][37229]
6975 * [`std::iter::Iterator::min_by`]
6976 * [`std::iter::Iterator::max_by`]
6977 * [`std::os::*::fs::FileExt`]
6978 * [`std::sync::atomic::Atomic*::get_mut`]
6979 * [`std::sync::atomic::Atomic*::into_inner`]
6980 * [`std::vec::IntoIter::as_slice`]
6981 * [`std::vec::IntoIter::as_mut_slice`]
6982 * [`std::sync::mpsc::Receiver::try_iter`]
6983 * [`std::os::unix::process::CommandExt::before_exec`]
6984 * [`std::rc::Rc::strong_count`]
6985 * [`std::rc::Rc::weak_count`]
6986 * [`std::sync::Arc::strong_count`]
6987 * [`std::sync::Arc::weak_count`]
6988 * [`std::char::encode_utf8`]
6989 * [`std::char::encode_utf16`]
6990 * [`std::cell::Ref::clone`]
6991 * [`std::io::Take::into_inner`]
6996 * [The standard sorting algorithm has been rewritten for dramatic performance
6997 improvements][38192]. It is a hybrid merge sort, drawing influences from
6998 Timsort. Previously it was a naive merge sort.
6999 * [`Iterator::nth` no longer has a `Sized` bound][38134]
7000 * [`Extend<&T>` is specialized for `Vec` where `T: Copy`][38182] to improve
7002 * [`chars().count()` is much faster][37888] and so are [`chars().last()`
7003 and `char_indices().last()`][37882]
7004 * [Fix ARM Objective-C ABI in `std::env::args`][38146]
7005 * [Chinese characters display correctly in `fmt::Debug`][37855]
7006 * [Derive `Default` for `Duration`][37699]
7007 * [Support creation of anonymous pipes on WinXP/2k][37677]
7008 * [`mpsc::RecvTimeoutError` implements `Error`][37527]
7009 * [Don't pass overlapped handles to processes][38835]
7014 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
7015 environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
7016 should instead check the variable at runtime with `std::env`. That the value
7017 was set at build time was a bug, and incorrect when cross-compiling. This
7018 change is known to cause breakage.
7019 * [Add `--all` flag to `cargo test`][cargo/3221]
7020 * [Compile statically against the MSVC CRT][cargo/3363]
7021 * [Mix feature flags into fingerprint/metadata shorthash][cargo/3102]
7022 * [Link OpenSSL statically on OSX][cargo/3311]
7023 * [Apply new fingerprinting to build dir outputs][cargo/3310]
7024 * [Test for bad path overrides with summaries][cargo/3336]
7025 * [Require `cargo install --vers` to take a semver version][cargo/3338]
7026 * [Fix retrying crate downloads for network errors][cargo/3348]
7027 * [Implement string lookup for `build.rustflags` config key][cargo/3356]
7028 * [Emit more info on --message-format=json][cargo/3319]
7029 * [Assume `build.rs` in the same directory as `Cargo.toml` is a build script][cargo/3361]
7030 * [Don't ignore errors in workspace manifest][cargo/3409]
7031 * [Fix `--message-format JSON` when rustc emits non-JSON warnings][cargo/3410]
7036 * [Test runners (binaries built with `--test`) now support a `--list` argument
7037 that lists the tests it contains][38185]
7038 * [Test runners now support a `--exact` argument that makes the test filter
7039 match exactly, instead of matching only a substring of the test name][38181]
7040 * [rustdoc supports a `--playground-url` flag][37763]
7041 * [rustdoc provides more details about `#[should_panic]` errors][37749]
7046 * [The Rust build system is now written in Rust][37817]. The Makefiles may
7047 continue to be used in this release by passing `--disable-rustbuild` to the
7048 configure script, but they will be deleted soon. Note that the new build
7049 system uses a different on-disk layout that will likely affect any scripts
7051 * [Rust supports i686-unknown-openbsd][38086]. Tier 3 support. No testing or
7053 * [Rust supports the MSP430][37627]. Tier 3 support. No testing or releases.
7054 * [Rust supports the ARMv5TE architecture][37615]. Tier 3 support. No testing or
7060 * [A number of minor changes to name resolution have been activated][37127].
7061 They add up to more consistent semantics, allowing for future evolution of
7062 Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
7063 details of what is different. The breaking changes here have been transitioned
7064 through the [`legacy_imports`] lint since 1.14, with no known regressions.
7065 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
7066 environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
7067 should instead check the variable at runtime with `std::env`. That the value
7068 was set at build time was a bug, and incorrect when cross-compiling. This
7069 change is known to cause breakage.
7070 * [Higher-ranked lifetimes are no longer allowed to appear _only_ in associated
7071 types][33685]. The [`hr_lifetime_in_assoc_type` lint] has been a warning since
7072 1.10 and is now an error by default. It will become a hard error in the near
7074 * [The semantics relating modules to file system directories are changing in
7075 minor ways][37602]. This is captured in the new `legacy_directory_ownership`
7076 lint, which is a warning in this release, and will become a hard error in the
7078 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
7079 * [Once `Peekable` peeks a `None` it will return that `None` without re-querying
7080 the underlying iterator][37834]
7082 ["changes"]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md#changes-to-name-resolution-rules
7083 [33685]: https://github.com/rust-lang/rust/issues/33685
7084 [36868]: https://github.com/rust-lang/rust/pull/36868
7085 [37127]: https://github.com/rust-lang/rust/pull/37127
7086 [37229]: https://github.com/rust-lang/rust/pull/37229
7087 [37456]: https://github.com/rust-lang/rust/pull/37456
7088 [37527]: https://github.com/rust-lang/rust/pull/37527
7089 [37602]: https://github.com/rust-lang/rust/pull/37602
7090 [37613]: https://github.com/rust-lang/rust/pull/37613
7091 [37615]: https://github.com/rust-lang/rust/pull/37615
7092 [37636]: https://github.com/rust-lang/rust/pull/37636
7093 [37627]: https://github.com/rust-lang/rust/pull/37627
7094 [37642]: https://github.com/rust-lang/rust/pull/37642
7095 [37677]: https://github.com/rust-lang/rust/pull/37677
7096 [37699]: https://github.com/rust-lang/rust/pull/37699
7097 [37701]: https://github.com/rust-lang/rust/pull/37701
7098 [37705]: https://github.com/rust-lang/rust/pull/37705
7099 [37749]: https://github.com/rust-lang/rust/pull/37749
7100 [37760]: https://github.com/rust-lang/rust/pull/37760
7101 [37763]: https://github.com/rust-lang/rust/pull/37763
7102 [37764]: https://github.com/rust-lang/rust/pull/37764
7103 [37789]: https://github.com/rust-lang/rust/pull/37789
7104 [37791]: https://github.com/rust-lang/rust/pull/37791
7105 [37814]: https://github.com/rust-lang/rust/pull/37814
7106 [37817]: https://github.com/rust-lang/rust/pull/37817
7107 [37834]: https://github.com/rust-lang/rust/pull/37834
7108 [37848]: https://github.com/rust-lang/rust/pull/37848
7109 [37855]: https://github.com/rust-lang/rust/pull/37855
7110 [37882]: https://github.com/rust-lang/rust/pull/37882
7111 [37888]: https://github.com/rust-lang/rust/pull/37888
7112 [37973]: https://github.com/rust-lang/rust/pull/37973
7113 [37979]: https://github.com/rust-lang/rust/pull/37979
7114 [38086]: https://github.com/rust-lang/rust/pull/38086
7115 [38107]: https://github.com/rust-lang/rust/pull/38107
7116 [38117]: https://github.com/rust-lang/rust/pull/38117
7117 [38134]: https://github.com/rust-lang/rust/pull/38134
7118 [38146]: https://github.com/rust-lang/rust/pull/38146
7119 [38181]: https://github.com/rust-lang/rust/pull/38181
7120 [38182]: https://github.com/rust-lang/rust/pull/38182
7121 [38185]: https://github.com/rust-lang/rust/pull/38185
7122 [38192]: https://github.com/rust-lang/rust/pull/38192
7123 [38279]: https://github.com/rust-lang/rust/pull/38279
7124 [38835]: https://github.com/rust-lang/rust/pull/38835
7125 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
7126 [RFC 1560]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md
7127 [RFC 1681]: https://github.com/rust-lang/rfcs/blob/master/text/1681-macros-1.1.md
7128 [RFC 1717]: https://github.com/rust-lang/rfcs/blob/master/text/1717-dllimport.md
7129 [`hr_lifetime_in_assoc_type` lint]: https://github.com/rust-lang/rust/issues/33685
7130 [`legacy_imports`]: https://github.com/rust-lang/rust/pull/38271
7131 [cargo/3102]: https://github.com/rust-lang/cargo/pull/3102
7132 [cargo/3221]: https://github.com/rust-lang/cargo/pull/3221
7133 [cargo/3310]: https://github.com/rust-lang/cargo/pull/3310
7134 [cargo/3311]: https://github.com/rust-lang/cargo/pull/3311
7135 [cargo/3319]: https://github.com/rust-lang/cargo/pull/3319
7136 [cargo/3336]: https://github.com/rust-lang/cargo/pull/3336
7137 [cargo/3338]: https://github.com/rust-lang/cargo/pull/3338
7138 [cargo/3348]: https://github.com/rust-lang/cargo/pull/3348
7139 [cargo/3356]: https://github.com/rust-lang/cargo/pull/3356
7140 [cargo/3361]: https://github.com/rust-lang/cargo/pull/3361
7141 [cargo/3363]: https://github.com/rust-lang/cargo/pull/3363
7142 [cargo/3368]: https://github.com/rust-lang/cargo/issues/3368
7143 [cargo/3409]: https://github.com/rust-lang/cargo/pull/3409
7144 [cargo/3410]: https://github.com/rust-lang/cargo/pull/3410
7145 [`std::iter::Iterator::min_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.min_by
7146 [`std::iter::Iterator::max_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.max_by
7147 [`std::os::*::fs::FileExt`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html
7148 [`std::sync::atomic::Atomic*::get_mut`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.get_mut
7149 [`std::sync::atomic::Atomic*::into_inner`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.into_inner
7150 [`std::vec::IntoIter::as_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_slice
7151 [`std::vec::IntoIter::as_mut_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_mut_slice
7152 [`std::sync::mpsc::Receiver::try_iter`]: https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_iter
7153 [`std::os::unix::process::CommandExt::before_exec`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.before_exec
7154 [`std::rc::Rc::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.strong_count
7155 [`std::rc::Rc::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.weak_count
7156 [`std::sync::Arc::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.strong_count
7157 [`std::sync::Arc::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.weak_count
7158 [`std::char::encode_utf8`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf8
7159 [`std::char::encode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf16
7160 [`std::cell::Ref::clone`]: https://doc.rust-lang.org/std/cell/struct.Ref.html#method.clone
7161 [`std::io::Take::into_inner`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.into_inner
7164 Version 1.14.0 (2016-12-22)
7165 ===========================
7170 * [`..` matches multiple tuple fields in enum variants, structs
7171 and tuples][36843]. [RFC 1492].
7172 * [Safe `fn` items can be coerced to `unsafe fn` pointers][37389]
7173 * [`use *` and `use ::*` both glob-import from the crate root][37367]
7174 * [It's now possible to call a `Vec<Box<Fn()>>` without explicit
7175 dereferencing][36822]
7180 * [Mark enums with non-zero discriminant as non-zero][37224]
7181 * [Lower-case `static mut` names are linted like other
7182 statics and consts][37162]
7183 * [Fix ICE on some macros in const integer positions
7184 (e.g. `[u8; m!()]`)][36819]
7185 * [Improve error message and snippet for "did you mean `x`"][36798]
7186 * [Add a panic-strategy field to the target specification][36794]
7187 * [Include LLVM version in `--version --verbose`][37200]
7189 Compile-time Optimizations
7190 --------------------------
7192 * [Improve macro expansion performance][37569]
7193 * [Shrink `Expr_::ExprInlineAsm`][37445]
7194 * [Replace all uses of SHA-256 with BLAKE2b][37439]
7195 * [Reduce the number of bytes hashed by `IchHasher`][37427]
7196 * [Avoid more allocations when compiling html5ever][37373]
7197 * [Use `SmallVector` in `CombineFields::instantiate`][37322]
7198 * [Avoid some allocations in the macro parser][37318]
7199 * [Use a faster deflate setting][37298]
7200 * [Add `ArrayVec` and `AccumulateVec` to reduce heap allocations
7201 during interning of slices][37270]
7202 * [Optimize `write_metadata`][37267]
7203 * [Don't process obligation forest cycles when stalled][37231]
7204 * [Avoid many `CrateConfig` clones][37161]
7205 * [Optimize `Substs::super_fold_with`][37108]
7206 * [Optimize `ObligationForest`'s `NodeState` handling][36993]
7207 * [Speed up `plug_leaks`][36917]
7212 * [`println!()`, with no arguments, prints newline][36825].
7213 Previously, an empty string was required to achieve the same.
7214 * [`Wrapping` impls standard binary and unary operators, as well as
7215 the `Sum` and `Product` iterators][37356]
7216 * [Implement `From<Cow<str>> for String` and `From<Cow<[T]>> for
7218 * [Improve `fold` performance for `chain`, `cloned`, `map`, and
7219 `VecDeque` iterators][37315]
7220 * [Improve `SipHasher` performance on small values][37312]
7221 * [Add Iterator trait TrustedLen to enable better FromIterator /
7223 * [Expand `.zip()` specialization to `.map()` and `.cloned()`][37230]
7224 * [`ReadDir` implements `Debug`][37221]
7225 * [Implement `RefUnwindSafe` for atomic types][37178]
7226 * [Specialize `Vec::extend` to `Vec::extend_from_slice`][37094]
7227 * [Avoid allocations in `Decoder::read_str`][37064]
7228 * [`io::Error` implements `From<io::ErrorKind>`][37037]
7229 * [Impl `Debug` for raw pointers to unsized data][36880]
7230 * [Don't reuse `HashMap` random seeds][37470]
7231 * [The internal memory layout of `HashMap` is more cache-friendly, for
7232 significant improvements in some operations][36692]
7233 * [`HashMap` uses less memory on 32-bit architectures][36595]
7234 * [Impl `Add<{str, Cow<str>}>` for `Cow<str>`][36430]
7239 * [Expose rustc cfg values to build scripts][cargo/3243]
7240 * [Allow cargo to work with read-only `CARGO_HOME`][cargo/3259]
7241 * [Fix passing --features when testing multiple packages][cargo/3280]
7242 * [Use a single profile set per workspace][cargo/3249]
7243 * [Load `replace` sections from lock files][cargo/3220]
7244 * [Ignore `panic` configuration for test/bench profiles][cargo/3175]
7249 * [rustup is the recommended Rust installation method][1.14rustup]
7250 * This release includes host (rustc) builds for Linux on MIPS, PowerPC, and
7251 S390x. These are [tier 2] platforms and may have major defects. Follow the
7252 instructions on the website to install, or add the targets to an existing
7253 installation with `rustup target add`. The new target triples are:
7254 - `mips-unknown-linux-gnu`
7255 - `mipsel-unknown-linux-gnu`
7256 - `mips64-unknown-linux-gnuabi64`
7257 - `mips64el-unknown-linux-gnuabi64 `
7258 - `powerpc-unknown-linux-gnu`
7259 - `powerpc64-unknown-linux-gnu`
7260 - `powerpc64le-unknown-linux-gnu`
7261 - `s390x-unknown-linux-gnu `
7262 * This release includes target (std) builds for ARM Linux running MUSL
7263 libc. These are [tier 2] platforms and may have major defects. Add the
7264 following triples to an existing rustup installation with `rustup target add`:
7265 - `arm-unknown-linux-musleabi`
7266 - `arm-unknown-linux-musleabihf`
7267 - `armv7-unknown-linux-musleabihf`
7268 * This release includes [experimental support for WebAssembly][1.14wasm], via
7269 the `wasm32-unknown-emscripten` target. This target is known to have major
7270 defects. Please test, report, and fix.
7271 * rustup no longer installs documentation by default. Run `rustup
7272 component add rust-docs` to install.
7273 * [Fix line stepping in debugger][37310]
7274 * [Enable line number debuginfo in releases][37280]
7279 * [Disable jemalloc on aarch64/powerpc/mips][37392]
7280 * [Add support for Fuchsia OS][37313]
7281 * [Detect local-rebuild by only MAJOR.MINOR version][37273]
7286 * [A number of forward-compatibility lints used by the compiler
7287 to gradually introduce language changes have been converted
7288 to deny by default][36894]:
7289 - ["use of inaccessible extern crate erroneously allowed"][36886]
7290 - ["type parameter default erroneously allowed in invalid location"][36887]
7291 - ["detects super or self keywords at the beginning of global path"][36888]
7292 - ["two overlapping inherent impls define an item with the same name
7293 were erroneously allowed"][36889]
7294 - ["floating-point constants cannot be used in patterns"][36890]
7295 - ["constants of struct or enum type can only be used in a pattern if
7296 the struct or enum has `#[derive(PartialEq, Eq)]`"][36891]
7297 - ["lifetimes or labels named `'_` were erroneously allowed"][36892]
7298 * [Prohibit patterns in trait methods without bodies][37378]
7299 * [The atomic `Ordering` enum may not be matched exhaustively][37351]
7300 * [Future-proofing `#[no_link]` breaks some obscure cases][37247]
7301 * [The `$crate` macro variable is accepted in fewer locations][37213]
7302 * [Impls specifying extra region requirements beyond the trait
7303 they implement are rejected][37167]
7304 * [Enums may not be unsized][37111]. Unsized enums are intended to
7305 work but never have. For now they are forbidden.
7306 * [Enforce the shadowing restrictions from RFC 1560 for today's macros][36767]
7308 [tier 2]: https://forge.rust-lang.org/platform-support.html
7309 [1.14rustup]: https://internals.rust-lang.org/t/beta-testing-rustup-rs/3316/204
7310 [1.14wasm]: https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten/7627
7311 [36430]: https://github.com/rust-lang/rust/pull/36430
7312 [36595]: https://github.com/rust-lang/rust/pull/36595
7313 [36692]: https://github.com/rust-lang/rust/pull/36692
7314 [36767]: https://github.com/rust-lang/rust/pull/36767
7315 [36794]: https://github.com/rust-lang/rust/pull/36794
7316 [36798]: https://github.com/rust-lang/rust/pull/36798
7317 [36819]: https://github.com/rust-lang/rust/pull/36819
7318 [36822]: https://github.com/rust-lang/rust/pull/36822
7319 [36825]: https://github.com/rust-lang/rust/pull/36825
7320 [36843]: https://github.com/rust-lang/rust/pull/36843
7321 [36880]: https://github.com/rust-lang/rust/pull/36880
7322 [36886]: https://github.com/rust-lang/rust/issues/36886
7323 [36887]: https://github.com/rust-lang/rust/issues/36887
7324 [36888]: https://github.com/rust-lang/rust/issues/36888
7325 [36889]: https://github.com/rust-lang/rust/issues/36889
7326 [36890]: https://github.com/rust-lang/rust/issues/36890
7327 [36891]: https://github.com/rust-lang/rust/issues/36891
7328 [36892]: https://github.com/rust-lang/rust/issues/36892
7329 [36894]: https://github.com/rust-lang/rust/pull/36894
7330 [36917]: https://github.com/rust-lang/rust/pull/36917
7331 [36993]: https://github.com/rust-lang/rust/pull/36993
7332 [37037]: https://github.com/rust-lang/rust/pull/37037
7333 [37064]: https://github.com/rust-lang/rust/pull/37064
7334 [37094]: https://github.com/rust-lang/rust/pull/37094
7335 [37108]: https://github.com/rust-lang/rust/pull/37108
7336 [37111]: https://github.com/rust-lang/rust/pull/37111
7337 [37161]: https://github.com/rust-lang/rust/pull/37161
7338 [37162]: https://github.com/rust-lang/rust/pull/37162
7339 [37167]: https://github.com/rust-lang/rust/pull/37167
7340 [37178]: https://github.com/rust-lang/rust/pull/37178
7341 [37200]: https://github.com/rust-lang/rust/pull/37200
7342 [37213]: https://github.com/rust-lang/rust/pull/37213
7343 [37221]: https://github.com/rust-lang/rust/pull/37221
7344 [37224]: https://github.com/rust-lang/rust/pull/37224
7345 [37230]: https://github.com/rust-lang/rust/pull/37230
7346 [37231]: https://github.com/rust-lang/rust/pull/37231
7347 [37247]: https://github.com/rust-lang/rust/pull/37247
7348 [37267]: https://github.com/rust-lang/rust/pull/37267
7349 [37270]: https://github.com/rust-lang/rust/pull/37270
7350 [37273]: https://github.com/rust-lang/rust/pull/37273
7351 [37280]: https://github.com/rust-lang/rust/pull/37280
7352 [37298]: https://github.com/rust-lang/rust/pull/37298
7353 [37306]: https://github.com/rust-lang/rust/pull/37306
7354 [37310]: https://github.com/rust-lang/rust/pull/37310
7355 [37312]: https://github.com/rust-lang/rust/pull/37312
7356 [37313]: https://github.com/rust-lang/rust/pull/37313
7357 [37315]: https://github.com/rust-lang/rust/pull/37315
7358 [37318]: https://github.com/rust-lang/rust/pull/37318
7359 [37322]: https://github.com/rust-lang/rust/pull/37322
7360 [37326]: https://github.com/rust-lang/rust/pull/37326
7361 [37351]: https://github.com/rust-lang/rust/pull/37351
7362 [37356]: https://github.com/rust-lang/rust/pull/37356
7363 [37367]: https://github.com/rust-lang/rust/pull/37367
7364 [37373]: https://github.com/rust-lang/rust/pull/37373
7365 [37378]: https://github.com/rust-lang/rust/pull/37378
7366 [37389]: https://github.com/rust-lang/rust/pull/37389
7367 [37392]: https://github.com/rust-lang/rust/pull/37392
7368 [37427]: https://github.com/rust-lang/rust/pull/37427
7369 [37439]: https://github.com/rust-lang/rust/pull/37439
7370 [37445]: https://github.com/rust-lang/rust/pull/37445
7371 [37470]: https://github.com/rust-lang/rust/pull/37470
7372 [37569]: https://github.com/rust-lang/rust/pull/37569
7373 [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
7374 [cargo/3175]: https://github.com/rust-lang/cargo/pull/3175
7375 [cargo/3220]: https://github.com/rust-lang/cargo/pull/3220
7376 [cargo/3243]: https://github.com/rust-lang/cargo/pull/3243
7377 [cargo/3249]: https://github.com/rust-lang/cargo/pull/3249
7378 [cargo/3259]: https://github.com/rust-lang/cargo/pull/3259
7379 [cargo/3280]: https://github.com/rust-lang/cargo/pull/3280
7382 Version 1.13.0 (2016-11-10)
7383 ===========================
7388 * [Stabilize the `?` operator][36995]. `?` is a simple way to propagate
7389 errors, like the `try!` macro, described in [RFC 0243].
7390 * [Stabilize macros in type position][36014]. Described in [RFC 873].
7391 * [Stabilize attributes on statements][36995]. Described in [RFC 0016].
7392 * [Fix `#[derive]` for empty tuple structs/variants][35728]
7393 * [Fix lifetime rules for 'if' conditions][36029]
7394 * [Avoid loading and parsing unconfigured non-inline modules][36482]
7399 * [Add the `-C link-arg` argument][36574]
7400 * [Remove the old AST-based backend from rustc_trans][35764]
7401 * [Don't enable NEON by default on armv7 Linux][35814]
7402 * [Fix debug line number info for macro expansions][35238]
7403 * [Do not emit "class method" debuginfo for types that are not
7404 DICompositeType][36008]
7405 * [Warn about multiple conflicting #[repr] hints][34623]
7406 * [When sizing DST, don't double-count nested struct prefixes][36351]
7407 * [Default RUST_MIN_STACK to 16MiB for now][36505]
7408 * [Improve rlib metadata format][36551]. Reduces rlib size significantly.
7409 * [Reject macros with empty repetitions to avoid infinite loop][36721]
7410 * [Expand macros without recursing to avoid stack overflows][36214]
7415 * [Replace macro backtraces with labeled local uses][35702]
7416 * [Improve error message for misplaced doc comments][33922]
7417 * [Buffer unix and lock windows to prevent message interleaving][35975]
7418 * [Update lifetime errors to specifically note temporaries][36171]
7419 * [Special case a few colors for Windows][36178]
7420 * [Suggest `use self` when such an import resolves][36289]
7421 * [Be more specific when type parameter shadows primitive type][36338]
7422 * Many minor improvements
7424 Compile-time Optimizations
7425 --------------------------
7427 * [Compute and cache HIR hashes at beginning][35854]
7428 * [Don't hash types in loan paths][36004]
7429 * [Cache projections in trans][35761]
7430 * [Optimize the parser's last token handling][36527]
7431 * [Only instantiate #[inline] functions in codegen units referencing
7432 them][36524]. This leads to big improvements in cases where crates export
7433 define many inline functions without using them directly.
7434 * [Lazily allocate TypedArena's first chunk][36592]
7435 * [Don't allocate during default HashSet creation][36734]
7442 * [`overflowing_abs`]
7443 * [`RefCell::try_borrow`]
7444 * [`RefCell::try_borrow_mut`]
7449 * [Add `assert_ne!` and `debug_assert_ne!`][35074]
7450 * [Make `vec_deque::Drain`, `hash_map::Drain`, and `hash_set::Drain`
7452 * [Implement `AsRef<[T]>` for `std::slice::Iter`][35559]
7453 * [Implement `Debug` for `std::vec::IntoIter`][35707]
7454 * [`CString`: avoid excessive growth just to 0-terminate][35871]
7455 * [Implement `CoerceUnsized` for `{Cell, RefCell, UnsafeCell}`][35627]
7456 * [Use arc4rand on FreeBSD][35884]
7457 * [memrchr: Correct aligned offset computation][35969]
7458 * [Improve Demangling of Rust Symbols][36059]
7459 * [Use monotonic time in condition variables][35048]
7460 * [Implement `Debug` for `std::path::{Components,Iter}`][36101]
7461 * [Implement conversion traits for `char`][35755]
7462 * [Fix illegal instruction caused by overflow in channel cloning][36104]
7463 * [Zero first byte of CString on drop][36264]
7464 * [Inherit overflow checks for sum and product][36372]
7465 * [Add missing Eq implementations][36423]
7466 * [Implement `Debug` for `DirEntry`][36631]
7467 * [When `getaddrinfo` returns `EAI_SYSTEM` retrieve actual error from
7469 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
7470 * [Implement more traits for `std::io::ErrorKind`][35911]
7471 * [Optimize BinaryHeap bounds checking][36072]
7472 * [Work around pointer aliasing issue in `Vec::extend_from_slice`,
7473 `extend_with_element`][36355]
7474 * [Fix overflow checking in unsigned pow()][34942]
7479 * This release includes security fixes to both curl and OpenSSL.
7480 * [Fix transitive doctests when panic=abort][cargo/3021]
7481 * [Add --all-features flag to cargo][cargo/3038]
7482 * [Reject path-based dependencies in `cargo package`][cargo/3060]
7483 * [Don't parse the home directory more than once][cargo/3078]
7484 * [Don't try to generate Cargo.lock on empty workspaces][cargo/3092]
7485 * [Update OpenSSL to 1.0.2j][cargo/3121]
7486 * [Add license and license_file to cargo metadata output][cargo/3110]
7487 * [Make crates-io registry URL optional in config; ignore all changes to
7488 source.crates-io][cargo/3089]
7489 * [Don't download dependencies from other platforms][cargo/3123]
7490 * [Build transitive dev-dependencies when needed][cargo/3125]
7491 * [Add support for per-target rustflags in .cargo/config][cargo/3157]
7492 * [Avoid updating registry when adding existing deps][cargo/3144]
7493 * [Warn about path overrides that won't work][cargo/3136]
7494 * [Use workspaces during `cargo install`][cargo/3146]
7495 * [Leak mspdbsrv.exe processes on Windows][cargo/3162]
7496 * [Add --message-format flag][cargo/3000]
7497 * [Pass target environment for rustdoc][cargo/3205]
7498 * [Use `CommandExt::exec` for `cargo run` on Unix][cargo/2818]
7499 * [Update curl and curl-sys][cargo/3241]
7500 * [Call rustdoc test with the correct cfg flags of a package][cargo/3242]
7505 * [rustdoc: Add the `--sysroot` argument][36586]
7506 * [rustdoc: Fix a couple of issues with the search results][35655]
7507 * [rustdoc: remove the `!` from macro URLs and titles][35234]
7508 * [gdb: Fix pretty-printing special-cased Rust types][35585]
7509 * [rustdoc: Filter more incorrect methods inherited through Deref][36266]
7514 * [Remove unmaintained style guide][35124]
7515 * [Add s390x support][36369]
7516 * [Initial work at Haiku OS support][36727]
7517 * [Add mips-uclibc targets][35734]
7518 * [Crate-ify compiler-rt into compiler-builtins][35021]
7519 * [Add rustc version info (git hash + date) to dist tarball][36213]
7520 * Many documentation improvements
7525 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
7526 * [Deny (by default) transmuting from fn item types to pointer-sized
7527 types][34923]. Continuing the long transition to zero-sized fn items,
7529 * [Fix `#[derive]` for empty tuple structs/variants][35728].
7531 * [Issue deprecation warnings for safe accesses to extern statics][36173]
7532 * [Fix lifetime rules for 'if' conditions][36029].
7533 * [Inherit overflow checks for sum and product][36372].
7534 * [Forbid user-defined macros named "macro_rules"][36730].
7536 [33922]: https://github.com/rust-lang/rust/pull/33922
7537 [34623]: https://github.com/rust-lang/rust/pull/34623
7538 [34923]: https://github.com/rust-lang/rust/pull/34923
7539 [34942]: https://github.com/rust-lang/rust/pull/34942
7540 [35021]: https://github.com/rust-lang/rust/pull/35021
7541 [35048]: https://github.com/rust-lang/rust/pull/35048
7542 [35074]: https://github.com/rust-lang/rust/pull/35074
7543 [35124]: https://github.com/rust-lang/rust/pull/35124
7544 [35234]: https://github.com/rust-lang/rust/pull/35234
7545 [35238]: https://github.com/rust-lang/rust/pull/35238
7546 [35354]: https://github.com/rust-lang/rust/pull/35354
7547 [35559]: https://github.com/rust-lang/rust/pull/35559
7548 [35585]: https://github.com/rust-lang/rust/pull/35585
7549 [35627]: https://github.com/rust-lang/rust/pull/35627
7550 [35655]: https://github.com/rust-lang/rust/pull/35655
7551 [35702]: https://github.com/rust-lang/rust/pull/35702
7552 [35707]: https://github.com/rust-lang/rust/pull/35707
7553 [35728]: https://github.com/rust-lang/rust/pull/35728
7554 [35734]: https://github.com/rust-lang/rust/pull/35734
7555 [35755]: https://github.com/rust-lang/rust/pull/35755
7556 [35761]: https://github.com/rust-lang/rust/pull/35761
7557 [35764]: https://github.com/rust-lang/rust/pull/35764
7558 [35814]: https://github.com/rust-lang/rust/pull/35814
7559 [35854]: https://github.com/rust-lang/rust/pull/35854
7560 [35871]: https://github.com/rust-lang/rust/pull/35871
7561 [35884]: https://github.com/rust-lang/rust/pull/35884
7562 [35911]: https://github.com/rust-lang/rust/pull/35911
7563 [35969]: https://github.com/rust-lang/rust/pull/35969
7564 [35975]: https://github.com/rust-lang/rust/pull/35975
7565 [36004]: https://github.com/rust-lang/rust/pull/36004
7566 [36008]: https://github.com/rust-lang/rust/pull/36008
7567 [36014]: https://github.com/rust-lang/rust/pull/36014
7568 [36029]: https://github.com/rust-lang/rust/pull/36029
7569 [36059]: https://github.com/rust-lang/rust/pull/36059
7570 [36072]: https://github.com/rust-lang/rust/pull/36072
7571 [36101]: https://github.com/rust-lang/rust/pull/36101
7572 [36104]: https://github.com/rust-lang/rust/pull/36104
7573 [36171]: https://github.com/rust-lang/rust/pull/36171
7574 [36173]: https://github.com/rust-lang/rust/pull/36173
7575 [36178]: https://github.com/rust-lang/rust/pull/36178
7576 [36213]: https://github.com/rust-lang/rust/pull/36213
7577 [36214]: https://github.com/rust-lang/rust/pull/36214
7578 [36264]: https://github.com/rust-lang/rust/pull/36264
7579 [36266]: https://github.com/rust-lang/rust/pull/36266
7580 [36289]: https://github.com/rust-lang/rust/pull/36289
7581 [36338]: https://github.com/rust-lang/rust/pull/36338
7582 [36351]: https://github.com/rust-lang/rust/pull/36351
7583 [36355]: https://github.com/rust-lang/rust/pull/36355
7584 [36369]: https://github.com/rust-lang/rust/pull/36369
7585 [36372]: https://github.com/rust-lang/rust/pull/36372
7586 [36423]: https://github.com/rust-lang/rust/pull/36423
7587 [36482]: https://github.com/rust-lang/rust/pull/36482
7588 [36505]: https://github.com/rust-lang/rust/pull/36505
7589 [36524]: https://github.com/rust-lang/rust/pull/36524
7590 [36527]: https://github.com/rust-lang/rust/pull/36527
7591 [36551]: https://github.com/rust-lang/rust/pull/36551
7592 [36574]: https://github.com/rust-lang/rust/pull/36574
7593 [36586]: https://github.com/rust-lang/rust/pull/36586
7594 [36592]: https://github.com/rust-lang/rust/pull/36592
7595 [36631]: https://github.com/rust-lang/rust/pull/36631
7596 [36721]: https://github.com/rust-lang/rust/pull/36721
7597 [36727]: https://github.com/rust-lang/rust/pull/36727
7598 [36730]: https://github.com/rust-lang/rust/pull/36730
7599 [36734]: https://github.com/rust-lang/rust/pull/36734
7600 [36754]: https://github.com/rust-lang/rust/pull/36754
7601 [36995]: https://github.com/rust-lang/rust/pull/36995
7602 [RFC 0016]: https://github.com/rust-lang/rfcs/blob/master/text/0016-more-attributes.md
7603 [RFC 0243]: https://github.com/rust-lang/rfcs/blob/master/text/0243-trait-based-exception-handling.md
7604 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
7605 [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
7606 [RFC 873]: https://github.com/rust-lang/rfcs/blob/master/text/0873-type-macros.md
7607 [cargo/2818]: https://github.com/rust-lang/cargo/pull/2818
7608 [cargo/3000]: https://github.com/rust-lang/cargo/pull/3000
7609 [cargo/3021]: https://github.com/rust-lang/cargo/pull/3021
7610 [cargo/3038]: https://github.com/rust-lang/cargo/pull/3038
7611 [cargo/3060]: https://github.com/rust-lang/cargo/pull/3060
7612 [cargo/3078]: https://github.com/rust-lang/cargo/pull/3078
7613 [cargo/3089]: https://github.com/rust-lang/cargo/pull/3089
7614 [cargo/3092]: https://github.com/rust-lang/cargo/pull/3092
7615 [cargo/3110]: https://github.com/rust-lang/cargo/pull/3110
7616 [cargo/3121]: https://github.com/rust-lang/cargo/pull/3121
7617 [cargo/3123]: https://github.com/rust-lang/cargo/pull/3123
7618 [cargo/3125]: https://github.com/rust-lang/cargo/pull/3125
7619 [cargo/3136]: https://github.com/rust-lang/cargo/pull/3136
7620 [cargo/3144]: https://github.com/rust-lang/cargo/pull/3144
7621 [cargo/3146]: https://github.com/rust-lang/cargo/pull/3146
7622 [cargo/3157]: https://github.com/rust-lang/cargo/pull/3157
7623 [cargo/3162]: https://github.com/rust-lang/cargo/pull/3162
7624 [cargo/3205]: https://github.com/rust-lang/cargo/pull/3205
7625 [cargo/3241]: https://github.com/rust-lang/cargo/pull/3241
7626 [cargo/3242]: https://github.com/rust-lang/cargo/pull/3242
7627 [`checked_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.checked_abs
7628 [`wrapping_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_abs
7629 [`overflowing_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.overflowing_abs
7630 [`RefCell::try_borrow`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow
7631 [`RefCell::try_borrow_mut`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_mut
7632 [`SipHasher`]: https://doc.rust-lang.org/std/hash/struct.SipHasher.html
7633 [`DefaultHasher`]: https://doc.rust-lang.org/std/collections/hash_map/struct.DefaultHasher.html
7636 Version 1.12.1 (2016-10-20)
7637 ===========================
7642 * [ICE: 'rustc' panicked at 'assertion failed: concrete_substs.is_normalized_for_trans()' #36381][36381]
7643 * [Confusion with double negation and booleans][36856]
7644 * [rustc 1.12.0 fails with SIGSEGV in release mode (syn crate 0.8.0)][36875]
7645 * [Rustc 1.12.0 Windows build of `ethcore` crate fails with LLVM error][36924]
7646 * [1.12.0: High memory usage when linking in release mode with debug info][36926]
7647 * [Corrupted memory after updated to 1.12][36936]
7648 * ["Let NullaryConstructor = something;" causes internal compiler error: "tried to overwrite interned AdtDef"][37026]
7649 * [Fix ICE: inject bitcast if types mismatch for invokes/calls/stores][37112]
7650 * [debuginfo: Handle spread_arg case in MIR-trans in a more stable way.][37153]
7652 [36381]: https://github.com/rust-lang/rust/issues/36381
7653 [36856]: https://github.com/rust-lang/rust/issues/36856
7654 [36875]: https://github.com/rust-lang/rust/issues/36875
7655 [36924]: https://github.com/rust-lang/rust/issues/36924
7656 [36926]: https://github.com/rust-lang/rust/issues/36926
7657 [36936]: https://github.com/rust-lang/rust/issues/36936
7658 [37026]: https://github.com/rust-lang/rust/issues/37026
7659 [37112]: https://github.com/rust-lang/rust/issues/37112
7660 [37153]: https://github.com/rust-lang/rust/issues/37153
7663 Version 1.12.0 (2016-09-29)
7664 ===========================
7669 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
7670 This translation pass is far simpler than the previous AST->LLVM pass, and
7671 creates opportunities to perform new optimizations directly on the MIR. It
7672 was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
7673 * [`rustc` presents a new, more readable error format, along with
7674 machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
7675 Most common editors supporting Rust have been updated to work with it. It was
7676 previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
7681 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
7682 This translation pass is far simpler than the previous AST->LLVM pass, and
7683 creates opportunities to perform new optimizations directly on the MIR. It
7684 was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
7685 * [Print the Rust target name, not the LLVM target name, with
7686 `--print target-list`](https://github.com/rust-lang/rust/pull/35489)
7687 * [The computation of `TypeId` is correct in some cases where it was previously
7688 producing inconsistent results](https://github.com/rust-lang/rust/pull/35267)
7689 * [The `mips-unknown-linux-gnu` target uses hardware floating point by default](https://github.com/rust-lang/rust/pull/34910)
7690 * [The `rustc` arguments, `--print target-cpus`, `--print target-features`,
7691 `--print relocation-models`, and `--print code-models` print the available
7692 options to the `-C target-cpu`, `-C target-feature`, `-C relocation-model` and
7693 `-C code-model` code generation arguments](https://github.com/rust-lang/rust/pull/34845)
7694 * [`rustc` supports three new MUSL targets on ARM: `arm-unknown-linux-musleabi`,
7695 `arm-unknown-linux-musleabihf`, and `armv7-unknown-linux-musleabihf`](https://github.com/rust-lang/rust/pull/35060).
7696 These targets produce statically-linked binaries. There are no binary release
7702 * [`rustc` presents a new, more readable error format, along with
7703 machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
7704 Most common editors supporting Rust have been updated to work with it. It was
7705 previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
7706 * [In error descriptions, references are now described in plain English,
7707 instead of as "&-ptr"](https://github.com/rust-lang/rust/pull/35611)
7708 * [In error type descriptions, unknown numeric types are named `{integer}` or
7709 `{float}` instead of `_`](https://github.com/rust-lang/rust/pull/35080)
7710 * [`rustc` emits a clearer error when inner attributes follow a doc comment](https://github.com/rust-lang/rust/pull/34676)
7715 * [`macro_rules!` invocations can be made within `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34925)
7716 * [`macro_rules!` meta-variables are hygienic](https://github.com/rust-lang/rust/pull/35453)
7717 * [`macro_rules!` `tt` matchers can be reparsed correctly, making them much more
7718 useful](https://github.com/rust-lang/rust/pull/34908)
7719 * [`macro_rules!` `stmt` matchers correctly consume the entire contents when
7720 inside non-braces invocations](https://github.com/rust-lang/rust/pull/34886)
7721 * [Semicolons are properly required as statement delimiters inside
7722 `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34660)
7723 * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
7728 * [`Cell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr)
7729 * [`RefCell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.as_ptr)
7730 * [`IpAddr::is_unspecified`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_unspecified)
7731 * [`IpAddr::is_loopback`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_loopback)
7732 * [`IpAddr::is_multicast`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_multicast)
7733 * [`Ipv4Addr::is_unspecified`](https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified)
7734 * [`Ipv6Addr::octets`](https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets)
7735 * [`LinkedList::contains`](https://doc.rust-lang.org/std/collections/linked_list/struct.LinkedList.html#method.contains)
7736 * [`VecDeque::contains`](https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.contains)
7737 * [`ExitStatusExt::from_raw`](https://doc.rust-lang.org/std/os/unix/process/trait.ExitStatusExt.html#tymethod.from_raw).
7738 Both on Unix and Windows.
7739 * [`Receiver::recv_timeout`](https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.recv_timeout)
7740 * [`RecvTimeoutError`](https://doc.rust-lang.org/std/sync/mpsc/enum.RecvTimeoutError.html)
7741 * [`BinaryHeap::peek_mut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.peek_mut)
7742 * [`PeekMut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html)
7743 * [`iter::Product`](https://doc.rust-lang.org/std/iter/trait.Product.html)
7744 * [`iter::Sum`](https://doc.rust-lang.org/std/iter/trait.Sum.html)
7745 * [`OccupiedEntry::remove_entry`](https://doc.rust-lang.org/std/collections/btree_map/struct.OccupiedEntry.html#method.remove_entry)
7746 * [`VacantEntry::into_key`](https://doc.rust-lang.org/std/collections/btree_map/struct.VacantEntry.html#method.into_key)
7751 * [The `format!` macro and friends now allow a single argument to be formatted
7752 in multiple styles](https://github.com/rust-lang/rust/pull/33642)
7753 * [The lifetime bounds on `[T]::binary_search_by` and
7754 `[T]::binary_search_by_key` have been adjusted to be more flexible](https://github.com/rust-lang/rust/pull/34762)
7755 * [`Option` implements `From` for its contained type](https://github.com/rust-lang/rust/pull/34828)
7756 * [`Cell`, `RefCell` and `UnsafeCell` implement `From` for their contained type](https://github.com/rust-lang/rust/pull/35392)
7757 * [`RwLock` panics if the reader count overflows](https://github.com/rust-lang/rust/pull/35378)
7758 * [`vec_deque::Drain`, `hash_map::Drain` and `hash_set::Drain` are covariant](https://github.com/rust-lang/rust/pull/35354)
7759 * [`vec::Drain` and `binary_heap::Drain` are covariant](https://github.com/rust-lang/rust/pull/34951)
7760 * [`Cow<str>` implements `FromIterator` for `char`, `&str` and `String`](https://github.com/rust-lang/rust/pull/35064)
7761 * [Sockets on Linux are correctly closed in subprocesses via `SOCK_CLOEXEC`](https://github.com/rust-lang/rust/pull/34946)
7762 * [`hash_map::Entry`, `hash_map::VacantEntry` and `hash_map::OccupiedEntry`
7763 implement `Debug`](https://github.com/rust-lang/rust/pull/34937)
7764 * [`btree_map::Entry`, `btree_map::VacantEntry` and `btree_map::OccupiedEntry`
7765 implement `Debug`](https://github.com/rust-lang/rust/pull/34885)
7766 * [`String` implements `AddAssign`](https://github.com/rust-lang/rust/pull/34890)
7767 * [Variadic `extern fn` pointers implement the `Clone`, `PartialEq`, `Eq`,
7768 `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and `fmt::Debug` traits](https://github.com/rust-lang/rust/pull/34879)
7769 * [`FileType` implements `Debug`](https://github.com/rust-lang/rust/pull/34757)
7770 * [References to `Mutex` and `RwLock` are unwind-safe](https://github.com/rust-lang/rust/pull/34756)
7771 * [`mpsc::sync_channel` `Receiver`s return any available message before
7772 reporting a disconnect](https://github.com/rust-lang/rust/pull/34731)
7773 * [Unicode definitions have been updated to 9.0](https://github.com/rust-lang/rust/pull/34599)
7774 * [`env` iterators implement `DoubleEndedIterator`](https://github.com/rust-lang/rust/pull/33312)
7779 * [Support local mirrors of registries](https://github.com/rust-lang/cargo/pull/2857)
7780 * [Add support for command aliases](https://github.com/rust-lang/cargo/pull/2679)
7781 * [Allow `opt-level="s"` / `opt-level="z"` in profile overrides](https://github.com/rust-lang/cargo/pull/3007)
7782 * [Make `cargo doc --open --target` work as expected](https://github.com/rust-lang/cargo/pull/2988)
7783 * [Speed up noop registry updates](https://github.com/rust-lang/cargo/pull/2974)
7784 * [Update OpenSSL](https://github.com/rust-lang/cargo/pull/2971)
7785 * [Fix `--panic=abort` with plugins](https://github.com/rust-lang/cargo/pull/2954)
7786 * [Always pass `-C metadata` to the compiler](https://github.com/rust-lang/cargo/pull/2946)
7787 * [Fix depending on git repos with workspaces](https://github.com/rust-lang/cargo/pull/2938)
7788 * [Add a `--lib` flag to `cargo new`](https://github.com/rust-lang/cargo/pull/2921)
7789 * [Add `http.cainfo` for custom certs](https://github.com/rust-lang/cargo/pull/2917)
7790 * [Indicate the compilation profile after compiling](https://github.com/rust-lang/cargo/pull/2909)
7791 * [Allow enabling features for dependencies with `--features`](https://github.com/rust-lang/cargo/pull/2876)
7792 * [Add `--jobs` flag to `cargo package`](https://github.com/rust-lang/cargo/pull/2867)
7793 * [Add `--dry-run` to `cargo publish`](https://github.com/rust-lang/cargo/pull/2849)
7794 * [Add support for `RUSTDOCFLAGS`](https://github.com/rust-lang/cargo/pull/2794)
7799 * [`panic::catch_unwind` is more optimized](https://github.com/rust-lang/rust/pull/35444)
7800 * [`panic::catch_unwind` no longer accesses thread-local storage on entry](https://github.com/rust-lang/rust/pull/34866)
7805 * [Test binaries now support a `--test-threads` argument to specify the number
7806 of threads used to run tests, and which acts the same as the
7807 `RUST_TEST_THREADS` environment variable](https://github.com/rust-lang/rust/pull/35414)
7808 * [The test runner now emits a warning when tests run over 60 seconds](https://github.com/rust-lang/rust/pull/35405)
7809 * [rustdoc: Fix methods in search results](https://github.com/rust-lang/rust/pull/34752)
7810 * [`rust-lldb` warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
7811 * [Rust releases now come with source packages that can be installed by rustup
7812 via `rustup component add rust-src`](https://github.com/rust-lang/rust/pull/34366).
7813 The resulting source code can be used by tools and IDES, located in the
7814 sysroot under `lib/rustlib/src`.
7819 * [The compiler can now be built against LLVM 3.9](https://github.com/rust-lang/rust/pull/35594)
7820 * Many minor improvements to the documentation.
7821 * [The Rust exception handling "personality" routine is now written in Rust](https://github.com/rust-lang/rust/pull/34832)
7826 * [When printing Windows `OsStr`s, unpaired surrogate codepoints are escaped
7827 with the lowercase format instead of the uppercase](https://github.com/rust-lang/rust/pull/35084)
7828 * [When formatting strings, if "precision" is specified, the "fill",
7829 "align" and "width" specifiers are no longer ignored](https://github.com/rust-lang/rust/pull/34544)
7830 * [The `Debug` impl for strings no longer escapes all non-ASCII characters](https://github.com/rust-lang/rust/pull/34485)
7833 Version 1.11.0 (2016-08-18)
7834 ===========================
7839 * [Support nested `cfg_attr` attributes](https://github.com/rust-lang/rust/pull/34216)
7840 * [Allow statement-generating braced macro invocations at the end of blocks](https://github.com/rust-lang/rust/pull/34436)
7841 * [Macros can be expanded inside of trait definitions](https://github.com/rust-lang/rust/pull/34213)
7842 * [`#[macro_use]` works properly when it is itself expanded from a macro](https://github.com/rust-lang/rust/pull/34032)
7847 * [`BinaryHeap::append`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.append)
7848 * [`BTreeMap::append`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.append)
7849 * [`BTreeMap::split_off`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.split_off)
7850 * [`BTreeSet::append`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.append)
7851 * [`BTreeSet::split_off`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.split_off)
7852 * [`f32::to_degrees`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_degrees)
7853 (in libcore - previously stabilized in libstd)
7854 * [`f32::to_radians`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_radians)
7855 (in libcore - previously stabilized in libstd)
7856 * [`f64::to_degrees`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_degrees)
7857 (in libcore - previously stabilized in libstd)
7858 * [`f64::to_radians`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_radians)
7859 (in libcore - previously stabilized in libstd)
7860 * [`Iterator::sum`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
7861 * [`Iterator::product`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
7862 * [`Cell::get_mut`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.get_mut)
7863 * [`RefCell::get_mut`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.get_mut)
7868 * [The `thread_local!` macro supports multiple definitions in a single
7869 invocation, and can apply attributes](https://github.com/rust-lang/rust/pull/34077)
7870 * [`Cow` implements `Default`](https://github.com/rust-lang/rust/pull/34305)
7871 * [`Wrapping` implements binary, octal, lower-hex and upper-hex
7872 `Display` formatting](https://github.com/rust-lang/rust/pull/34190)
7873 * [The range types implement `Hash`](https://github.com/rust-lang/rust/pull/34180)
7874 * [`lookup_host` ignores unknown address types](https://github.com/rust-lang/rust/pull/34067)
7875 * [`assert_eq!` accepts a custom error message, like `assert!` does](https://github.com/rust-lang/rust/pull/33976)
7876 * [The main thread is now called "main" instead of "<main>"](https://github.com/rust-lang/rust/pull/33803)
7881 * [Disallow specifying features of transitive deps](https://github.com/rust-lang/cargo/pull/2821)
7882 * [Add color support for Windows consoles](https://github.com/rust-lang/cargo/pull/2804)
7883 * [Fix `harness = false` on `[lib]` sections](https://github.com/rust-lang/cargo/pull/2795)
7884 * [Don't panic when `links` contains a '.'](https://github.com/rust-lang/cargo/pull/2787)
7885 * [Build scripts can emit warnings](https://github.com/rust-lang/cargo/pull/2630),
7886 and `-vv` prints warnings for all crates.
7887 * [Ignore file locks on OS X NFS mounts](https://github.com/rust-lang/cargo/pull/2720)
7888 * [Don't warn about `package.metadata` keys](https://github.com/rust-lang/cargo/pull/2668).
7889 This provides room for expansion by arbitrary tools.
7890 * [Add support for cdylib crate types](https://github.com/rust-lang/cargo/pull/2741)
7891 * [Prevent publishing crates when files are dirty](https://github.com/rust-lang/cargo/pull/2781)
7892 * [Don't fetch all crates on clean](https://github.com/rust-lang/cargo/pull/2704)
7893 * [Propagate --color option to rustc](https://github.com/rust-lang/cargo/pull/2779)
7894 * [Fix `cargo doc --open` on Windows](https://github.com/rust-lang/cargo/pull/2780)
7895 * [Improve autocompletion](https://github.com/rust-lang/cargo/pull/2772)
7896 * [Configure colors of stderr as well as stdout](https://github.com/rust-lang/cargo/pull/2739)
7901 * [Caching projections speeds up type check dramatically for some
7902 workloads](https://github.com/rust-lang/rust/pull/33816)
7903 * [The default `HashMap` hasher is SipHash 1-3 instead of SipHash 2-4](https://github.com/rust-lang/rust/pull/33940)
7904 This hasher is faster, but is believed to provide sufficient
7905 protection from collision attacks.
7906 * [Comparison of `Ipv4Addr` is 10x faster](https://github.com/rust-lang/rust/pull/33891)
7911 * [Fix empty implementation section on some module pages](https://github.com/rust-lang/rust/pull/34536)
7912 * [Fix inlined renamed re-exports in import lists](https://github.com/rust-lang/rust/pull/34479)
7913 * [Fix search result layout for enum variants and struct fields](https://github.com/rust-lang/rust/pull/34477)
7914 * [Fix issues with source links to external crates](https://github.com/rust-lang/rust/pull/34387)
7915 * [Fix redirect pages for renamed re-exports](https://github.com/rust-lang/rust/pull/34245)
7920 * [rustc is better at finding the MSVC toolchain](https://github.com/rust-lang/rust/pull/34492)
7921 * [When emitting debug info, rustc emits frame pointers for closures,
7922 shims and glue, as it does for all other functions](https://github.com/rust-lang/rust/pull/33909)
7923 * [rust-lldb warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
7924 * Many more errors have been given error codes and extended
7926 * API documentation continues to be improved, with many new examples
7931 * [rustc no longer hangs when dependencies recursively re-export
7932 submodules](https://github.com/rust-lang/rust/pull/34542)
7933 * [rustc requires LLVM 3.7+](https://github.com/rust-lang/rust/pull/34104)
7934 * [The 'How Safe and Unsafe Interact' chapter of The Rustonomicon was
7935 rewritten](https://github.com/rust-lang/rust/pull/33895)
7936 * [rustc support 16-bit pointer sizes](https://github.com/rust-lang/rust/pull/33460).
7937 No targets use this yet, but it works toward AVR support.
7942 * [`const`s and `static`s may not have unsized types](https://github.com/rust-lang/rust/pull/34443)
7943 * [The new follow-set rules that place restrictions on `macro_rules!`
7944 in order to ensure syntax forward-compatibility have been enabled](https://github.com/rust-lang/rust/pull/33982)
7945 This was an [amendment to RFC 550](https://github.com/rust-lang/rfcs/pull/1384),
7946 and has been a warning since 1.10.
7947 * [`cfg` attribute process has been refactored to fix various bugs](https://github.com/rust-lang/rust/pull/33706).
7948 This causes breakage in some corner cases.
7951 Version 1.10.0 (2016-07-07)
7952 ===========================
7957 * [`Copy` types are required to have a trivial implementation of `Clone`](https://github.com/rust-lang/rust/pull/33420).
7958 [RFC 1521](https://github.com/rust-lang/rfcs/blob/master/text/1521-copy-clone-semantics.md).
7959 * [Single-variant enums support the `#[repr(..)]` attribute](https://github.com/rust-lang/rust/pull/33355).
7960 * [Fix `#[derive(RustcEncodable)]` in the presence of other `encode` methods](https://github.com/rust-lang/rust/pull/32908).
7961 * [`panic!` can be converted to a runtime abort with the
7962 `-C panic=abort` flag](https://github.com/rust-lang/rust/pull/32900).
7963 [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
7964 * [Add a new crate type, 'cdylib'](https://github.com/rust-lang/rust/pull/33553).
7965 cdylibs are dynamic libraries suitable for loading by non-Rust hosts.
7966 [RFC 1510](https://github.com/rust-lang/rfcs/blob/master/text/1510-cdylib.md).
7967 Note that Cargo does not yet directly support cdylibs.
7972 * `os::windows::fs::OpenOptionsExt::access_mode`
7973 * `os::windows::fs::OpenOptionsExt::share_mode`
7974 * `os::windows::fs::OpenOptionsExt::custom_flags`
7975 * `os::windows::fs::OpenOptionsExt::attributes`
7976 * `os::windows::fs::OpenOptionsExt::security_qos_flags`
7977 * `os::unix::fs::OpenOptionsExt::custom_flags`
7978 * [`sync::Weak::new`](http://doc.rust-lang.org/alloc/arc/struct.Weak.html#method.new)
7979 * `Default for sync::Weak`
7980 * [`panic::set_hook`](http://doc.rust-lang.org/std/panic/fn.set_hook.html)
7981 * [`panic::take_hook`](http://doc.rust-lang.org/std/panic/fn.take_hook.html)
7982 * [`panic::PanicInfo`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html)
7983 * [`panic::PanicInfo::payload`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.payload)
7984 * [`panic::PanicInfo::location`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.location)
7985 * [`panic::Location`](http://doc.rust-lang.org/std/panic/struct.Location.html)
7986 * [`panic::Location::file`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.file)
7987 * [`panic::Location::line`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.line)
7988 * [`ffi::CStr::from_bytes_with_nul`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul)
7989 * [`ffi::CStr::from_bytes_with_nul_unchecked`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked)
7990 * [`ffi::FromBytesWithNulError`](http://doc.rust-lang.org/std/ffi/struct.FromBytesWithNulError.html)
7991 * [`fs::Metadata::modified`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.modified)
7992 * [`fs::Metadata::accessed`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.accessed)
7993 * [`fs::Metadata::created`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.created)
7994 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
7995 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
7996 * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
7997 * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
7998 * [`SocketAddr::is_unnamed`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.is_unnamed)
7999 * [`SocketAddr::as_pathname`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.as_pathname)
8000 * [`UnixStream::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.connect)
8001 * [`UnixStream::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.pair)
8002 * [`UnixStream::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.try_clone)
8003 * [`UnixStream::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.local_addr)
8004 * [`UnixStream::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.peer_addr)
8005 * [`UnixStream::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
8006 * [`UnixStream::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
8007 * [`UnixStream::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
8008 * [`UnixStream::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
8009 * [`UnixStream::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.set_nonblocking)
8010 * [`UnixStream::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.take_error)
8011 * [`UnixStream::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.shutdown)
8012 * Read/Write/RawFd impls for `UnixStream`
8013 * [`UnixListener::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.bind)
8014 * [`UnixListener::accept`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.accept)
8015 * [`UnixListener::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.try_clone)
8016 * [`UnixListener::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.local_addr)
8017 * [`UnixListener::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.set_nonblocking)
8018 * [`UnixListener::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.take_error)
8019 * [`UnixListener::incoming`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.incoming)
8020 * RawFd impls for `UnixListener`
8021 * [`UnixDatagram::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.bind)
8022 * [`UnixDatagram::unbound`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.unbound)
8023 * [`UnixDatagram::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.pair)
8024 * [`UnixDatagram::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.connect)
8025 * [`UnixDatagram::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.try_clone)
8026 * [`UnixDatagram::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.local_addr)
8027 * [`UnixDatagram::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.peer_addr)
8028 * [`UnixDatagram::recv_from`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv_from)
8029 * [`UnixDatagram::recv`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv)
8030 * [`UnixDatagram::send_to`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send_to)
8031 * [`UnixDatagram::send`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send)
8032 * [`UnixDatagram::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_read_timeout)
8033 * [`UnixDatagram::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_write_timeout)
8034 * [`UnixDatagram::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.read_timeout)
8035 * [`UnixDatagram::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.write_timeout)
8036 * [`UnixDatagram::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_nonblocking)
8037 * [`UnixDatagram::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.take_error)
8038 * [`UnixDatagram::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.shutdown)
8039 * RawFd impls for `UnixDatagram`
8040 * `{BTree,Hash}Map::values_mut`
8041 * [`<[_]>::binary_search_by_key`](http://doc.rust-lang.org/std/primitive.slice.html#method.binary_search_by_key)
8046 * [The `abs_sub` method of floats is deprecated](https://github.com/rust-lang/rust/pull/33664).
8047 The semantics of this minor method are subtle and probably not what
8049 * [Add implementation of Ord for Cell<T> and RefCell<T> where T: Ord](https://github.com/rust-lang/rust/pull/33306).
8050 * [On Linux, if `HashMap`s can't be initialized with `getrandom` they
8051 will fall back to `/dev/urandom` temporarily to avoid blocking
8052 during early boot](https://github.com/rust-lang/rust/pull/33086).
8053 * [Implemented negation for wrapping numerals](https://github.com/rust-lang/rust/pull/33067).
8054 * [Implement `Clone` for `binary_heap::IntoIter`](https://github.com/rust-lang/rust/pull/33050).
8055 * [Implement `Display` and `Hash` for `std::num::Wrapping`](https://github.com/rust-lang/rust/pull/33023).
8056 * [Add `Default` implementation for `&CStr`, `CString`](https://github.com/rust-lang/rust/pull/32990).
8057 * [Implement `From<Vec<T>>` and `Into<Vec<T>>` for `VecDeque<T>`](https://github.com/rust-lang/rust/pull/32866).
8058 * [Implement `Default` for `UnsafeCell`, `fmt::Error`, `Condvar`,
8059 `Mutex`, `RwLock`](https://github.com/rust-lang/rust/pull/32785).
8063 * [Cargo.toml supports the `profile.*.panic` option](https://github.com/rust-lang/cargo/pull/2687).
8064 This controls the runtime behavior of the `panic!` macro
8065 and can be either "unwind" (the default), or "abort".
8066 [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
8067 * [Don't throw away errors with `-p` arguments](https://github.com/rust-lang/cargo/pull/2723).
8068 * [Report status to stderr instead of stdout](https://github.com/rust-lang/cargo/pull/2693).
8069 * [Build scripts are passed a `CARGO_MANIFEST_LINKS` environment
8070 variable that corresponds to the `links` field of the manifest](https://github.com/rust-lang/cargo/pull/2710).
8071 * [Ban keywords from crate names](https://github.com/rust-lang/cargo/pull/2707).
8072 * [Canonicalize `CARGO_HOME` on Windows](https://github.com/rust-lang/cargo/pull/2604).
8073 * [Retry network requests](https://github.com/rust-lang/cargo/pull/2396).
8074 By default they are retried twice, which can be customized with the
8075 `net.retry` value in `.cargo/config`.
8076 * [Don't print extra error info for failing subcommands](https://github.com/rust-lang/cargo/pull/2674).
8077 * [Add `--force` flag to `cargo install`](https://github.com/rust-lang/cargo/pull/2405).
8078 * [Don't use `flock` on NFS mounts](https://github.com/rust-lang/cargo/pull/2623).
8079 * [Prefer building `cargo install` artifacts in temporary directories](https://github.com/rust-lang/cargo/pull/2610).
8080 Makes it possible to install multiple crates in parallel.
8081 * [Add `cargo test --doc`](https://github.com/rust-lang/cargo/pull/2578).
8082 * [Add `cargo --explain`](https://github.com/rust-lang/cargo/pull/2551).
8083 * [Don't print warnings when `-q` is passed](https://github.com/rust-lang/cargo/pull/2576).
8084 * [Add `cargo doc --lib` and `--bin`](https://github.com/rust-lang/cargo/pull/2577).
8085 * [Don't require build script output to be UTF-8](https://github.com/rust-lang/cargo/pull/2560).
8086 * [Correctly attempt multiple git usernames](https://github.com/rust-lang/cargo/pull/2584).
8091 * [rustc memory usage was reduced by refactoring the context used for
8092 type checking](https://github.com/rust-lang/rust/pull/33425).
8093 * [Speed up creation of `HashMap`s by caching the random keys used
8094 to initialize the hash state](https://github.com/rust-lang/rust/pull/33318).
8095 * [The `find` implementation for `Chain` iterators is 2x faster](https://github.com/rust-lang/rust/pull/33289).
8096 * [Trait selection optimizations speed up type checking by 15%](https://github.com/rust-lang/rust/pull/33138).
8097 * [Efficient trie lookup for boolean Unicode properties](https://github.com/rust-lang/rust/pull/33098).
8098 10x faster than the previous lookup tables.
8099 * [Special case `#[derive(Copy, Clone)]` to avoid bloat](https://github.com/rust-lang/rust/pull/31414).
8104 * Many incremental improvements to documentation and rustdoc.
8105 * [rustdoc: List blanket trait impls](https://github.com/rust-lang/rust/pull/33514).
8106 * [rustdoc: Clean up ABI rendering](https://github.com/rust-lang/rust/pull/33151).
8107 * [Indexing with the wrong type produces a more informative error](https://github.com/rust-lang/rust/pull/33401).
8108 * [Improve diagnostics for constants being used in irrefutable patterns](https://github.com/rust-lang/rust/pull/33406).
8109 * [When many method candidates are in scope limit the suggestions to 10](https://github.com/rust-lang/rust/pull/33338).
8110 * [Remove confusing suggestion when calling a `fn` type](https://github.com/rust-lang/rust/pull/33325).
8111 * [Do not suggest changing `&mut self` to `&mut mut self`](https://github.com/rust-lang/rust/pull/33319).
8116 * [Update i686-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33651).
8117 * [Update aarch64-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33500).
8118 * [`std` no longer prints backtraces on platforms where the running
8119 module must be loaded with `env::current_exe`, which can't be relied
8120 on](https://github.com/rust-lang/rust/pull/33554).
8121 * This release includes std binaries for the i586-unknown-linux-gnu,
8122 i686-unknown-linux-musl, and armv7-linux-androideabi targets. The
8123 i586 target is for old x86 hardware without SSE2, and the armv7
8124 target is for Android running on modern ARM architectures.
8125 * [The `rust-gdb` and `rust-lldb` scripts are distributed on all
8126 Unix platforms](https://github.com/rust-lang/rust/pull/32835).
8127 * [On Unix the runtime aborts by calling `libc::abort` instead of
8128 generating an illegal instruction](https://github.com/rust-lang/rust/pull/31457).
8129 * [Rust is now bootstrapped from the previous release of Rust,
8130 instead of a snapshot from an arbitrary commit](https://github.com/rust-lang/rust/pull/32942).
8135 * [`AtomicBool` is now bool-sized, not word-sized](https://github.com/rust-lang/rust/pull/33579).
8136 * [`target_env` for Linux ARM targets is just `gnu`, not
8137 `gnueabihf`, `gnueabi`, etc](https://github.com/rust-lang/rust/pull/33403).
8138 * [Consistently panic on overflow in `Duration::new`](https://github.com/rust-lang/rust/pull/33072).
8139 * [Change `String::truncate` to panic less](https://github.com/rust-lang/rust/pull/32977).
8140 * [Add `:block` to the follow set for `:ty` and `:path`](https://github.com/rust-lang/rust/pull/32945).
8141 Affects how macros are parsed.
8142 * [Fix macro hygiene bug](https://github.com/rust-lang/rust/pull/32923).
8143 * [Feature-gated attributes on macro-generated macro invocations are
8144 now rejected](https://github.com/rust-lang/rust/pull/32791).
8145 * [Suppress fallback and ambiguity errors during type inference](https://github.com/rust-lang/rust/pull/32258).
8146 This caused some minor changes to type inference.
8149 Version 1.9.0 (2016-05-26)
8150 ==========================
8155 * The `#[deprecated]` attribute when applied to an API will generate
8156 warnings when used. The warnings may be suppressed with
8157 `#[allow(deprecated)]`. [RFC 1270].
8158 * [`fn` item types are zero sized, and each `fn` names a unique
8159 type][1.9fn]. This will break code that transmutes `fn`s, so calling
8160 `transmute` on a `fn` type will generate a warning for a few cycles,
8161 then will be converted to an error.
8162 * [Field and method resolution understand visibility, so private
8163 fields and methods cannot prevent the proper use of public fields
8164 and methods][1.9fv].
8165 * [The parser considers unicode codepoints in the
8166 `PATTERN_WHITE_SPACE` category to be whitespace][1.9ws].
8172 * [`std::panic::catch_unwind`] (renamed from `recover`)
8173 * [`std::panic::resume_unwind`] (renamed from `propagate`)
8174 * [`std::panic::AssertUnwindSafe`] (renamed from `AssertRecoverSafe`)
8175 * [`std::panic::UnwindSafe`] (renamed from `RecoverSafe`)
8176 * [`str::is_char_boundary`]
8177 * [`<*const T>::as_ref`]
8178 * [`<*mut T>::as_ref`]
8179 * [`<*mut T>::as_mut`]
8180 * [`AsciiExt::make_ascii_uppercase`]
8181 * [`AsciiExt::make_ascii_lowercase`]
8182 * [`char::decode_utf16`]
8183 * [`char::DecodeUtf16`]
8184 * [`char::DecodeUtf16Error`]
8185 * [`char::DecodeUtf16Error::unpaired_surrogate`]
8186 * [`BTreeSet::take`]
8187 * [`BTreeSet::replace`]
8190 * [`HashSet::replace`]
8192 * [`OsString::with_capacity`]
8193 * [`OsString::clear`]
8194 * [`OsString::capacity`]
8195 * [`OsString::reserve`]
8196 * [`OsString::reserve_exact`]
8197 * [`OsStr::is_empty`]
8199 * [`std::os::unix::thread`]
8202 * [`JoinHandleExt::as_pthread_t`]
8203 * [`JoinHandleExt::into_pthread_t`]
8204 * [`HashSet::hasher`]
8205 * [`HashMap::hasher`]
8206 * [`CommandExt::exec`]
8207 * [`File::try_clone`]
8208 * [`SocketAddr::set_ip`]
8209 * [`SocketAddr::set_port`]
8210 * [`SocketAddrV4::set_ip`]
8211 * [`SocketAddrV4::set_port`]
8212 * [`SocketAddrV6::set_ip`]
8213 * [`SocketAddrV6::set_port`]
8214 * [`SocketAddrV6::set_flowinfo`]
8215 * [`SocketAddrV6::set_scope_id`]
8216 * [`slice::copy_from_slice`]
8217 * [`ptr::read_volatile`]
8218 * [`ptr::write_volatile`]
8219 * [`OpenOptions::create_new`]
8220 * [`TcpStream::set_nodelay`]
8221 * [`TcpStream::nodelay`]
8222 * [`TcpStream::set_ttl`]
8223 * [`TcpStream::ttl`]
8224 * [`TcpStream::set_only_v6`]
8225 * [`TcpStream::only_v6`]
8226 * [`TcpStream::take_error`]
8227 * [`TcpStream::set_nonblocking`]
8228 * [`TcpListener::set_ttl`]
8229 * [`TcpListener::ttl`]
8230 * [`TcpListener::set_only_v6`]
8231 * [`TcpListener::only_v6`]
8232 * [`TcpListener::take_error`]
8233 * [`TcpListener::set_nonblocking`]
8234 * [`UdpSocket::set_broadcast`]
8235 * [`UdpSocket::broadcast`]
8236 * [`UdpSocket::set_multicast_loop_v4`]
8237 * [`UdpSocket::multicast_loop_v4`]
8238 * [`UdpSocket::set_multicast_ttl_v4`]
8239 * [`UdpSocket::multicast_ttl_v4`]
8240 * [`UdpSocket::set_multicast_loop_v6`]
8241 * [`UdpSocket::multicast_loop_v6`]
8242 * [`UdpSocket::set_multicast_ttl_v6`]
8243 * [`UdpSocket::multicast_ttl_v6`]
8244 * [`UdpSocket::set_ttl`]
8245 * [`UdpSocket::ttl`]
8246 * [`UdpSocket::set_only_v6`]
8247 * [`UdpSocket::only_v6`]
8248 * [`UdpSocket::join_multicast_v4`]
8249 * [`UdpSocket::join_multicast_v6`]
8250 * [`UdpSocket::leave_multicast_v4`]
8251 * [`UdpSocket::leave_multicast_v6`]
8252 * [`UdpSocket::take_error`]
8253 * [`UdpSocket::connect`]
8254 * [`UdpSocket::send`]
8255 * [`UdpSocket::recv`]
8256 * [`UdpSocket::set_nonblocking`]
8261 * [`std::sync::Once` is poisoned if its initialization function
8263 * [`cell::Ref` and `cell::RefMut` can contain unsized types][1.9cu].
8264 * [Most types implement `fmt::Debug`][1.9db].
8265 * [The default buffer size used by `BufReader` and `BufWriter` was
8266 reduced to 8K, from 64K][1.9bf]. This is in line with the buffer size
8267 used by other languages.
8268 * [`Instant`, `SystemTime` and `Duration` implement `+=` and `-=`.
8269 `Duration` additionally implements `*=` and `/=`][1.9ta].
8270 * [`Skip` is a `DoubleEndedIterator`][1.9sk].
8271 * [`From<[u8; 4]>` is implemented for `Ipv4Addr`][1.9fi].
8272 * [`Chain` implements `BufRead`][1.9ch].
8273 * [`HashMap`, `HashSet` and iterators are covariant][1.9hc].
8278 * [Cargo can now run concurrently][1.9cc].
8279 * [Top-level overrides allow specific revisions of crates to be
8280 overridden through the entire crate graph][1.9ct]. This is intended
8281 to make upgrades easier for large projects, by allowing crates to be
8282 forked temporarily until they've been upgraded and republished.
8283 * [Cargo exports a `CARGO_PKG_AUTHORS` environment variable][1.9cp].
8284 * [Cargo will pass the contents of the `RUSTFLAGS` variable to `rustc`
8285 on the commandline][1.9cf]. `rustc` arguments can also be specified
8286 in the `build.rustflags` configuration key.
8291 * [The time complexity of comparing variables for equivalence during type
8292 unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads
8293 to major compilation time improvement in some scenarios.
8294 * [`ToString` is specialized for `str`, giving it the same performance
8295 as `to_owned`][1.9ts].
8296 * [Spawning processes with `Command::output` no longer creates extra
8298 * [`#[derive(PartialEq)]` and `#[derive(PartialOrd)]` emit less code
8299 for C-like enums][1.9cl].
8304 * [Passing the `--quiet` flag to a test runner will produce
8305 much-abbreviated output][1.9q].
8306 * The Rust Project now publishes std binaries for the
8307 `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`, and
8308 `i586-pc-windows-msvc` targets.
8313 * [`std::sync::Once` is poisoned if its initialization function
8315 * [It is illegal to define methods with the same name in overlapping
8316 inherent `impl` blocks][1.9sn].
8317 * [`fn` item types are zero sized, and each `fn` names a unique
8318 type][1.9fn]. This will break code that transmutes `fn`s, so calling
8319 `transmute` on a `fn` type will generate a warning for a few cycles,
8320 then will be converted to an error.
8321 * [Improvements to const evaluation may trigger new errors when integer
8322 literals are out of range][1.9ce].
8325 [1.9bf]: https://github.com/rust-lang/rust/pull/32695
8326 [1.9cc]: https://github.com/rust-lang/cargo/pull/2486
8327 [1.9ce]: https://github.com/rust-lang/rust/pull/30587
8328 [1.9cf]: https://github.com/rust-lang/cargo/pull/2241
8329 [1.9ch]: https://github.com/rust-lang/rust/pull/32541
8330 [1.9cl]: https://github.com/rust-lang/rust/pull/31977
8331 [1.9cp]: https://github.com/rust-lang/cargo/pull/2465
8332 [1.9ct]: https://github.com/rust-lang/cargo/pull/2385
8333 [1.9cu]: https://github.com/rust-lang/rust/pull/32652
8334 [1.9db]: https://github.com/rust-lang/rust/pull/32054
8335 [1.9fi]: https://github.com/rust-lang/rust/pull/32050
8336 [1.9fn]: https://github.com/rust-lang/rust/pull/31710
8337 [1.9fv]: https://github.com/rust-lang/rust/pull/31938
8338 [1.9hc]: https://github.com/rust-lang/rust/pull/32635
8339 [1.9o]: https://github.com/rust-lang/rust/pull/32325
8340 [1.9q]: https://github.com/rust-lang/rust/pull/31887
8341 [1.9sk]: https://github.com/rust-lang/rust/pull/31700
8342 [1.9sn]: https://github.com/rust-lang/rust/pull/31925
8343 [1.9sp]: https://github.com/rust-lang/rust/pull/31618
8344 [1.9ta]: https://github.com/rust-lang/rust/pull/32448
8345 [1.9ts]: https://github.com/rust-lang/rust/pull/32586
8346 [1.9tu]: https://github.com/rust-lang/rust/pull/32062
8347 [1.9ws]: https://github.com/rust-lang/rust/pull/29734
8348 [RFC 1270]: https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
8349 [`<*const T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
8350 [`<*mut T>::as_mut`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_mut
8351 [`<*mut T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
8352 [`slice::copy_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.copy_from_slice
8353 [`AsciiExt::make_ascii_lowercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase
8354 [`AsciiExt::make_ascii_uppercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase
8355 [`BTreeSet::get`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.get
8356 [`BTreeSet::replace`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.replace
8357 [`BTreeSet::take`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.take
8358 [`CommandExt::exec`]: http://doc.rust-lang.org/nightly/std/os/unix/process/trait.CommandExt.html#tymethod.exec
8359 [`File::try_clone`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.try_clone
8360 [`HashMap::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.hasher
8361 [`HashSet::get`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.get
8362 [`HashSet::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.hasher
8363 [`HashSet::replace`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.replace
8364 [`HashSet::take`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.take
8365 [`JoinHandleExt::as_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.as_pthread_t
8366 [`JoinHandleExt::into_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.into_pthread_t
8367 [`JoinHandleExt`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html
8368 [`OpenOptions::create_new`]: http://doc.rust-lang.org/nightly/std/fs/struct.OpenOptions.html#method.create_new
8369 [`OsStr::is_empty`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.is_empty
8370 [`OsStr::len`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.len
8371 [`OsString::capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.capacity
8372 [`OsString::clear`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.clear
8373 [`OsString::reserve_exact`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve_exact
8374 [`OsString::reserve`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve
8375 [`OsString::with_capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.with_capacity
8376 [`RawPthread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/type.RawPthread.html
8377 [`SocketAddr::set_ip`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_ip
8378 [`SocketAddr::set_port`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_port
8379 [`SocketAddrV4::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_ip
8380 [`SocketAddrV4::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_port
8381 [`SocketAddrV6::set_flowinfo`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_flowinfo
8382 [`SocketAddrV6::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_ip
8383 [`SocketAddrV6::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_port
8384 [`SocketAddrV6::set_scope_id`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_scope_id
8385 [`TcpListener::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
8386 [`TcpListener::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
8387 [`TcpListener::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
8388 [`TcpListener::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
8389 [`TcpListener::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
8390 [`TcpListener::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
8391 [`TcpStream::nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.nodelay
8392 [`TcpStream::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
8393 [`TcpStream::set_nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nodelay
8394 [`TcpStream::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
8395 [`TcpStream::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
8396 [`TcpStream::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
8397 [`TcpStream::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
8398 [`TcpStream::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
8399 [`UdpSocket::broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.broadcast
8400 [`UdpSocket::connect`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.connect
8401 [`UdpSocket::join_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v4
8402 [`UdpSocket::join_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v6
8403 [`UdpSocket::leave_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v4
8404 [`UdpSocket::leave_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v6
8405 [`UdpSocket::multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v4
8406 [`UdpSocket::multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v6
8407 [`UdpSocket::multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v4
8408 [`UdpSocket::multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v6
8409 [`UdpSocket::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.only_v6
8410 [`UdpSocket::recv`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.recv
8411 [`UdpSocket::send`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.send
8412 [`UdpSocket::set_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_broadcast
8413 [`UdpSocket::set_multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v4
8414 [`UdpSocket::set_multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v6
8415 [`UdpSocket::set_multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v4
8416 [`UdpSocket::set_multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v6
8417 [`UdpSocket::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_nonblocking
8418 [`UdpSocket::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_only_v6
8419 [`UdpSocket::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_ttl
8420 [`UdpSocket::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.take_error
8421 [`UdpSocket::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.ttl
8422 [`char::DecodeUtf16Error::unpaired_surrogate`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html#method.unpaired_surrogate
8423 [`char::DecodeUtf16Error`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html
8424 [`char::DecodeUtf16`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16.html
8425 [`char::decode_utf16`]: http://doc.rust-lang.org/nightly/std/char/fn.decode_utf16.html
8426 [`ptr::read_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.read_volatile.html
8427 [`ptr::write_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.write_volatile.html
8428 [`std::os::unix::thread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/index.html
8429 [`std::panic::AssertUnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/struct.AssertUnwindSafe.html
8430 [`std::panic::UnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html
8431 [`std::panic::catch_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.catch_unwind.html
8432 [`std::panic::resume_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.resume_unwind.html
8433 [`std::panic`]: http://doc.rust-lang.org/nightly/std/panic/index.html
8434 [`str::is_char_boundary`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary
8437 Version 1.8.0 (2016-04-14)
8438 ==========================
8443 * Rust supports overloading of compound assignment statements like
8444 `+=` by implementing the [`AddAssign`], [`SubAssign`],
8445 [`MulAssign`], [`DivAssign`], [`RemAssign`], [`BitAndAssign`],
8446 [`BitOrAssign`], [`BitXorAssign`], [`ShlAssign`], or [`ShrAssign`]
8448 * Empty structs can be defined with braces, as in `struct Foo { }`, in
8449 addition to the non-braced form, `struct Foo;`. [RFC 218].
8455 * [`str::encode_utf16`] (renamed from `utf16_units`)
8456 * [`str::EncodeUtf16`] (renamed from `Utf16Units`)
8459 * [`ptr::drop_in_place`]
8461 * [`time::SystemTime`]
8463 * [`Instant::duration_since`] (renamed from `duration_from_earlier`)
8464 * [`Instant::elapsed`]
8465 * [`SystemTime::now`]
8466 * [`SystemTime::duration_since`] (renamed from `duration_from_earlier`)
8467 * [`SystemTime::elapsed`]
8468 * Various `Add`/`Sub` impls for `Time` and `SystemTime`
8469 * [`SystemTimeError`]
8470 * [`SystemTimeError::duration`]
8471 * Various impls for `SystemTimeError`
8473 * [`AddAssign`], [`SubAssign`], [`MulAssign`], [`DivAssign`],
8474 [`RemAssign`], [`BitAndAssign`], [`BitOrAssign`],
8475 [`BitXorAssign`], [`ShlAssign`], [`ShrAssign`].
8476 * [The `write!` and `writeln!` macros correctly emit errors if any of
8477 their arguments can't be formatted][1.8w].
8478 * [Various I/O functions support large files on 32-bit Linux][1.8l].
8479 * [The Unix-specific `raw` modules, which contain a number of
8480 redefined C types are deprecated][1.8r], including `os::raw::unix`,
8481 `os::raw::macos`, and `os::raw::linux`. These modules defined types
8482 such as `ino_t` and `dev_t`. The inconsistency of these definitions
8483 across platforms was making it difficult to implement `std`
8484 correctly. Those that need these definitions should use the `libc`
8486 * The Unix-specific `MetadataExt` traits, including
8487 `os::unix::fs::MetadataExt`, which expose values such as inode
8488 numbers [no longer return platform-specific types][1.8r], but
8489 instead return widened integers. [RFC 1415].
8490 * [`btree_set::{IntoIter, Iter, Range}` are covariant][1.8cv].
8491 * [Atomic loads and stores are not volatile][1.8a].
8492 * [All types in `sync::mpsc` implement `fmt::Debug`][1.8mp].
8497 * [Inlining hash functions lead to a 3% compile-time improvement in
8498 some workloads][1.8h].
8499 * When using jemalloc, its symbols are [unprefixed so that it
8500 overrides the libc malloc implementation][1.8h]. This means that for
8501 rustc, LLVM is now using jemalloc, which results in a 6%
8502 compile-time improvement on a specific workload.
8503 * [Avoid quadratic growth in function size due to cleanups][1.8cu].
8508 * [32-bit MSVC builds finally implement unwinding][1.8ms].
8509 i686-pc-windows-msvc is now considered a tier-1 platform.
8510 * [The `--print targets` flag prints a list of supported targets][1.8t].
8511 * [The `--print cfg` flag prints the `cfg`s defined for the current
8513 * [`rustc` can be built with an new Cargo-based build system, written
8514 in Rust][1.8b]. It will eventually replace Rust's Makefile-based
8515 build system. To enable it configure with `configure --rustbuild`.
8516 * [Errors for non-exhaustive `match` patterns now list up to 3 missing
8517 variants while also indicating the total number of missing variants
8518 if more than 3][1.8m].
8519 * [Executable stacks are disabled on Linux and BSD][1.8nx].
8520 * The Rust Project now publishes binary releases of the standard
8521 library for a number of tier-2 targets:
8522 `armv7-unknown-linux-gnueabihf`, `powerpc-unknown-linux-gnu`,
8523 `powerpc64-unknown-linux-gnu`, `powerpc64le-unknown-linux-gnu`
8524 `x86_64-rumprun-netbsd`. These can be installed with
8525 tools such as [multirust][1.8mr].
8530 * [`cargo init` creates a new Cargo project in the current
8531 directory][1.8ci]. It is otherwise like `cargo new`.
8532 * [Cargo has configuration keys for `-v` and
8533 `--color`][1.8cc]. `verbose` and `color`, respectively, go in the
8534 `[term]` section of `.cargo/config`.
8535 * [Configuration keys that evaluate to strings or integers can be set
8536 via environment variables][1.8ce]. For example the `build.jobs` key
8537 can be set via `CARGO_BUILD_JOBS`. Environment variables take
8538 precedence over config files.
8539 * [Target-specific dependencies support Rust `cfg` syntax for
8540 describing targets][1.8cfg] so that dependencies for multiple
8541 targets can be specified together. [RFC 1361].
8542 * [The environment variables `CARGO_TARGET_ROOT`, `RUSTC`, and
8543 `RUSTDOC` take precedence over the `build.target-dir`,
8544 `build.rustc`, and `build.rustdoc` configuration values][1.8cfv].
8545 * [The child process tree is killed on Windows when Cargo is
8547 * [The `build.target` configuration value sets the target platform,
8548 like `--target`][1.8ct].
8553 * [Unstable compiler flags have been further restricted][1.8u]. Since
8554 1.0 `-Z` flags have been considered unstable, and other flags that
8555 were considered unstable additionally required passing `-Z
8556 unstable-options` to access. Unlike unstable language and library
8557 features though, these options have been accessible on the stable
8558 release channel. Going forward, *new unstable flags will not be
8559 available on the stable release channel*, and old unstable flags
8560 will warn about their usage. In the future, all unstable flags will
8561 be unavailable on the stable release channel.
8562 * [It is no longer possible to `match` on empty enum variants using
8563 the `Variant(..)` syntax][1.8v]. This has been a warning since 1.6.
8564 * The Unix-specific `MetadataExt` traits, including
8565 `os::unix::fs::MetadataExt`, which expose values such as inode
8566 numbers [no longer return platform-specific types][1.8r], but
8567 instead return widened integers. [RFC 1415].
8568 * [Modules sourced from the filesystem cannot appear within arbitrary
8569 blocks, but only within other modules][1.8mf].
8570 * [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
8571 * On Unix, [stack overflow triggers a runtime abort instead of a
8573 * [`Command::spawn` and its equivalents return an error if any of
8574 its command-line arguments contain interior `NUL`s][1.8n].
8575 * [Tuple and unit enum variants from other crates are in the type
8577 * [On Windows `rustc` emits `.lib` files for the `staticlib` library
8578 type instead of `.a` files][1.8st]. Additionally, for the MSVC
8579 toolchain, `rustc` emits import libraries named `foo.dll.lib`
8580 instead of `foo.lib`.
8583 [1.8a]: https://github.com/rust-lang/rust/pull/30962
8584 [1.8b]: https://github.com/rust-lang/rust/pull/31123
8585 [1.8c]: https://github.com/rust-lang/rust/pull/31530
8586 [1.8cc]: https://github.com/rust-lang/cargo/pull/2397
8587 [1.8ce]: https://github.com/rust-lang/cargo/pull/2398
8588 [1.8cf]: https://github.com/rust-lang/rust/pull/31278
8589 [1.8cfg]: https://github.com/rust-lang/cargo/pull/2328
8590 [1.8ci]: https://github.com/rust-lang/cargo/pull/2081
8591 [1.8ck]: https://github.com/rust-lang/cargo/pull/2370
8592 [1.8ct]: https://github.com/rust-lang/cargo/pull/2335
8593 [1.8cu]: https://github.com/rust-lang/rust/pull/31390
8594 [1.8cfv]: https://github.com/rust-lang/cargo/issues/2365
8595 [1.8cv]: https://github.com/rust-lang/rust/pull/30998
8596 [1.8h]: https://github.com/rust-lang/rust/pull/31460
8597 [1.8l]: https://github.com/rust-lang/rust/pull/31668
8598 [1.8m]: https://github.com/rust-lang/rust/pull/31020
8599 [1.8mf]: https://github.com/rust-lang/rust/pull/31534
8600 [1.8mp]: https://github.com/rust-lang/rust/pull/30894
8601 [1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
8602 [1.8ms]: https://github.com/rust-lang/rust/pull/30448
8603 [1.8n]: https://github.com/rust-lang/rust/pull/31056
8604 [1.8nx]: https://github.com/rust-lang/rust/pull/30859
8605 [1.8r]: https://github.com/rust-lang/rust/pull/31551
8606 [1.8so]: https://github.com/rust-lang/rust/pull/31333
8607 [1.8st]: https://github.com/rust-lang/rust/pull/29520
8608 [1.8t]: https://github.com/rust-lang/rust/pull/31358
8609 [1.8tn]: https://github.com/rust-lang/rust/pull/30882
8610 [1.8u]: https://github.com/rust-lang/rust/pull/31793
8611 [1.8v]: https://github.com/rust-lang/rust/pull/31757
8612 [1.8w]: https://github.com/rust-lang/rust/pull/31904
8613 [RFC 1361]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md
8614 [RFC 1415]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md
8615 [RFC 218]: https://github.com/rust-lang/rfcs/blob/master/text/0218-empty-struct-with-braces.md
8616 [RFC 953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md
8617 [`AddAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.AddAssign.html
8618 [`BitAndAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitAndAssign.html
8619 [`BitOrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitOrAssign.html
8620 [`BitXorAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitXorAssign.html
8621 [`DivAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.DivAssign.html
8622 [`Instant::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.duration_since
8623 [`Instant::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.elapsed
8624 [`Instant::now`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.now
8625 [`MulAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.MulAssign.html
8626 [`Ref::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.Ref.html#method.map
8627 [`RefMut::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map
8628 [`RemAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.RemAssign.html
8629 [`ShlAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShlAssign.html
8630 [`ShrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShrAssign.html
8631 [`SubAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.SubAssign.html
8632 [`SystemTime::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.duration_since
8633 [`SystemTime::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.elapsed
8634 [`SystemTime::now`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.now
8635 [`SystemTimeError::duration`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html#method.duration
8636 [`SystemTimeError`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html
8637 [`UNIX_EPOCH`]: http://doc.rust-lang.org/nightly/std/time/constant.UNIX_EPOCH.html
8638 [`ptr::drop_in_place`]: http://doc.rust-lang.org/nightly/std/ptr/fn.drop_in_place.html
8639 [`str::EncodeUtf16`]: http://doc.rust-lang.org/nightly/std/str/struct.EncodeUtf16.html
8640 [`str::encode_utf16`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16
8641 [`time::Instant`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html
8642 [`time::SystemTime`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html
8645 Version 1.7.0 (2016-03-03)
8646 ==========================
8653 * [`Path::strip_prefix`] (renamed from relative_from)
8654 * [`path::StripPrefixError`] (new error type returned from strip_prefix)
8656 * [`Ipv4Addr::is_loopback`]
8657 * [`Ipv4Addr::is_private`]
8658 * [`Ipv4Addr::is_link_local`]
8659 * [`Ipv4Addr::is_multicast`]
8660 * [`Ipv4Addr::is_broadcast`]
8661 * [`Ipv4Addr::is_documentation`]
8663 * [`Ipv6Addr::is_unspecified`]
8664 * [`Ipv6Addr::is_loopback`]
8665 * [`Ipv6Addr::is_multicast`]
8668 * [`Vec::as_mut_slice`]
8670 * [`String::as_str`]
8671 * [`String::as_mut_str`]
8673 * `<[T]>::`[`clone_from_slice`], which now requires the two slices to
8675 * `<[T]>::`[`sort_by_key`]
8676 * checked, saturated, and overflowing operations
8677 * [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`]
8678 * [`i32::saturating_mul`]
8679 * [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`]
8680 * [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`]
8681 * [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`]
8682 * [`u32::saturating_mul`]
8683 * [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`]
8684 * [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`]
8685 * and checked, saturated, and overflowing operations for other primitive types
8687 * [`ffi::IntoStringError`]
8688 * [`CString::into_string`]
8689 * [`CString::into_bytes`]
8690 * [`CString::into_bytes_with_nul`]
8691 * `From<CString> for Vec<u8>`
8693 * [`IntoStringError::into_cstring`]
8694 * [`IntoStringError::utf8_error`]
8695 * `Error for IntoStringError`
8697 * [`std::hash::BuildHasher`]
8698 * [`BuildHasher::Hasher`]
8699 * [`BuildHasher::build_hasher`]
8700 * [`std::hash::BuildHasherDefault`]
8701 * [`HashMap::with_hasher`]
8702 * [`HashMap::with_capacity_and_hasher`]
8703 * [`HashSet::with_hasher`]
8704 * [`HashSet::with_capacity_and_hasher`]
8705 * [`std::collections::hash_map::RandomState`]
8706 * [`RandomState::new`]
8707 * [Validating UTF-8 is faster by a factor of between 7 and 14x for
8708 ASCII input][1.7utf8]. This means that creating `String`s and `str`s
8709 from bytes is faster.
8710 * [The performance of `LineWriter` (and thus `io::stdout`) was
8711 improved by using `memchr` to search for newlines][1.7m].
8712 * [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The
8713 `f64` variants were stabilized previously.
8714 * [`BTreeMap` was rewritten to use less memory and improve the performance
8715 of insertion and iteration, the latter by as much as 5x][1.7bm].
8716 * [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are
8717 covariant over their contained type][1.7bt].
8718 * [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant
8719 over their contained type][1.7ll].
8720 * [`str::replace` now accepts a `Pattern`][1.7rp], like other string
8722 * [`Any` is implemented for unsized types][1.7a].
8723 * [`Hash` is implemented for `Duration`][1.7h].
8728 * [When running tests with `--test`, rustdoc will pass `--cfg`
8729 arguments to the compiler][1.7dt].
8730 * [The compiler is built with RPATH information by default][1.7rpa].
8731 This means that it will be possible to run `rustc` when installed in
8732 unusual configurations without configuring the dynamic linker search
8734 * [`rustc` passes `--enable-new-dtags` to GNU ld][1.7dta]. This makes
8735 any RPATH entries (emitted with `-C rpath`) *not* take precedence
8736 over `LD_LIBRARY_PATH`.
8741 * [`cargo rustc` accepts a `--profile` flag that runs `rustc` under
8742 any of the compilation profiles, 'dev', 'bench', or 'test'][1.7cp].
8743 * [The `rerun-if-changed` build script directive no longer causes the
8744 build script to incorrectly run twice in certain scenarios][1.7rr].
8749 * Soundness fixes to the interactions between associated types and
8750 lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
8751 code that violates the new rules. This is a significant change that
8752 is known to break existing code, so it has emitted warnings for the
8753 new error cases since 1.4 to give crate authors time to adapt. The
8754 details of what is changing are subtle; read the RFC for more.
8755 * [Several bugs in the compiler's visibility calculations were
8756 fixed][1.7v]. Since this was found to break significant amounts of
8757 code, the new errors will be emitted as warnings for several release
8758 cycles, under the `private_in_public` lint.
8759 * Defaulted type parameters were accidentally accepted in positions
8760 that were not intended. In this release, [defaulted type parameters
8761 appearing outside of type definitions will generate a
8762 warning][1.7d], which will become an error in future releases.
8763 * [Parsing "." as a float results in an error instead of 0][1.7p].
8764 That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`.
8765 * [Borrows of closure parameters may not outlive the closure][1.7bc].
8767 [1.7a]: https://github.com/rust-lang/rust/pull/30928
8768 [1.7bc]: https://github.com/rust-lang/rust/pull/30341
8769 [1.7bm]: https://github.com/rust-lang/rust/pull/30426
8770 [1.7bt]: https://github.com/rust-lang/rust/pull/30998
8771 [1.7cp]: https://github.com/rust-lang/cargo/pull/2224
8772 [1.7d]: https://github.com/rust-lang/rust/pull/30724
8773 [1.7dt]: https://github.com/rust-lang/rust/pull/30372
8774 [1.7dta]: https://github.com/rust-lang/rust/pull/30394
8775 [1.7f]: https://github.com/rust-lang/rust/pull/30672
8776 [1.7h]: https://github.com/rust-lang/rust/pull/30818
8777 [1.7ll]: https://github.com/rust-lang/rust/pull/30663
8778 [1.7m]: https://github.com/rust-lang/rust/pull/30381
8779 [1.7p]: https://github.com/rust-lang/rust/pull/30681
8780 [1.7rp]: https://github.com/rust-lang/rust/pull/29498
8781 [1.7rpa]: https://github.com/rust-lang/rust/pull/30353
8782 [1.7rr]: https://github.com/rust-lang/cargo/pull/2279
8783 [1.7sf]: https://github.com/rust-lang/rust/pull/30389
8784 [1.7utf8]: https://github.com/rust-lang/rust/pull/30740
8785 [1.7v]: https://github.com/rust-lang/rust/pull/29973
8786 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
8787 [`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
8788 [`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher
8789 [`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul
8790 [`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes
8791 [`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string
8792 [`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher
8793 [`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher
8794 [`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher
8795 [`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher
8796 [`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring
8797 [`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error
8798 [`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast
8799 [`Ipv4Addr::is_documentation`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_documentation
8800 [`Ipv4Addr::is_link_local`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_link_local
8801 [`Ipv4Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_loopback
8802 [`Ipv4Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_multicast
8803 [`Ipv4Addr::is_private`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_private
8804 [`Ipv6Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_loopback
8805 [`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast
8806 [`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified
8807 [`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix
8808 [`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new
8809 [`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str
8810 [`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str
8811 [`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice
8812 [`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
8813 [`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
8814 [`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html
8815 [`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg
8816 [`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem
8817 [`i32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shl
8818 [`i32::checked_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shr
8819 [`i32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_add
8820 [`i32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_div
8821 [`i32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_mul
8822 [`i32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_neg
8823 [`i32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_rem
8824 [`i32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shl
8825 [`i32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shr
8826 [`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
8827 [`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
8828 [`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
8829 [`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
8830 [`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html
8831 [`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html
8832 [`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html
8833 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
8834 [`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
8835 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
8836 [`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
8837 [`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add
8838 [`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div
8839 [`u32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_mul
8840 [`u32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_neg
8841 [`u32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_rem
8842 [`u32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shl
8843 [`u32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shr
8844 [`u32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_sub
8845 [`u32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.saturating_mul
8848 Version 1.6.0 (2016-01-21)
8849 ==========================
8854 * The `#![no_std]` attribute causes a crate to not be linked to the
8855 standard library, but only the [core library][1.6co], as described
8856 in [RFC 1184]. The core library defines common types and traits but
8857 has no platform dependencies whatsoever, and is the basis for Rust
8858 software in environments that cannot support a full port of the
8859 standard library, such as operating systems. Most of the core
8860 library is now stable.
8866 [`Read::read_exact`],
8867 [`ErrorKind::UnexpectedEof`] (renamed from `UnexpectedEOF`),
8868 [`fs::DirBuilder`], [`fs::DirBuilder::new`],
8869 [`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`],
8870 [`os::unix::fs::DirBuilderExt`],
8871 [`os::unix::fs::DirBuilderExt::mode`], [`vec::Drain`],
8872 [`vec::Vec::drain`], [`string::Drain`], [`string::String::drain`],
8873 [`vec_deque::Drain`], [`vec_deque::VecDeque::drain`],
8874 [`collections::hash_map::Drain`],
8875 [`collections::hash_map::HashMap::drain`],
8876 [`collections::hash_set::Drain`],
8877 [`collections::hash_set::HashSet::drain`],
8878 [`collections::binary_heap::Drain`],
8879 [`collections::binary_heap::BinaryHeap::drain`],
8880 [`Vec::extend_from_slice`] (renamed from `push_all`),
8881 [`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`],
8882 [`RwLock::into_inner`],
8883 [`Iterator::min_by_key`] (renamed from `min_by`),
8884 [`Iterator::max_by_key`] (renamed from `max_by`).
8885 * The [core library][1.6co] is stable, as are most of its APIs.
8886 * [The `assert_eq!` macro supports arguments that don't implement
8887 `Sized`][1.6ae], such as arrays. In this way it behaves more like
8889 * Several timer functions that take duration in milliseconds [are
8890 deprecated in favor of those that take `Duration`][1.6ms]. These
8891 include `Condvar::wait_timeout_ms`, `thread::sleep_ms`, and
8892 `thread::park_timeout_ms`.
8893 * The algorithm by which `Vec` reserves additional elements was
8894 [tweaked to not allocate excessive space][1.6a] while still growing
8896 * `From` conversions are [implemented from integers to floats][1.6f]
8897 in cases where the conversion is lossless. Thus they are not
8898 implemented for 32-bit ints to `f32`, nor for 64-bit ints to `f32`
8899 or `f64`. They are also not implemented for `isize` and `usize`
8900 because the implementations would be platform-specific. `From` is
8901 also implemented from `f32` to `f64`.
8902 * `From<&Path>` and `From<PathBuf>` are implemented for `Cow<Path>`.
8903 * `From<T>` is implemented for `Box<T>`, `Rc<T>` and `Arc<T>`.
8904 * `IntoIterator` is implemented for `&PathBuf` and `&Path`.
8905 * [`BinaryHeap` was refactored][1.6bh] for modest performance
8907 * Sorting slices that are already sorted [is 50% faster in some
8913 * Cargo will look in `$CARGO_HOME/bin` for subcommands [by default][1.6c].
8914 * Cargo build scripts can specify their dependencies by emitting the
8915 [`rerun-if-changed`][1.6rr] key.
8916 * crates.io will reject publication of crates with dependencies that
8917 have a wildcard version constraint. Crates with wildcard
8918 dependencies were seen to cause a variety of problems, as described
8919 in [RFC 1241]. Since 1.5 publication of such crates has emitted a
8921 * `cargo clean` [accepts a `--release` flag][1.6cc] to clean the
8922 release folder. A variety of artifacts that Cargo failed to clean
8923 are now correctly deleted.
8928 * The `unreachable_code` lint [warns when a function call's argument
8930 * The parser indicates [failures that may be caused by
8931 confusingly-similar Unicode characters][1.6uc]
8932 * Certain macro errors [are reported at definition time][1.6m], not
8938 * The compiler no longer makes use of the [`RUST_PATH`][1.6rp]
8939 environment variable when locating crates. This was a pre-cargo
8940 feature for integrating with the package manager that was
8941 accidentally never removed.
8942 * [A number of bugs were fixed in the privacy checker][1.6p] that
8943 could cause previously-accepted code to break.
8944 * [Modules and unit/tuple structs may not share the same name][1.6ts].
8945 * [Bugs in pattern matching unit structs were fixed][1.6us]. The tuple
8946 struct pattern syntax (`Foo(..)`) can no longer be used to match
8947 unit structs. This is a warning now, but will become an error in
8948 future releases. Patterns that share the same name as a const are
8950 * A bug was fixed that causes [rustc not to apply default type
8951 parameters][1.6xc] when resolving certain method implementations of
8952 traits defined in other crates.
8954 [1.6a]: https://github.com/rust-lang/rust/pull/29454
8955 [1.6ae]: https://github.com/rust-lang/rust/pull/29770
8956 [1.6bh]: https://github.com/rust-lang/rust/pull/29811
8957 [1.6c]: https://github.com/rust-lang/cargo/pull/2192
8958 [1.6cc]: https://github.com/rust-lang/cargo/pull/2131
8959 [1.6co]: http://doc.rust-lang.org/core/index.html
8960 [1.6dv]: https://github.com/rust-lang/rust/pull/30000
8961 [1.6f]: https://github.com/rust-lang/rust/pull/29129
8962 [1.6m]: https://github.com/rust-lang/rust/pull/29828
8963 [1.6ms]: https://github.com/rust-lang/rust/pull/29604
8964 [1.6p]: https://github.com/rust-lang/rust/pull/29726
8965 [1.6rp]: https://github.com/rust-lang/rust/pull/30034
8966 [1.6rr]: https://github.com/rust-lang/cargo/pull/2134
8967 [1.6s]: https://github.com/rust-lang/rust/pull/29675
8968 [1.6ts]: https://github.com/rust-lang/rust/issues/21546
8969 [1.6uc]: https://github.com/rust-lang/rust/pull/29837
8970 [1.6us]: https://github.com/rust-lang/rust/pull/29383
8971 [1.6xc]: https://github.com/rust-lang/rust/issues/30123
8972 [RFC 1184]: https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md
8973 [RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
8974 [`ErrorKind::UnexpectedEof`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html#variant.UnexpectedEof
8975 [`Iterator::max_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.max_by_key
8976 [`Iterator::min_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.min_by_key
8977 [`Mutex::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.get_mut
8978 [`Mutex::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.into_inner
8979 [`Read::read_exact`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact
8980 [`RwLock::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.get_mut
8981 [`RwLock::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.into_inner
8982 [`Vec::extend_from_slice`]: http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html#method.extend_from_slice
8983 [`collections::binary_heap::BinaryHeap::drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.BinaryHeap.html#method.drain
8984 [`collections::binary_heap::Drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.Drain.html
8985 [`collections::hash_map::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.Drain.html
8986 [`collections::hash_map::HashMap::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.HashMap.html#method.drain
8987 [`collections::hash_set::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.Drain.html
8988 [`collections::hash_set::HashSet::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.HashSet.html#method.drain
8989 [`fs::DirBuilder::create`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.create
8990 [`fs::DirBuilder::new`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.new
8991 [`fs::DirBuilder::recursive`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.recursive
8992 [`fs::DirBuilder`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html
8993 [`os::unix::fs::DirBuilderExt::mode`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode
8994 [`os::unix::fs::DirBuilderExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html
8995 [`string::Drain`]: http://doc.rust-lang.org/nightly/std/string/struct.Drain.html
8996 [`string::String::drain`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.drain
8997 [`vec::Drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Drain.html
8998 [`vec::Vec::drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain
8999 [`vec_deque::Drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.Drain.html
9000 [`vec_deque::VecDeque::drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.VecDeque.html#method.drain
9003 Version 1.5.0 (2015-12-10)
9004 ==========================
9006 * ~700 changes, numerous bugfixes
9012 [`BinaryHeap::from`], [`BinaryHeap::into_sorted_vec`],
9013 [`BinaryHeap::into_vec`], [`Condvar::wait_timeout`],
9014 [`FileTypeExt::is_block_device`], [`FileTypeExt::is_char_device`],
9015 [`FileTypeExt::is_fifo`], [`FileTypeExt::is_socket`],
9016 [`FileTypeExt`], [`Formatter::alternate`], [`Formatter::fill`],
9017 [`Formatter::precision`], [`Formatter::sign_aware_zero_pad`],
9018 [`Formatter::sign_minus`], [`Formatter::sign_plus`],
9019 [`Formatter::width`], [`Iterator::cmp`], [`Iterator::eq`],
9020 [`Iterator::ge`], [`Iterator::gt`], [`Iterator::le`],
9021 [`Iterator::lt`], [`Iterator::ne`], [`Iterator::partial_cmp`],
9022 [`Path::canonicalize`], [`Path::exists`], [`Path::is_dir`],
9023 [`Path::is_file`], [`Path::metadata`], [`Path::read_dir`],
9024 [`Path::read_link`], [`Path::symlink_metadata`],
9025 [`Utf8Error::valid_up_to`], [`Vec::resize`],
9026 [`VecDeque::as_mut_slices`], [`VecDeque::as_slices`],
9027 [`VecDeque::insert`], [`VecDeque::shrink_to_fit`],
9028 [`VecDeque::swap_remove_back`], [`VecDeque::swap_remove_front`],
9029 [`slice::split_first_mut`], [`slice::split_first`],
9030 [`slice::split_last_mut`], [`slice::split_last`],
9031 [`char::from_u32_unchecked`], [`fs::canonicalize`],
9032 [`str::MatchIndices`], [`str::RMatchIndices`],
9033 [`str::match_indices`], [`str::rmatch_indices`],
9034 [`str::slice_mut_unchecked`], [`string::ParseError`].
9035 * Rust applications hosted on crates.io can be installed locally to
9036 `~/.cargo/bin` with the [`cargo install`] command. Among other
9037 things this makes it easier to augment Cargo with new subcommands:
9038 when a binary named e.g. `cargo-foo` is found in `$PATH` it can be
9039 invoked as `cargo foo`.
9040 * Crates with wildcard (`*`) dependencies will [emit warnings when
9041 published][1.5w]. In 1.6 it will no longer be possible to publish
9042 crates with wildcard dependencies.
9047 * The rules determining when a particular lifetime must outlive
9048 a particular value (known as '[dropck]') have been [modified
9049 to not rely on parametricity][1.5p].
9050 * [Implementations of `AsRef` and `AsMut` were added to `Box`, `Rc`,
9051 and `Arc`][1.5a]. Because these smart pointer types implement
9052 `Deref`, this causes breakage in cases where the interior type
9053 contains methods of the same name.
9054 * [Correct a bug in Rc/Arc][1.5c] that caused [dropck] to be unaware
9055 that they could drop their content. Soundness fix.
9056 * All method invocations are [properly checked][1.5wf1] for
9057 [well-formedness][1.5wf2]. Soundness fix.
9058 * Traits whose supertraits contain `Self` are [not object
9059 safe][1.5o]. Soundness fix.
9060 * Target specifications support a [`no_default_libraries`][1.5nd]
9061 setting that controls whether `-nodefaultlibs` is passed to the
9062 linker, and in turn the `is_like_windows` setting no longer affects
9063 the `-nodefaultlibs` flag.
9064 * `#[derive(Show)]`, long-deprecated, [has been removed][1.5ds].
9065 * The `#[inline]` and `#[repr]` attributes [can only appear
9066 in valid locations][1.5at].
9067 * Native libraries linked from the local crate are [passed to
9068 the linker before native libraries from upstream crates][1.5nl].
9069 * Two rarely-used attributes, `#[no_debug]` and
9070 `#[omit_gdb_pretty_printer_section]` [are feature gated][1.5fg].
9071 * Negation of unsigned integers, which has been a warning for
9072 several releases, [is now behind a feature gate and will
9073 generate errors][1.5nu].
9074 * The parser accidentally accepted visibility modifiers on
9075 enum variants, a bug [which has been fixed][1.5ev].
9076 * [A bug was fixed that allowed `use` statements to import unstable
9082 * When evaluating expressions at compile-time that are not
9083 compile-time constants (const-evaluating expressions in non-const
9084 contexts), incorrect code such as overlong bitshifts and arithmetic
9085 overflow will [generate a warning instead of an error][1.5ce],
9086 delaying the error until runtime. This will allow the
9087 const-evaluator to be expanded in the future backwards-compatibly.
9088 * The `improper_ctypes` lint [no longer warns about using `isize` and
9089 `usize` in FFI][1.5ict].
9094 * `Arc<T>` and `Rc<T>` are [covariant with respect to `T` instead of
9096 * `Default` is [implemented for mutable slices][1.5d].
9097 * `FromStr` is [implemented for `SockAddrV4` and `SockAddrV6`][1.5s].
9098 * There are now `From` conversions [between floating point
9099 types][1.5f] where the conversions are lossless.
9100 * There are now `From` conversions [between integer types][1.5i] where
9101 the conversions are lossless.
9102 * [`fs::Metadata` implements `Clone`][1.5fs].
9103 * The `parse` method [accepts a leading "+" when parsing
9105 * [`AsMut` is implemented for `Vec`][1.5am].
9106 * The `clone_from` implementations for `String` and `BinaryHeap` [have
9107 been optimized][1.5cf] and no longer rely on the default impl.
9108 * The `extern "Rust"`, `extern "C"`, `unsafe extern "Rust"` and
9109 `unsafe extern "C"` function types now [implement `Clone`,
9110 `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and
9111 `fmt::Debug` for up to 12 arguments][1.5fp].
9112 * [Dropping `Vec`s is much faster in unoptimized builds when the
9113 element types don't implement `Drop`][1.5dv].
9114 * A bug that caused in incorrect behavior when [combining `VecDeque`
9115 with zero-sized types][1.5vdz] was resolved.
9116 * [`PartialOrd` for slices is faster][1.5po].
9121 * [Crate metadata size was reduced by 20%][1.5md].
9122 * [Improvements to code generation reduced the size of libcore by 3.3
9123 MB and rustc's memory usage by 18MB][1.5m].
9124 * [Improvements to deref translation increased performance in
9125 unoptimized builds][1.5dr].
9126 * Various errors in trait resolution [are deduplicated to only be
9127 reported once][1.5te].
9128 * Rust has preliminary [support for rumprun kernels][1.5rr].
9129 * Rust has preliminary [support for NetBSD on amd64][1.5na].
9131 [1.5use]: https://github.com/rust-lang/rust/pull/28364
9132 [1.5po]: https://github.com/rust-lang/rust/pull/28436
9133 [1.5ev]: https://github.com/rust-lang/rust/pull/28442
9134 [1.5nu]: https://github.com/rust-lang/rust/pull/28468
9135 [1.5dr]: https://github.com/rust-lang/rust/pull/28491
9136 [1.5vdz]: https://github.com/rust-lang/rust/pull/28494
9137 [1.5md]: https://github.com/rust-lang/rust/pull/28521
9138 [1.5fg]: https://github.com/rust-lang/rust/pull/28522
9139 [1.5dv]: https://github.com/rust-lang/rust/pull/28531
9140 [1.5na]: https://github.com/rust-lang/rust/pull/28543
9141 [1.5fp]: https://github.com/rust-lang/rust/pull/28560
9142 [1.5rr]: https://github.com/rust-lang/rust/pull/28593
9143 [1.5cf]: https://github.com/rust-lang/rust/pull/28602
9144 [1.5nl]: https://github.com/rust-lang/rust/pull/28605
9145 [1.5te]: https://github.com/rust-lang/rust/pull/28645
9146 [1.5at]: https://github.com/rust-lang/rust/pull/28650
9147 [1.5am]: https://github.com/rust-lang/rust/pull/28663
9148 [1.5m]: https://github.com/rust-lang/rust/pull/28778
9149 [1.5ict]: https://github.com/rust-lang/rust/pull/28779
9150 [1.5a]: https://github.com/rust-lang/rust/pull/28811
9151 [1.5pi]: https://github.com/rust-lang/rust/pull/28826
9152 [1.5ce]: https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md
9153 [1.5p]: https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
9154 [1.5i]: https://github.com/rust-lang/rust/pull/28921
9155 [1.5fs]: https://github.com/rust-lang/rust/pull/29021
9156 [1.5f]: https://github.com/rust-lang/rust/pull/29129
9157 [1.5ds]: https://github.com/rust-lang/rust/pull/29148
9158 [1.5s]: https://github.com/rust-lang/rust/pull/29190
9159 [1.5d]: https://github.com/rust-lang/rust/pull/29245
9160 [1.5o]: https://github.com/rust-lang/rust/pull/29259
9161 [1.5nd]: https://github.com/rust-lang/rust/pull/28578
9162 [1.5wf2]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
9163 [1.5wf1]: https://github.com/rust-lang/rust/pull/28669
9164 [dropck]: https://doc.rust-lang.org/nightly/nomicon/dropck.html
9165 [1.5c]: https://github.com/rust-lang/rust/pull/29110
9166 [1.5w]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
9167 [`cargo install`]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md
9168 [`BinaryHeap::from`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html#method.from
9169 [`BinaryHeap::into_sorted_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_sorted_vec
9170 [`BinaryHeap::into_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_vec
9171 [`Condvar::wait_timeout`]: http://doc.rust-lang.org/nightly/std/sync/struct.Condvar.html#method.wait_timeout
9172 [`FileTypeExt::is_block_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_block_device
9173 [`FileTypeExt::is_char_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_char_device
9174 [`FileTypeExt::is_fifo`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_fifo
9175 [`FileTypeExt::is_socket`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_socket
9176 [`FileTypeExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html
9177 [`Formatter::alternate`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.alternate
9178 [`Formatter::fill`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.fill
9179 [`Formatter::precision`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.precision
9180 [`Formatter::sign_aware_zero_pad`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_aware_zero_pad
9181 [`Formatter::sign_minus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_minus
9182 [`Formatter::sign_plus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_plus
9183 [`Formatter::width`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.width
9184 [`Iterator::cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cmp
9185 [`Iterator::eq`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.eq
9186 [`Iterator::ge`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ge
9187 [`Iterator::gt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.gt
9188 [`Iterator::le`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.le
9189 [`Iterator::lt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.lt
9190 [`Iterator::ne`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ne
9191 [`Iterator::partial_cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.partial_cmp
9192 [`Path::canonicalize`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.canonicalize
9193 [`Path::exists`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.exists
9194 [`Path::is_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_dir
9195 [`Path::is_file`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_file
9196 [`Path::metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.metadata
9197 [`Path::read_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_dir
9198 [`Path::read_link`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_link
9199 [`Path::symlink_metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.symlink_metadata
9200 [`Utf8Error::valid_up_to`]: http://doc.rust-lang.org/nightly/core/str/struct.Utf8Error.html#method.valid_up_to
9201 [`Vec::resize`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.resize
9202 [`VecDeque::as_mut_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_mut_slices
9203 [`VecDeque::as_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_slices
9204 [`VecDeque::insert`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.insert
9205 [`VecDeque::shrink_to_fit`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.shrink_to_fit
9206 [`VecDeque::swap_remove_back`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_back
9207 [`VecDeque::swap_remove_front`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_front
9208 [`slice::split_first_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first_mut
9209 [`slice::split_first`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first
9210 [`slice::split_last_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last_mut
9211 [`slice::split_last`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last
9212 [`char::from_u32_unchecked`]: http://doc.rust-lang.org/nightly/std/char/fn.from_u32_unchecked.html
9213 [`fs::canonicalize`]: http://doc.rust-lang.org/nightly/std/fs/fn.canonicalize.html
9214 [`str::MatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.MatchIndices.html
9215 [`str::RMatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.RMatchIndices.html
9216 [`str::match_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices
9217 [`str::rmatch_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices
9218 [`str::slice_mut_unchecked`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked
9219 [`string::ParseError`]: http://doc.rust-lang.org/nightly/std/string/enum.ParseError.html
9221 Version 1.4.0 (2015-10-29)
9222 ==========================
9224 * ~1200 changes, numerous bugfixes
9229 * Windows builds targeting the 64-bit MSVC ABI and linker (instead of
9230 GNU) are now supported and recommended for use.
9235 * [Several changes have been made to fix type soundness and improve
9236 the behavior of associated types][sound]. See [RFC 1214]. Although
9237 we have mostly introduced these changes as warnings this release, to
9238 become errors next release, there are still some scenarios that will
9239 see immediate breakage.
9240 * [The `str::lines` and `BufRead::lines` iterators treat `\r\n` as
9241 line breaks in addition to `\n`][crlf].
9242 * [Loans of `'static` lifetime extend to the end of a function][stat].
9243 * [`str::parse` no longer introduces avoidable rounding error when
9244 parsing floating point numbers. Together with earlier changes to
9245 float formatting/output, "round trips" like f.to_string().parse()
9246 now preserve the value of f exactly. Additionally, leading plus
9247 signs are now accepted][fp3].
9253 * `use` statements that import multiple items [can now rename
9254 them][i], as in `use foo::{bar as kitten, baz as puppy}`.
9255 * [Binops work correctly on fat pointers][binfat].
9256 * `pub extern crate`, which does not behave as expected, [issues a
9257 warning][pec] until a better solution is found.
9262 * [Many APIs were stabilized][stab]: `<Box<str>>::into_string`,
9263 [`Arc::downgrade`], [`Arc::get_mut`], [`Arc::make_mut`],
9264 [`Arc::try_unwrap`], [`Box::from_raw`], [`Box::into_raw`], [`CStr::to_str`],
9265 [`CStr::to_string_lossy`], [`CString::from_raw`], [`CString::into_raw`],
9266 [`IntoRawFd::into_raw_fd`], [`IntoRawFd`],
9267 `IntoRawHandle::into_raw_handle`, `IntoRawHandle`,
9268 `IntoRawSocket::into_raw_socket`, `IntoRawSocket`, [`Rc::downgrade`],
9269 [`Rc::get_mut`], [`Rc::make_mut`], [`Rc::try_unwrap`], [`Result::expect`],
9270 [`String::into_boxed_str`], [`TcpStream::read_timeout`],
9271 [`TcpStream::set_read_timeout`], [`TcpStream::set_write_timeout`],
9272 [`TcpStream::write_timeout`], [`UdpSocket::read_timeout`],
9273 [`UdpSocket::set_read_timeout`], [`UdpSocket::set_write_timeout`],
9274 [`UdpSocket::write_timeout`], `Vec::append`, `Vec::split_off`,
9275 [`VecDeque::append`], [`VecDeque::retain`], [`VecDeque::split_off`],
9276 [`rc::Weak::upgrade`], [`rc::Weak`], [`slice::Iter::as_slice`],
9277 [`slice::IterMut::into_slice`], [`str::CharIndices::as_str`],
9278 [`str::Chars::as_str`], [`str::split_at_mut`], [`str::split_at`],
9279 [`sync::Weak::upgrade`], [`sync::Weak`], [`thread::park_timeout`],
9281 * [Some APIs were deprecated][dep]: `BTreeMap::with_b`,
9282 `BTreeSet::with_b`, `Option::as_mut_slice`, `Option::as_slice`,
9283 `Result::as_mut_slice`, `Result::as_slice`, `f32::from_str_radix`,
9284 `f64::from_str_radix`.
9285 * [Reverse-searching strings is faster with the 'two-way'
9287 * [`std::io::copy` allows `?Sized` arguments][cc].
9288 * The `Windows`, `Chunks`, and `ChunksMut` iterators over slices all
9289 [override `count`, `nth` and `last` with an *O*(1)
9290 implementation][it].
9291 * [`Default` is implemented for arrays up to `[T; 32]`][d].
9292 * [`IntoRawFd` has been added to the Unix-specific prelude,
9293 `IntoRawSocket` and `IntoRawHandle` to the Windows-specific
9295 * [`Extend<String>` and `FromIterator<String` are both implemented for
9297 * [`IntoIterator` is implemented for references to `Option` and
9299 * [`HashMap` and `HashSet` implement `Extend<&T>` where `T:
9300 Copy`][ext] as part of [RFC 839]. This will cause type inference
9301 breakage in rare situations.
9302 * [`BinaryHeap` implements `Debug`][bh2].
9303 * [`Borrow` and `BorrowMut` are implemented for fixed-size
9305 * [`extern fn`s with the "Rust" and "C" ABIs implement common
9306 traits including `Eq`, `Ord`, `Debug`, `Hash`][fp].
9307 * [String comparison is faster][faststr].
9308 * `&mut T` where `T: std::fmt::Write` [also implements
9309 `std::fmt::Write`][mutw].
9310 * [A stable regression in `VecDeque::push_back` and other
9311 capacity-altering methods that caused panics for zero-sized types
9313 * [Function pointers implement traits for up to 12 parameters][fp2].
9318 * The compiler [no longer uses the 'morestack' feature to prevent
9319 stack overflow][mm]. Instead it uses guard pages and stack
9320 probes (though stack probes are not yet implemented on any platform
9322 * [The compiler matches traits faster when projections are involved][p].
9323 * The 'improper_ctypes' lint [no longer warns about use of `isize` and
9325 * [Cargo now displays useful information about what its doing during
9326 `cargo update`][cu].
9328 [`Arc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.downgrade
9329 [`Arc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.make_mut
9330 [`Arc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.get_mut
9331 [`Arc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.try_unwrap
9332 [`Box::from_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.from_raw
9333 [`Box::into_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.into_raw
9334 [`CStr::to_str`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_str
9335 [`CStr::to_string_lossy`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_string_lossy
9336 [`CString::from_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.from_raw
9337 [`CString::into_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_raw
9338 [`IntoRawFd::into_raw_fd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html#tymethod.into_raw_fd
9339 [`IntoRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html
9340 [`Rc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.downgrade
9341 [`Rc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.get_mut
9342 [`Rc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.make_mut
9343 [`Rc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.try_unwrap
9344 [`Result::expect`]: http://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.expect
9345 [`String::into_boxed_str`]: http://doc.rust-lang.org/nightly/collections/string/struct.String.html#method.into_boxed_str
9346 [`TcpStream::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
9347 [`TcpStream::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
9348 [`TcpStream::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
9349 [`TcpStream::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
9350 [`UdpSocket::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
9351 [`UdpSocket::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
9352 [`UdpSocket::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
9353 [`UdpSocket::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
9354 [`VecDeque::append`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.append
9355 [`VecDeque::retain`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.retain
9356 [`VecDeque::split_off`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.split_off
9357 [`rc::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html#method.upgrade
9358 [`rc::Weak`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html
9359 [`slice::Iter::as_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#method.as_slice
9360 [`slice::IterMut::into_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.IterMut.html#method.into_slice
9361 [`str::CharIndices::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.CharIndices.html#method.as_str
9362 [`str::Chars::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.Chars.html#method.as_str
9363 [`str::split_at_mut`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut
9364 [`str::split_at`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at
9365 [`sync::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html#method.upgrade
9366 [`sync::Weak`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html
9367 [`thread::park_timeout`]: http://doc.rust-lang.org/nightly/std/thread/fn.park_timeout.html
9368 [`thread::sleep`]: http://doc.rust-lang.org/nightly/std/thread/fn.sleep.html
9369 [bh2]: https://github.com/rust-lang/rust/pull/28156
9370 [binfat]: https://github.com/rust-lang/rust/pull/28270
9371 [bm]: https://github.com/rust-lang/rust/pull/28197
9372 [cc]: https://github.com/rust-lang/rust/pull/27531
9373 [crlf]: https://github.com/rust-lang/rust/pull/28034
9374 [cu]: https://github.com/rust-lang/cargo/pull/1931
9375 [d]: https://github.com/rust-lang/rust/pull/27825
9376 [dep]: https://github.com/rust-lang/rust/pull/28339
9377 [es]: https://github.com/rust-lang/rust/pull/27956
9378 [ext]: https://github.com/rust-lang/rust/pull/28094
9379 [faststr]: https://github.com/rust-lang/rust/pull/28338
9380 [ffi]: https://github.com/rust-lang/rust/pull/28779
9381 [fp]: https://github.com/rust-lang/rust/pull/28268
9382 [fp2]: https://github.com/rust-lang/rust/pull/28560
9383 [fp3]: https://github.com/rust-lang/rust/pull/27307
9384 [i]: https://github.com/rust-lang/rust/pull/27451
9385 [into2]: https://github.com/rust-lang/rust/pull/28039
9386 [it]: https://github.com/rust-lang/rust/pull/27652
9387 [mm]: https://github.com/rust-lang/rust/pull/27338
9388 [mutw]: https://github.com/rust-lang/rust/pull/28368
9389 [sound]: https://github.com/rust-lang/rust/pull/27641
9390 [p]: https://github.com/rust-lang/rust/pull/27866
9391 [pec]: https://github.com/rust-lang/rust/pull/28486
9392 [pr]: https://github.com/rust-lang/rust/pull/27896
9393 [RFC 839]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
9394 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
9395 [s]: https://github.com/rust-lang/rust/pull/27474
9396 [stab]: https://github.com/rust-lang/rust/pull/28339
9397 [stat]: https://github.com/rust-lang/rust/pull/28321
9398 [vd]: https://github.com/rust-lang/rust/pull/28494
9400 Version 1.3.0 (2015-09-17)
9401 ==============================
9403 * ~900 changes, numerous bugfixes
9408 * The [new object lifetime defaults][nold] have been [turned
9409 on][nold2] after a cycle of warnings about the change. Now types
9410 like `&'a Box<Trait>` (or `&'a Rc<Trait>`, etc) will change from
9411 being interpreted as `&'a Box<Trait+'a>` to `&'a
9412 Box<Trait+'static>`.
9413 * [The Rustonomicon][nom] is a new book in the official documentation
9414 that dives into writing unsafe Rust.
9415 * The [`Duration`] API, [has been stabilized][ds]. This basic unit of
9416 timekeeping is employed by other std APIs, as well as out-of-tree
9422 * The [new object lifetime defaults][nold] have been [turned
9423 on][nold2] after a cycle of warnings about the change.
9424 * There is a known [regression][lr] in how object lifetime elision is
9425 interpreted, the proper solution for which is undetermined.
9426 * The `#[prelude_import]` attribute, an internal implementation
9427 detail, was accidentally stabilized previously. [It has been put
9428 behind the `prelude_import` feature gate][pi]. This change is
9429 believed to break no existing code.
9430 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
9431 [more sane for dynamically sized types][dst3]. Code that relied on
9432 the previous behavior is thought to be broken.
9433 * The `dropck` rules, which checks that destructors can't access
9434 destroyed values, [have been updated][dropck] to match the
9435 [RFC][dropckrfc]. This fixes some soundness holes, and as such will
9436 cause some previously-compiling code to no longer build.
9441 * The [new object lifetime defaults][nold] have been [turned
9442 on][nold2] after a cycle of warnings about the change.
9443 * Semicolons may [now follow types and paths in
9444 macros](https://github.com/rust-lang/rust/pull/27000).
9445 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
9446 [more sane for dynamically sized types][dst3]. Code that relied on
9447 the previous behavior is not known to exist, and suspected to be
9449 * `'static` variables [may now be recursive][st].
9450 * `ref` bindings choose between [`Deref`] and [`DerefMut`]
9451 implementations correctly.
9452 * The `dropck` rules, which checks that destructors can't access
9453 destroyed values, [have been updated][dropck] to match the
9459 * The [`Duration`] API, [has been stabilized][ds], as well as the
9460 `std::time` module, which presently contains only `Duration`.
9461 * `Box<str>` and `Box<[T]>` both implement `Clone`.
9462 * The owned C string, [`CString`], implements [`Borrow`] and the
9463 borrowed C string, [`CStr`], implements [`ToOwned`]. The two of
9464 these allow C strings to be borrowed and cloned in generic code.
9465 * [`CStr`] implements [`Debug`].
9466 * [`AtomicPtr`] implements [`Debug`].
9467 * [`Error`] trait objects [can be downcast to their concrete types][e]
9468 in many common configurations, using the [`is`], [`downcast`],
9469 [`downcast_ref`] and [`downcast_mut`] methods, similarly to the
9471 * Searching for substrings now [employs the two-way algorithm][search]
9472 instead of doing a naive search. This gives major speedups to a
9473 number of methods, including [`contains`][sc], [`find`][sf],
9474 [`rfind`][srf], [`split`][ss]. [`starts_with`][ssw] and
9475 [`ends_with`][sew] are also faster.
9476 * The performance of `PartialEq` for slices is [much faster][ps].
9477 * The [`Hash`] trait offers the default method, [`hash_slice`], which
9478 is overridden and optimized by the implementations for scalars.
9479 * The [`Hasher`] trait now has a number of specialized `write_*`
9480 methods for primitive types, for efficiency.
9481 * The I/O-specific error type, [`std::io::Error`][ie], gained a set of
9482 methods for accessing the 'inner error', if any: [`get_ref`][iegr],
9483 [`get_mut`][iegm], [`into_inner`][ieii]. As well, the implementation
9484 of [`std::error::Error::cause`][iec] also delegates to the inner
9486 * [`process::Child`][pc] gained the [`id`] method, which returns a
9487 `u32` representing the platform-specific process identifier.
9488 * The [`connect`] method on slices is deprecated, replaced by the new
9489 [`join`] method (note that both of these are on the *unstable*
9490 [`SliceConcatExt`] trait, but through the magic of the prelude are
9491 available to stable code anyway).
9492 * The [`Div`] operator is implemented for [`Wrapping`] types.
9493 * [`DerefMut` is implemented for `String`][dms].
9494 * Performance of SipHash (the default hasher for `HashMap`) is
9495 [better for long data][sh].
9496 * [`AtomicPtr`] implements [`Send`].
9497 * The [`read_to_end`] implementations for [`Stdin`] and [`File`]
9498 are now [specialized to use uninitialized buffers for increased
9500 * Lifetime parameters of foreign functions [are now resolved
9506 * Rust can now, with some coercion, [produce programs that run on
9507 Windows XP][xp], though XP is not considered a supported platform.
9508 * Porting Rust on Windows from the GNU toolchain to MSVC continues
9509 ([1][win1], [2][win2], [3][win3], [4][win4]). It is still not
9510 recommended for use in 1.3, though should be fully-functional
9511 in the [64-bit 1.4 beta][b14].
9512 * On Fedora-based systems installation will [properly configure the
9513 dynamic linker][fl].
9514 * The compiler gained many new extended error descriptions, which can
9515 be accessed with the `--explain` flag.
9516 * The `dropck` pass, which checks that destructors can't access
9517 destroyed values, [has been rewritten][27261]. This fixes some
9518 soundness holes, and as such will cause some previously-compiling
9519 code to no longer build.
9520 * `rustc` now uses [LLVM to write archive files where possible][ar].
9521 Eventually this will eliminate the compiler's dependency on the ar
9523 * Rust has [preliminary support for i686 FreeBSD][26959] (it has long
9524 supported FreeBSD on x86_64).
9525 * The [`unused_mut`][lum], [`unconditional_recursion`][lur],
9526 [`improper_ctypes`][lic], and [`negate_unsigned`][lnu] lints are
9528 * If landing pads are disabled (with `-Z no-landing-pads`), [`panic!`
9529 will kill the process instead of leaking][nlp].
9531 [`Any`]: http://doc.rust-lang.org/nightly/std/any/trait.Any.html
9532 [`AtomicPtr`]: http://doc.rust-lang.org/nightly/std/sync/atomic/struct.AtomicPtr.html
9533 [`Borrow`]: http://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html
9534 [`CStr`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html
9535 [`CString`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html
9536 [`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
9537 [`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
9538 [`Deref`]: http://doc.rust-lang.org/nightly/std/ops/trait.Deref.html
9539 [`Div`]: http://doc.rust-lang.org/nightly/std/ops/trait.Div.html
9540 [`Duration`]: http://doc.rust-lang.org/nightly/std/time/struct.Duration.html
9541 [`Error`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html
9542 [`File`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html
9543 [`Hash`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html
9544 [`Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
9545 [`Send`]: http://doc.rust-lang.org/nightly/std/marker/trait.Send.html
9546 [`SliceConcatExt`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html
9547 [`Stdin`]: http://doc.rust-lang.org/nightly/std/io/struct.Stdin.html
9548 [`ToOwned`]: http://doc.rust-lang.org/nightly/std/borrow/trait.ToOwned.html
9549 [`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
9550 [`connect`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.connect
9551 [`downcast_mut`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_mut
9552 [`downcast_ref`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_ref
9553 [`downcast`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast
9554 [`hash_slice`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
9555 [`id`]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html#method.id
9556 [`is`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.is
9557 [`join`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.join
9558 [`read_to_end`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end
9559 [ar]: https://github.com/rust-lang/rust/pull/26926
9560 [b14]: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi
9561 [dms]: https://github.com/rust-lang/rust/pull/26241
9562 [27261]: https://github.com/rust-lang/rust/pull/27261
9563 [dropckrfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
9564 [ds]: https://github.com/rust-lang/rust/pull/26818
9565 [dst1]: http://doc.rust-lang.org/nightly/std/mem/fn.size_of_val.html
9566 [dst2]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of_val.html
9567 [dst3]: https://github.com/rust-lang/rust/pull/27351
9568 [e]: https://github.com/rust-lang/rust/pull/24793
9569 [f]: https://github.com/rust-lang/rust/pull/26588
9570 [26959]: https://github.com/rust-lang/rust/pull/26959
9571 [fl]: https://github.com/rust-lang/rust-installer/pull/41
9572 [ie]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html
9573 [iec]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.cause
9574 [iegm]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_mut
9575 [iegr]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_ref
9576 [ieii]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.into_inner
9577 [lic]: https://github.com/rust-lang/rust/pull/26583
9578 [lnu]: https://github.com/rust-lang/rust/pull/27026
9579 [lr]: https://github.com/rust-lang/rust/issues/27248
9580 [lum]: https://github.com/rust-lang/rust/pull/26378
9581 [lur]: https://github.com/rust-lang/rust/pull/26783
9582 [nlp]: https://github.com/rust-lang/rust/pull/27176
9583 [nold2]: https://github.com/rust-lang/rust/pull/27045
9584 [nold]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
9585 [nom]: http://doc.rust-lang.org/nightly/nomicon/
9586 [pc]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html
9587 [pi]: https://github.com/rust-lang/rust/pull/26699
9588 [ps]: https://github.com/rust-lang/rust/pull/26884
9589 [rte]: https://github.com/rust-lang/rust/pull/26950
9590 [sc]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.contains
9591 [search]: https://github.com/rust-lang/rust/pull/26327
9592 [sew]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.ends_with
9593 [sf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.find
9594 [sh]: https://github.com/rust-lang/rust/pull/27280
9595 [srf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rfind
9596 [ss]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split
9597 [ssw]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.starts_with
9598 [st]: https://github.com/rust-lang/rust/pull/26630
9599 [win1]: https://github.com/rust-lang/rust/pull/26569
9600 [win2]: https://github.com/rust-lang/rust/pull/26741
9601 [win3]: https://github.com/rust-lang/rust/pull/26741
9602 [win4]: https://github.com/rust-lang/rust/pull/27210
9603 [xp]: https://github.com/rust-lang/rust/pull/26569
9605 Version 1.2.0 (2015-08-07)
9606 ==========================
9608 * ~1200 changes, numerous bugfixes
9613 * [Dynamically-sized-type coercions][dst] allow smart pointer types
9614 like `Rc` to contain types without a fixed size, arrays and trait
9615 objects, finally enabling use of `Rc<[T]>` and completing the
9616 implementation of DST.
9617 * [Parallel codegen][parcodegen] is now working again, which can
9618 substantially speed up large builds in debug mode; It also gets
9619 another ~33% speedup when bootstrapping on a 4 core machine (using 8
9620 jobs). It's not enabled by default, but will be "in the near
9621 future". It can be activated with the `-C codegen-units=N` flag to
9623 * This is the first release with [experimental support for linking
9624 with the MSVC linker and lib C on Windows (instead of using the GNU
9625 variants via MinGW)][win]. It is yet recommended only for the most
9626 intrepid Rustaceans.
9627 * Benchmark compilations are showing a 30% improvement in
9628 bootstrapping over 1.1.
9633 * The [`to_uppercase`] and [`to_lowercase`] methods on `char` now do
9634 unicode case mapping, which is a previously-planned change in
9635 behavior and considered a bugfix.
9636 * [`mem::align_of`] now specifies [the *minimum alignment* for
9637 T][align], which is usually the alignment programs are interested
9638 in, and the same value reported by clang's
9639 `alignof`. [`mem::min_align_of`] is deprecated. This is not known to
9641 * [The `#[packed]` attribute is no longer silently accepted by the
9642 compiler][packed]. This attribute did nothing and code that
9643 mentioned it likely did not work as intended.
9644 * Associated type defaults are [now behind the
9645 `associated_type_defaults` feature gate][ad]. In 1.1 associated type
9646 defaults *did not work*, but could be mentioned syntactically. As
9647 such this breakage has minimal impact.
9652 * Patterns with `ref mut` now correctly invoke [`DerefMut`] when
9653 matching against dereferenceable values.
9658 * The [`Extend`] trait, which grows a collection from an iterator, is
9659 implemented over iterators of references, for `String`, `Vec`,
9660 `LinkedList`, `VecDeque`, `EnumSet`, `BinaryHeap`, `VecMap`,
9661 `BTreeSet` and `BTreeMap`. [RFC][extend-rfc].
9662 * The [`iter::once`] function returns an iterator that yields a single
9663 element, and [`iter::empty`] returns an iterator that yields no
9665 * The [`matches`] and [`rmatches`] methods on `str` return iterators
9666 over substring matches.
9667 * [`Cell`] and [`RefCell`] both implement `Eq`.
9668 * A number of methods for wrapping arithmetic are added to the
9669 integral types, [`wrapping_div`], [`wrapping_rem`],
9670 [`wrapping_neg`], [`wrapping_shl`], [`wrapping_shr`]. These are in
9671 addition to the existing [`wrapping_add`], [`wrapping_sub`], and
9672 [`wrapping_mul`] methods, and alternatives to the [`Wrapping`]
9673 type.. It is illegal for the default arithmetic operations in Rust
9674 to overflow; the desire to wrap must be explicit.
9675 * The `{:#?}` formatting specifier [displays the alternate,
9676 pretty-printed][debugfmt] form of the `Debug` formatter. This
9677 feature was actually introduced prior to 1.0 with little
9679 * [`fmt::Formatter`] implements [`fmt::Write`], a `fmt`-specific trait
9680 for writing data to formatted strings, similar to [`io::Write`].
9681 * [`fmt::Formatter`] adds 'debug builder' methods, [`debug_struct`],
9682 [`debug_tuple`], [`debug_list`], [`debug_set`], [`debug_map`]. These
9683 are used by code generators to emit implementations of [`Debug`].
9684 * `str` has new [`to_uppercase`][strup] and [`to_lowercase`][strlow]
9685 methods that convert case, following Unicode case mapping.
9686 * It is now easier to handle poisoned locks. The [`PoisonError`]
9687 type, returned by failing lock operations, exposes `into_inner`,
9688 `get_ref`, and `get_mut`, which all give access to the inner lock
9689 guard, and allow the poisoned lock to continue to operate. The
9690 `is_poisoned` method of [`RwLock`] and [`Mutex`] can poll for a
9691 poisoned lock without attempting to take the lock.
9692 * On Unix the [`FromRawFd`] trait is implemented for [`Stdio`], and
9693 [`AsRawFd`] for [`ChildStdin`], [`ChildStdout`], [`ChildStderr`].
9694 On Windows the `FromRawHandle` trait is implemented for `Stdio`,
9695 and `AsRawHandle` for `ChildStdin`, `ChildStdout`,
9697 * [`io::ErrorKind`] has a new variant, `InvalidData`, which indicates
9703 * `rustc` employs smarter heuristics for guessing at [typos].
9704 * `rustc` emits more efficient code for [no-op conversions between
9705 unsafe pointers][nop].
9706 * Fat pointers are now [passed in pairs of immediate arguments][fat],
9707 resulting in faster compile times and smaller code.
9709 [`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
9710 [extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
9711 [`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html
9712 [`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html
9713 [`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
9714 [`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
9715 [`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
9716 [`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
9717 [`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
9718 [`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
9719 [`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
9720 [`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
9721 [`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
9722 [`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
9723 [`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
9724 [`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
9725 [`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
9726 [`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
9727 [`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
9728 [`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html
9729 [`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
9730 [`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
9731 [`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
9732 [`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
9733 [`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
9734 [`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
9735 [strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
9736 [strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
9737 [`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
9738 [`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
9739 [`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
9740 [`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
9741 [`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
9742 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
9743 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
9744 [`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
9745 [`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
9746 [`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
9747 [`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
9748 [`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
9749 [debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
9750 [`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
9751 [`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
9752 [align]: https://github.com/rust-lang/rust/pull/25646
9753 [`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
9754 [typos]: https://github.com/rust-lang/rust/pull/26087
9755 [nop]: https://github.com/rust-lang/rust/pull/26336
9756 [fat]: https://github.com/rust-lang/rust/pull/26411
9757 [dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
9758 [parcodegen]: https://github.com/rust-lang/rust/pull/26018
9759 [packed]: https://github.com/rust-lang/rust/pull/25541
9760 [ad]: https://github.com/rust-lang/rust/pull/27382
9761 [win]: https://github.com/rust-lang/rust/pull/25350
9763 Version 1.1.0 (2015-06-25)
9764 =========================
9766 * ~850 changes, numerous bugfixes
9771 * The [`std::fs` module has been expanded][fs] to expand the set of
9772 functionality exposed:
9773 * `DirEntry` now supports optimizations like `file_type` and `metadata` which
9774 don't incur a syscall on some platforms.
9775 * A `symlink_metadata` function has been added.
9776 * The `fs::Metadata` structure now lowers to its OS counterpart, providing
9777 access to all underlying information.
9778 * The compiler now contains extended explanations of many errors. When an error
9779 with an explanation occurs the compiler suggests using the `--explain` flag
9780 to read the explanation. Error explanations are also [available online][err-index].
9781 * Thanks to multiple [improvements][sk] to [type checking][pre], as
9782 well as other work, the time to bootstrap the compiler decreased by
9788 * The [`str::split_whitespace`] method splits a string on unicode
9789 whitespace boundaries.
9790 * On both Windows and Unix, new extension traits provide conversion of
9791 I/O types to and from the underlying system handles. On Unix, these
9792 traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
9793 and `AsRawHandle`. These are implemented for `File`, `TcpStream`,
9794 `TcpListener`, and `UpdSocket`. Further implementations for
9795 `std::process` will be stabilized later.
9796 * On Unix, [`std::os::unix::symlink`] creates symlinks. On
9797 Windows, symlinks can be created with
9798 `std::os::windows::symlink_dir` and
9799 `std::os::windows::symlink_file`.
9800 * The `mpsc::Receiver` type can now be converted into an iterator with
9801 `into_iter` on the [`IntoIterator`] trait.
9802 * `Ipv4Addr` can be created from `u32` with the `From<u32>`
9803 implementation of the [`From`] trait.
9804 * The `Debug` implementation for `RangeFull` [creates output that is
9805 more consistent with other implementations][rf].
9806 * [`Debug` is implemented for `File`][file].
9807 * The `Default` implementation for `Arc` [no longer requires `Sync +
9809 * [The `Iterator` methods `count`, `nth`, and `last` have been
9810 overridden for slices to have *O*(1) performance instead of *O*(*n*)][si].
9811 * Incorrect handling of paths on Windows has been improved in both the
9812 compiler and the standard library.
9813 * [`AtomicPtr` gained a `Default` implementation][ap].
9814 * In accordance with Rust's policy on arithmetic overflow `abs` now
9815 [panics on overflow when debug assertions are enabled][abs].
9816 * The [`Cloned`] iterator, which was accidentally left unstable for
9817 1.0 [has been stabilized][c].
9818 * The [`Incoming`] iterator, which iterates over incoming TCP
9819 connections, and which was accidentally unnamable in 1.0, [is now
9820 properly exported][inc].
9821 * [`BinaryHeap`] no longer corrupts itself [when functions called by
9822 `sift_up` or `sift_down` panic][bh].
9823 * The [`split_off`] method of `LinkedList` [no longer corrupts
9824 the list in certain scenarios][ll].
9829 * Type checking performance [has improved notably][sk] with
9830 [multiple improvements][pre].
9831 * The compiler [suggests code changes][ch] for more errors.
9832 * rustc and it's build system have experimental support for [building
9833 toolchains against MUSL][m] instead of glibc on Linux.
9834 * The compiler defines the `target_env` cfg value, which is used for
9835 distinguishing toolchains that are otherwise for the same
9836 platform. Presently this is set to `gnu` for common GNU Linux
9837 targets and for MinGW targets, and `musl` for MUSL Linux targets.
9838 * The [`cargo rustc`][crc] command invokes a build with custom flags
9840 * [Android executables are always position independent][pie].
9841 * [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
9842 with `Drop`][24935].
9844 [`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
9845 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
9846 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
9847 [`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
9848 [`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
9849 [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html
9850 [rf]: https://github.com/rust-lang/rust/pull/24491
9851 [err-index]: https://doc.rust-lang.org/error-index.html
9852 [sk]: https://github.com/rust-lang/rust/pull/24615
9853 [pre]: https://github.com/rust-lang/rust/pull/25323
9854 [file]: https://github.com/rust-lang/rust/pull/24598
9855 [ch]: https://github.com/rust-lang/rust/pull/24683
9856 [arc]: https://github.com/rust-lang/rust/pull/24695
9857 [si]: https://github.com/rust-lang/rust/pull/24701
9858 [ap]: https://github.com/rust-lang/rust/pull/24834
9859 [m]: https://github.com/rust-lang/rust/pull/24777
9860 [fs]: https://github.com/rust-lang/rfcs/blob/master/text/1044-io-fs-2.1.md
9861 [crc]: https://github.com/rust-lang/cargo/pull/1568
9862 [pie]: https://github.com/rust-lang/rust/pull/24953
9863 [abs]: https://github.com/rust-lang/rust/pull/25441
9864 [c]: https://github.com/rust-lang/rust/pull/25496
9865 [`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
9866 [`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
9867 [inc]: https://github.com/rust-lang/rust/pull/25522
9868 [bh]: https://github.com/rust-lang/rust/pull/25856
9869 [`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
9870 [ll]: https://github.com/rust-lang/rust/pull/26022
9871 [`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
9872 [24935]: https://github.com/rust-lang/rust/pull/24935
9874 Version 1.0.0 (2015-05-15)
9875 ========================
9877 * ~1500 changes, numerous bugfixes
9882 * The vast majority of the standard library is now `#[stable]`. It is
9883 no longer possible to use unstable features with a stable build of
9885 * Many popular crates on [crates.io] now work on the stable release
9887 * Arithmetic on basic integer types now [checks for overflow in debug
9893 * Several [restrictions have been added to trait coherence][coh] in
9894 order to make it easier for upstream authors to change traits
9895 without breaking downstream code.
9896 * Digits of binary and octal literals are [lexed more eagerly][lex] to
9897 improve error messages and macro behavior. For example, `0b1234` is
9898 now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
9899 * Trait bounds [are always invariant][inv], eliminating the need for
9900 the `PhantomFn` and `MarkerTrait` lang items, which have been
9902 * ["-" is no longer a valid character in crate names][cr], the `extern crate
9903 "foo" as bar` syntax has been replaced with `extern crate foo as
9904 bar`, and Cargo now automatically translates "-" in *package* names
9905 to underscore for the crate name.
9906 * [Lifetime shadowing is an error][lt].
9907 * [`Send` no longer implies `'static`][send-rfc].
9908 * [UFCS now supports trait-less associated paths][moar-ufcs] like
9909 `MyType::default()`.
9910 * Primitive types [now have inherent methods][prim-inherent],
9911 obviating the need for extension traits like `SliceExt`.
9912 * Methods with `Self: Sized` in their `where` clause are [considered
9913 object-safe][self-sized], allowing many extension traits like
9914 `IteratorExt` to be merged into the traits they extended.
9915 * You can now [refer to associated types][assoc-where] whose
9916 corresponding trait bounds appear only in a `where` clause.
9917 * The final bits of [OIBIT landed][oibit-final], meaning that traits
9918 like `Send` and `Sync` are now library-defined.
9919 * A [Reflect trait][reflect] was introduced, which means that
9920 downcasting via the `Any` trait is effectively limited to concrete
9921 types. This helps retain the potentially-important "parametricity"
9922 property: generic code cannot behave differently for different type
9923 arguments except in minor ways.
9924 * The `unsafe_destructor` feature is now deprecated in favor of the
9925 [new `dropck`][rfc769]. This change is a major reduction in unsafe
9931 * The `thread_local` module [has been renamed to `std::thread`][th].
9932 * The methods of `IteratorExt` [have been moved to the `Iterator`
9933 trait itself][23300].
9934 * Several traits that implement Rust's conventions for type
9935 conversions, `AsMut`, `AsRef`, `From`, and `Into` have been
9936 [centralized in the `std::convert` module][con].
9937 * The `FromError` trait [was removed in favor of `From`][fe].
9938 * The basic sleep function [has moved to
9939 `std::thread::sleep_ms`][slp].
9940 * The `splitn` function now takes an `n` parameter that represents the
9941 number of items yielded by the returned iterator [instead of the
9942 number of 'splits'][spl].
9943 * [On Unix, all file descriptors are `CLOEXEC` by default][clo].
9944 * [Derived implementations of `PartialOrd` now order enums according
9945 to their explicitly-assigned discriminants][po].
9946 * [Methods for searching strings are generic over `Pattern`s][pat],
9947 implemented presently by `&char`, `&str`, `FnMut(char) -> bool` and
9949 * [In method resolution, object methods are resolved before inherent
9951 * [`String::from_str` has been deprecated in favor of the `From` impl,
9952 `String::from`][24517].
9953 * [`io::Error` implements `Sync`][ios].
9954 * [The `words` method on `&str` has been replaced with
9955 `split_whitespace`][sw], to avoid answering the tricky question, 'what is
9957 * The new path and IO modules are complete and `#[stable]`. This
9958 was the major library focus for this cycle.
9959 * The path API was [revised][path-normalize] to normalize `.`,
9960 adjusting the tradeoffs in favor of the most common usage.
9961 * A large number of remaining APIs in `std` were also stabilized
9962 during this cycle; about 75% of the non-deprecated API surface
9964 * The new [string pattern API][string-pattern] landed, which makes
9965 the string slice API much more internally consistent and flexible.
9966 * A new set of [generic conversion traits][conversion] replaced
9967 many existing ad hoc traits.
9968 * Generic numeric traits were [completely removed][num-traits]. This
9969 was made possible thanks to inherent methods for primitive types,
9970 and the removal gives maximal flexibility for designing a numeric
9971 hierarchy in the future.
9972 * The `Fn` traits are now related via [inheritance][fn-inherit]
9973 and provide ergonomic [blanket implementations][fn-blanket].
9974 * The `Index` and `IndexMut` traits were changed to
9975 [take the index by value][index-value], enabling code like
9976 `hash_map["string"]` to work.
9977 * `Copy` now [inherits][copy-clone] from `Clone`, meaning that all
9978 `Copy` data is known to be `Clone` as well.
9983 * Many errors now have extended explanations that can be accessed with
9984 the `--explain` flag to `rustc`.
9985 * Many new examples have been added to the standard library
9987 * rustdoc has received a number of improvements focused on completion
9989 * Metadata was tuned, shrinking binaries [by 27%][metadata-shrink].
9990 * Much headway was made on ecosystem-wide CI, making it possible
9991 to [compare builds for breakage][ci-compare].
9994 [crates.io]: http://crates.io
9995 [clo]: https://github.com/rust-lang/rust/pull/24034
9996 [coh]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
9997 [con]: https://github.com/rust-lang/rust/pull/23875
9998 [cr]: https://github.com/rust-lang/rust/pull/23419
9999 [fe]: https://github.com/rust-lang/rust/pull/23879
10000 [23300]: https://github.com/rust-lang/rust/pull/23300
10001 [inv]: https://github.com/rust-lang/rust/pull/23938
10002 [ios]: https://github.com/rust-lang/rust/pull/24133
10003 [lex]: https://github.com/rust-lang/rfcs/blob/master/text/0879-small-base-lexing.md
10004 [lt]: https://github.com/rust-lang/rust/pull/24057
10005 [meth]: https://github.com/rust-lang/rust/pull/24056
10006 [pat]: https://github.com/rust-lang/rfcs/blob/master/text/0528-string-patterns.md
10007 [po]: https://github.com/rust-lang/rust/pull/24270
10008 [24517]: https://github.com/rust-lang/rust/pull/24517
10009 [slp]: https://github.com/rust-lang/rust/pull/23949
10010 [spl]: https://github.com/rust-lang/rfcs/blob/master/text/0979-align-splitn-with-other-languages.md
10011 [sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md
10012 [th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md
10013 [send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md
10014 [moar-ufcs]: https://github.com/rust-lang/rust/pull/22172
10015 [prim-inherent]: https://github.com/rust-lang/rust/pull/23104
10016 [overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md
10017 [metadata-shrink]: https://github.com/rust-lang/rust/pull/22971
10018 [self-sized]: https://github.com/rust-lang/rust/pull/22301
10019 [assoc-where]: https://github.com/rust-lang/rust/pull/22512
10020 [string-pattern]: https://github.com/rust-lang/rust/pull/22466
10021 [oibit-final]: https://github.com/rust-lang/rust/pull/21689
10022 [reflect]: https://github.com/rust-lang/rust/pull/23712
10023 [conversion]: https://github.com/rust-lang/rfcs/pull/529
10024 [num-traits]: https://github.com/rust-lang/rust/pull/23549
10025 [index-value]: https://github.com/rust-lang/rust/pull/23601
10026 [rfc769]: https://github.com/rust-lang/rfcs/pull/769
10027 [ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee
10028 [fn-inherit]: https://github.com/rust-lang/rust/pull/23282
10029 [fn-blanket]: https://github.com/rust-lang/rust/pull/23895
10030 [copy-clone]: https://github.com/rust-lang/rust/pull/23860
10031 [path-normalize]: https://github.com/rust-lang/rust/pull/23229
10034 Version 1.0.0-alpha.2 (2015-02-20)
10035 =====================================
10037 * ~1300 changes, numerous bugfixes
10041 * The various I/O modules were [overhauled][io-rfc] to reduce
10042 unnecessary abstractions and provide better interoperation with
10043 the underlying platform. The old `io` module remains temporarily
10045 * The standard library now [participates in feature gating][feat],
10046 so use of unstable libraries now requires a `#![feature(...)]`
10047 attribute. The impact of this change is [described on the
10048 forum][feat-forum]. [RFC][feat-rfc].
10052 * `for` loops [now operate on the `IntoIterator` trait][into],
10053 which eliminates the need to call `.iter()`, etc. to iterate
10054 over collections. There are some new subtleties to remember
10055 though regarding what sort of iterators various types yield, in
10056 particular that `for foo in bar { }` yields values from a move
10057 iterator, destroying the original collection. [RFC][into-rfc].
10058 * Objects now have [default lifetime bounds][obj], so you don't
10059 have to write `Box<Trait+'static>` when you don't care about
10060 storing references. [RFC][obj-rfc].
10061 * In types that implement `Drop`, [lifetimes must outlive the
10062 value][drop]. This will soon make it possible to safely
10063 implement `Drop` for types where `#[unsafe_destructor]` is now
10064 required. Read the [gorgeous RFC][drop-rfc] for details.
10065 * The fully qualified <T as Trait>::X syntax lets you set the Self
10066 type for a trait method or associated type. [RFC][ufcs-rfc].
10067 * References to types that implement `Deref<U>` now [automatically
10068 coerce to references][deref] to the dereferenced type `U`,
10069 e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This
10070 should eliminate many unsightly uses of `&*`, as when converting
10071 from references to vectors into references to
10072 slices. [RFC][deref-rfc].
10073 * The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`,
10074 `|:|`) is obsolete and closure kind is inferred from context.
10075 * [`Self` is a keyword][Self].
10079 * The `Show` and `String` formatting traits [have been
10080 renamed][fmt] to `Debug` and `Display` to more clearly reflect
10081 their related purposes. Automatically getting a string
10082 conversion to use with `format!("{:?}", something_to_debug)` is
10083 now written `#[derive(Debug)]`.
10084 * Abstract [OS-specific string types][osstr], `std::ff::{OsString,
10085 OsStr}`, provide strings in platform-specific encodings for easier
10086 interop with system APIs. [RFC][osstr-rfc].
10087 * The `boxed::into_raw` and `Box::from_raw` functions [convert
10088 between `Box<T>` and `*mut T`][boxraw], a common pattern for
10089 creating raw pointers.
10093 * Certain long error messages of the form 'expected foo found bar'
10094 are now [split neatly across multiple
10095 lines][multiline]. Examples in the PR.
10096 * On Unix Rust can be [uninstalled][un] by running
10097 `/usr/local/lib/rustlib/uninstall.sh`.
10098 * The `#[rustc_on_unimplemented]` attribute, requiring the
10099 'on_unimplemented' feature, lets rustc [display custom error
10100 messages when a trait is expected to be implemented for a type
10105 * Rust is tested against a [LALR grammar][lalr], which parses
10106 almost all the Rust files that rustc does.
10108 [boxraw]: https://github.com/rust-lang/rust/pull/21318
10109 [close]: https://github.com/rust-lang/rust/pull/21843
10110 [deref]: https://github.com/rust-lang/rust/pull/21351
10111 [deref-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md
10112 [drop]: https://github.com/rust-lang/rust/pull/21972
10113 [drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
10114 [feat]: https://github.com/rust-lang/rust/pull/21248
10115 [feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
10116 [feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
10117 [fmt]: https://github.com/rust-lang/rust/pull/21457
10118 [into]: https://github.com/rust-lang/rust/pull/20790
10119 [into-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable
10120 [io-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
10121 [lalr]: https://github.com/rust-lang/rust/pull/21452
10122 [multiline]: https://github.com/rust-lang/rust/pull/19870
10123 [obj]: https://github.com/rust-lang/rust/pull/22230
10124 [obj-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
10125 [onun]: https://github.com/rust-lang/rust/pull/20889
10126 [osstr]: https://github.com/rust-lang/rust/pull/21488
10127 [osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
10128 [Self]: https://github.com/rust-lang/rust/pull/22158
10129 [ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
10130 [un]: https://github.com/rust-lang/rust/pull/22256
10133 Version 1.0.0-alpha (2015-01-09)
10134 ==================================
10136 * ~2400 changes, numerous bugfixes
10140 * The language itself is considered feature complete for 1.0,
10141 though there will be many usability improvements and bugfixes
10142 before the final release.
10143 * Nearly 50% of the public API surface of the standard library has
10144 been declared 'stable'. Those interfaces are unlikely to change
10146 * The long-running debate over integer types has been
10147 [settled][ints]: Rust will ship with types named `isize` and
10148 `usize`, rather than `int` and `uint`, for pointer-sized
10149 integers. Guidelines will be rolled out during the alpha cycle.
10150 * Most crates that are not `std` have been moved out of the Rust
10151 distribution into the Cargo ecosystem so they can evolve
10152 separately and don't need to be stabilized as quickly, including
10153 'time', 'getopts', 'num', 'regex', and 'term'.
10154 * Documentation continues to be expanded with more API coverage, more
10155 examples, and more in-depth explanations. The guides have been
10156 consolidated into [The Rust Programming Language][trpl].
10157 * "[Rust By Example][rbe]" is now maintained by the Rust team.
10158 * All official Rust binary installers now come with [Cargo], the
10159 Rust package manager.
10163 * Closures have been [completely redesigned][unboxed] to be
10164 implemented in terms of traits, can now be used as generic type
10165 bounds and thus monomorphized and inlined, or via an opaque
10166 pointer (boxed) as in the old system. The new system is often
10167 referred to as 'unboxed' closures.
10168 * Traits now support [associated types][assoc], allowing families
10169 of related types to be defined together and used generically in
10171 * Enum variants are [namespaced by their type names][enum].
10172 * [`where` clauses][where] provide a more versatile and attractive
10173 syntax for specifying generic bounds, though the previous syntax
10175 * Rust again picks a [fallback][fb] (either i32 or f64) for uninferred
10177 * Rust [no longer has a runtime][rt] of any description, and only
10178 supports OS threads, not green threads.
10179 * At long last, Rust has been overhauled for 'dynamically-sized
10180 types' ([DST]), which integrates 'fat pointers' (object types,
10181 arrays, and `str`) more deeply into the type system, making it
10183 * Rust now has a general [range syntax][range], `i..j`, `i..`, and
10184 `..j` that produce range types and which, when combined with the
10185 `Index` operator and multidispatch, leads to a convenient slice
10186 notation, `[i..j]`.
10187 * The new range syntax revealed an ambiguity in the fixed-length
10188 array syntax, so now fixed length arrays [are written `[T;
10190 * The `Copy` trait is no longer implemented automatically. Unsafe
10191 pointers no longer implement `Sync` and `Send` so types
10192 containing them don't automatically either. `Sync` and `Send`
10193 are now 'unsafe traits' so one can "forcibly" implement them via
10194 `unsafe impl` if a type confirms to the requirements for them
10195 even though the internals do not (e.g. structs containing unsafe
10196 pointers like `Arc`). These changes are intended to prevent some
10197 footguns and are collectively known as [opt-in built-in
10198 traits][oibit] (though `Sync` and `Send` will soon become pure
10199 library types unknown to the compiler).
10200 * Operator traits now take their operands [by value][ops], and
10201 comparison traits can use multidispatch to compare one type
10202 against multiple other types, allowing e.g. `String` to be
10203 compared with `&str`.
10204 * `if let` and `while let` are no longer feature-gated.
10205 * Rust has adopted a more [uniform syntax for escaping unicode
10206 characters][unicode].
10207 * `macro_rules!` [has been declared stable][mac]. Though it is a
10208 flawed system it is sufficiently popular that it must be usable
10209 for 1.0. Effort has gone into [future-proofing][mac-future] it
10210 in ways that will allow other macro systems to be developed in
10211 parallel, and won't otherwise impact the evolution of the
10213 * The prelude has been [pared back significantly][prelude] such
10214 that it is the minimum necessary to support the most pervasive
10215 code patterns, and through [generalized where clauses][where]
10216 many of the prelude extension traits have been consolidated.
10217 * Rust's rudimentary reflection [has been removed][refl], as it
10218 incurred too much code generation for little benefit.
10219 * [Struct variants][structvars] are no longer feature-gated.
10220 * Trait bounds can be [polymorphic over lifetimes][hrtb]. Also
10221 known as 'higher-ranked trait bounds', this crucially allows
10222 unboxed closures to work.
10223 * Macros invocations surrounded by parens or square brackets and
10224 not terminated by a semicolon are [parsed as
10225 expressions][macros], which makes expressions like `vec![1i32,
10226 2, 3].len()` work as expected.
10227 * Trait objects now implement their traits automatically, and
10228 traits that can be coerced to objects now must be [object
10230 * Automatically deriving traits is now done with `#[derive(...)]`
10231 not `#[deriving(...)]` for [consistency with other naming
10232 conventions][derive].
10233 * Importing the containing module or enum at the same time as
10234 items or variants they contain is [now done with `self` instead
10235 of `mod`][self], as in use `foo::{self, bar}`
10236 * Glob imports are no longer feature-gated.
10237 * The `box` operator and `box` patterns have been feature-gated
10238 pending a redesign. For now unique boxes should be allocated
10239 like other containers, with `Box::new`.
10243 * A [series][coll1] of [efforts][coll2] to establish
10244 [conventions][coll3] for collections types has resulted in API
10245 improvements throughout the standard library.
10246 * New [APIs for error handling][err] provide ergonomic interop
10247 between error types, and [new conventions][err-conv] describe
10248 more clearly the recommended error handling strategies in Rust.
10249 * The `fail!` macro has been renamed to [`panic!`][panic] so that
10250 it is easier to discuss failure in the context of error handling
10251 without making clarifications as to whether you are referring to
10252 the 'fail' macro or failure more generally.
10253 * On Linux, `OsRng` prefers the new, more reliable `getrandom`
10254 syscall when available.
10255 * The 'serialize' crate has been renamed 'rustc-serialize' and
10256 moved out of the distribution to Cargo. Although it is widely
10257 used now, it is expected to be superseded in the near future.
10258 * The `Show` formatter, typically implemented with
10259 `#[derive(Show)]` is [now requested with the `{:?}`
10260 specifier][show] and is intended for use by all types, for uses
10261 such as `println!` debugging. The new `String` formatter must be
10262 implemented by hand, uses the `{}` specifier, and is intended
10263 for full-fidelity conversions of things that can logically be
10264 represented as strings.
10268 * [Flexible target specification][flex] allows rustc's code
10269 generation to be configured to support otherwise-unsupported
10271 * Rust comes with rust-gdb and rust-lldb scripts that launch their
10272 respective debuggers with Rust-appropriate pretty-printing.
10273 * The Windows installation of Rust is distributed with the
10274 MinGW components currently required to link binaries on that
10279 * Nullable enum optimizations have been extended to more types so
10280 that e.g. `Option<Vec<T>>` and `Option<String>` take up no more
10281 space than the inner types themselves.
10282 * Work has begun on supporting AArch64.
10284 [Cargo]: https://crates.io
10285 [unboxed]: http://smallcultfollowing.com/babysteps/blog/2014/11/26/purging-proc/
10286 [enum]: https://github.com/rust-lang/rfcs/blob/master/text/0390-enum-namespacing.md
10287 [flex]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md
10288 [err]: https://github.com/rust-lang/rfcs/blob/master/text/0201-error-chaining.md
10289 [err-conv]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md
10290 [rt]: https://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md
10291 [mac]: https://github.com/rust-lang/rfcs/blob/master/text/0453-macro-reform.md
10292 [mac-future]: https://github.com/rust-lang/rfcs/pull/550
10293 [DST]: http://smallcultfollowing.com/babysteps/blog/2014/01/05/dst-take-5/
10294 [coll1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md
10295 [coll2]: https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
10296 [coll3]: https://github.com/rust-lang/rfcs/blob/master/text/0216-collection-views.md
10297 [ops]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md
10298 [prelude]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
10299 [where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md
10300 [refl]: https://github.com/rust-lang/rfcs/blob/master/text/0379-remove-reflection.md
10301 [panic]: https://github.com/rust-lang/rfcs/blob/master/text/0221-panic.md
10302 [structvars]: https://github.com/rust-lang/rfcs/blob/master/text/0418-struct-variants.md
10303 [hrtb]: https://github.com/rust-lang/rfcs/blob/master/text/0387-higher-ranked-trait-bounds.md
10304 [unicode]: https://github.com/rust-lang/rfcs/blob/master/text/0446-es6-unicode-escapes.md
10305 [oibit]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md
10306 [macros]: https://github.com/rust-lang/rfcs/blob/master/text/0378-expr-macros.md
10307 [range]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md#indexing-and-slicing
10308 [arrays]: https://github.com/rust-lang/rfcs/blob/master/text/0520-new-array-repeat-syntax.md
10309 [show]: https://github.com/rust-lang/rfcs/blob/master/text/0504-show-stabilization.md
10310 [derive]: https://github.com/rust-lang/rfcs/blob/master/text/0534-deriving2derive.md
10311 [self]: https://github.com/rust-lang/rfcs/blob/master/text/0532-self-in-use.md
10312 [fb]: https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md
10313 [objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
10314 [assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
10315 [ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
10316 [trpl]: https://doc.rust-lang.org/book/index.html
10317 [rbe]: http://rustbyexample.com/
10320 Version 0.12.0 (2014-10-09)
10321 =============================
10323 * ~1900 changes, numerous bugfixes
10327 * The introductory documentation (now called The Rust Guide) has
10328 been completely rewritten, as have a number of supplementary
10330 * Rust's package manager, Cargo, continues to improve and is
10331 sometimes considered to be quite awesome.
10332 * Many API's in `std` have been reviewed and updated for
10333 consistency with the in-development Rust coding
10334 guidelines. The standard library documentation tracks
10335 stabilization progress.
10336 * Minor libraries have been moved out-of-tree to the rust-lang org
10337 on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can
10338 be installed with Cargo.
10339 * Lifetime elision allows lifetime annotations to be left off of
10340 function declarations in many common scenarios.
10341 * Rust now works on 64-bit Windows.
10344 * Indexing can be overloaded with the `Index` and `IndexMut`
10346 * The `if let` construct takes a branch only if the `let` pattern
10347 matches, currently behind the 'if_let' feature gate.
10348 * 'where clauses', a more flexible syntax for specifying trait
10349 bounds that is more aesthetic, have been added for traits and
10350 free functions. Where clauses will in the future make it
10351 possible to constrain associated types, which would be
10352 impossible with the existing syntax.
10353 * A new slicing syntax (e.g. `[0..4]`) has been introduced behind
10354 the 'slicing_syntax' feature gate, and can be overloaded with
10355 the `Slice` or `SliceMut` traits.
10356 * The syntax for matching of sub-slices has been changed to use a
10357 postfix `..` instead of prefix (.e.g. `[a, b, c..]`), for
10358 consistency with other uses of `..` and to future-proof
10359 potential additional uses of the syntax.
10360 * The syntax for matching inclusive ranges in patterns has changed
10361 from `0..3` to `0...4` to be consistent with the exclusive range
10362 syntax for slicing.
10363 * Matching of sub-slices in non-tail positions (e.g. `[a.., b,
10364 c]`) has been put behind the 'advanced_slice_patterns' feature
10365 gate and may be removed in the future.
10366 * Components of tuples and tuple structs can be extracted using
10367 the `value.0` syntax, currently behind the `tuple_indexing`
10369 * The `#[crate_id]` attribute is no longer supported; versioning
10370 is handled by the package manager.
10371 * Renaming crate imports are now written `extern crate foo as bar`
10372 instead of `extern crate bar = foo`.
10373 * Renaming use statements are now written `use foo as bar` instead
10374 of `use bar = foo`.
10375 * `let` and `match` bindings and argument names in macros are now
10377 * The new, more efficient, closure types ('unboxed closures') have
10378 been added under a feature gate, 'unboxed_closures'. These will
10379 soon replace the existing closure types, once higher-ranked
10380 trait lifetimes are added to the language.
10381 * `move` has been added as a keyword, for indicating closures
10382 that capture by value.
10383 * Mutation and assignment is no longer allowed in pattern guards.
10384 * Generic structs and enums can now have trait bounds.
10385 * The `Share` trait is now called `Sync` to free up the term
10386 'shared' to refer to 'shared reference' (the default reference
10388 * Dynamically-sized types have been mostly implemented,
10389 unifying the behavior of fat-pointer types with the rest of the
10391 * As part of dynamically-sized types, the `Sized` trait has been
10392 introduced, which qualifying types implement by default, and
10393 which type parameters expect by default. To specify that a type
10394 parameter does not need to be sized, write `<Sized? T>`. Most
10395 types are `Sized`, notable exceptions being unsized arrays
10396 (`[T]`) and trait types.
10397 * Closures can return `!`, as in `|| -> !` or `proc() -> !`.
10398 * Lifetime bounds can now be applied to type parameters and object
10400 * The old, reference counted GC type, `Gc<T>` which was once
10401 denoted by the `@` sigil, has finally been removed. GC will be
10402 revisited in the future.
10405 * Library documentation has been improved for a number of modules.
10406 * Bit-vectors, collections::bitv has been modernized.
10407 * The url crate is deprecated in favor of
10408 http://github.com/servo/rust-url, which can be installed with
10410 * Most I/O stream types can be cloned and subsequently closed from
10411 a different thread.
10412 * A `std::time::Duration` type has been added for use in I/O
10413 methods that rely on timers, as well as in the 'time' crate's
10414 `Timespec` arithmetic.
10415 * The runtime I/O abstraction layer that enabled the green thread
10416 scheduler to do non-thread-blocking I/O has been removed, along
10417 with the libuv-based implementation employed by the green thread
10418 scheduler. This will greatly simplify the future I/O work.
10419 * `collections::btree` has been rewritten to have a more
10420 idiomatic and efficient design.
10423 * rustdoc output now indicates the stability levels of API's.
10424 * The `--crate-name` flag can specify the name of the crate
10425 being compiled, like `#[crate_name]`.
10426 * The `-C metadata` specifies additional metadata to hash into
10427 symbol names, and `-C extra-filename` specifies additional
10428 information to put into the output filename, for use by the
10429 package manager for versioning.
10430 * debug info generation has continued to improve and should be
10431 more reliable under both gdb and lldb.
10432 * rustc has experimental support for compiling in parallel
10433 using the `-C codegen-units` flag.
10434 * rustc no longer encodes rpath information into binaries by
10438 * Stack usage has been optimized with LLVM lifetime annotations.
10439 * Official Rust binaries on Linux are more compatible with older
10440 kernels and distributions, built on CentOS 5.10.
10443 Version 0.11.0 (2014-07-02)
10444 ==========================
10446 * ~1700 changes, numerous bugfixes
10449 * ~[T] has been removed from the language. This type is superseded by
10451 * ~str has been removed from the language. This type is superseded by
10453 * ~T has been removed from the language. This type is superseded by the
10455 * @T has been removed from the language. This type is superseded by the
10456 standard library's std::gc::Gc<T> type.
10457 * Struct fields are now all private by default.
10458 * Vector indices and shift amounts are both required to be a `uint`
10459 instead of any integral type.
10460 * Byte character, byte string, and raw byte string literals are now all
10461 supported by prefixing the normal literal with a `b`.
10462 * Multiple ABIs are no longer allowed in an ABI string
10463 * The syntax for lifetimes on closures/procedures has been tweaked
10464 slightly: `<'a>|A, B|: 'b + K -> T`
10465 * Floating point modulus has been removed from the language; however it
10466 is still provided by a library implementation.
10467 * Private enum variants are now disallowed.
10468 * The `priv` keyword has been removed from the language.
10469 * A closure can no longer be invoked through a &-pointer.
10470 * The `use foo, bar, baz;` syntax has been removed from the language.
10471 * The transmute intrinsic no longer works on type parameters.
10472 * Statics now allow blocks/items in their definition.
10473 * Trait bounds are separated from objects with + instead of : now.
10474 * Objects can no longer be read while they are mutably borrowed.
10475 * The address of a static is now marked as insignificant unless the
10476 #[inline(never)] attribute is placed it.
10477 * The #[unsafe_destructor] attribute is now behind a feature gate.
10478 * Struct literals are no longer allowed in ambiguous positions such as
10479 if, while, match, and for..in.
10480 * Declaration of lang items and intrinsics are now feature-gated by
10482 * Integral literals no longer default to `int`, and floating point
10483 literals no longer default to `f64`. Literals must be suffixed with an
10484 appropriate type if inference cannot determine the type of the
10486 * The Box<T> type is no longer implicitly borrowed to &mut T.
10487 * Procedures are now required to not capture borrowed references.
10490 * The standard library is now a "facade" over a number of underlying
10491 libraries. This means that development on the standard library should
10492 be speedier due to smaller crates, as well as a clearer line between
10494 * A new library, libcore, lives under the standard library's facade
10495 which is Rust's "0-assumption" library, suitable for embedded and
10496 kernel development for example.
10497 * A regex crate has been added to the standard distribution. This crate
10498 includes statically compiled regular expressions.
10499 * The unwrap/unwrap_err methods on Result require a Show bound for
10500 better error messages.
10501 * The return types of the std::comm primitives have been centralized
10502 around the Result type.
10503 * A number of I/O primitives have gained the ability to time out their
10505 * A number of I/O primitives have gained the ability to close their
10506 reading/writing halves to cancel pending operations.
10507 * Reverse iterator methods have been removed in favor of `rev()` on
10508 their forward-iteration counterparts.
10509 * A bitflags! macro has been added to enable easy interop with C and
10510 management of bit flags.
10511 * A debug_assert! macro is now provided which is disabled when
10512 `--cfg ndebug` is passed to the compiler.
10513 * A graphviz crate has been added for creating .dot files.
10514 * The std::cast module has been migrated into std::mem.
10515 * The std::local_data api has been migrated from freestanding functions
10516 to being based on methods.
10517 * The Pod trait has been renamed to Copy.
10518 * jemalloc has been added as the default allocator for types.
10519 * The API for allocating memory has been changed to use proper alignment
10520 and sized deallocation
10521 * Connecting a TcpStream or binding a TcpListener is now based on a
10522 string address and a u16 port. This allows connecting to a hostname as
10524 * The Reader trait now contains a core method, read_at_least(), which
10525 correctly handles many repeated 0-length reads.
10526 * The process-spawning API is now centered around a builder-style
10528 * The :? printing qualifier has been moved from the standard library to
10529 an external libdebug crate.
10530 * Eq/Ord have been renamed to PartialEq/PartialOrd. TotalEq/TotalOrd
10531 have been renamed to Eq/Ord.
10532 * The select/plural methods have been removed from format!. The escapes
10533 for { and } have also changed from \{ and \} to {{ and }},
10535 * The TaskBuilder API has been re-worked to be a true builder, and
10536 extension traits for spawning native/green tasks have been added.
10539 * All breaking changes to the language or libraries now have their
10540 commit message annotated with `[breaking-change]` to allow for easy
10541 discovery of breaking changes.
10542 * The compiler will now try to suggest how to annotate lifetimes if a
10543 lifetime-related error occurs.
10544 * Debug info continues to be improved greatly with general bug fixes and
10545 better support for situations like link time optimization (LTO).
10546 * Usage of syntax extensions when cross-compiling has been fixed.
10547 * Functionality equivalent to GCC & Clang's -ffunction-sections,
10548 -fdata-sections and --gc-sections has been enabled by default
10549 * The compiler is now stricter about where it will load module files
10550 from when a module is declared via `mod foo;`.
10551 * The #[phase(syntax)] attribute has been renamed to #[phase(plugin)].
10552 Syntax extensions are now discovered via a "plugin registrar" type
10553 which will be extended in the future to other various plugins.
10554 * Lints have been restructured to allow for dynamically loadable lints.
10555 * A number of rustdoc improvements:
10556 * The HTML output has been visually redesigned.
10557 * Markdown is now powered by hoedown instead of sundown.
10558 * Searching heuristics have been greatly improved.
10559 * The search index has been reduced in size by a great amount.
10560 * Cross-crate documentation via `pub use` has been greatly improved.
10561 * Primitive types are now hyperlinked and documented.
10562 * Documentation has been moved from static.rust-lang.org/doc to
10564 * A new sandbox, play.rust-lang.org, is available for running and
10565 sharing rust code examples on-line.
10566 * Unused attributes are now more robustly warned about.
10567 * The dead_code lint now warns about unused struct fields.
10568 * Cross-compiling to iOS is now supported.
10569 * Cross-compiling to mipsel is now supported.
10570 * Stability attributes are now inherited by default and no longer apply
10571 to intra-crate usage, only inter-crate usage.
10572 * Error message related to non-exhaustive match expressions have been
10576 Version 0.10 (2014-04-03)
10577 =========================
10579 * ~1500 changes, numerous bugfixes
10582 * A new RFC process is now in place for modifying the language.
10583 * Patterns with `@`-pointers have been removed from the language.
10584 * Patterns with unique vectors (`~[T]`) have been removed from the
10586 * Patterns with unique strings (`~str`) have been removed from the
10588 * `@str` has been removed from the language.
10589 * `@[T]` has been removed from the language.
10590 * `@self` has been removed from the language.
10591 * `@Trait` has been removed from the language.
10592 * Headers on `~` allocations which contain `@` boxes inside the type for
10593 reference counting have been removed.
10594 * The semantics around the lifetimes of temporary expressions have changed,
10595 see #3511 and #11585 for more information.
10596 * Cross-crate syntax extensions are now possible, but feature gated. See
10597 #11151 for more information. This includes both `macro_rules!` macros as
10598 well as syntax extensions such as `format!`.
10599 * New lint modes have been added, and older ones have been turned on to be
10601 * Unnecessary parentheses
10602 * Uppercase statics
10604 * Uppercase variables
10605 * Publicly visible private types
10606 * `#[deriving]` with raw pointers
10607 * Unsafe functions can no longer be coerced to closures.
10608 * Various obscure macros such as `log_syntax!` are now behind feature gates.
10609 * The `#[simd]` attribute is now behind a feature gate.
10610 * Visibility is no longer allowed on `extern crate` statements, and
10611 unnecessary visibility (`priv`) is no longer allowed on `use` statements.
10612 * Trailing commas are now allowed in argument lists and tuple patterns.
10613 * The `do` keyword has been removed, it is now a reserved keyword.
10614 * Default type parameters have been implemented, but are feature gated.
10615 * Borrowed variables through captures in closures are now considered soundly.
10616 * `extern mod` is now `extern crate`
10617 * The `Freeze` trait has been removed.
10618 * The `Share` trait has been added for types that can be shared among
10620 * Labels in macros are now hygienic.
10621 * Expression/statement macro invocations can be delimited with `{}` now.
10622 * Treatment of types allowed in `static mut` locations has been tweaked.
10623 * The `*` and `.` operators are now overloadable through the `Deref` and
10625 * `~Trait` and `proc` no longer have `Send` bounds by default.
10626 * Partial type hints are now supported with the `_` type marker.
10627 * An `Unsafe` type was introduced for interior mutability. It is now
10628 considered undefined to transmute from `&T` to `&mut T` without using the
10630 * The #[linkage] attribute was implemented for extern statics/functions.
10631 * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
10632 * `Pod` was renamed to `Copy`.
10635 * The `libextra` library has been removed. It has now been decomposed into
10636 component libraries with smaller and more focused nuggets of
10637 functionality. The full list of libraries can be found on the
10638 documentation index page.
10639 * std: `std::condition` has been removed. All I/O errors are now propagated
10640 through the `Result` type. In order to assist with error handling, a
10641 `try!` macro for unwrapping errors with an early return and a lint for
10642 unused results has been added. See #12039 for more information.
10643 * std: The `vec` module has been renamed to `slice`.
10644 * std: A new vector type, `Vec<T>`, has been added in preparation for DST.
10645 This will become the only growable vector in the future.
10646 * std: `std::io` now has more public re-exports. Types such as `BufferedReader`
10647 are now found at `std::io::BufferedReader` instead of
10648 `std::io::buffered::BufferedReader`.
10649 * std: `print` and `println` are no longer in the prelude, the `print!` and
10650 `println!` macros are intended to be used instead.
10651 * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer
10652 attempts to statically prevent cycles.
10653 * std: The standard distribution is adopting the policy of pushing failure
10654 to the user rather than failing in libraries. Many functions (such as
10655 `slice::last()`) now return `Option<T>` instead of `T` + failing.
10656 * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new
10657 deriving mode: `#[deriving(Show)]`.
10658 * std: `ToStr` is now implemented for all types implementing `Show`.
10659 * std: The formatting trait methods now take `&self` instead of `&T`
10660 * std: The `invert()` method on iterators has been renamed to `rev()`
10661 * std: `std::num` has seen a reduction in the genericity of its traits,
10662 consolidating functionality into a few core traits.
10663 * std: Backtraces are now printed on task failure if the environment
10664 variable `RUST_BACKTRACE` is present.
10665 * std: Naming conventions for iterators have been standardized. More details
10666 can be found on the wiki's style guide.
10667 * std: `eof()` has been removed from the `Reader` trait. Specific types may
10668 still implement the function.
10669 * std: Networking types are now cloneable to allow simultaneous reads/writes.
10670 * std: `assert_approx_eq!` has been removed
10671 * std: The `e` and `E` formatting specifiers for floats have been added to
10672 print them in exponential notation.
10673 * std: The `Times` trait has been removed
10674 * std: Indications of variance and opting out of builtin bounds is done
10675 through marker types in `std::kinds::marker` now
10676 * std: `hash` has been rewritten, `IterBytes` has been removed, and
10677 `#[deriving(Hash)]` is now possible.
10678 * std: `SharedChan` has been removed, `Sender` is now cloneable.
10679 * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`.
10680 * std: `Chan::new` is now `channel()`.
10681 * std: A new synchronous channel type has been implemented.
10682 * std: A `select!` macro is now provided for selecting over `Receiver`s.
10683 * std: `hashmap` and `trie` have been moved to `libcollections`
10684 * std: `run` has been rolled into `io::process`
10685 * std: `assert_eq!` now uses `{}` instead of `{:?}`
10686 * std: The equality and comparison traits have seen some reorganization.
10687 * std: `rand` has moved to `librand`.
10688 * std: `to_{lower,upper}case` has been implemented for `char`.
10689 * std: Logging has been moved to `liblog`.
10690 * collections: `HashMap` has been rewritten for higher performance and less
10692 * native: The default runtime is now `libnative`. If `libgreen` is desired,
10693 it can be booted manually. The runtime guide has more information and
10695 * native: All I/O functionality except signals has been implemented.
10696 * green: Task spawning with `libgreen` has been optimized with stack caching
10697 and various trimming of code.
10698 * green: Tasks spawned by `libgreen` now have an unmapped guard page.
10699 * sync: The `extra::sync` module has been updated to modern rust (and moved
10700 to the `sync` library), tweaking and improving various interfaces while
10701 dropping redundant functionality.
10702 * sync: A new `Barrier` type has been added to the `sync` library.
10703 * sync: An efficient mutex for native and green tasks has been implemented.
10704 * serialize: The `base64` module has seen some improvement. It treats
10705 newlines better, has non-string error values, and has seen general
10707 * fourcc: A `fourcc!` macro was introduced
10708 * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a
10709 hexadecimal literal.
10712 * `rustpkg` has been deprecated and removed from the main repository. Its
10713 replacement, `cargo`, is under development.
10714 * Nightly builds of rust are now available
10715 * The memory usage of rustc has been improved many times throughout this
10717 * The build process supports disabling rpath support for the rustc binary
10719 * Code generation has improved in some cases, giving more information to the
10720 LLVM optimization passes to enable more extensive optimizations.
10721 * Debuginfo compatibility with lldb on OSX has been restored.
10722 * The master branch is now gated on an android bot, making building for
10723 android much more reliable.
10724 * Output flags have been centralized into one `--emit` flag.
10725 * Crate type flags have been centralized into one `--crate-type` flag.
10726 * Codegen flags have been consolidated behind a `-C` flag.
10727 * Linking against outdated crates now has improved error messages.
10728 * Error messages with lifetimes will often suggest how to annotate the
10729 function to fix the error.
10730 * Many more types are documented in the standard library, and new guides
10732 * Many `rustdoc` improvements:
10733 * code blocks are syntax highlighted.
10734 * render standalone markdown files.
10735 * the --test flag tests all code blocks by default.
10736 * exported macros are displayed.
10737 * re-exported types have their documentation inlined at the location of the
10739 * search works across crates that have been rendered to the same output
10743 Version 0.9 (2014-01-09)
10744 ==========================
10746 * ~1800 changes, numerous bugfixes
10749 * The `float` type has been removed. Use `f32` or `f64` instead.
10750 * A new facility for enabling experimental features (feature gating) has
10751 been added, using the crate-level `#[feature(foo)]` attribute.
10752 * Managed boxes (@) are now behind a feature gate
10753 (`#[feature(managed_boxes)]`) in preparation for future removal. Use the
10754 standard library's `Gc` or `Rc` types instead.
10755 * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
10756 * Jumping back to the top of a loop is now done with `continue` instead of
10758 * Strings can no longer be mutated through index assignment.
10759 * Raw strings can be created via the basic `r"foo"` syntax or with matched
10760 hash delimiters, as in `r###"foo"###`.
10761 * `~fn` is now written `proc (args) -> retval { ... }` and may only be
10763 * The `&fn` type is now written `|args| -> ret` to match the literal form.
10764 * `@fn`s have been removed.
10765 * `do` only works with procs in order to make it obvious what the cost
10767 * Single-element tuple-like structs can no longer be dereferenced to
10768 obtain the inner value. A more comprehensive solution for overloading
10769 the dereference operator will be provided in the future.
10770 * The `#[link(...)]` attribute has been replaced with
10771 `#[crate_id = "name#vers"]`.
10772 * Empty `impl`s must be terminated with empty braces and may not be
10773 terminated with a semicolon.
10774 * Keywords are no longer allowed as lifetime names; the `self` lifetime
10775 no longer has any special meaning.
10776 * The old `fmt!` string formatting macro has been removed.
10777 * `printf!` and `printfln!` (old-style formatting) removed in favor of
10778 `print!` and `println!`.
10779 * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
10780 * The `extern mod foo (name = "bar")` syntax has been removed. Use
10781 `extern mod foo = "bar"` instead.
10782 * New reserved keywords: `alignof`, `offsetof`, `sizeof`.
10783 * Macros can have attributes.
10784 * Macros can expand to items with attributes.
10785 * Macros can expand to multiple items.
10786 * The `asm!` macro is feature-gated (`#[feature(asm)]`).
10787 * Comments may be nested.
10788 * Values automatically coerce to trait objects they implement, without
10790 * Enum discriminants are no longer an entire word but as small as needed to
10791 contain all the variants. The `repr` attribute can be used to override
10792 the discriminant size, as in `#[repr(int)]` for integer-sized, and
10793 `#[repr(C)]` to match C enums.
10794 * Non-string literals are not allowed in attributes (they never worked).
10795 * The FFI now supports variadic functions.
10796 * Octal numeric literals, as in `0o7777`.
10797 * The `concat!` syntax extension performs compile-time string concatenation.
10798 * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
10799 removed as Rust no longer uses segmented stacks.
10800 * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
10801 * Ignoring all fields of an enum variant or tuple-struct is done with `..`,
10802 not `*`; ignoring remaining fields of a struct is also done with `..`,
10803 not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
10804 * `rustc` supports the "win64" calling convention via `extern "win64"`.
10805 * `rustc` supports the "system" calling convention, which defaults to the
10806 preferred convention for the target platform, "stdcall" on 32-bit Windows,
10808 * The `type_overflow` lint (default: warn) checks literals for overflow.
10809 * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
10810 * The `attribute_usage` lint (default: warn) warns about unknown
10812 * The `unknown_features` lint (default: warn) warns about unknown
10814 * The `dead_code` lint (default: warn) checks for dead code.
10815 * Rust libraries can be linked statically to one another
10816 * `#[link_args]` is behind the `link_args` feature gate.
10817 * Native libraries are now linked with `#[link(name = "foo")]`
10818 * Native libraries can be statically linked to a rust crate
10819 (`#[link(name = "foo", kind = "static")]`).
10820 * Native OS X frameworks are now officially supported
10821 (`#[link(name = "foo", kind = "framework")]`).
10822 * The `#[thread_local]` attribute creates thread-local (not task-local)
10823 variables. Currently behind the `thread_local` feature gate.
10824 * The `return` keyword may be used in closures.
10825 * Types that can be copied via a memcpy implement the `Pod` kind.
10826 * The `cfg` attribute can now be used on struct fields and enum variants.
10829 * std: The `option` and `result` API's have been overhauled to make them
10830 simpler, more consistent, and more composable.
10831 * std: The entire `std::io` module has been replaced with one that is
10832 more comprehensive and that properly interfaces with the underlying
10833 scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
10835 * std: `io::util` contains a number of useful implementations of
10836 `Reader` and `Writer`, including `NullReader`, `NullWriter`,
10837 `ZeroReader`, `TeeReader`.
10838 * std: The reference counted pointer type `extra::rc` moved into std.
10839 * std: The `Gc` type in the `gc` module will replace `@` (it is currently
10840 just a wrapper around it).
10841 * std: The `Either` type has been removed.
10842 * std: `fmt::Default` can be implemented for any type to provide default
10843 formatting to the `format!` macro, as in `format!("{}", myfoo)`.
10844 * std: The `rand` API continues to be tweaked.
10845 * std: The `rust_begin_unwind` function, useful for inserting breakpoints
10846 on failure in gdb, is now named `rust_fail`.
10847 * std: The `each_key` and `each_value` methods on `HashMap` have been
10848 replaced by the `keys` and `values` iterators.
10849 * std: Functions dealing with type size and alignment have moved from the
10850 `sys` module to the `mem` module.
10851 * std: The `path` module was written and API changed.
10852 * std: `str::from_utf8` has been changed to cast instead of allocate.
10853 * std: `starts_with` and `ends_with` methods added to vectors via the
10854 `ImmutableEqVector` trait, which is in the prelude.
10855 * std: Vectors can be indexed with the `get_opt` method, which returns `None`
10856 if the index is out of bounds.
10857 * std: Task failure no longer propagates between tasks, as the model was
10858 complex, expensive, and incompatible with thread-based tasks.
10859 * std: The `Any` type can be used for dynamic typing.
10860 * std: `~Any` can be passed to the `fail!` macro and retrieved via
10862 * std: Methods that produce iterators generally do not have an `_iter`
10864 * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
10865 roots (mutable fields, etc.). Use instead of e.g. `@mut`.
10866 * std: `util::ignore` renamed to `prelude::drop`.
10867 * std: Slices have `sort` and `sort_by` methods via the `MutableVector`
10869 * std: `vec::raw` has seen a lot of cleanup and API changes.
10870 * std: The standard library no longer includes any C++ code, and very
10871 minimal C, eliminating the dependency on libstdc++.
10872 * std: Runtime scheduling and I/O functionality has been factored out into
10873 extensible interfaces and is now implemented by two different crates:
10874 libnative, for native threading and I/O; and libgreen, for green threading
10875 and I/O. This paves the way for using the standard library in more limited
10876 embedded environments.
10877 * std: The `comm` module has been rewritten to be much faster, have a
10878 simpler, more consistent API, and to work for both native and green
10880 * std: All libuv dependencies have been moved into the rustuv crate.
10881 * native: New implementations of runtime scheduling on top of OS threads.
10882 * native: New native implementations of TCP, UDP, file I/O, process spawning,
10884 * green: The green thread scheduler and message passing types are almost
10885 entirely lock-free.
10886 * extra: The `flatpipes` module had bitrotted and was removed.
10887 * extra: All crypto functions have been removed and Rust now has a policy of
10888 not reimplementing crypto in the standard library. In the future crypto
10889 will be provided by external crates with bindings to established libraries.
10890 * extra: `c_vec` has been modernized.
10891 * extra: The `sort` module has been removed. Use the `sort` method on
10895 * The `rust` and `rusti` commands have been removed, due to lack of
10897 * `rustdoc` was completely rewritten.
10898 * `rustdoc` can test code examples in documentation.
10899 * `rustpkg` can test packages with the argument, 'test'.
10900 * `rustpkg` supports arbitrary dependencies, including C libraries.
10901 * `rustc`'s support for generating debug info is improved again.
10902 * `rustc` has better error reporting for unbalanced delimiters.
10903 * `rustc`'s JIT support was removed due to bitrot.
10904 * Executables and static libraries can be built with LTO (-Z lto)
10905 * `rustc` adds a `--dep-info` flag for communicating dependencies to
10909 Version 0.8 (2013-09-26)
10910 ============================
10912 * ~2200 changes, numerous bugfixes
10915 * The `for` loop syntax has changed to work with the `Iterator` trait.
10916 * At long last, unwinding works on Windows.
10917 * Default methods are ready for use.
10918 * Many trait inheritance bugs fixed.
10919 * Owned and borrowed trait objects work more reliably.
10920 * `copy` is no longer a keyword. It has been replaced by the `Clone` trait.
10921 * rustc can omit emission of code for the `debug!` macro if it is passed
10923 * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look
10924 for foo.rs, then foo/mod.rs, and will generate an error when both are
10926 * Strings no longer contain trailing nulls. The new `std::c_str` module
10927 provides new mechanisms for converting to C strings.
10928 * The type of foreign functions is now `extern "C" fn` instead of `*u8'.
10929 * The FFI has been overhauled such that foreign functions are called directly,
10930 instead of through a stack-switching wrapper.
10931 * Calling a foreign function must be done through a Rust function with the
10932 `#[fixed_stack_segment]` attribute.
10933 * The `externfn!` macro can be used to declare both a foreign function and
10934 a `#[fixed_stack_segment]` wrapper at once.
10935 * `pub` and `priv` modifiers on `extern` blocks are no longer parsed.
10936 * `unsafe` is no longer allowed on extern fns - they are all unsafe.
10937 * `priv` is disallowed everywhere except for struct fields and enum variants.
10938 * `&T` (besides `&'static T`) is no longer allowed in `@T`.
10939 * `ref` bindings in irrefutable patterns work correctly now.
10940 * `char` is now prevented from containing invalid code points.
10941 * Casting to `bool` is no longer allowed.
10942 * `\0` is now accepted as an escape in chars and strings.
10943 * `yield` is a reserved keyword.
10944 * `typeof` is a reserved keyword.
10945 * Crates may be imported by URL with `extern mod foo = "url";`.
10946 * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }`
10947 * Static vectors can be initialized with repeating elements,
10948 e.g. `static foo: [u8, .. 100]: [0, .. 100];`.
10949 * Static structs can be initialized with functional record update,
10950 e.g. `static foo: Foo = Foo { a: 5, .. bar };`.
10951 * `cfg!` can be used to conditionally execute code based on the crate
10952 configuration, similarly to `#[cfg(...)]`.
10953 * The `unnecessary_qualification` lint detects unneeded module
10954 prefixes (default: allow).
10955 * Arithmetic operations have been implemented on the SIMD types in
10956 `std::unstable::simd`.
10957 * Exchange allocation headers were removed, reducing memory usage.
10958 * `format!` implements a completely new, extensible, and higher-performance
10959 string formatting system. It will replace `fmt!`.
10960 * `print!` and `println!` write formatted strings (using the `format!`
10961 extension) to stdout.
10962 * `write!` and `writeln!` write formatted strings (using the `format!`
10963 extension) to the new Writers in `std::rt::io`.
10964 * The library section in which a function or static is placed may
10965 be specified with `#[link_section = "..."]`.
10966 * The `proto!` syntax extension for defining bounded message protocols
10968 * `macro_rules!` is hygienic for `let` declarations.
10969 * The `#[export_name]` attribute specifies the name of a symbol.
10970 * `unreachable!` can be used to indicate unreachable code, and fails
10974 * std: Transitioned to the new runtime, written in Rust.
10975 * std: Added an experimental I/O library, `rt::io`, based on the new
10977 * std: A new generic `range` function was added to the prelude, replacing
10978 `uint::range` and friends.
10979 * std: `range_rev` no longer exists. Since range is an iterator it can be
10980 reversed with `range(lo, hi).invert()`.
10981 * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default`
10982 renamed to `unwrap_or`.
10983 * std: The `iterator` module was renamed to `iter`.
10984 * std: Integral types now support the `checked_add`, `checked_sub`, and
10985 `checked_mul` operations for detecting overflow.
10986 * std: Many methods in `str`, `vec`, `option, `result` were renamed for
10988 * std: Methods are standardizing on conventions for casting methods:
10989 `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary
10991 * std: The `CString` type in `c_str` provides new ways to convert to and
10993 * std: `DoubleEndedIterator` can yield elements in two directions.
10994 * std: The `mut_split` method on vectors partitions an `&mut [T]` into
10996 * std: `str::from_bytes` renamed to `str::from_utf8`.
10997 * std: `pop_opt` and `shift_opt` methods added to vectors.
10998 * std: The task-local data interface no longer uses @, and keys are
10999 no longer function pointers.
11000 * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`.
11001 * std: Added `SharedPort` to `comm`.
11002 * std: `Eq` has a default method for `ne`; only `eq` is required
11003 in implementations.
11004 * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt`
11005 is required in implementations.
11006 * std: `is_utf8` performance is improved, impacting many string functions.
11007 * std: `os::MemoryMap` provides cross-platform mmap.
11008 * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that
11009 are not 'in-bounds' are considered undefined.
11010 * std: Many freestanding functions in `vec` removed in favor of methods.
11011 * std: Many freestanding functions on scalar types removed in favor of
11013 * std: Many options to task builders were removed since they don't make
11014 sense in the new scheduler design.
11015 * std: More containers implement `FromIterator` so can be created by the
11017 * std: More complete atomic types in `unstable::atomics`.
11018 * std: `comm::PortSet` removed.
11019 * std: Mutating methods in the `Set` and `Map` traits have been moved into
11020 the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
11021 `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
11022 default implementations.
11023 * std: Various `from_str` functions were removed in favor of a generic
11024 `from_str` which is available in the prelude.
11025 * std: `util::unreachable` removed in favor of the `unreachable!` macro.
11026 * extra: `dlist`, the doubly-linked list was modernized.
11027 * extra: Added a `hex` module with `ToHex` and `FromHex` traits.
11028 * extra: Added `glob` module, replacing `std::os::glob`.
11029 * extra: `rope` was removed.
11030 * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`.
11031 * extra: `net`, and `timer` were removed. The experimental replacements
11032 are `std::rt::io::net` and `std::rt::io::timer`.
11033 * extra: Iterators implemented for `SmallIntMap`.
11034 * extra: Iterators implemented for `Bitv` and `BitvSet`.
11035 * extra: `SmallIntSet` removed. Use `BitvSet`.
11036 * extra: Performance of JSON parsing greatly improved.
11037 * extra: `semver` updated to SemVer 2.0.0.
11038 * extra: `term` handles more terminals correctly.
11039 * extra: `dbg` module removed.
11040 * extra: `par` module removed.
11041 * extra: `future` was cleaned up, with some method renames.
11042 * extra: Most free functions in `getopts` were converted to methods.
11045 * rustc's debug info generation (`-Z debug-info`) is greatly improved.
11046 * rustc accepts `--target-cpu` to compile to a specific CPU architecture,
11047 similarly to gcc's `--march` flag.
11048 * rustc's performance compiling small crates is much better.
11049 * rustpkg has received many improvements.
11050 * rustpkg supports git tags as package IDs.
11051 * rustpkg builds into target-specific directories so it can be used for
11053 * The number of concurrent test tasks is controlled by the environment
11054 variable RUST_TEST_TASKS.
11055 * The test harness can now report metrics for benchmarks.
11056 * All tools have man pages.
11057 * Programs compiled with `--test` now support the `-h` and `--help` flags.
11058 * The runtime uses jemalloc for allocations.
11059 * Segmented stacks are temporarily disabled as part of the transition to
11060 the new runtime. Stack overflows are possible!
11061 * A new documentation backend, rustdoc_ng, is available for use. It is
11062 still invoked through the normal `rustdoc` command.
11065 Version 0.7 (2013-07-03)
11066 =======================
11068 * ~2000 changes, numerous bugfixes
11071 * `impl`s no longer accept a visibility qualifier. Put them on methods
11073 * The borrow checker has been rewritten with flow-sensitivity, fixing
11074 many bugs and inconveniences.
11075 * The `self` parameter no longer implicitly means `&'self self`,
11076 and can be explicitly marked with a lifetime.
11077 * Overloadable compound operators (`+=`, etc.) have been temporarily
11078 removed due to bugs.
11079 * The `for` loop protocol now requires `for`-iterators to return `bool`
11080 so they compose better.
11081 * The `Durable` trait is replaced with the `'static` bounds.
11082 * Trait default methods work more often.
11083 * Structs with the `#[packed]` attribute have byte alignment and
11084 no padding between fields.
11085 * Type parameters bound by `Copy` must now be copied explicitly with
11086 the `copy` keyword.
11087 * It is now illegal to move out of a dereferenced unsafe pointer.
11088 * `Option<~T>` is now represented as a nullable pointer.
11089 * `@mut` does dynamic borrow checks correctly.
11090 * The `main` function is only detected at the topmost level of the crate.
11091 The `#[main]` attribute is still valid anywhere.
11092 * Struct fields may no longer be mutable. Use inherited mutability.
11093 * The `#[no_send]` attribute makes a type that would otherwise be
11095 * The `#[no_freeze]` attribute makes a type that would otherwise be
11097 * Unbounded recursion will abort the process after reaching the limit
11098 specified by the `RUST_MAX_STACK` environment variable (default: 1GB).
11099 * The `vecs_implicitly_copyable` lint mode has been removed. Vectors
11100 are never implicitly copyable.
11101 * `#[static_assert]` makes compile-time assertions about static bools.
11102 * At long last, 'argument modes' no longer exist.
11103 * The rarely used `use mod` statement no longer exists.
11105 * Syntax extensions
11106 * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
11108 * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
11109 `Rand`, `Zero` and `ToStr` can all be automatically derived with
11110 `#[deriving(...)]`.
11111 * The `bytes!` macro returns a vector of bytes for string, u8, char,
11112 and unsuffixed integer literals.
11115 * The `core` crate was renamed to `std`.
11116 * The `std` crate was renamed to `extra`.
11117 * More and improved documentation.
11118 * std: `iterator` module for external iterator objects.
11119 * Many old-style (internal, higher-order function) iterators replaced by
11120 implementations of `Iterator`.
11121 * std: Many old internal vector and string iterators,
11122 incl. `any`, `all`. removed.
11123 * std: The `finalize` method of `Drop` renamed to `drop`.
11124 * std: The `drop` method now takes `&mut self` instead of `&self`.
11125 * std: The prelude no longer re-exports any modules, only types and traits.
11126 * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
11127 `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
11128 * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,
11129 `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`.
11130 * std: Tuple traits and accessors defined for up to 12-tuples, e.g.
11131 `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
11132 * std: Many types implement `Clone`.
11133 * std: `path` type renamed to `Path`.
11134 * std: `mut` module and `Mut` type removed.
11135 * std: Many standalone functions removed in favor of methods and iterators
11136 in `vec`, `str`. In the future methods will also work as functions.
11137 * std: `reinterpret_cast` removed. Use `transmute`.
11138 * std: ascii string handling in `std::ascii`.
11139 * std: `Rand` is implemented for ~/@.
11140 * std: `run` module for spawning processes overhauled.
11141 * std: Various atomic types added to `unstable::atomic`.
11142 * std: Various types implement `Zero`.
11143 * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`.
11144 * std: Borrowed pointer functions moved from `ptr` to `borrow`.
11145 * std: Added `os::mkdir_recursive`.
11146 * std: Added `os::glob` function performs filesystems globs.
11147 * std: `FuzzyEq` renamed to `ApproxEq`.
11148 * std: `Map` now defines `pop` and `swap` methods.
11149 * std: `Cell` constructors converted to static methods.
11150 * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
11151 * extra: `flate` module moved from `std` to `extra`.
11152 * extra: `fileinput` module for iterating over a series of files.
11153 * extra: `Complex` number type and `complex` module.
11154 * extra: `Rational` number type and `rational` module.
11155 * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
11156 * extra: `term` uses terminfo now, is more correct.
11157 * extra: `arc` functions converted to methods.
11158 * extra: Implementation of fixed output size variations of SHA-2.
11161 * `unused_variables` lint mode for unused variables (default: warn).
11162 * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
11164 * `unused_mut` lint mode for identifying unused `mut` qualifiers
11166 * `dead_assignment` lint mode for unread variables (default: warn).
11167 * `unnecessary_allocation` lint mode detects some heap allocations that are
11168 immediately borrowed so could be written without allocating (default: warn).
11169 * `missing_doc` lint mode (default: allow).
11170 * `unreachable_code` lint mode (default: warn).
11171 * The `rusti` command has been rewritten and a number of bugs addressed.
11172 * rustc outputs in color on more terminals.
11173 * rustc accepts a `--link-args` flag to pass arguments to the linker.
11174 * rustc accepts a `-Z print-link-args` flag for debugging linkage.
11175 * Compiling with `-g` will make the binary record information about
11176 dynamic borrowcheck failures for debugging.
11177 * rustdoc has a nicer stylesheet.
11178 * Various improvements to rustdoc.
11179 * Improvements to rustpkg (see the detailed release notes).
11182 Version 0.6 (2013-04-03)
11183 ========================
11185 * ~2100 changes, numerous bugfixes
11188 * The self type parameter in traits is now spelled `Self`
11189 * The `self` parameter in trait and impl methods must now be explicitly
11190 named (for example: `fn f(&self) { }`). Implicit self is deprecated.
11191 * Static methods no longer require the `static` keyword and instead
11192 are distinguished by the lack of a `self` parameter
11193 * Replaced the `Durable` trait with the `'static` lifetime
11194 * The old closure type syntax with the trailing sigil has been
11195 removed in favor of the more consistent leading sigil
11196 * `super` is a keyword, and may be prefixed to paths
11197 * Trait bounds are separated with `+` instead of whitespace
11198 * Traits are implemented with `impl Trait for Type`
11199 instead of `impl Type: Trait`
11200 * Lifetime syntax is now `&'l foo` instead of `&l/foo`
11201 * The `export` keyword has finally been removed
11202 * The `move` keyword has been removed (see "Semantic changes")
11203 * The interior mutability qualifier on vectors, `[mut T]`, has been
11204 removed. Use `&mut [T]`, etc.
11205 * `mut` is no longer valid in `~mut T`. Use inherited mutability
11206 * `fail` is no longer a keyword. Use `fail!()`
11207 * `assert` is no longer a keyword. Use `assert!()`
11208 * `log` is no longer a keyword. use `debug!`, etc.
11209 * 1-tuples may be represented as `(T,)`
11210 * Struct fields may no longer be `mut`. Use inherited mutability,
11211 `@mut T`, `core::mut` or `core::cell`
11212 * `extern mod { ... }` is no longer valid syntax for foreign
11213 function modules. Use extern blocks: `extern { ... }`
11214 * Newtype enums removed. Use tuple-structs.
11215 * Trait implementations no longer support visibility modifiers
11216 * Pattern matching over vectors improved and expanded
11217 * `const` renamed to `static` to correspond to lifetime name,
11218 and make room for future `static mut` unsafe mutable globals.
11219 * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
11220 * `Clone` implementations can be automatically generated with
11221 `#[deriving(Clone)]`
11222 * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
11223 instead of `foo as Bar`.
11224 * Fixed length vector types are now written as `[int, .. 3]`
11225 instead of `[int * 3]`.
11226 * Fixed length vector types can express the length as a constant
11227 expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`)
11230 * Types with owned pointers or custom destructors move by default,
11231 eliminating the `move` keyword
11232 * All foreign functions are considered unsafe
11233 * &mut is now unaliasable
11234 * Writes to borrowed @mut pointers are prevented dynamically
11236 * The name of the main function can be customized using #[main]
11237 * The default type of an inferred closure is &fn instead of @fn
11238 * `use` statements may no longer be "chained" - they cannot import
11239 identifiers imported by previous `use` statements
11240 * `use` statements are crate relative, importing from the "top"
11241 of the crate by default. Paths may be prefixed with `super::`
11242 or `self::` to change the search behavior.
11243 * Method visibility is inherited from the implementation declaration
11244 * Structural records have been removed
11245 * Many more types can be used in static items, including enums
11246 'static-lifetime pointers and vectors
11247 * Pattern matching over vectors improved and expanded
11248 * Typechecking of closure types has been overhauled to
11249 improve inference and eliminate unsoundness
11250 * Macros leave scope at the end of modules, unless that module is
11251 tagged with #[macro_escape]
11254 * Added big integers to `std::bigint`
11255 * Removed `core::oldcomm` module
11256 * Added pipe-based `core::comm` module
11257 * Numeric traits have been reorganized under `core::num`
11258 * `vec::slice` finally returns a slice
11259 * `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
11260 * Containers reorganized around traits in `core::container`
11261 * `core::dvec` removed, `~[T]` is a drop-in replacement
11262 * `core::send_map` renamed to `core::hashmap`
11263 * `std::map` removed; replaced with `core::hashmap`
11264 * `std::treemap` reimplemented as an owned balanced tree
11265 * `std::deque` and `std::smallintmap` reimplemented as owned containers
11266 * `core::trie` added as a fast ordered map for integer keys
11267 * Set types added to `core::hashmap`, `core::trie` and `std::treemap`
11268 * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
11269 overload the comparison operators, whereas `TotalOrd` is used
11270 by certain container types
11273 * Replaced the 'cargo' package manager with 'rustpkg'
11274 * Added all-purpose 'rust' tool
11275 * `rustc --test` now supports benchmarks with the `#[bench]` attribute
11276 * rustc now *attempts* to offer spelling suggestions
11277 * Improved support for ARM and Android
11278 * Preliminary MIPS backend
11279 * Improved foreign function ABI implementation for x86, x86_64
11280 * Various memory usage improvements
11281 * Rust code may be embedded in foreign code under limited circumstances
11282 * Inline assembler supported by new asm!() syntax extension.
11285 Version 0.5 (2012-12-21)
11286 ===========================
11288 * ~900 changes, numerous bugfixes
11291 * Removed `<-` move operator
11292 * Completed the transition from the `#fmt` extension syntax to `fmt!`
11293 * Removed old fixed length vector syntax - `[T]/N`
11294 * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc.
11295 * Macros may now expand to items and statements
11296 * `a.b()` is always parsed as a method call, never as a field projection
11297 * `Eq` and `IterBytes` implementations can be automatically generated
11298 with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively
11299 * Removed the special crate language for `.rc` files
11300 * Function arguments may consist of any irrefutable pattern
11303 * `&` and `~` pointers may point to objects
11304 * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums.
11305 * Enum variants may be structs
11306 * Destructors can be added to all nominal types with the Drop trait
11307 * Structs and nullary enum variants may be constants
11308 * Values that cannot be implicitly copied are now automatically moved
11309 without writing `move` explicitly
11310 * `&T` may now be coerced to `*T`
11311 * Coercions happen in `let` statements as well as function calls
11312 * `use` statements now take crate-relative paths
11313 * The module and type namespaces have been merged so that static
11314 method names can be resolved under the trait in which they are
11317 * Improved support for language features
11318 * Trait inheritance works in many scenarios
11319 * More support for explicit self arguments in methods - `self`, `&self`
11320 `@self`, and `~self` all generally work as expected
11321 * Static methods work in more situations
11322 * Experimental: Traits may declare default methods for the implementations
11326 * New condition handling system in `core::condition`
11327 * Timsort added to `std::sort`
11328 * New priority queue, `std::priority_queue`
11329 * Pipes for serializable types, `std::flatpipes'
11330 * Serialization overhauled to be trait-based
11331 * Expanded `getopts` definitions
11332 * Moved futures to `std`
11333 * More functions are pure now
11334 * `core::comm` renamed to `oldcomm`. Still deprecated
11335 * `rustdoc` and `cargo` are libraries now
11338 * Added a preliminary REPL, `rusti`
11339 * License changed from MIT to dual MIT/APL2
11342 Version 0.4 (2012-10-15)
11343 ==========================
11345 * ~2000 changes, numerous bugfixes
11348 * All keywords are now strict and may not be used as identifiers anywhere
11349 * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send',
11350 'of', 'with', 'to', 'class'.
11351 * Classes are replaced with simpler structs
11352 * Explicit method self types
11353 * `ret` became `return` and `alt` became `match`
11354 * `import` is now `use`; `use is now `extern mod`
11355 * `extern mod { ... }` is now `extern { ... }`
11356 * `use mod` is the recommended way to import modules
11357 * `pub` and `priv` replace deprecated export lists
11358 * The syntax of `match` pattern arms now uses fat arrow (=>)
11359 * `main` no longer accepts an args vector; use `os::args` instead
11362 * Trait implementations are now coherent, ala Haskell typeclasses
11363 * Trait methods may be static
11364 * Argument modes are deprecated
11365 * Borrowed pointers are much more mature and recommended for use
11366 * Strings and vectors in the static region are stored in constant memory
11367 * Typestate was removed
11368 * Resolution rewritten to be more reliable
11369 * Support for 'dual-mode' data structures (freezing and thawing)
11372 * Most binary operators can now be overloaded via the traits in
11374 * `std::net::url` for representing URLs
11375 * Sendable hash maps in `core::send_map`
11376 * `core::task' gained a (currently unsafe) task-local storage API
11379 * An efficient new intertask communication primitive called the pipe,
11380 along with a number of higher-level channel types, in `core::pipes`
11381 * `std::arc`, an atomically reference counted, immutable, shared memory
11383 * `std::sync`, various exotic synchronization tools based on arcs and pipes
11384 * Futures are now based on pipes and sendable
11385 * More robust linked task failure
11386 * Improved task builder API
11389 * Improved error reporting
11390 * Preliminary JIT support
11391 * Preliminary work on precise GC
11392 * Extensive architectural improvements to rustc
11393 * Begun a transition away from buggy C++-based reflection (shape) code to
11394 Rust-based (visitor) code
11395 * All hash functions and tables converted to secure, randomized SipHash
11398 Version 0.3 (2012-07-12)
11399 ========================
11401 * ~1900 changes, numerous bugfixes
11403 * New coding conveniences
11404 * Integer-literal suffix inference
11405 * Per-item control over warnings, errors
11406 * #[cfg(windows)] and #[cfg(unix)] attributes
11407 * Documentation comments
11408 * More compact closure syntax
11409 * 'do' expressions for treating higher-order functions as
11411 * *-patterns (wildcard extended to all constructor fields)
11414 * Name resolution pass and exhaustiveness checker rewritten
11415 * Region pointers and borrow checking supersede alias
11417 * Init-ness checking is now provided by a region-based liveness
11418 pass instead of the typestate pass; same for last-use analysis
11419 * Extensive work on region pointers
11421 * Experimental new language features
11422 * Slices and fixed-size, interior-allocated vectors
11423 * #!-comments for lang versioning, shell execution
11424 * Destructors and iface implementation for classes;
11425 type-parameterized classes and class methods
11426 * 'const' type kind for types that can be used to implement
11427 shared-memory concurrency patterns
11431 * Removal of various obsolete features
11432 * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind',
11433 'crust', 'native' (now 'extern'), 'cont' (now 'again')
11435 * Constructs: do-while loops ('do' repurposed), fn binding,
11436 resources (replaced by destructors)
11438 * Compiler reorganization
11439 * Syntax-layer of compiler split into separate crate
11440 * Clang (from LLVM project) integrated into build
11441 * Typechecker split into sub-modules
11444 * New time functions
11445 * Extension methods for many built-in types
11446 * Arc: atomic-refcount read-only / exclusive-use shared cells
11447 * Par: parallel map and search routines
11448 * Extensive work on libuv interface
11449 * Much vector code moved to libraries
11450 * Syntax extensions: #line, #col, #file, #mod, #stringify,
11451 #include, #include_str, #include_bin
11453 * Tool improvements
11454 * Cargo automatically resolves dependencies
11457 Version 0.2 (2012-03-29)
11458 =========================
11460 * >1500 changes, numerous bugfixes
11462 * New docs and doc tooling
11464 * New port: FreeBSD x86_64
11466 * Compilation model enhancements
11467 * Generics now specialized, multiply instantiated
11468 * Functions now inlined across separate crates
11470 * Scheduling, stack and threading fixes
11471 * Noticeably improved message-passing performance
11472 * Explicit schedulers
11476 * Experimental new language features
11477 * Operator overloading
11481 * Various language extensions
11482 * C-callback function types: 'crust fn ...'
11483 * Infinite-loop construct: 'loop { ... }'
11484 * Shorten 'mutable' to 'mut'
11485 * Required mutable-local qualifier: 'let mut ...'
11486 * Basic glob-exporting: 'export foo::*;'
11487 * Alt now exhaustive, 'alt check' for runtime-checked
11488 * Block-function form of 'for' loop, with 'break' and 'ret'.
11491 * AST quasi-quote syntax extension
11492 * Revived libuv interface
11493 * New modules: core::{future, iter}, std::arena
11494 * Merged per-platform std::{os*, fs*} to core::{libc, os}
11495 * Extensive cleanup, regularization in libstd, libcore
11498 Version 0.1 (2012-01-20)
11499 ===============================
11501 * Most language features work, including:
11502 * Unique pointers, unique closures, move semantics
11503 * Interface-constrained generics
11504 * Static interface dispatch
11506 * Multithread task scheduling
11507 * Typestate predicates
11508 * Failure unwinding, destructors
11509 * Pattern matching and destructuring assignment
11510 * Lightweight block-lambda syntax
11511 * Preliminary macro-by-example
11513 * Compiler works with the following configurations:
11514 * Linux: x86 and x86_64 hosts and targets
11515 * macOS: x86 and x86_64 hosts and targets
11516 * Windows: x86 hosts and targets
11518 * Cross compilation / multi-target configuration supported.
11520 * Preliminary API-documentation and package-management tools included.
11524 * Documentation is incomplete.
11526 * Performance is below intended target.
11528 * Standard library APIs are subject to extensive change, reorganization.
11530 * Language-level versioning is not yet operational - future code will
11531 break unexpectedly.