1 Version 1.61.0 (2022-05-19)
2 ==========================
7 - [`const fn` signatures can now include generic trait bounds][93827]
8 - [`const fn` signatures can now use `impl Trait` in argument and return position][93827]
9 - [Function pointers can now be created, cast, and passed around in a `const fn`][93827]
10 - [Recursive calls can now set the value of a function's opaque `impl Trait` return type][94081]
15 - [Linking modifier syntax in `#[link]` attributes and on the command line, as well as the `whole-archive` modifier specifically, are now supported][93901]
16 - [The `char` type is now described as UTF-32 in debuginfo][89887]
17 - The [`#[target_feature]`][target_feature] attribute [can now be used with aarch64 features][90621]
18 - X86 [`#[target_feature = "adx"]` is now stable][93745]
23 - [`ManuallyDrop<T>` is now documented to have the same layout as `T`][88375]
24 - [`#[ignore = "…"]` messages are printed when running tests][92714]
25 - [Consistently show absent stdio handles on Windows as NULL handles][93263]
26 - [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.
27 - [`Vec::from_raw_parts` is now less restrictive about its inputs][95016]
28 - [`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.
36 - [`VecDeque::retain_mut`]
37 - [`Write` for `Cursor<[u8; N]>`][cursor-write-array]
38 - [`std::os::unix::net::SocketAddr::from_pathname`]
39 - [`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.
40 - [`std::thread::JoinHandle::is_finished`]
42 These APIs are now usable in const contexts:
44 - [`<*const T>::offset` and `<*mut T>::offset`][ptr-offset]
45 - [`<*const T>::wrapping_offset` and `<*mut T>::wrapping_offset`][ptr-wrapping_offset]
46 - [`<*const T>::add` and `<*mut T>::add`][ptr-add]
47 - [`<*const T>::sub` and `<*mut T>::sub`][ptr-sub]
48 - [`<*const T>::wrapping_add` and `<*mut T>::wrapping_add`][ptr-wrapping_add]
49 - [`<*const T>::wrapping_sub` and `<*mut T>::wrapping_sub`][ptr-wrapping_sub]
50 - [`<[T]>::as_mut_ptr`][slice-as_mut_ptr]
51 - [`<[T]>::as_ptr_range`][slice-as_ptr_range]
52 - [`<[T]>::as_mut_ptr_range`][slice-as_mut_ptr_range]
57 No feature changes, but see compatibility notes.
62 - 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
63 - (more common) either be reordered to respect dependencies between them (if `a` depends on `b` then `a` should go first and `b` second)
64 - (less common) or be updated to use the [`+whole-archive`] modifier.
65 - [Catching a second unwind from FFI code while cleaning up from a Rust panic now causes the process to abort][92911]
66 - [Proc macros no longer see `ident` matchers wrapped in groups][92472]
67 - [The number of `#` in `r#` raw string literals is now required to be less than 256][95251]
68 - [When checking that a dyn type satisfies a trait bound, supertrait bounds are now enforced][92285]
69 - [`cargo vendor` now only accepts one value for each `--sync` flag][cargo/10448]
70 - [`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`.
71 - [bootstrap: static-libstdcpp is now enabled by default, and can now be disabled when llvm-tools is enabled][94832]
76 These changes provide no direct user facing benefits, but represent significant
77 improvements to the internals and overall performance of rustc
80 - [debuginfo: Refactor debuginfo generation for types][94261]
81 - [Remove the everybody loops pass][93913]
83 [88375]: https://github.com/rust-lang/rust/pull/88375/
84 [89887]: https://github.com/rust-lang/rust/pull/89887/
85 [90621]: https://github.com/rust-lang/rust/pull/90621/
86 [92285]: https://github.com/rust-lang/rust/pull/92285/
87 [92472]: https://github.com/rust-lang/rust/pull/92472/
88 [92697]: https://github.com/rust-lang/rust/pull/92697/
89 [92714]: https://github.com/rust-lang/rust/pull/92714/
90 [92911]: https://github.com/rust-lang/rust/pull/92911/
91 [93263]: https://github.com/rust-lang/rust/pull/93263/
92 [93745]: https://github.com/rust-lang/rust/pull/93745/
93 [93827]: https://github.com/rust-lang/rust/pull/93827/
94 [93901]: https://github.com/rust-lang/rust/pull/93901/
95 [93913]: https://github.com/rust-lang/rust/pull/93913/
96 [93965]: https://github.com/rust-lang/rust/pull/93965/
97 [94081]: https://github.com/rust-lang/rust/pull/94081/
98 [94261]: https://github.com/rust-lang/rust/pull/94261/
99 [94295]: https://github.com/rust-lang/rust/pull/94295/
100 [94832]: https://github.com/rust-lang/rust/pull/94832/
101 [95016]: https://github.com/rust-lang/rust/pull/95016/
102 [95251]: https://github.com/rust-lang/rust/pull/95251/
103 [`+whole-archive`]: https://doc.rust-lang.org/stable/rustc/command-line-arguments.html#linking-modifiers-whole-archive
104 [`Pin::static_mut`]: https://doc.rust-lang.org/stable/std/pin/struct.Pin.html#method.static_mut
105 [`Pin::static_ref`]: https://doc.rust-lang.org/stable/std/pin/struct.Pin.html#method.static_ref
106 [`Vec::retain_mut`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.retain_mut
107 [`VecDeque::retain_mut`]: https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.retain_mut
108 [`std::os::unix::net::SocketAddr::from_pathname`]: https://doc.rust-lang.org/stable/std/os/unix/net/struct.SocketAddr.html#method.from_pathname
109 [`std::process::ExitCode`]: https://doc.rust-lang.org/stable/std/process/struct.ExitCode.html
110 [`std::process::Termination`]: https://doc.rust-lang.org/stable/std/process/trait.Termination.html
111 [`std::thread::JoinHandle::is_finished`]: https://doc.rust-lang.org/stable/std/thread/struct.JoinHandle.html#method.is_finished
112 [cargo/10448]: https://github.com/rust-lang/cargo/pull/10448/
113 [cursor-write-array]: https://doc.rust-lang.org/stable/std/io/struct.Cursor.html#impl-Write-4
114 [link-attr]: https://doc.rust-lang.org/stable/reference/items/external-blocks.html#the-link-attribute
115 [ptr-add]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.add
116 [ptr-offset]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.offset
117 [ptr-sub]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.sub
118 [ptr-wrapping_add]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.wrapping_add
119 [ptr-wrapping_offset]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.wrapping_offset
120 [ptr-wrapping_sub]: https://doc.rust-lang.org/stable/std/primitive.pointer.html#method.wrapping_sub
121 [slice-as_mut_ptr]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.as_mut_ptr
122 [slice-as_mut_ptr_range]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.as_mut_ptr_range
123 [slice-as_ptr_range]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.as_ptr_range
124 [target_feature]: https://doc.rust-lang.org/reference/attributes/codegen.html#the-target_feature-attribute
127 Version 1.60.0 (2022-04-07)
128 ==========================
132 - [Stabilize `#[cfg(panic = "...")]` for either `"unwind"` or `"abort"`.][93658]
133 - [Stabilize `#[cfg(target_has_atomic = "...")]` for each integer size and `"ptr"`.][93824]
137 - [Enable combining `+crt-static` and `relocation-model=pic` on `x86_64-unknown-linux-gnu`][86374]
138 - [Fixes wrong `unreachable_pub` lints on nested and glob public reexport][87487]
139 - [Stabilize `-Z instrument-coverage` as `-C instrument-coverage`][90132]
140 - [Stabilize `-Z print-link-args` as `--print link-args`][91606]
141 - [Add new Tier 3 target `mips64-openwrt-linux-musl`\*][92300]
142 - [Add new Tier 3 target `armv7-unknown-linux-uclibceabi` (softfloat)\*][92383]
143 - [Fix invalid removal of newlines from doc comments][92357]
144 - [Add kernel target for RustyHermit][92670]
145 - [Deny mixing bin crate type with lib crate types][92933]
146 - [Make rustc use `RUST_BACKTRACE=full` by default][93566]
147 - [Upgrade to LLVM 14][93577]
149 \* Refer to Rust's [platform support page][platform-support-doc] for more
150 information on Rust's tiered platform support.
154 - [Guarantee call order for `sort_by_cached_key`][89621]
155 - [Improve `Duration::try_from_secs_f32`/`f64` accuracy by directly processing exponent and mantissa][90247]
156 - [Make `Instant::{duration_since, elapsed, sub}` saturating][89926]
157 - [Remove non-monotonic clocks workarounds in `Instant::now`][89926]
158 - [Make `BuildHasherDefault`, `iter::Empty` and `future::Pending` covariant][92630]
162 - [`Arc::new_cyclic`][arc_new_cyclic]
163 - [`Rc::new_cyclic`][rc_new_cyclic]
164 - [`slice::EscapeAscii`][slice_escape_ascii]
165 - [`<[u8]>::escape_ascii`][slice_u8_escape_ascii]
166 - [`u8::escape_ascii`][u8_escape_ascii]
167 - [`Vec::spare_capacity_mut`][vec_spare_capacity_mut]
168 - [`MaybeUninit::assume_init_drop`][assume_init_drop]
169 - [`MaybeUninit::assume_init_read`][assume_init_read]
170 - [`i8::abs_diff`][i8_abs_diff]
171 - [`i16::abs_diff`][i16_abs_diff]
172 - [`i32::abs_diff`][i32_abs_diff]
173 - [`i64::abs_diff`][i64_abs_diff]
174 - [`i128::abs_diff`][i128_abs_diff]
175 - [`isize::abs_diff`][isize_abs_diff]
176 - [`u8::abs_diff`][u8_abs_diff]
177 - [`u16::abs_diff`][u16_abs_diff]
178 - [`u32::abs_diff`][u32_abs_diff]
179 - [`u64::abs_diff`][u64_abs_diff]
180 - [`u128::abs_diff`][u128_abs_diff]
181 - [`usize::abs_diff`][usize_abs_diff]
182 - [`Display for io::ErrorKind`][display_error_kind]
183 - [`From<u8> for ExitCode`][from_u8_exit_code]
184 - [`Not for !` (the "never" type)][not_never]
185 - [_Op_`Assign<$t> for Wrapping<$t>`][wrapping_assign_ops]
186 - [`arch::is_aarch64_feature_detected!`][is_aarch64_feature_detected]
190 - [Port cargo from `toml-rs` to `toml_edit`][cargo/10086]
191 - [Stabilize `-Ztimings` as `--timings`][cargo/10245]
192 - [Stabilize namespaced and weak dependency features.][cargo/10269]
193 - [Accept more `cargo:rustc-link-arg-*` types from build script output.][cargo/10274]
194 - [cargo-new should not add ignore rule on Cargo.lock inside subdirs][cargo/10379]
198 - [Ship docs on Tier 2 platforms by reusing the closest Tier 1 platform docs][92800]
199 - [Drop rustc-docs from complete profile][93742]
200 - [bootstrap: tidy up flag handling for llvm build][93918]
204 - [Remove compiler-rt linking hack on Android][83822]
205 - [Mitigations for platforms with non-monotonic clocks have been removed from
206 `Instant::now`][89926]. On platforms that don't provide monotonic clocks, an
207 instant is not guaranteed to be greater than an earlier instant anymore.
208 - [`Instant::{duration_since, elapsed, sub}` do not panic anymore on underflow,
209 saturating to `0` instead][89926]. In the real world the panic happened mostly
210 on platforms with buggy monotonic clock implementations rather than catching
211 programming errors like reversing the start and end times. Such programming
212 errors will now results in `0` rather than a panic.
213 - In a future release we're planning to increase the baseline requirements for
214 the Linux kernel to version 3.2, and for glibc to version 2.17. We'd love
215 your feedback in [PR #95026][95026].
220 These changes provide no direct user facing benefits, but represent significant
221 improvements to the internals and overall performance of rustc
224 - [Switch all libraries to the 2021 edition][92068]
226 [83822]: https://github.com/rust-lang/rust/pull/83822
227 [86374]: https://github.com/rust-lang/rust/pull/86374
228 [87487]: https://github.com/rust-lang/rust/pull/87487
229 [89621]: https://github.com/rust-lang/rust/pull/89621
230 [89926]: https://github.com/rust-lang/rust/pull/89926
231 [90132]: https://github.com/rust-lang/rust/pull/90132
232 [90247]: https://github.com/rust-lang/rust/pull/90247
233 [91606]: https://github.com/rust-lang/rust/pull/91606
234 [92068]: https://github.com/rust-lang/rust/pull/92068
235 [92300]: https://github.com/rust-lang/rust/pull/92300
236 [92357]: https://github.com/rust-lang/rust/pull/92357
237 [92383]: https://github.com/rust-lang/rust/pull/92383
238 [92630]: https://github.com/rust-lang/rust/pull/92630
239 [92670]: https://github.com/rust-lang/rust/pull/92670
240 [92800]: https://github.com/rust-lang/rust/pull/92800
241 [92933]: https://github.com/rust-lang/rust/pull/92933
242 [93566]: https://github.com/rust-lang/rust/pull/93566
243 [93577]: https://github.com/rust-lang/rust/pull/93577
244 [93658]: https://github.com/rust-lang/rust/pull/93658
245 [93742]: https://github.com/rust-lang/rust/pull/93742
246 [93824]: https://github.com/rust-lang/rust/pull/93824
247 [93918]: https://github.com/rust-lang/rust/pull/93918
248 [95026]: https://github.com/rust-lang/rust/pull/95026
250 [cargo/10086]: https://github.com/rust-lang/cargo/pull/10086
251 [cargo/10245]: https://github.com/rust-lang/cargo/pull/10245
252 [cargo/10269]: https://github.com/rust-lang/cargo/pull/10269
253 [cargo/10274]: https://github.com/rust-lang/cargo/pull/10274
254 [cargo/10379]: https://github.com/rust-lang/cargo/pull/10379
256 [arc_new_cyclic]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.new_cyclic
257 [rc_new_cyclic]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.new_cyclic
258 [slice_escape_ascii]: https://doc.rust-lang.org/stable/std/slice/struct.EscapeAscii.html
259 [slice_u8_escape_ascii]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.escape_ascii
260 [u8_escape_ascii]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.escape_ascii
261 [vec_spare_capacity_mut]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.spare_capacity_mut
262 [assume_init_drop]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_drop
263 [assume_init_read]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_read
264 [i8_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.abs_diff
265 [i16_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.abs_diff
266 [i32_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.abs_diff
267 [i64_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.abs_diff
268 [i128_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.abs_diff
269 [isize_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.abs_diff
270 [u8_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.abs_diff
271 [u16_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.abs_diff
272 [u32_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.abs_diff
273 [u64_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.abs_diff
274 [u128_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.abs_diff
275 [usize_abs_diff]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.abs_diff
276 [display_error_kind]: https://doc.rust-lang.org/stable/std/io/enum.ErrorKind.html#impl-Display
277 [from_u8_exit_code]: https://doc.rust-lang.org/stable/std/process/struct.ExitCode.html#impl-From%3Cu8%3E
278 [not_never]: https://doc.rust-lang.org/stable/std/primitive.never.html#impl-Not
279 [wrapping_assign_ops]: https://doc.rust-lang.org/stable/std/num/struct.Wrapping.html#trait-implementations
280 [is_aarch64_feature_detected]: https://doc.rust-lang.org/stable/std/arch/macro.is_aarch64_feature_detected.html
282 Version 1.59.0 (2022-02-24)
283 ==========================
288 - [Stabilize default arguments for const parameters and remove the ordering restriction for type and const parameters][90207]
289 - [Stabilize destructuring assignment][90521]
290 - [Relax private in public lint on generic bounds and where clauses of trait impls][90586]
291 - [Stabilize asm! and global_asm! for x86, x86_64, ARM, Aarch64, and RISC-V][91728]
296 - [Stabilize new symbol mangling format, leaving it opt-in (-Csymbol-mangling-version=v0)][90128]
297 - [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
298 - [Fix sparc64 ABI for aggregates with floating point members][91003]
299 - [Warn when a `#[test]`-like built-in attribute macro is present multiple times.][91172]
300 - [Add support for riscv64gc-unknown-freebsd][91284]
301 - [Stabilize `-Z emit-future-incompat` as `--json future-incompat`][91535]
302 - [Soft disable incremental compilation][94124]
304 This release disables incremental compilation, unless the user has explicitly
305 opted in via the newly added RUSTC_FORCE_INCREMENTAL=1 environment variable.
306 This is due to a known and relatively frequently occurring bug in incremental
307 compilation, which causes builds to issue internal compiler errors. This
308 particular bug is already fixed on nightly, but that fix has not yet rolled out
309 to stable and is deemed too risky for a direct stable backport.
311 As always, we encourage users to test with nightly and report bugs so that we
312 can track failures and fix issues earlier.
314 See [94124] for more details.
316 [94124]: https://github.com/rust-lang/rust/issues/94124
321 - [Remove unnecessary bounds for some Hash{Map,Set} methods][91593]
326 - [`std::thread::available_parallelism`][available_parallelism]
327 - [`Result::copied`][result-copied]
328 - [`Result::cloned`][result-cloned]
329 - [`arch::asm!`][asm]
330 - [`arch::global_asm!`][global_asm]
331 - [`ops::ControlFlow::is_break`][is_break]
332 - [`ops::ControlFlow::is_continue`][is_continue]
333 - [`TryFrom<char> for u8`][try_from_char_u8]
334 - [`char::TryFromCharError`][try_from_char_err]
335 implementing `Clone`, `Debug`, `Display`, `PartialEq`, `Copy`, `Eq`, `Error`
337 - [`NonZeroU8::is_power_of_two`][is_power_of_two8]
338 - [`NonZeroU16::is_power_of_two`][is_power_of_two16]
339 - [`NonZeroU32::is_power_of_two`][is_power_of_two32]
340 - [`NonZeroU64::is_power_of_two`][is_power_of_two64]
341 - [`NonZeroU128::is_power_of_two`][is_power_of_two128]
342 - [`NonZeroUsize::is_power_of_two`][is_power_of_two_usize]
343 - [`DoubleEndedIterator for ToLowercase`][lowercase]
344 - [`DoubleEndedIterator for ToUppercase`][uppercase]
345 - [`TryFrom<&mut [T]> for [T; N]`][tryfrom_ref_arr]
346 - [`UnwindSafe for Once`][unwindsafe_once]
347 - [`RefUnwindSafe for Once`][refunwindsafe_once]
348 - [armv8 neon intrinsics for aarch64][stdarch/1266]
352 - [`mem::MaybeUninit::as_ptr`][muninit_ptr]
353 - [`mem::MaybeUninit::assume_init`][muninit_init]
354 - [`mem::MaybeUninit::assume_init_ref`][muninit_init_ref]
355 - [`ffi::CStr::from_bytes_with_nul_unchecked`][cstr_from_bytes]
360 - [Stabilize the `strip` profile option][cargo/10088]
361 - [Stabilize future-incompat-report][cargo/10165]
362 - [Support abbreviating `--release` as `-r`][cargo/10133]
363 - [Support `term.quiet` configuration][cargo/10152]
364 - [Remove `--host` from cargo {publish,search,login}][cargo/10145]
369 - [Refactor weak symbols in std::sys::unix][90846]
370 This may add new, versioned, symbols when building with a newer glibc, as the
371 standard library uses weak linkage rather than dynamically attempting to load
372 certain symbols at runtime.
373 - [Deprecate crate_type and crate_name nested inside `#![cfg_attr]`][83744]
374 This adds a future compatibility lint to supporting the use of cfg_attr
375 wrapping either crate_type or crate_name specification within Rust files;
376 it is recommended that users migrate to setting the equivalent command line
378 - [Remove effect of `#[no_link]` attribute on name resolution][92034]
379 This may expose new names, leading to conflicts with preexisting names in a
380 given namespace and a compilation failure.
381 - [Cargo will document libraries before binaries.][cargo/10172]
382 - [Respect doc=false in dependencies, not just the root crate][cargo/10201]
383 - [Weaken guarantee around advancing underlying iterators in zip][83791]
384 - [Make split_inclusive() on an empty slice yield an empty output][89825]
385 - [Update std::env::temp_dir to use GetTempPath2 on Windows when available.][89999]
386 - [unreachable! was updated to match other formatting macro behavior on Rust 2021][92137]
391 These changes provide no direct user facing benefits, but represent significant
392 improvements to the internals and overall performance of rustc
395 - [Fix many cases of normalization-related ICEs][91255]
396 - [Replace dominators algorithm with simple Lengauer-Tarjan][85013]
397 - [Store liveness in interval sets for region inference][90637]
399 - [Remove `in_band_lifetimes` from the compiler and standard library, in preparation for removing this
400 unstable feature.][91867]
402 [91867]: https://github.com/rust-lang/rust/issues/91867
403 [83744]: https://github.com/rust-lang/rust/pull/83744/
404 [83791]: https://github.com/rust-lang/rust/pull/83791/
405 [85013]: https://github.com/rust-lang/rust/pull/85013/
406 [89825]: https://github.com/rust-lang/rust/pull/89825/
407 [89999]: https://github.com/rust-lang/rust/pull/89999/
408 [90128]: https://github.com/rust-lang/rust/pull/90128/
409 [90207]: https://github.com/rust-lang/rust/pull/90207/
410 [90521]: https://github.com/rust-lang/rust/pull/90521/
411 [90586]: https://github.com/rust-lang/rust/pull/90586/
412 [90637]: https://github.com/rust-lang/rust/pull/90637/
413 [90833]: https://github.com/rust-lang/rust/pull/90833/
414 [90846]: https://github.com/rust-lang/rust/pull/90846/
415 [91003]: https://github.com/rust-lang/rust/pull/91003/
416 [91172]: https://github.com/rust-lang/rust/pull/91172/
417 [91255]: https://github.com/rust-lang/rust/pull/91255/
418 [91284]: https://github.com/rust-lang/rust/pull/91284/
419 [91535]: https://github.com/rust-lang/rust/pull/91535/
420 [91593]: https://github.com/rust-lang/rust/pull/91593/
421 [91728]: https://github.com/rust-lang/rust/pull/91728/
422 [91878]: https://github.com/rust-lang/rust/pull/91878/
423 [91896]: https://github.com/rust-lang/rust/pull/91896/
424 [91926]: https://github.com/rust-lang/rust/pull/91926/
425 [91984]: https://github.com/rust-lang/rust/pull/91984/
426 [92020]: https://github.com/rust-lang/rust/pull/92020/
427 [92034]: https://github.com/rust-lang/rust/pull/92034/
428 [92137]: https://github.com/rust-lang/rust/pull/92137/
429 [92483]: https://github.com/rust-lang/rust/pull/92483/
430 [cargo/10088]: https://github.com/rust-lang/cargo/pull/10088/
431 [cargo/10133]: https://github.com/rust-lang/cargo/pull/10133/
432 [cargo/10145]: https://github.com/rust-lang/cargo/pull/10145/
433 [cargo/10152]: https://github.com/rust-lang/cargo/pull/10152/
434 [cargo/10165]: https://github.com/rust-lang/cargo/pull/10165/
435 [cargo/10172]: https://github.com/rust-lang/cargo/pull/10172/
436 [cargo/10201]: https://github.com/rust-lang/cargo/pull/10201/
437 [cargo/10269]: https://github.com/rust-lang/cargo/pull/10269/
439 [cstr_from_bytes]: https://doc.rust-lang.org/stable/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked
440 [muninit_ptr]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.as_ptr
441 [muninit_init]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init
442 [muninit_init_ref]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
443 [unwindsafe_once]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#impl-UnwindSafe
444 [refunwindsafe_once]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#impl-RefUnwindSafe
445 [tryfrom_ref_arr]: https://doc.rust-lang.org/stable/std/convert/trait.TryFrom.html#impl-TryFrom%3C%26%27_%20mut%20%5BT%5D%3E
446 [lowercase]: https://doc.rust-lang.org/stable/std/char/struct.ToLowercase.html#impl-DoubleEndedIterator
447 [uppercase]: https://doc.rust-lang.org/stable/std/char/struct.ToUppercase.html#impl-DoubleEndedIterator
448 [try_from_char_err]: https://doc.rust-lang.org/stable/std/char/struct.TryFromCharError.html
449 [available_parallelism]: https://doc.rust-lang.org/stable/std/thread/fn.available_parallelism.html
450 [result-copied]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.copied
451 [result-cloned]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.cloned
452 [asm]: https://doc.rust-lang.org/stable/core/arch/macro.asm.html
453 [global_asm]: https://doc.rust-lang.org/stable/core/arch/macro.global_asm.html
454 [is_break]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html#method.is_break
455 [is_continue]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html#method.is_continue
456 [try_from_char_u8]: https://doc.rust-lang.org/stable/std/primitive.char.html#impl-TryFrom%3Cchar%3E
457 [zip]: https://doc.rust-lang.org/stable/std/iter/fn.zip.html
458 [is_power_of_two8]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU8.html#method.is_power_of_two
459 [is_power_of_two16]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU16.html#method.is_power_of_two
460 [is_power_of_two32]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU32.html#method.is_power_of_two
461 [is_power_of_two64]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU64.html#method.is_power_of_two
462 [is_power_of_two128]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroU128.html#method.is_power_of_two
463 [is_power_of_two_usize]: https://doc.rust-lang.org/stable/core/num/struct.NonZeroUsize.html#method.is_power_of_two
464 [stdarch/1266]: https://github.com/rust-lang/stdarch/pull/1266
466 Version 1.58.1 (2022-01-19)
467 ===========================
469 * Fix race condition in `std::fs::remove_dir_all` ([CVE-2022-21658])
470 * [Handle captured arguments in the `useless_format` Clippy lint][clippy/8295]
471 * [Move `non_send_fields_in_send_ty` Clippy lint to nursery][clippy/8075]
472 * [Fix wrong error message displayed when some imports are missing][91254]
473 * [Fix rustfmt not formatting generated files from stdin][92912]
475 [CVE-2022-21658]: https://www.cve.org/CVERecord?id=CVE-2022-21658
476 [91254]: https://github.com/rust-lang/rust/pull/91254
477 [92912]: https://github.com/rust-lang/rust/pull/92912
478 [clippy/8075]: https://github.com/rust-lang/rust-clippy/pull/8075
479 [clippy/8295]: https://github.com/rust-lang/rust-clippy/pull/8295
481 Version 1.58.0 (2022-01-13)
482 ==========================
487 - [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.
488 - [`*const T` pointers can now be dereferenced in const contexts.][89551]
489 - [The rules for when a generic struct implements `Unsize` have been relaxed.][90417]
494 - [Add LLVM CFI support to the Rust compiler][89652]
495 - [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.
496 - [Add support for LLVM coverage mapping format versions 5 and 6][91207]
497 - [Emit LLVM optimization remarks when enabled with `-Cremark`][90833]
498 - [Update the minimum external LLVM to 12][90175]
499 - [Add `x86_64-unknown-none` at Tier 3*][89062]
500 - [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.
501 - [Don't abort compilation after giving a lint error][87337]
502 - [Error messages point at the source of trait bound obligations in more places][89580]
504 \* Refer to Rust's [platform support page][platform-support-doc] for more
505 information on Rust's tiered platform support.
510 - [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.
511 - [Paths are automatically canonicalized on Windows for operations that support it][89174]
512 - [Re-enable debug checks for `copy` and `copy_nonoverlapping`][90041]
513 - [Implement `RefUnwindSafe` for `Rc<T>`][87467]
514 - [Make RSplit<T, P>: Clone not require T: Clone][90117]
515 - [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).
520 - [`Metadata::is_symlink`]
521 - [`Path::is_symlink`]
522 - [`{integer}::saturating_div`]
523 - [`Option::unwrap_unchecked`]
524 - [`Result::unwrap_unchecked`]
525 - [`Result::unwrap_err_unchecked`]
528 These APIs are now usable in const contexts:
531 - [`Duration::checked_add`]
532 - [`Duration::saturating_add`]
533 - [`Duration::checked_sub`]
534 - [`Duration::saturating_sub`]
535 - [`Duration::checked_mul`]
536 - [`Duration::saturating_mul`]
537 - [`Duration::checked_div`]
542 - [Add --message-format for install command][cargo/10107]
543 - [Warn when alias shadows external subcommand][cargo/10082]
548 - [Show all Deref implementations recursively in rustdoc][90183]
549 - [Use computed visibility in rustdoc][88447]
554 - [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.
555 - Windows: [`std::process::Command` will no longer search the current directory for executables.][87704]
556 - [All proc-macro backward-compatibility lints are now deny-by-default.][88041]
557 - [proc_macro: Append .0 to unsuffixed float if it would otherwise become int token][90297]
558 - [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.
559 - [rustdoc now rejects some unexpected semicolons in doctests][91026]
564 These changes provide no direct user facing benefits, but represent significant
565 improvements to the internals and overall performance of rustc
568 - [Implement coherence checks for negative trait impls][90104]
569 - [Add rustc lint, warning when iterating over hashmaps][89558]
570 - [Optimize live point computation][90491]
571 - [Enable verification for 1/32nd of queries loaded from disk][90361]
572 - [Implement version of normalize_erasing_regions that allows for normalization failure][91255]
574 [87337]: https://github.com/rust-lang/rust/pull/87337/
575 [87467]: https://github.com/rust-lang/rust/pull/87467/
576 [87704]: https://github.com/rust-lang/rust/pull/87704/
577 [88041]: https://github.com/rust-lang/rust/pull/88041/
578 [88447]: https://github.com/rust-lang/rust/pull/88447/
579 [88601]: https://github.com/rust-lang/rust/pull/88601/
580 [89062]: https://github.com/rust-lang/rust/pull/89062/
581 [89174]: https://github.com/rust-lang/rust/pull/89174/
582 [89551]: https://github.com/rust-lang/rust/pull/89551/
583 [89558]: https://github.com/rust-lang/rust/pull/89558/
584 [89580]: https://github.com/rust-lang/rust/pull/89580/
585 [89652]: https://github.com/rust-lang/rust/pull/89652/
586 [90041]: https://github.com/rust-lang/rust/pull/90041/
587 [90058]: https://github.com/rust-lang/rust/pull/90058/
588 [90104]: https://github.com/rust-lang/rust/pull/90104/
589 [90117]: https://github.com/rust-lang/rust/pull/90117/
590 [90175]: https://github.com/rust-lang/rust/pull/90175/
591 [90183]: https://github.com/rust-lang/rust/pull/90183/
592 [90297]: https://github.com/rust-lang/rust/pull/90297/
593 [90329]: https://github.com/rust-lang/rust/pull/90329/
594 [90361]: https://github.com/rust-lang/rust/pull/90361/
595 [90417]: https://github.com/rust-lang/rust/pull/90417/
596 [90473]: https://github.com/rust-lang/rust/pull/90473/
597 [90491]: https://github.com/rust-lang/rust/pull/90491/
598 [90733]: https://github.com/rust-lang/rust/pull/90733/
599 [90833]: https://github.com/rust-lang/rust/pull/90833/
600 [90846]: https://github.com/rust-lang/rust/pull/90846/
601 [91026]: https://github.com/rust-lang/rust/pull/91026/
602 [91207]: https://github.com/rust-lang/rust/pull/91207/
603 [91255]: https://github.com/rust-lang/rust/pull/91255/
604 [cargo/10082]: https://github.com/rust-lang/cargo/pull/10082/
605 [cargo/10107]: https://github.com/rust-lang/cargo/pull/10107/
606 [`Metadata::is_symlink`]: https://doc.rust-lang.org/stable/std/fs/struct.Metadata.html#method.is_symlink
607 [`Path::is_symlink`]: https://doc.rust-lang.org/stable/std/path/struct.Path.html#method.is_symlink
608 [`{integer}::saturating_div`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.saturating_div
609 [`Option::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.unwrap_unchecked
610 [`Result::unwrap_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_unchecked
611 [`Result::unwrap_err_unchecked`]: https://doc.rust-lang.org/stable/std/result/enum.Result.html#method.unwrap_err_unchecked
612 [`File::options`]: https://doc.rust-lang.org/stable/std/fs/struct.File.html#method.options
613 [`Duration::new`]: https://doc.rust-lang.org/stable/std/time/struct.Duration.html#method.new
615 Version 1.57.0 (2021-12-02)
616 ==========================
621 - [Macro attributes may follow `#[derive]` and will see the original (pre-`cfg`) input.][87220]
622 - [Accept curly-brace macros in expressions, like `m!{ .. }.method()` and `m!{ .. }?`.][88690]
623 - [Allow panicking in constant evaluation.][89508]
624 - [Ignore derived `Clone` and `Debug` implementations during dead code analysis.][85200]
629 - [Create more accurate debuginfo for vtables.][89597]
630 - [Add `armv6k-nintendo-3ds` at Tier 3\*.][88529]
631 - [Add `armv7-unknown-linux-uclibceabihf` at Tier 3\*.][88952]
632 - [Add `m68k-unknown-linux-gnu` at Tier 3\*.][88321]
633 - [Add SOLID targets at Tier 3\*:][86191] `aarch64-kmc-solid_asp3`, `armv7a-kmc-solid_asp3-eabi`, `armv7a-kmc-solid_asp3-eabihf`
635 \* Refer to Rust's [platform support page][platform-support-doc] for more
636 information on Rust's tiered platform support.
641 - [Avoid allocations and copying in `Vec::leak`][89337]
642 - [Add `#[repr(i8)]` to `Ordering`][89507]
643 - [Optimize `File::read_to_end` and `read_to_string`][89582]
644 - [Update to Unicode 14.0][89614]
645 - [Many more functions are marked `#[must_use]`][89692], producing a warning
646 when ignoring their return value. This helps catch mistakes such as expecting
647 a function to mutate a value in place rather than return a new value.
652 - [`[T; N]::as_mut_slice`][`array::as_mut_slice`]
653 - [`[T; N]::as_slice`][`array::as_slice`]
654 - [`collections::TryReserveError`]
655 - [`HashMap::try_reserve`]
656 - [`HashSet::try_reserve`]
657 - [`String::try_reserve`]
658 - [`String::try_reserve_exact`]
659 - [`Vec::try_reserve`]
660 - [`Vec::try_reserve_exact`]
661 - [`VecDeque::try_reserve`]
662 - [`VecDeque::try_reserve_exact`]
663 - [`Iterator::map_while`]
665 - [`proc_macro::is_available`]
666 - [`Command::get_program`]
667 - [`Command::get_args`]
668 - [`Command::get_envs`]
669 - [`Command::get_current_dir`]
673 These APIs are now usable in const contexts:
675 - [`hint::unreachable_unchecked`]
680 - [Stabilize custom profiles][cargo/9943]
685 - [Ignore derived `Clone` and `Debug` implementations during dead code analysis.][85200]
686 This will break some builds that set `#![deny(dead_code)]`.
690 These changes provide no direct user facing benefits, but represent significant
691 improvements to the internals and overall performance of rustc
694 - [Added an experimental backend for codegen with `libgccjit`.][87260]
696 [85200]: https://github.com/rust-lang/rust/pull/85200/
697 [86191]: https://github.com/rust-lang/rust/pull/86191/
698 [87220]: https://github.com/rust-lang/rust/pull/87220/
699 [87260]: https://github.com/rust-lang/rust/pull/87260/
700 [88321]: https://github.com/rust-lang/rust/pull/88321/
701 [88529]: https://github.com/rust-lang/rust/pull/88529/
702 [88690]: https://github.com/rust-lang/rust/pull/88690/
703 [88952]: https://github.com/rust-lang/rust/pull/88952/
704 [89337]: https://github.com/rust-lang/rust/pull/89337/
705 [89507]: https://github.com/rust-lang/rust/pull/89507/
706 [89508]: https://github.com/rust-lang/rust/pull/89508/
707 [89582]: https://github.com/rust-lang/rust/pull/89582/
708 [89597]: https://github.com/rust-lang/rust/pull/89597/
709 [89614]: https://github.com/rust-lang/rust/pull/89614/
710 [89692]: https://github.com/rust-lang/rust/issues/89692/
711 [cargo/9943]: https://github.com/rust-lang/cargo/pull/9943/
712 [`array::as_mut_slice`]: https://doc.rust-lang.org/std/primitive.array.html#method.as_mut_slice
713 [`array::as_slice`]: https://doc.rust-lang.org/std/primitive.array.html#method.as_slice
714 [`collections::TryReserveError`]: https://doc.rust-lang.org/std/collections/struct.TryReserveError.html
715 [`HashMap::try_reserve`]: https://doc.rust-lang.org/std/collections/hash_map/struct.HashMap.html#method.try_reserve
716 [`HashSet::try_reserve`]: https://doc.rust-lang.org/std/collections/hash_set/struct.HashSet.html#method.try_reserve
717 [`String::try_reserve`]: https://doc.rust-lang.org/alloc/string/struct.String.html#method.try_reserve
718 [`String::try_reserve_exact`]: https://doc.rust-lang.org/alloc/string/struct.String.html#method.try_reserve_exact
719 [`Vec::try_reserve`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve
720 [`Vec::try_reserve_exact`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.try_reserve_exact
721 [`VecDeque::try_reserve`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.try_reserve
722 [`VecDeque::try_reserve_exact`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.try_reserve_exact
723 [`Iterator::map_while`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.map_while
724 [`iter::MapWhile`]: https://doc.rust-lang.org/std/iter/struct.MapWhile.html
725 [`proc_macro::is_available`]: https://doc.rust-lang.org/proc_macro/fn.is_available.html
726 [`Command::get_program`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_program
727 [`Command::get_args`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_args
728 [`Command::get_envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_envs
729 [`Command::get_current_dir`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.get_current_dir
730 [`CommandArgs`]: https://doc.rust-lang.org/std/process/struct.CommandArgs.html
731 [`CommandEnvs`]: https://doc.rust-lang.org/std/process/struct.CommandEnvs.html
733 Version 1.56.1 (2021-11-01)
734 ===========================
736 - New lints to detect the presence of bidirectional-override Unicode
737 codepoints in the compiled source code ([CVE-2021-42574])
739 [CVE-2021-42574]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-42574
741 Version 1.56.0 (2021-10-21)
742 ========================
747 - [The 2021 Edition is now stable.][rust#88100]
748 See [the edition guide][rust-2021-edition-guide] for more details.
749 - [The pattern in `binding @ pattern` can now also introduce new bindings.][rust#85305]
750 - [Union field access is permitted in `const fn`.][rust#85769]
752 [rust-2021-edition-guide]: https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html
757 - [Upgrade to LLVM 13.][rust#87570]
758 - [Support memory, address, and thread sanitizers on aarch64-unknown-freebsd.][rust#88023]
759 - [Allow specifying a deployment target version for all iOS targets][rust#87699]
760 - [Warnings can be forced on with `--force-warn`.][rust#87472]
761 This feature is primarily intended for usage by `cargo fix`, rather than end users.
762 - [Promote `aarch64-apple-ios-sim` to Tier 2\*.][rust#87760]
763 - [Add `powerpc-unknown-freebsd` at Tier 3\*.][rust#87370]
764 - [Add `riscv32imc-esp-espidf` at Tier 3\*.][rust#87666]
766 \* Refer to Rust's [platform support page][platform-support-doc] for more
767 information on Rust's tiered platform support.
772 - [Allow writing of incomplete UTF-8 sequences via stdout/stderr on Windows.][rust#83342]
773 The Windows console still requires valid Unicode, but this change allows
774 splitting a UTF-8 character across multiple write calls. This allows, for
775 instance, programs that just read and write data buffers (e.g. copying a file
776 to stdout) without regard for Unicode or character boundaries.
777 - [Prefer `AtomicU{64,128}` over Mutex for Instant backsliding protection.][rust#83093]
778 For this use case, atomics scale much better under contention.
779 - [Implement `Extend<(A, B)>` for `(Extend<A>, Extend<B>)`][rust#85835]
780 - [impl Default, Copy, Clone for std::io::Sink and std::io::Empty][rust#86744]
781 - [`impl From<[(K, V); N]>` for all collections.][rust#84111]
782 - [Remove `P: Unpin` bound on impl Future for Pin.][rust#81363]
783 - [Treat invalid environment variable names as non-existent.][rust#86183]
784 Previously, the environment functions would panic if given a variable name
785 with an internal null character or equal sign (`=`). Now, these functions will
786 just treat such names as non-existent variables, since the OS cannot represent
787 the existence of a variable with such a name.
792 - [`std::os::unix::fs::chroot`]
793 - [`UnsafeCell::raw_get`]
794 - [`BufWriter::into_parts`]
795 - [`core::panic::{UnwindSafe, RefUnwindSafe, AssertUnwindSafe}`]
796 These APIs were previously stable in `std`, but are now also available in `core`.
798 - [`String::shrink_to`]
799 - [`OsString::shrink_to`]
800 - [`PathBuf::shrink_to`]
801 - [`BinaryHeap::shrink_to`]
802 - [`VecDeque::shrink_to`]
803 - [`HashMap::shrink_to`]
804 - [`HashSet::shrink_to`]
806 These APIs are now usable in const contexts:
808 - [`std::mem::transmute`]
809 - [`[T]::first`][`slice::first`]
810 - [`[T]::split_first`][`slice::split_first`]
811 - [`[T]::last`][`slice::last`]
812 - [`[T]::split_last`][`slice::split_last`]
817 - [Cargo supports specifying a minimum supported Rust version in Cargo.toml.][`rust-version`]
818 This has no effect at present on dependency version selection.
819 We encourage crates to specify their minimum supported Rust version, and we encourage CI systems
820 that support Rust code to include a crate's specified minimum version in the test matrix for that
826 - [Update to new argument parsing rules on Windows.][rust#87580]
827 This adjusts Rust's standard library to match the behavior of the standard
828 libraries for C/C++. The rules have changed slightly over time, and this PR
829 brings us to the latest set of rules (changed in 2008).
830 - [Disallow the aapcs calling convention on aarch64][rust#88399]
831 This was already not supported by LLVM; this change surfaces this lack of
832 support with a better error message.
833 - [Make `SEMICOLON_IN_EXPRESSIONS_FROM_MACROS` warn by default][rust#87385]
834 - [Warn when an escaped newline skips multiple lines.][rust#87671]
835 - [Calls to `libc::getpid` / `std::process::id` from `Command::pre_exec`
836 may return different values on glibc <= 2.24.][rust#81825]
837 Rust now invokes the `clone3` system call directly, when available, to use new functionality
838 available via that system call. Older versions of glibc cache the result of `getpid`, and only
839 update that cache when calling glibc's clone/fork functions, so a direct system call bypasses
840 that cache update. glibc 2.25 and newer no longer cache `getpid` for exactly this reason.
844 These changes provide no direct user facing benefits, but represent significant
845 improvements to the internals and overall performance of rustc
848 - [LLVM is compiled with PGO in published x86_64-unknown-linux-gnu artifacts.][rust#88069]
849 This improves the performance of most Rust builds.
850 - [Unify representation of macros in internal data structures.][rust#88019]
851 This change fixes a host of bugs with the handling of macros by the compiler,
854 [`std::os::unix::fs::chroot`]: https://doc.rust-lang.org/stable/std/os/unix/fs/fn.chroot.html
855 [`UnsafeCell::raw_get`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.raw_get
856 [`BufWriter::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.BufWriter.html#method.into_parts
857 [`core::panic::{UnwindSafe, RefUnwindSafe, AssertUnwindSafe}`]: https://github.com/rust-lang/rust/pull/84662
858 [`Vec::shrink_to`]: https://doc.rust-lang.org/stable/std/vec/struct.Vec.html#method.shrink_to
859 [`String::shrink_to`]: https://doc.rust-lang.org/stable/std/string/struct.String.html#method.shrink_to
860 [`OsString::shrink_to`]: https://doc.rust-lang.org/stable/std/ffi/struct.OsString.html#method.shrink_to
861 [`PathBuf::shrink_to`]: https://doc.rust-lang.org/stable/std/path/struct.PathBuf.html#method.shrink_to
862 [`BinaryHeap::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/struct.BinaryHeap.html#method.shrink_to
863 [`VecDeque::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/struct.VecDeque.html#method.shrink_to
864 [`HashMap::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/hash_map/struct.HashMap.html#method.shrink_to
865 [`HashSet::shrink_to`]: https://doc.rust-lang.org/stable/std/collections/hash_set/struct.HashSet.html#method.shrink_to
866 [`std::mem::transmute`]: https://doc.rust-lang.org/stable/std/mem/fn.transmute.html
867 [`slice::first`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.first
868 [`slice::split_first`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.split_first
869 [`slice::last`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.last
870 [`slice::split_last`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.split_last
871 [`rust-version`]: https://doc.rust-lang.org/nightly/cargo/reference/manifest.html#the-rust-version-field
872 [rust#87671]: https://github.com/rust-lang/rust/pull/87671
873 [rust#86183]: https://github.com/rust-lang/rust/pull/86183
874 [rust#87385]: https://github.com/rust-lang/rust/pull/87385
875 [rust#88100]: https://github.com/rust-lang/rust/pull/88100
876 [rust#85305]: https://github.com/rust-lang/rust/pull/85305
877 [rust#88069]: https://github.com/rust-lang/rust/pull/88069
878 [rust#87472]: https://github.com/rust-lang/rust/pull/87472
879 [rust#87699]: https://github.com/rust-lang/rust/pull/87699
880 [rust#87570]: https://github.com/rust-lang/rust/pull/87570
881 [rust#88023]: https://github.com/rust-lang/rust/pull/88023
882 [rust#87760]: https://github.com/rust-lang/rust/pull/87760
883 [rust#87370]: https://github.com/rust-lang/rust/pull/87370
884 [rust#87580]: https://github.com/rust-lang/rust/pull/87580
885 [rust#83342]: https://github.com/rust-lang/rust/pull/83342
886 [rust#83093]: https://github.com/rust-lang/rust/pull/83093
887 [rust#85835]: https://github.com/rust-lang/rust/pull/85835
888 [rust#86744]: https://github.com/rust-lang/rust/pull/86744
889 [rust#81363]: https://github.com/rust-lang/rust/pull/81363
890 [rust#84111]: https://github.com/rust-lang/rust/pull/84111
891 [rust#85769]: https://github.com/rust-lang/rust/pull/85769#issuecomment-854363720
892 [rust#88399]: https://github.com/rust-lang/rust/pull/88399
893 [rust#81825]: https://github.com/rust-lang/rust/pull/81825#issuecomment-808406918
894 [rust#88019]: https://github.com/rust-lang/rust/pull/88019
895 [rust#87666]: https://github.com/rust-lang/rust/pull/87666
897 Version 1.55.0 (2021-09-09)
898 ============================
902 - [You can now write open "from" range patterns (`X..`), which will start at `X` and
903 will end at the maximum value of the integer.][83918]
904 - [You can now explicitly import the prelude of different editions
905 through `std::prelude` (e.g. `use std::prelude::rust_2021::*;`).][86294]
909 - [Added tier 3\* support for `powerpc64le-unknown-freebsd`.][83572]
911 \* Refer to Rust's [platform support page][platform-support-doc] for more
912 information on Rust's tiered platform support.
917 - [Updated std's float parsing to use the Eisel-Lemire algorithm.][86761]
918 These improvements should in general provide faster string parsing of floats,
919 no longer reject certain valid floating point values, and reduce
920 the produced code size for non-stripped artifacts.
921 - [`string::Drain` now implements `AsRef<str>` and `AsRef<[u8]>`.][86858]
928 - [`IntoInnerError::into_error`]
929 - [`IntoInnerError::into_parts`]
930 - [`MaybeUninit::assume_init_mut`]
931 - [`MaybeUninit::assume_init_ref`]
932 - [`MaybeUninit::write`]
934 - [`ops::ControlFlow`]
936 - [`x86::_bittestandcomplement`]
937 - [`x86::_bittestandreset`]
938 - [`x86::_bittestandset`]
939 - [`x86_64::_bittest64`]
940 - [`x86_64::_bittestandcomplement64`]
941 - [`x86_64::_bittestandreset64`]
942 - [`x86_64::_bittestandset64`]
944 The following previously stable functions are now `const`.
946 - [`str::from_utf8_unchecked`]
951 - [Cargo will now deduplicate compiler diagnostics to the terminal when invoking
952 rustc in parallel such as when using `cargo test`.][cargo/9675]
953 - [The package definition in `cargo metadata` now includes the `"default_run"`
954 field from the manifest.][cargo/9550]
955 - [Added `cargo d` as an alias for `cargo doc`.][cargo/9680]
956 - [Added `{lib}` as formatting option for `cargo tree` to print the `"lib_name"`
957 of packages.][cargo/9663]
961 - [Added "Go to item on exact match" search option.][85876]
962 - [The "Implementors" section on traits no longer shows redundant
963 method definitions.][85970]
964 - [Trait implementations are toggled open by default.][86260] This should make the
965 implementations more searchable by tools like `CTRL+F` in your browser.
966 - [Intra-doc links should now correctly resolve associated items (e.g. methods)
967 through type aliases.][86334]
968 - [Traits which are marked with `#[doc(hidden)]` will no longer appear in the
969 "Trait Implementations" section.][86513]
974 - [std functions that return an `io::Error` will no longer use the
975 `ErrorKind::Other` variant.][85746] This is to better reflect that these
976 kinds of errors could be categorised [into newer more specific `ErrorKind`
977 variants][79965], and that they do not represent a user error.
978 - [Using environment variable names with `process::Command` on Windows now
979 behaves as expected.][85270] Previously using envionment variables with
980 `Command` would cause them to be ASCII-uppercased.
981 - [Rustdoc will now warn on using rustdoc lints that aren't prefixed
982 with `rustdoc::`][86849]
983 - `RUSTFLAGS` is no longer set for build scripts. Build scripts
984 should use `CARGO_ENCODED_RUSTFLAGS` instead. See the
985 [documentation](https://doc.rust-lang.org/nightly/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-build-scripts)
988 [86849]: https://github.com/rust-lang/rust/pull/86849
989 [86513]: https://github.com/rust-lang/rust/pull/86513
990 [86334]: https://github.com/rust-lang/rust/pull/86334
991 [86260]: https://github.com/rust-lang/rust/pull/86260
992 [85970]: https://github.com/rust-lang/rust/pull/85970
993 [85876]: https://github.com/rust-lang/rust/pull/85876
994 [83572]: https://github.com/rust-lang/rust/pull/83572
995 [86294]: https://github.com/rust-lang/rust/pull/86294
996 [86858]: https://github.com/rust-lang/rust/pull/86858
997 [86761]: https://github.com/rust-lang/rust/pull/86761
998 [85746]: https://github.com/rust-lang/rust/pull/85746
999 [85270]: https://github.com/rust-lang/rust/pull/85270
1000 [83918]: https://github.com/rust-lang/rust/pull/83918
1001 [79965]: https://github.com/rust-lang/rust/pull/79965
1002 [cargo/9663]: https://github.com/rust-lang/cargo/pull/9663
1003 [cargo/9675]: https://github.com/rust-lang/cargo/pull/9675
1004 [cargo/9550]: https://github.com/rust-lang/cargo/pull/9550
1005 [cargo/9680]: https://github.com/rust-lang/cargo/pull/9680
1006 [`array::map`]: https://doc.rust-lang.org/stable/std/primitive.array.html#method.map
1007 [`Bound::cloned`]: https://doc.rust-lang.org/stable/std/ops/enum.Bound.html#method.cloned
1008 [`Drain::as_str`]: https://doc.rust-lang.org/stable/std/string/struct.Drain.html#method.as_str
1009 [`IntoInnerError::into_error`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_error
1010 [`IntoInnerError::into_parts`]: https://doc.rust-lang.org/stable/std/io/struct.IntoInnerError.html#method.into_parts
1011 [`MaybeUninit::assume_init_mut`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_mut
1012 [`MaybeUninit::assume_init_ref`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.assume_init_ref
1013 [`MaybeUninit::write`]: https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#method.write
1014 [`ops::ControlFlow`]: https://doc.rust-lang.org/stable/std/ops/enum.ControlFlow.html
1015 [`str::from_utf8_unchecked`]: https://doc.rust-lang.org/stable/std/str/fn.from_utf8_unchecked.html
1016 [`x86::_bittest`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittest.html
1017 [`x86::_bittestandcomplement`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandcomplement.html
1018 [`x86::_bittestandreset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandreset.html
1019 [`x86::_bittestandset`]: https://doc.rust-lang.org/stable/core/arch/x86/fn._bittestandset.html
1020 [`x86_64::_bittest64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittest64.html
1021 [`x86_64::_bittestandcomplement64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandcomplement64.html
1022 [`x86_64::_bittestandreset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandreset64.html
1023 [`x86_64::_bittestandset64`]: https://doc.rust-lang.org/stable/core/arch/x86_64/fn._bittestandset64.html
1026 Version 1.54.0 (2021-07-29)
1027 ============================
1030 -----------------------
1032 - [You can now use macros for values in some built-in attributes.][83366]
1033 This primarily allows you to call macros within the `#[doc]` attribute. For
1034 example, to include external documentation in your crate, you can now write
1037 #![doc = include_str!("README.md")]
1040 - [You can now cast between unsized slice types (and types which contain
1041 unsized slices) in `const fn`.][85078]
1042 - [You can now use multiple generic lifetimes with `impl Trait` where the
1043 lifetimes don't explicitly outlive another.][84701] In code this means
1044 that you can now have `impl Trait<'a, 'b>` where as before you could
1045 only have `impl Trait<'a, 'b> where 'b: 'a`.
1048 -----------------------
1050 - [Rustc will now search for custom JSON targets in
1051 `/lib/rustlib/<target-triple>/target.json` where `/` is the "sysroot"
1052 directory.][83800] You can find your sysroot directory by running
1053 `rustc --print sysroot`.
1054 - [Added `wasm` as a `target_family` for WebAssembly platforms.][84072]
1055 - [You can now use `#[target_feature]` on safe functions when targeting
1056 WebAssembly platforms.][84988]
1057 - [Improved debugger output for enums on Windows MSVC platforms.][85292]
1058 - [Added tier 3\* support for `bpfel-unknown-none`
1059 and `bpfeb-unknown-none`.][79608]
1060 - [`-Zmutable-noalias=yes`][82834] is enabled by default when using LLVM 12 or above.
1062 \* Refer to Rust's [platform support page][platform-support-doc] for more
1063 information on Rust's tiered platform support.
1066 -----------------------
1068 - [`panic::panic_any` will now `#[track_caller]`.][85745]
1069 - [Added `OutOfMemory` as a variant of `io::ErrorKind`.][84744]
1070 - [ `proc_macro::Literal` now implements `FromStr`.][84717]
1071 - [The implementations of vendor intrinsics in core::arch have been
1072 significantly refactored.][83278] The main user-visible changes are
1073 a 50% reduction in the size of libcore.rlib and stricter validation
1074 of constant operands passed to intrinsics. The latter is technically
1075 a breaking change, but allows Rust to more closely match the C vendor
1081 - [`BTreeMap::into_keys`]
1082 - [`BTreeMap::into_values`]
1083 - [`HashMap::into_keys`]
1084 - [`HashMap::into_values`]
1086 - [`VecDeque::binary_search`]
1087 - [`VecDeque::binary_search_by`]
1088 - [`VecDeque::binary_search_by_key`]
1089 - [`VecDeque::partition_point`]
1094 - [Added the `--prune <spec>` option to `cargo-tree` to remove a package from
1095 the dependency graph.][cargo/9520]
1096 - [Added the `--depth` option to `cargo-tree` to print only to a certain depth
1097 in the tree ][cargo/9499]
1098 - [Added the `no-proc-macro` value to `cargo-tree --edges` to hide procedural
1099 macro dependencies.][cargo/9488]
1100 - [A new environment variable named `CARGO_TARGET_TMPDIR` is available.][cargo/9375]
1101 This variable points to a directory that integration tests and benches
1102 can use as a "scratchpad" for testing filesystem operations.
1106 - [Mixing Option and Result via `?` is no longer permitted in closures for inferred types.][86831]
1107 - [Previously unsound code is no longer permitted where different constructors in branches
1108 could require different lifetimes.][85574]
1109 - As previously mentioned the [`std::arch` instrinsics now uses stricter const checking][83278]
1110 than before and may reject some previously accepted code.
1111 - [`i128` multiplication on Cortex M0+ platforms currently unconditionally causes overflow
1112 when compiled with `codegen-units = 1`.][86063]
1114 [85574]: https://github.com/rust-lang/rust/issues/85574
1115 [86831]: https://github.com/rust-lang/rust/issues/86831
1116 [86063]: https://github.com/rust-lang/rust/issues/86063
1117 [79608]: https://github.com/rust-lang/rust/pull/79608
1118 [84988]: https://github.com/rust-lang/rust/pull/84988
1119 [84701]: https://github.com/rust-lang/rust/pull/84701
1120 [84072]: https://github.com/rust-lang/rust/pull/84072
1121 [85745]: https://github.com/rust-lang/rust/pull/85745
1122 [84744]: https://github.com/rust-lang/rust/pull/84744
1123 [85078]: https://github.com/rust-lang/rust/pull/85078
1124 [84717]: https://github.com/rust-lang/rust/pull/84717
1125 [83800]: https://github.com/rust-lang/rust/pull/83800
1126 [83366]: https://github.com/rust-lang/rust/pull/83366
1127 [83278]: https://github.com/rust-lang/rust/pull/83278
1128 [85292]: https://github.com/rust-lang/rust/pull/85292
1129 [82834]: https://github.com/rust-lang/rust/pull/82834
1130 [cargo/9520]: https://github.com/rust-lang/cargo/pull/9520
1131 [cargo/9499]: https://github.com/rust-lang/cargo/pull/9499
1132 [cargo/9488]: https://github.com/rust-lang/cargo/pull/9488
1133 [cargo/9375]: https://github.com/rust-lang/cargo/pull/9375
1134 [`BTreeMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_keys
1135 [`BTreeMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.into_values
1136 [`HashMap::into_keys`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_keys
1137 [`HashMap::into_values`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.into_values
1138 [`arch::wasm32`]: https://doc.rust-lang.org/core/arch/wasm32/index.html
1139 [`VecDeque::binary_search`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search
1140 [`VecDeque::binary_search_by`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by
1142 [`VecDeque::binary_search_by_key`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.binary_search_by_key
1144 [`VecDeque::partition_point`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.partition_point
1146 Version 1.53.0 (2021-06-17)
1147 ============================
1150 -----------------------
1151 - [You can now use unicode for identifiers.][83799] This allows multilingual
1152 identifiers but still doesn't allow glyphs that are not considered characters
1153 such as `◆` or `🦀`. More specifically you can now use any identifier that
1154 matches the UAX #31 "Unicode Identifier and Pattern Syntax" standard. This
1155 is the same standard as languages like Python, however Rust uses NFC
1156 normalization which may be different from other languages.
1157 - [You can now specify "or patterns" inside pattern matches.][79278]
1158 Previously you could only use `|` (OR) on complete patterns. E.g.
1162 matches!(x, Some(1) | Some(2));
1164 matches!(x, Some(1 | 2));
1166 - [Added the `:pat_param` `macro_rules!` matcher.][83386] This matcher
1167 has the same semantics as the `:pat` matcher. This is to allow `:pat`
1168 to change semantics to being a pattern fragment in a future edition.
1171 -----------------------
1172 - [Updated the minimum external LLVM version to LLVM 10.][83387]
1173 - [Added Tier 3\* support for the `wasm64-unknown-unknown` target.][80525]
1174 - [Improved debuginfo for closures and async functions on Windows MSVC.][83941]
1176 \* Refer to Rust's [platform support page][platform-support-doc] for more
1177 information on Rust's tiered platform support.
1180 -----------------------
1181 - [Abort messages will now forward to `android_set_abort_message` on
1182 Android platforms when available.][81469]
1183 - [`slice::IterMut<'_, T>` now implements `AsRef<[T]>`][82771]
1184 - [Arrays of any length now implement `IntoIterator`.][84147]
1185 Currently calling `.into_iter()` as a method on an array will
1186 return `impl Iterator<Item=&T>`, but this may change in a
1187 future edition to change `Item` to `T`. Calling `IntoIterator::into_iter`
1188 directly on arrays will provide `impl Iterator<Item=T>` as expected.
1189 - [`leading_zeros`, and `trailing_zeros` are now available on all
1190 `NonZero` integer types.][84082]
1191 - [`{f32, f64}::from_str` now parse and print special values
1192 (`NaN`, `-0`) according to IEEE 754.][78618]
1193 - [You can now index into slices using `(Bound<usize>, Bound<usize>)`.][77704]
1194 - [Add the `BITS` associated constant to all numeric types.][82565]
1198 - [`AtomicBool::fetch_update`]
1199 - [`AtomicPtr::fetch_update`]
1200 - [`BTreeMap::retain`]
1201 - [`BTreeSet::retain`]
1202 - [`BufReader::seek_relative`]
1203 - [`DebugStruct::non_exhaustive`]
1205 - [`Duration::ZERO`]
1206 - [`Duration::is_zero`]
1207 - [`Duration::saturating_add`]
1208 - [`Duration::saturating_mul`]
1209 - [`Duration::saturating_sub`]
1210 - [`ErrorKind::Unsupported`]
1211 - [`Option::insert`]
1212 - [`Ordering::is_eq`]
1213 - [`Ordering::is_ge`]
1214 - [`Ordering::is_gt`]
1215 - [`Ordering::is_le`]
1216 - [`Ordering::is_lt`]
1217 - [`Ordering::is_ne`]
1218 - [`OsStr::is_ascii`]
1219 - [`OsStr::make_ascii_lowercase`]
1220 - [`OsStr::make_ascii_uppercase`]
1221 - [`OsStr::to_ascii_lowercase`]
1222 - [`OsStr::to_ascii_uppercase`]
1223 - [`Peekable::peek_mut`]
1224 - [`Rc::decrement_strong_count`]
1225 - [`Rc::increment_strong_count`]
1226 - [`Vec::extend_from_within`]
1227 - [`array::from_mut`]
1228 - [`array::from_ref`]
1229 - [`cmp::max_by_key`]
1231 - [`cmp::min_by_key`]
1233 - [`f32::is_subnormal`]
1234 - [`f64::is_subnormal`]
1237 -----------------------
1238 - [Cargo now supports git repositories where the default `HEAD` branch is not
1239 "master".][cargo/9392] This also includes a switch to the version 3 `Cargo.lock` format
1240 which can handle default branches correctly.
1241 - [macOS targets now default to `unpacked` split-debuginfo.][cargo/9298]
1242 - [The `authors` field is no longer included in `Cargo.toml` for new
1243 projects.][cargo/9282]
1246 -----------------------
1247 - [Added the `rustdoc::bare_urls` lint that warns when you have URLs
1248 without hyperlinks.][81764]
1252 - [Implement token-based handling of attributes during expansion][82608]
1253 - [`Ipv4::from_str` will now reject octal format IP addresses in addition
1254 to rejecting hexadecimal IP addresses.][83652] The octal format can lead
1255 to confusion and potential security vulnerabilities and [is no
1256 longer recommended][ietf6943].
1257 - [The added `BITS` constant may conflict with external definitions.][85667]
1258 In particular, this was known to be a problem in the `lexical-core` crate,
1259 but they have published fixes for semantic versions 0.4 through 0.7. To
1260 update this dependency alone, use `cargo update -p lexical-core`.
1261 - Incremental compilation remains off by default, unless one uses the `RUSTC_FORCE_INCREMENTAL=1` environment variable added in 1.52.1.
1265 These changes provide no direct user facing benefits, but represent significant
1266 improvements to the internals and overall performance of rustc and
1269 - [Rework the `std::sys::windows::alloc` implementation.][83065]
1270 - [rustdoc: Don't enter an infer_ctxt in get_blanket_impls for impls that aren't blanket impls.][82864]
1271 - [rustdoc: Only look at blanket impls in `get_blanket_impls`][83681]
1272 - [Rework rustdoc const type][82873]
1274 [85667]: https://github.com/rust-lang/rust/pull/85667
1275 [83386]: https://github.com/rust-lang/rust/pull/83386
1276 [82771]: https://github.com/rust-lang/rust/pull/82771
1277 [84147]: https://github.com/rust-lang/rust/pull/84147
1278 [84082]: https://github.com/rust-lang/rust/pull/84082
1279 [83799]: https://github.com/rust-lang/rust/pull/83799
1280 [83681]: https://github.com/rust-lang/rust/pull/83681
1281 [83652]: https://github.com/rust-lang/rust/pull/83652
1282 [83387]: https://github.com/rust-lang/rust/pull/83387
1283 [82873]: https://github.com/rust-lang/rust/pull/82873
1284 [82864]: https://github.com/rust-lang/rust/pull/82864
1285 [82608]: https://github.com/rust-lang/rust/pull/82608
1286 [82565]: https://github.com/rust-lang/rust/pull/82565
1287 [80525]: https://github.com/rust-lang/rust/pull/80525
1288 [79278]: https://github.com/rust-lang/rust/pull/79278
1289 [78618]: https://github.com/rust-lang/rust/pull/78618
1290 [77704]: https://github.com/rust-lang/rust/pull/77704
1291 [83941]: https://github.com/rust-lang/rust/pull/83941
1292 [83065]: https://github.com/rust-lang/rust/pull/83065
1293 [81764]: https://github.com/rust-lang/rust/pull/81764
1294 [81469]: https://github.com/rust-lang/rust/pull/81469
1295 [cargo/9298]: https://github.com/rust-lang/cargo/pull/9298
1296 [cargo/9282]: https://github.com/rust-lang/cargo/pull/9282
1297 [cargo/9392]: https://github.com/rust-lang/cargo/pull/9392
1298 [`AtomicBool::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicBool.html#method.fetch_update
1299 [`AtomicPtr::fetch_update`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicPtr.html#method.fetch_update
1300 [`BTreeMap::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.retain
1301 [`BTreeSet::retain`]: https://doc.rust-lang.org/std/collections/struct.BTreeSet.html#method.retain
1302 [`BufReader::seek_relative`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.seek_relative
1303 [`DebugStruct::non_exhaustive`]: https://doc.rust-lang.org/std/fmt/struct.DebugStruct.html#method.finish_non_exhaustive
1304 [`Duration::MAX`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.MAX
1305 [`Duration::ZERO`]: https://doc.rust-lang.org/std/time/struct.Duration.html#associatedconstant.ZERO
1306 [`Duration::is_zero`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.is_zero
1307 [`Duration::saturating_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_add
1308 [`Duration::saturating_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_mul
1309 [`Duration::saturating_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.saturating_sub
1310 [`ErrorKind::Unsupported`]: https://doc.rust-lang.org/std/io/enum.ErrorKind.html#variant.Unsupported
1311 [`Option::insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.insert
1312 [`Ordering::is_eq`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_eq
1313 [`Ordering::is_ge`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ge
1314 [`Ordering::is_gt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_gt
1315 [`Ordering::is_le`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_le
1316 [`Ordering::is_lt`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_lt
1317 [`Ordering::is_ne`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.is_ne
1318 [`OsStr::is_ascii`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.is_ascii
1319 [`OsStr::make_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_lowercase
1320 [`OsStr::make_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.make_ascii_uppercase
1321 [`OsStr::to_ascii_lowercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_lowercase
1322 [`OsStr::to_ascii_uppercase`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.to_ascii_uppercase
1323 [`Peekable::peek_mut`]: https://doc.rust-lang.org/std/iter/struct.Peekable.html#method.peek_mut
1324 [`Rc::decrement_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
1325 [`Rc::increment_strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.increment_strong_count
1326 [`Vec::extend_from_within`]: https://doc.rust-lang.org/beta/std/vec/struct.Vec.html#method.extend_from_within
1327 [`array::from_mut`]: https://doc.rust-lang.org/beta/std/array/fn.from_mut.html
1328 [`array::from_ref`]: https://doc.rust-lang.org/beta/std/array/fn.from_ref.html
1329 [`cmp::max_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by_key.html
1330 [`cmp::max_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.max_by.html
1331 [`cmp::min_by_key`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by_key.html
1332 [`cmp::min_by`]: https://doc.rust-lang.org/beta/std/cmp/fn.min_by.html
1333 [`f32::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
1334 [`f64::is_subnormal`]: https://doc.rust-lang.org/std/primitive.f64.html#method.is_subnormal
1335 [ietf6943]: https://datatracker.ietf.org/doc/html/rfc6943#section-3.1.1
1338 Version 1.52.1 (2021-05-10)
1339 ============================
1341 This release disables incremental compilation, unless the user has explicitly
1342 opted in via the newly added RUSTC_FORCE_INCREMENTAL=1 environment variable.
1344 This is due to the widespread, and frequently occurring, breakage encountered by
1345 Rust users due to newly enabled incremental verification in 1.52.0. Notably,
1346 Rust users **should** upgrade to 1.52.0 or 1.52.1: the bugs that are detected by
1347 newly added incremental verification are still present in past stable versions,
1348 and are not yet fixed on any channel. These bugs can lead to miscompilation of
1351 These problems only affect incremental builds, so release builds with Cargo
1352 should not be affected unless the user has explicitly opted into incremental.
1353 Debug and check builds are affected.
1355 See [84970] for more details.
1357 [84970]: https://github.com/rust-lang/rust/issues/84970
1359 Version 1.52.0 (2021-05-06)
1360 ============================
1364 - [Added the `unsafe_op_in_unsafe_fn` lint, which checks whether the unsafe code
1365 in an `unsafe fn` is wrapped in a `unsafe` block.][79208] This lint
1366 is allowed by default, and may become a warning or hard error in a
1368 - [You can now cast mutable references to arrays to a pointer of the same type as
1369 the element.][81479]
1373 - [Upgraded the default LLVM to LLVM 12.][81451]
1375 Added tier 3\* support for the following targets.
1377 - [`s390x-unknown-linux-musl`][82166]
1378 - [`riscv32gc-unknown-linux-musl` & `riscv64gc-unknown-linux-musl`][82202]
1379 - [`powerpc-unknown-openbsd`][82733]
1381 \* Refer to Rust's [platform support page][platform-support-doc] for more
1382 information on Rust's tiered platform support.
1386 - [`OsString` now implements `Extend` and `FromIterator`.][82121]
1387 - [`cmp::Reverse` now has `#[repr(transparent)]` representation.][81879]
1388 - [`Arc<impl Error>` now implements `error::Error`.][80553]
1389 - [All integer division and remainder operations are now `const`.][80962]
1393 - [`Arguments::as_str`]
1395 - [`char::REPLACEMENT_CHARACTER`]
1396 - [`char::UNICODE_VERSION`]
1397 - [`char::decode_utf16`]
1398 - [`char::from_digit`]
1399 - [`char::from_u32_unchecked`]
1400 - [`char::from_u32`]
1401 - [`slice::partition_point`]
1402 - [`str::rsplit_once`]
1403 - [`str::split_once`]
1405 The following previously stable APIs are now `const`.
1407 - [`char::len_utf8`]
1408 - [`char::len_utf16`]
1409 - [`char::to_ascii_uppercase`]
1410 - [`char::to_ascii_lowercase`]
1411 - [`char::eq_ignore_ascii_case`]
1412 - [`u8::to_ascii_uppercase`]
1413 - [`u8::to_ascii_lowercase`]
1414 - [`u8::eq_ignore_ascii_case`]
1418 - [Rustdoc lints are now treated as a tool lint, meaning that
1419 lints are now prefixed with `rustdoc::` (e.g. `#[warn(rustdoc::broken_intra_doc_links)]`).][80527]
1420 Using the old style is still allowed, and will become a warning in
1422 - [Rustdoc now supports argument files.][82261]
1423 - [Rustdoc now generates smart punctuation for documentation.][79423]
1424 - [You can now use "task lists" in Rustdoc Markdown.][81766] E.g.
1432 - [You can now pass multiple filters to tests.][81356] E.g.
1433 `cargo test -- foo bar` will run all tests that match `foo` and `bar`.
1434 - [Rustup now distributes PDB symbols for the `std` library on Windows,
1435 allowing you to see `std` symbols when debugging.][82218]
1439 These changes provide no direct user facing benefits, but represent significant
1440 improvements to the internals and overall performance of rustc and
1443 - [Check the result cache before the DepGraph when ensuring queries][81855]
1444 - [Try fast_reject::simplify_type in coherence before doing full check][81744]
1445 - [Only store a LocalDefId in some HIR nodes][81611]
1446 - [Store HIR attributes in a side table][79519]
1450 - [Cargo build scripts are now forbidden from setting `RUSTC_BOOTSTRAP`.][cargo/9181]
1451 - [Removed support for the `x86_64-rumprun-netbsd` target.][82594]
1452 - [Deprecated the `x86_64-sun-solaris` target in favor of `x86_64-pc-solaris`.][82216]
1453 - [Rustdoc now only accepts `,`, ` `, and `\t` as delimiters for specifying
1454 languages in code blocks.][78429]
1455 - [Rustc now catches more cases of `pub_use_of_private_extern_crate`][80763]
1456 - [Changes in how proc macros handle whitespace may lead to panics when used
1457 with older `proc-macro-hack` versions. A `cargo update` should be sufficient to fix this in all cases.][84136]
1458 - [Turn `#[derive]` into a regular macro attribute][79078]
1460 [84136]: https://github.com/rust-lang/rust/issues/84136
1461 [80763]: https://github.com/rust-lang/rust/pull/80763
1462 [82166]: https://github.com/rust-lang/rust/pull/82166
1463 [82121]: https://github.com/rust-lang/rust/pull/82121
1464 [81879]: https://github.com/rust-lang/rust/pull/81879
1465 [82261]: https://github.com/rust-lang/rust/pull/82261
1466 [82218]: https://github.com/rust-lang/rust/pull/82218
1467 [82216]: https://github.com/rust-lang/rust/pull/82216
1468 [82202]: https://github.com/rust-lang/rust/pull/82202
1469 [81855]: https://github.com/rust-lang/rust/pull/81855
1470 [81766]: https://github.com/rust-lang/rust/pull/81766
1471 [81744]: https://github.com/rust-lang/rust/pull/81744
1472 [81611]: https://github.com/rust-lang/rust/pull/81611
1473 [81479]: https://github.com/rust-lang/rust/pull/81479
1474 [81451]: https://github.com/rust-lang/rust/pull/81451
1475 [81356]: https://github.com/rust-lang/rust/pull/81356
1476 [80962]: https://github.com/rust-lang/rust/pull/80962
1477 [80553]: https://github.com/rust-lang/rust/pull/80553
1478 [80527]: https://github.com/rust-lang/rust/pull/80527
1479 [79519]: https://github.com/rust-lang/rust/pull/79519
1480 [79423]: https://github.com/rust-lang/rust/pull/79423
1481 [79208]: https://github.com/rust-lang/rust/pull/79208
1482 [78429]: https://github.com/rust-lang/rust/pull/78429
1483 [82733]: https://github.com/rust-lang/rust/pull/82733
1484 [82594]: https://github.com/rust-lang/rust/pull/82594
1485 [79078]: https://github.com/rust-lang/rust/pull/79078
1486 [cargo/9181]: https://github.com/rust-lang/cargo/pull/9181
1487 [`char::MAX`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.MAX
1488 [`char::REPLACEMENT_CHARACTER`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.REPLACEMENT_CHARACTER
1489 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/std/primitive.char.html#associatedconstant.UNICODE_VERSION
1490 [`char::decode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.decode_utf16
1491 [`char::from_u32`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32
1492 [`char::from_u32_unchecked`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_u32_unchecked
1493 [`char::from_digit`]: https://doc.rust-lang.org/std/primitive.char.html#method.from_digit
1494 [`Peekable::next_if`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if
1495 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if_eq
1496 [`Arguments::as_str`]: https://doc.rust-lang.org/stable/std/fmt/struct.Arguments.html#method.as_str
1497 [`str::split_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.split_once
1498 [`str::rsplit_once`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.rsplit_once
1499 [`slice::partition_point`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.partition_point
1500 [`char::len_utf8`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf8
1501 [`char::len_utf16`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.len_utf16
1502 [`char::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_uppercase
1503 [`char::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.to_ascii_lowercase
1504 [`char::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.char.html#method.eq_ignore_ascii_case
1505 [`u8::to_ascii_uppercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_uppercase
1506 [`u8::to_ascii_lowercase`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ascii_lowercase
1507 [`u8::eq_ignore_ascii_case`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.eq_ignore_ascii_case
1509 Version 1.51.0 (2021-03-25)
1510 ============================
1514 - [You can now parameterize items such as functions, traits, and `struct`s by constant
1515 values in addition to by types and lifetimes.][79135] Also known as "const generics"
1516 E.g. you can now write the following. Note: Only values of primitive integers,
1517 `bool`, or `char` types are currently permitted.
1519 struct GenericArray<T, const LENGTH: usize> {
1523 impl<T, const LENGTH: usize> GenericArray<T, LENGTH> {
1524 const fn last(&self) -> Option<&T> {
1528 Some(&self.inner[LENGTH - 1])
1538 - [Added the `-Csplit-debuginfo` codegen option for macOS platforms.][79570]
1539 This option controls whether debug information is split across multiple files
1540 or packed into a single file. **Note** This option is unstable on other platforms.
1541 - [Added tier 3\* support for `aarch64_be-unknown-linux-gnu`,
1542 `aarch64-unknown-linux-gnu_ilp32`, and `aarch64_be-unknown-linux-gnu_ilp32` targets.][81455]
1543 - [Added tier 3 support for `i386-unknown-linux-gnu` and `i486-unknown-linux-gnu` targets.][80662]
1544 - [The `target-cpu=native` option will now detect individual features of CPUs.][80749]
1546 \* Refer to Rust's [platform support page][platform-support-doc] for more
1547 information on Rust's tiered platform support.
1552 - [`Box::downcast` is now also implemented for any `dyn Any + Send + Sync` object.][80945]
1553 - [`str` now implements `AsMut<str>`.][80279]
1554 - [`u64` and `u128` now implement `From<char>`.][79502]
1555 - [`Error` is now implemented for `&T` where `T` implements `Error`.][75180]
1556 - [`Poll::{map_ok, map_err}` are now implemented for `Poll<Option<Result<T, E>>>`.][80968]
1557 - [`unsigned_abs` is now implemented for all signed integer types.][80959]
1558 - [`io::Empty` now implements `io::Seek`.][78044]
1559 - [`rc::Weak<T>` and `sync::Weak<T>`'s methods such as `as_ptr` are now implemented for
1560 `T: ?Sized` types.][80764]
1561 - [`Div` and `Rem` by their `NonZero` variant is now implemented for all unsigned integers.][79134]
1567 - [`Arc::decrement_strong_count`]
1568 - [`Arc::increment_strong_count`]
1569 - [`Once::call_once_force`]
1570 - [`Peekable::next_if_eq`]
1571 - [`Peekable::next_if`]
1572 - [`Seek::stream_position`]
1573 - [`array::IntoIter`]
1574 - [`panic::panic_any`]
1576 - [`ptr::addr_of_mut!`]
1577 - [`slice::fill_with`]
1578 - [`slice::split_inclusive_mut`]
1579 - [`slice::split_inclusive`]
1580 - [`slice::strip_prefix`]
1581 - [`slice::strip_suffix`]
1582 - [`str::split_inclusive`]
1583 - [`sync::OnceState`]
1585 - [`VecDeque::range`]
1586 - [`VecDeque::range_mut`]
1590 - [Added the `split-debuginfo` profile option to control the -Csplit-debuginfo
1591 codegen option.][cargo/9112]
1592 - [Added the `resolver` field to `Cargo.toml` to enable the new feature resolver
1593 and CLI option behavior.][cargo/8997] Version 2 of the feature resolver will try
1594 to avoid unifying features of dependencies where that unification could be unwanted.
1595 Such as using the same dependency with a `std` feature in a build scripts and
1596 proc-macros, while using the `no-std` feature in the final binary. See the
1597 [Cargo book documentation][feature-resolver@2.0] for more information on the feature.
1602 - [Rustdoc will now include documentation for methods available from _nested_ `Deref` traits.][80653]
1603 - [You can now provide a `--default-theme` flag which sets the default theme to use for
1604 documentation.][79642]
1606 Various improvements to intra-doc links:
1608 - [You can link to non-path primitives such as `slice`.][80181]
1609 - [You can link to associated items.][74489]
1610 - [You can now include generic parameters when linking to items, like `Vec<T>`.][76934]
1614 - [You can now pass `--include-ignored` to tests (e.g. with
1615 `cargo test -- --include-ignored`) to include testing tests marked `#[ignore]`.][80053]
1620 - [WASI platforms no longer use the `wasm-bindgen` ABI, and instead use the wasm32 ABI.][79998]
1621 - [`rustc` no longer promotes division, modulo and indexing operations to `const` that
1623 - [The minimum version of glibc for the following platforms has been bumped to version 2.31
1624 for the distributed artifacts.][81521]
1625 - `armv5te-unknown-linux-gnueabi`
1626 - `sparc64-unknown-linux-gnu`
1627 - `thumbv7neon-unknown-linux-gnueabihf`
1628 - `armv7-unknown-linux-gnueabi`
1629 - `x86_64-unknown-linux-gnux32`
1630 - [`atomic::spin_loop_hint` has been deprecated.][80966] It's recommended to use `hint::spin_loop` instead.
1635 - [Consistently avoid constructing optimized MIR when not doing codegen][80718]
1637 [79135]: https://github.com/rust-lang/rust/pull/79135
1638 [74489]: https://github.com/rust-lang/rust/pull/74489
1639 [76934]: https://github.com/rust-lang/rust/pull/76934
1640 [79570]: https://github.com/rust-lang/rust/pull/79570
1641 [80181]: https://github.com/rust-lang/rust/pull/80181
1642 [79642]: https://github.com/rust-lang/rust/pull/79642
1643 [80945]: https://github.com/rust-lang/rust/pull/80945
1644 [80279]: https://github.com/rust-lang/rust/pull/80279
1645 [80053]: https://github.com/rust-lang/rust/pull/80053
1646 [79502]: https://github.com/rust-lang/rust/pull/79502
1647 [75180]: https://github.com/rust-lang/rust/pull/75180
1648 [81521]: https://github.com/rust-lang/rust/pull/81521
1649 [80968]: https://github.com/rust-lang/rust/pull/80968
1650 [80959]: https://github.com/rust-lang/rust/pull/80959
1651 [80718]: https://github.com/rust-lang/rust/pull/80718
1652 [80653]: https://github.com/rust-lang/rust/pull/80653
1653 [80579]: https://github.com/rust-lang/rust/pull/80579
1654 [79998]: https://github.com/rust-lang/rust/pull/79998
1655 [78044]: https://github.com/rust-lang/rust/pull/78044
1656 [81455]: https://github.com/rust-lang/rust/pull/81455
1657 [80764]: https://github.com/rust-lang/rust/pull/80764
1658 [80749]: https://github.com/rust-lang/rust/pull/80749
1659 [80662]: https://github.com/rust-lang/rust/pull/80662
1660 [79134]: https://github.com/rust-lang/rust/pull/79134
1661 [80966]: https://github.com/rust-lang/rust/pull/80966
1662 [cargo/8997]: https://github.com/rust-lang/cargo/pull/8997
1663 [cargo/9112]: https://github.com/rust-lang/cargo/pull/9112
1664 [feature-resolver@2.0]: https://doc.rust-lang.org/nightly/cargo/reference/features.html#feature-resolver-version-2
1665 [`Once::call_once_force`]: https://doc.rust-lang.org/stable/std/sync/struct.Once.html#method.call_once_force
1666 [`sync::OnceState`]: https://doc.rust-lang.org/stable/std/sync/struct.OnceState.html
1667 [`panic::panic_any`]: https://doc.rust-lang.org/stable/std/panic/fn.panic_any.html
1668 [`slice::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
1669 [`slice::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.strip_prefix
1670 [`Arc::increment_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.increment_strong_count
1671 [`Arc::decrement_strong_count`]: https://doc.rust-lang.org/nightly/std/sync/struct.Arc.html#method.decrement_strong_count
1672 [`slice::fill_with`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.fill_with
1673 [`ptr::addr_of!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of.html
1674 [`ptr::addr_of_mut!`]: https://doc.rust-lang.org/nightly/std/ptr/macro.addr_of_mut.html
1675 [`array::IntoIter`]: https://doc.rust-lang.org/nightly/std/array/struct.IntoIter.html
1676 [`slice::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive
1677 [`slice::split_inclusive_mut`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_inclusive_mut
1678 [`str::split_inclusive`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_inclusive
1679 [`task::Wake`]: https://doc.rust-lang.org/nightly/std/task/trait.Wake.html
1680 [`Seek::stream_position`]: https://doc.rust-lang.org/nightly/std/io/trait.Seek.html#method.stream_position
1681 [`Peekable::next_if`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if
1682 [`Peekable::next_if_eq`]: https://doc.rust-lang.org/nightly/std/iter/struct.Peekable.html#method.next_if_eq
1683 [`VecDeque::range`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range
1684 [`VecDeque::range_mut`]: https://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.range_mut
1686 Version 1.50.0 (2021-02-11)
1687 ============================
1690 -----------------------
1691 - [You can now use `const` values for `x` in `[x; N]` array expressions.][79270]
1692 This has been technically possible since 1.38.0, as it was unintentionally stabilized.
1693 - [Assignments to `ManuallyDrop<T>` union fields are now considered safe.][78068]
1696 -----------------------
1697 - [Added tier 3\* support for the `armv5te-unknown-linux-uclibceabi` target.][78142]
1698 - [Added tier 3 support for the `aarch64-apple-ios-macabi` target.][77484]
1699 - [The `x86_64-unknown-freebsd` is now built with the full toolset.][79484]
1700 - [Dropped support for all cloudabi targets.][78439]
1702 \* Refer to Rust's [platform support page][platform-support-doc] for more
1703 information on Rust's tiered platform support.
1706 -----------------------
1708 - [`proc_macro::Punct` now implements `PartialEq<char>`.][78636]
1709 - [`ops::{Index, IndexMut}` are now implemented for fixed sized arrays of any length.][74989]
1710 - [On Unix platforms, the `std::fs::File` type now has a "niche" of `-1`.][74699]
1711 This value cannot be a valid file descriptor, and now means `Option<File>` takes
1712 up the same amount of space as `File`.
1718 - [`btree_map::Entry::or_insert_with_key`]
1721 - [`hash_map::Entry::or_insert_with_key`]
1725 - [`UnsafeCell::get_mut`]
1727 The following previously stable methods are now `const`.
1729 - [`IpAddr::is_ipv4`]
1730 - [`IpAddr::is_ipv6`]
1731 - [`IpAddr::is_unspecified`]
1732 - [`IpAddr::is_loopback`]
1733 - [`IpAddr::is_multicast`]
1734 - [`Ipv4Addr::octets`]
1735 - [`Ipv4Addr::is_loopback`]
1736 - [`Ipv4Addr::is_private`]
1737 - [`Ipv4Addr::is_link_local`]
1738 - [`Ipv4Addr::is_multicast`]
1739 - [`Ipv4Addr::is_broadcast`]
1740 - [`Ipv4Addr::is_documentation`]
1741 - [`Ipv4Addr::to_ipv6_compatible`]
1742 - [`Ipv4Addr::to_ipv6_mapped`]
1743 - [`Ipv6Addr::segments`]
1744 - [`Ipv6Addr::is_unspecified`]
1745 - [`Ipv6Addr::is_loopback`]
1746 - [`Ipv6Addr::is_multicast`]
1747 - [`Ipv6Addr::to_ipv4`]
1750 - [`Layout::from_size_align`]
1751 - `pow` for all integer types.
1752 - `checked_pow` for all integer types.
1753 - `saturating_pow` for all integer types.
1754 - `wrapping_pow` for all integer types.
1755 - `next_power_of_two` for all unsigned integer types.
1756 - `checked_next_power_of_two` for all unsigned integer types.
1759 -----------------------
1761 - [Added the `[build.rustc-workspace-wrapper]` option.][cargo/8976]
1762 This option sets a wrapper to execute instead of `rustc`, for workspace members only.
1763 - [`cargo:rerun-if-changed` will now, if provided a directory, scan the entire
1764 contents of that directory for changes.][cargo/8973]
1765 - [Added the `--workspace` flag to the `cargo update` command.][cargo/8725]
1770 - [The search results tab and the help button are focusable with keyboard in rustdoc.][79896]
1771 - [Running tests will now print the total time taken to execute.][75752]
1776 - [The `compare_and_swap` method on atomics has been deprecated.][79261] It's
1777 recommended to use the `compare_exchange` and `compare_exchange_weak` methods instead.
1778 - [Changes in how `TokenStream`s are checked have fixed some cases where you could write
1779 unhygenic `macro_rules!` macros.][79472]
1780 - [`#![test]` as an inner attribute is now considered unstable like other inner macro
1781 attributes, and reports an error by default through the `soft_unstable` lint.][79003]
1782 - [Overriding a `forbid` lint at the same level that it was set is now a hard error.][78864]
1783 - [You can no longer intercept `panic!` calls by supplying your own macro.][78343] It's
1784 recommended to use the `#[panic_handler]` attribute to provide your own implementation.
1785 - [Semi-colons after item statements (e.g. `struct Foo {};`) now produce a warning.][78296]
1787 [74989]: https://github.com/rust-lang/rust/pull/74989
1788 [79261]: https://github.com/rust-lang/rust/pull/79261
1789 [79896]: https://github.com/rust-lang/rust/pull/79896
1790 [79484]: https://github.com/rust-lang/rust/pull/79484
1791 [79472]: https://github.com/rust-lang/rust/pull/79472
1792 [79270]: https://github.com/rust-lang/rust/pull/79270
1793 [79003]: https://github.com/rust-lang/rust/pull/79003
1794 [78864]: https://github.com/rust-lang/rust/pull/78864
1795 [78636]: https://github.com/rust-lang/rust/pull/78636
1796 [78439]: https://github.com/rust-lang/rust/pull/78439
1797 [78343]: https://github.com/rust-lang/rust/pull/78343
1798 [78296]: https://github.com/rust-lang/rust/pull/78296
1799 [78068]: https://github.com/rust-lang/rust/pull/78068
1800 [75752]: https://github.com/rust-lang/rust/pull/75752
1801 [74699]: https://github.com/rust-lang/rust/pull/74699
1802 [78142]: https://github.com/rust-lang/rust/pull/78142
1803 [77484]: https://github.com/rust-lang/rust/pull/77484
1804 [cargo/8976]: https://github.com/rust-lang/cargo/pull/8976
1805 [cargo/8973]: https://github.com/rust-lang/cargo/pull/8973
1806 [cargo/8725]: https://github.com/rust-lang/cargo/pull/8725
1807 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv4
1808 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_ipv6
1809 [`IpAddr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_unspecified
1810 [`IpAddr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_loopback
1811 [`IpAddr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/enum.IpAddr.html#method.is_multicast
1812 [`Ipv4Addr::octets`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.octets
1813 [`Ipv4Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_loopback
1814 [`Ipv4Addr::is_private`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_private
1815 [`Ipv4Addr::is_link_local`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_link_local
1816 [`Ipv4Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_multicast
1817 [`Ipv4Addr::is_broadcast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_broadcast
1818 [`Ipv4Addr::is_documentation`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.is_documentation
1819 [`Ipv4Addr::to_ipv6_compatible`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_compatible
1820 [`Ipv4Addr::to_ipv6_mapped`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv4Addr.html#method.to_ipv6_mapped
1821 [`Ipv6Addr::segments`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.segments
1822 [`Ipv6Addr::is_unspecified`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_unspecified
1823 [`Ipv6Addr::is_loopback`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_loopback
1824 [`Ipv6Addr::is_multicast`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.is_multicast
1825 [`Ipv6Addr::to_ipv4`]: https://doc.rust-lang.org/stable/std/net/struct.Ipv6Addr.html#method.to_ipv4
1826 [`Layout::align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.align
1827 [`Layout::from_size_align`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.from_size_align
1828 [`Layout::size`]: https://doc.rust-lang.org/stable/std/alloc/struct.Layout.html#method.size
1829 [`Ord::clamp`]: https://doc.rust-lang.org/stable/std/cmp/trait.Ord.html#method.clamp
1830 [`RefCell::take`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.take
1831 [`UnsafeCell::get_mut`]: https://doc.rust-lang.org/stable/std/cell/struct.UnsafeCell.html#method.get_mut
1832 [`bool::then`]: https://doc.rust-lang.org/stable/std/primitive.bool.html#method.then
1833 [`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
1834 [`f32::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.clamp
1835 [`f64::clamp`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.clamp
1836 [`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
1837 [`slice::fill`]: https://doc.rust-lang.org/stable/std/primitive.slice.html#method.fill
1840 Version 1.49.0 (2020-12-31)
1841 ============================
1844 -----------------------
1846 - [Unions can now implement `Drop`, and you can now have a field in a union
1847 with `ManuallyDrop<T>`.][77547]
1848 - [You can now cast uninhabited enums to integers.][76199]
1849 - [You can now bind by reference and by move in patterns.][76119] This
1850 allows you to selectively borrow individual components of a type. E.g.
1858 let person = Person {
1859 name: String::from("Alice"),
1863 // `name` is moved out of person, but `age` is referenced.
1864 let Person { name, ref age } = person;
1865 println!("{} {}", name, age);
1869 -----------------------
1871 - [Added tier 1\* support for `aarch64-unknown-linux-gnu`.][78228]
1872 - [Added tier 2 support for `aarch64-apple-darwin`.][75991]
1873 - [Added tier 2 support for `aarch64-pc-windows-msvc`.][75914]
1874 - [Added tier 3 support for `mipsel-unknown-none`.][78676]
1875 - [Raised the minimum supported LLVM version to LLVM 9.][78848]
1876 - [Output from threads spawned in tests is now captured.][78227]
1877 - [Change os and vendor values to "none" and "unknown" for some targets][78951]
1879 \* Refer to Rust's [platform support page][platform-support-doc] for more
1880 information on Rust's tiered platform support.
1883 -----------------------
1885 - [`RangeInclusive` now checks for exhaustion when calling `contains` and indexing.][78109]
1886 - [`ToString::to_string` now no longer shrinks the internal buffer in the default implementation.][77997]
1891 - [`slice::select_nth_unstable`]
1892 - [`slice::select_nth_unstable_by`]
1893 - [`slice::select_nth_unstable_by_key`]
1895 The following previously stable methods are now `const`.
1897 - [`Poll::is_ready`]
1898 - [`Poll::is_pending`]
1901 -----------------------
1902 - [Building a crate with `cargo-package` should now be independently reproducible.][cargo/8864]
1903 - [`cargo-tree` now marks proc-macro crates.][cargo/8765]
1904 - [Added `CARGO_PRIMARY_PACKAGE` build-time environment variable.][cargo/8758] This
1905 variable will be set if the crate being built is one the user selected to build, either
1906 with `-p` or through defaults.
1907 - [You can now use glob patterns when specifying packages & targets.][cargo/8752]
1913 - [Demoted `i686-unknown-freebsd` from host tier 2 to target tier 2 support.][78746]
1914 - [Macros that end with a semi-colon are now treated as statements even if they expand to nothing.][78376]
1915 - [Rustc will now check for the validity of some built-in attributes on enum variants.][77015]
1916 Previously such invalid or unused attributes could be ignored.
1917 - Leading whitespace is stripped more uniformly in documentation comments, which may change behavior. You
1918 read [this post about the changes][rustdoc-ws-post] for more details.
1919 - [Trait bounds are no longer inferred for associated types.][79904]
1923 These changes provide no direct user facing benefits, but represent significant
1924 improvements to the internals and overall performance of rustc and
1927 - [rustc's internal crates are now compiled using the `initial-exec` Thread
1928 Local Storage model.][78201]
1929 - [Calculate visibilities once in resolve.][78077]
1930 - [Added `system` to the `llvm-libunwind` bootstrap config option.][77703]
1931 - [Added `--color` for configuring terminal color support to bootstrap.][79004]
1934 [75991]: https://github.com/rust-lang/rust/pull/75991
1935 [78951]: https://github.com/rust-lang/rust/pull/78951
1936 [78848]: https://github.com/rust-lang/rust/pull/78848
1937 [78746]: https://github.com/rust-lang/rust/pull/78746
1938 [78376]: https://github.com/rust-lang/rust/pull/78376
1939 [78228]: https://github.com/rust-lang/rust/pull/78228
1940 [78227]: https://github.com/rust-lang/rust/pull/78227
1941 [78201]: https://github.com/rust-lang/rust/pull/78201
1942 [78109]: https://github.com/rust-lang/rust/pull/78109
1943 [78077]: https://github.com/rust-lang/rust/pull/78077
1944 [77997]: https://github.com/rust-lang/rust/pull/77997
1945 [77703]: https://github.com/rust-lang/rust/pull/77703
1946 [77547]: https://github.com/rust-lang/rust/pull/77547
1947 [77015]: https://github.com/rust-lang/rust/pull/77015
1948 [76199]: https://github.com/rust-lang/rust/pull/76199
1949 [76119]: https://github.com/rust-lang/rust/pull/76119
1950 [75914]: https://github.com/rust-lang/rust/pull/75914
1951 [79004]: https://github.com/rust-lang/rust/pull/79004
1952 [78676]: https://github.com/rust-lang/rust/pull/78676
1953 [79904]: https://github.com/rust-lang/rust/issues/79904
1954 [cargo/8864]: https://github.com/rust-lang/cargo/pull/8864
1955 [cargo/8765]: https://github.com/rust-lang/cargo/pull/8765
1956 [cargo/8758]: https://github.com/rust-lang/cargo/pull/8758
1957 [cargo/8752]: https://github.com/rust-lang/cargo/pull/8752
1958 [`slice::select_nth_unstable`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable
1959 [`slice::select_nth_unstable_by`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by
1960 [`slice::select_nth_unstable_by_key`]: https://doc.rust-lang.org/nightly/std/primitive.slice.html#method.select_nth_unstable_by_key
1961 [`Poll::is_ready`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_ready
1962 [`Poll::is_pending`]: https://doc.rust-lang.org/stable/std/task/enum.Poll.html#method.is_pending
1963 [rustdoc-ws-post]: https://blog.guillaume-gomez.fr/articles/2020-11-11+New+doc+comment+handling+in+rustdoc
1965 Version 1.48.0 (2020-11-19)
1966 ==========================
1971 - [The `unsafe` keyword is now syntactically permitted on modules.][75857] This
1972 is still rejected *semantically*, but can now be parsed by procedural macros.
1976 - [Stabilised the `-C link-self-contained=<yes|no>` compiler flag.][76158] This tells
1977 `rustc` whether to link its own C runtime and libraries or to rely on a external
1978 linker to find them. (Supported only on `windows-gnu`, `linux-musl`, and `wasi` platforms.)
1979 - [You can now use `-C target-feature=+crt-static` on `linux-gnu` targets.][77386]
1980 Note: If you're using cargo you must explicitly pass the `--target` flag.
1981 - [Added tier 2\* support for `aarch64-unknown-linux-musl`.][76420]
1983 \* Refer to Rust's [platform support page][platform-support-doc] for more
1984 information on Rust's tiered platform support.
1988 - [`io::Write` is now implemented for `&ChildStdin` `&Sink`, `&Stdout`,
1989 and `&Stderr`.][76275]
1990 - [All arrays of any length now implement `TryFrom<Vec<T>>`.][76310]
1991 - [The `matches!` macro now supports having a trailing comma.][74880]
1992 - [`Vec<A>` now implements `PartialEq<[B]>` where `A: PartialEq<B>`.][74194]
1993 - [The `RefCell::{replace, replace_with, clone}` methods now all use `#[track_caller]`.][77055]
1997 - [`slice::as_ptr_range`]
1998 - [`slice::as_mut_ptr_range`]
1999 - [`VecDeque::make_contiguous`]
2000 - [`future::pending`]
2003 The following previously stable methods are now `const fn`'s:
2005 - [`Option::is_some`]
2006 - [`Option::is_none`]
2007 - [`Option::as_ref`]
2009 - [`Result::is_err`]
2010 - [`Result::as_ref`]
2011 - [`Ordering::reverse`]
2012 - [`Ordering::then`]
2019 - [You can now link to items in `rustdoc` using the intra-doc link
2020 syntax.][74430] E.g. ``/// Uses [`std::future`]`` will automatically generate
2021 a link to `std::future`'s documentation. See ["Linking to items by
2022 name"][intradoc-links] for more information.
2023 - [You can now specify `#[doc(alias = "<alias>")]` on items to add search aliases
2024 when searching through `rustdoc`'s UI.][75740]
2028 - [Promotion of references to `'static` lifetime inside `const fn` now follows the
2029 same rules as inside a `fn` body.][75502] In particular, `&foo()` will not be
2030 promoted to `'static` lifetime any more inside `const fn`s.
2031 - [Associated type bindings on trait objects are now verified to meet the bounds
2032 declared on the trait when checking that they implement the trait.][27675]
2033 - [When trait bounds on associated types or opaque types are ambiguous, the
2034 compiler no longer makes an arbitrary choice on which bound to use.][54121]
2035 - [Fixed recursive nonterminals not being expanded in macros during
2036 pretty-print/reparse check.][77153] This may cause errors if your macro wasn't
2037 correctly handling recursive nonterminal tokens.
2038 - [`&mut` references to non zero-sized types are no longer promoted.][75585]
2039 - [`rustc` will now warn if you use attributes like `#[link_name]` or `#[cold]`
2040 in places where they have no effect.][73461]
2041 - [Updated `_mm256_extract_epi8` and `_mm256_extract_epi16` signatures in
2042 `arch::{x86, x86_64}` to return `i32` to match the vendor signatures.][73166]
2043 - [`mem::uninitialized` will now panic if any inner types inside a struct or enum
2044 disallow zero-initialization.][71274]
2045 - [`#[target_feature]` will now error if used in a place where it has no effect.][78143]
2046 - [Foreign exceptions are now caught by `catch_unwind` and will cause an abort.][70212]
2047 Note: This behaviour is not guaranteed and is still considered undefined behaviour,
2048 see the [`catch_unwind`] documentation for further information.
2054 These changes provide no direct user facing benefits, but represent significant
2055 improvements to the internals and overall performance of rustc and
2058 - [Building `rustc` from source now uses `ninja` by default over `make`.][74922]
2059 You can continue building with `make` by setting `ninja=false` in
2061 - [cg_llvm: `fewer_names` in `uncached_llvm_type`][76030]
2062 - [Made `ensure_sufficient_stack()` non-generic][76680]
2064 [78143]: https://github.com/rust-lang/rust/issues/78143
2065 [76680]: https://github.com/rust-lang/rust/pull/76680/
2066 [76030]: https://github.com/rust-lang/rust/pull/76030/
2067 [70212]: https://github.com/rust-lang/rust/pull/70212/
2068 [27675]: https://github.com/rust-lang/rust/issues/27675/
2069 [54121]: https://github.com/rust-lang/rust/issues/54121/
2070 [71274]: https://github.com/rust-lang/rust/pull/71274/
2071 [77386]: https://github.com/rust-lang/rust/pull/77386/
2072 [77153]: https://github.com/rust-lang/rust/pull/77153/
2073 [77055]: https://github.com/rust-lang/rust/pull/77055/
2074 [76275]: https://github.com/rust-lang/rust/pull/76275/
2075 [76310]: https://github.com/rust-lang/rust/pull/76310/
2076 [76420]: https://github.com/rust-lang/rust/pull/76420/
2077 [76158]: https://github.com/rust-lang/rust/pull/76158/
2078 [75857]: https://github.com/rust-lang/rust/pull/75857/
2079 [75585]: https://github.com/rust-lang/rust/pull/75585/
2080 [75740]: https://github.com/rust-lang/rust/pull/75740/
2081 [75502]: https://github.com/rust-lang/rust/pull/75502/
2082 [74880]: https://github.com/rust-lang/rust/pull/74880/
2083 [74922]: https://github.com/rust-lang/rust/pull/74922/
2084 [74430]: https://github.com/rust-lang/rust/pull/74430/
2085 [74194]: https://github.com/rust-lang/rust/pull/74194/
2086 [73461]: https://github.com/rust-lang/rust/pull/73461/
2087 [73166]: https://github.com/rust-lang/rust/pull/73166/
2088 [intradoc-links]: https://doc.rust-lang.org/rustdoc/linking-to-items-by-name.html
2089 [`catch_unwind`]: https://doc.rust-lang.org/std/panic/fn.catch_unwind.html
2090 [`Option::is_some`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_some
2091 [`Option::is_none`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.is_none
2092 [`Option::as_ref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_ref
2093 [`Result::is_ok`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_ok
2094 [`Result::is_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.is_err
2095 [`Result::as_ref`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.as_ref
2096 [`Ordering::reverse`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.reverse
2097 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
2098 [`slice::as_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr_range
2099 [`slice::as_mut_ptr_range`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_mut_ptr_range
2100 [`VecDeque::make_contiguous`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.make_contiguous
2101 [`future::pending`]: https://doc.rust-lang.org/std/future/fn.pending.html
2102 [`future::ready`]: https://doc.rust-lang.org/std/future/fn.ready.html
2105 Version 1.47.0 (2020-10-08)
2106 ==========================
2110 - [Closures will now warn when not used.][74869]
2114 - [Stabilized the `-C control-flow-guard` codegen option][73893], which enables
2115 [Control Flow Guard][1.47.0-cfg] for Windows platforms, and is ignored on other
2117 - [Upgraded to LLVM 11.][73526]
2118 - [Added tier 3\* support for the `thumbv4t-none-eabi` target.][74419]
2119 - [Upgrade the FreeBSD toolchain to version 11.4][75204]
2120 - [`RUST_BACKTRACE`'s output is now more compact.][75048]
2122 \* Refer to Rust's [platform support page][platform-support-doc] for more
2123 information on Rust's tiered platform support.
2127 - [`CStr` now implements `Index<RangeFrom<usize>>`.][74021]
2128 - [Traits in `std`/`core` are now implemented for arrays of any length, not just
2129 those of length less than 33.][74060]
2130 - [`ops::RangeFull` and `ops::Range` now implement Default.][73197]
2131 - [`panic::Location` now implements `Copy`, `Clone`, `Eq`, `Hash`, `Ord`,
2132 `PartialEq`, and `PartialOrd`.][73583]
2136 - [`Ident::new_raw`]
2137 - [`Range::is_empty`]
2138 - [`RangeInclusive::is_empty`]
2139 - [`Result::as_deref`]
2140 - [`Result::as_deref_mut`]
2142 - [`pointer::offset_from`]
2146 The following previously stable APIs have now been made const.
2148 - [The `new` method for all `NonZero` integers.][73858]
2149 - [The `checked_add`,`checked_sub`,`checked_mul`,`checked_neg`, `checked_shl`,
2150 `checked_shr`, `saturating_add`, `saturating_sub`, and `saturating_mul`
2151 methods for all integers.][73858]
2152 - [The `checked_abs`, `saturating_abs`, `saturating_neg`, and `signum` for all
2153 signed integers.][73858]
2154 - [The `is_ascii_alphabetic`, `is_ascii_uppercase`, `is_ascii_lowercase`,
2155 `is_ascii_alphanumeric`, `is_ascii_digit`, `is_ascii_hexdigit`,
2156 `is_ascii_punctuation`, `is_ascii_graphic`, `is_ascii_whitespace`, and
2157 `is_ascii_control` methods for `char` and `u8`.][73858]
2161 - [`build-dependencies` are now built with opt-level 0 by default.][cargo/8500]
2162 You can override this by setting the following in your `Cargo.toml`.
2164 [profile.release.build-override]
2167 - [`cargo-help` will now display man pages for commands rather just the
2168 `--help` text.][cargo/8456]
2169 - [`cargo-metadata` now emits a `test` field indicating if a target has
2170 tests enabled.][cargo/8478]
2171 - [`workspace.default-members` now respects `workspace.exclude`.][cargo/8485]
2172 - [`cargo-publish` will now use an alternative registry by default if it's the
2173 only registry specified in `package.publish`.][cargo/8571]
2177 - [Added a help button beside Rustdoc's searchbar that explains rustdoc's
2178 type based search.][75366]
2179 - [Added the Ayu theme to rustdoc.][71237]
2183 - [Bumped the minimum supported Emscripten version to 1.39.20.][75716]
2184 - [Fixed a regression parsing `{} && false` in tail expressions.][74650]
2185 - [Added changes to how proc-macros are expanded in `macro_rules!` that should
2186 help to preserve more span information.][73084] These changes may cause
2187 compiliation errors if your macro was unhygenic or didn't correctly handle
2189 - [Moved support for the CloudABI target to tier 3.][75568]
2190 - [`linux-gnu` targets now require minimum kernel 2.6.32 and glibc 2.11.][74163]
2191 - [Added the `rustc-docs` component.][75560] This allows you to install
2192 and read the documentation for the compiler internal APIs. (Currently only
2193 available for `x86_64-unknown-linux-gnu`.)
2198 - [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.
2200 [1.47.0-cfg]: https://docs.microsoft.com/en-us/windows/win32/secbp/control-flow-guard
2201 [75048]: https://github.com/rust-lang/rust/pull/75048/
2202 [74163]: https://github.com/rust-lang/rust/pull/74163/
2203 [71237]: https://github.com/rust-lang/rust/pull/71237/
2204 [74869]: https://github.com/rust-lang/rust/pull/74869/
2205 [73858]: https://github.com/rust-lang/rust/pull/73858/
2206 [75716]: https://github.com/rust-lang/rust/pull/75716/
2207 [75560]: https://github.com/rust-lang/rust/pull/75560/
2208 [75568]: https://github.com/rust-lang/rust/pull/75568/
2209 [75366]: https://github.com/rust-lang/rust/pull/75366/
2210 [75204]: https://github.com/rust-lang/rust/pull/75204/
2211 [74650]: https://github.com/rust-lang/rust/pull/74650/
2212 [74419]: https://github.com/rust-lang/rust/pull/74419/
2213 [73964]: https://github.com/rust-lang/rust/pull/73964/
2214 [74021]: https://github.com/rust-lang/rust/pull/74021/
2215 [74060]: https://github.com/rust-lang/rust/pull/74060/
2216 [73893]: https://github.com/rust-lang/rust/pull/73893/
2217 [73526]: https://github.com/rust-lang/rust/pull/73526/
2218 [73583]: https://github.com/rust-lang/rust/pull/73583/
2219 [73084]: https://github.com/rust-lang/rust/pull/73084/
2220 [73197]: https://github.com/rust-lang/rust/pull/73197/
2221 [cargo/8456]: https://github.com/rust-lang/cargo/pull/8456/
2222 [cargo/8478]: https://github.com/rust-lang/cargo/pull/8478/
2223 [cargo/8485]: https://github.com/rust-lang/cargo/pull/8485/
2224 [cargo/8500]: https://github.com/rust-lang/cargo/pull/8500/
2225 [cargo/8571]: https://github.com/rust-lang/cargo/pull/8571/
2226 [`Ident::new_raw`]: https://doc.rust-lang.org/nightly/proc_macro/struct.Ident.html#method.new_raw
2227 [`Range::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.Range.html#method.is_empty
2228 [`RangeInclusive::is_empty`]: https://doc.rust-lang.org/nightly/std/ops/struct.RangeInclusive.html#method.is_empty
2229 [`Result::as_deref_mut`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref_mut
2230 [`Result::as_deref`]: https://doc.rust-lang.org/nightly/std/result/enum.Result.html#method.as_deref
2231 [`Vec::leak`]: https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.leak
2232 [`f32::TAU`]: https://doc.rust-lang.org/nightly/std/f32/consts/constant.TAU.html
2233 [`f64::TAU`]: https://doc.rust-lang.org/nightly/std/f64/consts/constant.TAU.html
2234 [`pointer::offset_from`]: https://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.offset_from
2237 Version 1.46.0 (2020-08-27)
2238 ==========================
2242 - [`if`, `match`, and `loop` expressions can now be used in const functions.][72437]
2243 - [Additionally you are now also able to coerce and cast to slices (`&[T]`) in
2244 const functions.][73862]
2245 - [The `#[track_caller]` attribute can now be added to functions to use the
2246 function's caller's location information for panic messages.][72445]
2247 - [Recursively indexing into tuples no longer needs parentheses.][71322] E.g.
2248 `x.0.0` over `(x.0).0`.
2249 - [`mem::transmute` can now be used in statics and constants.][72920] **Note**
2250 You currently can't use `mem::transmute` in constant functions.
2254 - [You can now use the `cdylib` target on Apple iOS and tvOS platforms.][73516]
2255 - [Enabled static "Position Independent Executables" by default
2256 for `x86_64-unknown-linux-musl`.][70740]
2260 - [`mem::forget` is now a `const fn`.][73887]
2261 - [`String` now implements `From<char>`.][73466]
2262 - [The `leading_ones`, and `trailing_ones` methods have been stabilised for all
2263 integer types.][73032]
2264 - [`vec::IntoIter<T>` now implements `AsRef<[T]>`.][72583]
2265 - [All non-zero integer types (`NonZeroU8`) now implement `TryFrom` for their
2266 zero-able equivalent (e.g. `TryFrom<u8>`).][72717]
2267 - [`&[T]` and `&mut [T]` now implement `PartialEq<Vec<T>>`.][71660]
2268 - [`(String, u16)` now implements `ToSocketAddrs`.][73007]
2269 - [`vec::Drain<'_, T>` now implements `AsRef<[T]>`.][72584]
2274 - [`vec::Drain::as_slice`]
2278 Added a number of new environment variables that are now available when
2279 compiling your crate.
2281 - [`CARGO_BIN_NAME` and `CARGO_CRATE_NAME`][cargo/8270] Providing the name of
2282 the specific binary being compiled and the name of the crate.
2283 - [`CARGO_PKG_LICENSE`][cargo/8325] The license from the manifest of the package.
2284 - [`CARGO_PKG_LICENSE_FILE`][cargo/8387] The path to the license file.
2288 - [The target configuration option `abi_blacklist` has been renamed
2289 to `unsupported_abis`.][74150] The old name will still continue to work.
2290 - [Rustc will now warn if you cast a C-like enum that implements `Drop`.][72331]
2291 This was previously accepted but will become a hard error in a future release.
2292 - [Rustc will fail to compile if you have a struct with
2293 `#[repr(i128)]` or `#[repr(u128)]`.][74109] This representation is currently only
2295 - [Tokens passed to `macro_rules!` are now always captured.][73293] This helps
2296 ensure that spans have the correct information, and may cause breakage if you
2297 were relying on receiving spans with dummy information.
2298 - [The InnoSetup installer for Windows is no longer available.][72569] This was
2299 a legacy installer that was replaced by a MSI installer a few years ago but
2300 was still being built.
2301 - [`{f32, f64}::asinh` now returns the correct values for negative numbers.][72486]
2302 - [Rustc will no longer accept overlapping trait implementations that only
2303 differ in how the lifetime was bound.][72493]
2304 - [Rustc now correctly relates the lifetime of an existential associated
2305 type.][71896] This fixes some edge cases where `rustc` would erroneously allow
2306 you to pass a shorter lifetime than expected.
2307 - [Rustc now dynamically links to `libz` (also called `zlib`) on Linux.][74420]
2308 The library will need to be installed for `rustc` to work, even though we
2309 expect it to be already available on most systems.
2310 - [Tests annotated with `#[should_panic]` are broken on ARMv7 while running
2312 - [Pretty printing of some tokens in procedural macros changed.][75453] The
2313 exact output returned by rustc's pretty printing is an unstable
2314 implementation detail: we recommend any macro relying on it to switch to a
2315 more robust parsing system.
2317 [75453]: https://github.com/rust-lang/rust/issues/75453/
2318 [74820]: https://github.com/rust-lang/rust/issues/74820/
2319 [74420]: https://github.com/rust-lang/rust/issues/74420/
2320 [74109]: https://github.com/rust-lang/rust/pull/74109/
2321 [74150]: https://github.com/rust-lang/rust/pull/74150/
2322 [73862]: https://github.com/rust-lang/rust/pull/73862/
2323 [73887]: https://github.com/rust-lang/rust/pull/73887/
2324 [73466]: https://github.com/rust-lang/rust/pull/73466/
2325 [73516]: https://github.com/rust-lang/rust/pull/73516/
2326 [73293]: https://github.com/rust-lang/rust/pull/73293/
2327 [73007]: https://github.com/rust-lang/rust/pull/73007/
2328 [73032]: https://github.com/rust-lang/rust/pull/73032/
2329 [72920]: https://github.com/rust-lang/rust/pull/72920/
2330 [72569]: https://github.com/rust-lang/rust/pull/72569/
2331 [72583]: https://github.com/rust-lang/rust/pull/72583/
2332 [72584]: https://github.com/rust-lang/rust/pull/72584/
2333 [72717]: https://github.com/rust-lang/rust/pull/72717/
2334 [72437]: https://github.com/rust-lang/rust/pull/72437/
2335 [72445]: https://github.com/rust-lang/rust/pull/72445/
2336 [72486]: https://github.com/rust-lang/rust/pull/72486/
2337 [72493]: https://github.com/rust-lang/rust/pull/72493/
2338 [72331]: https://github.com/rust-lang/rust/pull/72331/
2339 [71896]: https://github.com/rust-lang/rust/pull/71896/
2340 [71660]: https://github.com/rust-lang/rust/pull/71660/
2341 [71322]: https://github.com/rust-lang/rust/pull/71322/
2342 [70740]: https://github.com/rust-lang/rust/pull/70740/
2343 [cargo/8270]: https://github.com/rust-lang/cargo/pull/8270/
2344 [cargo/8325]: https://github.com/rust-lang/cargo/pull/8325/
2345 [cargo/8387]: https://github.com/rust-lang/cargo/pull/8387/
2346 [`Option::zip`]: https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.zip
2347 [`vec::Drain::as_slice`]: https://doc.rust-lang.org/stable/std/vec/struct.Drain.html#method.as_slice
2350 Version 1.45.2 (2020-08-03)
2351 ==========================
2353 * [Fix bindings in tuple struct patterns][74954]
2354 * [Fix track_caller integration with trait objects][74784]
2356 [74954]: https://github.com/rust-lang/rust/issues/74954
2357 [74784]: https://github.com/rust-lang/rust/issues/74784
2360 Version 1.45.1 (2020-07-30)
2361 ==========================
2363 * [Fix const propagation with references.][73613]
2364 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
2365 * [Avoid spurious implicit region bound.][74509]
2366 * [Install clippy on x.py install][74457]
2368 [73613]: https://github.com/rust-lang/rust/pull/73613
2369 [73078]: https://github.com/rust-lang/rust/issues/73078
2370 [74509]: https://github.com/rust-lang/rust/pull/74509
2371 [74457]: https://github.com/rust-lang/rust/pull/74457
2374 Version 1.45.0 (2020-07-16)
2375 ==========================
2379 - [Out of range float to int conversions using `as` has been defined as a saturating
2380 conversion.][71269] This was previously undefined behaviour, but you can use the
2381 `{f64, f32}::to_int_unchecked` methods to continue using the current behaviour, which
2382 may be desirable in rare performance sensitive situations.
2383 - [`mem::Discriminant<T>` now uses `T`'s discriminant type instead of always
2384 using `u64`.][70705]
2385 - [Function like procedural macros can now be used in expression, pattern, and statement
2386 positions.][68717] This means you can now use a function-like procedural macro
2387 anywhere you can use a declarative (`macro_rules!`) macro.
2391 - [You can now override individual target features through the `target-feature`
2392 flag.][72094] E.g. `-C target-feature=+avx2 -C target-feature=+fma` is now
2393 equivalent to `-C target-feature=+avx2,+fma`.
2394 - [Added the `force-unwind-tables` flag.][69984] This option allows
2395 rustc to always generate unwind tables regardless of panic strategy.
2396 - [Added the `embed-bitcode` flag.][71716] This codegen flag allows rustc
2397 to include LLVM bitcode into generated `rlib`s (this is on by default).
2398 - [Added the `tiny` value to the `code-model` codegen flag.][72397]
2399 - [Added tier 3 support\* for the `mipsel-sony-psp` target.][72062]
2400 - [Added tier 3 support for the `thumbv7a-uwp-windows-msvc` target.][72133]
2401 - [Upgraded to LLVM 10.][67759]
2403 \* Refer to Rust's [platform support page][platform-support-doc] for more
2404 information on Rust's tiered platform support.
2409 - [`net::{SocketAddr, SocketAddrV4, SocketAddrV6}` now implements `PartialOrd`
2411 - [`proc_macro::TokenStream` now implements `Default`.][72234]
2412 - [You can now use `char` with
2413 `ops::{Range, RangeFrom, RangeFull, RangeInclusive, RangeTo}` to iterate over
2414 a range of codepoints.][72413] E.g.
2415 you can now write the following;
2417 for ch in 'a'..='z' {
2421 // Prints "abcdefghijklmnopqrstuvwxyz"
2423 - [`OsString` now implements `FromStr`.][71662]
2424 - [The `saturating_neg` method has been added to all signed integer primitive
2425 types, and the `saturating_abs` method has been added for all integer
2426 primitive types.][71886]
2427 - [`Arc<T>`, `Rc<T>` now implement `From<Cow<'_, T>>`, and `Box` now
2428 implements `From<Cow>` when `T` is `[T: Copy]`, `str`, `CStr`, `OsStr`,
2430 - [`Box<[T]>` now implements `From<[T; N]>`.][71095]
2431 - [`BitOr` and `BitOrAssign` are implemented for all `NonZero`
2432 integer types.][69813]
2433 - [The `fetch_min`, and `fetch_max` methods have been added to all atomic
2434 integer types.][72324]
2435 - [The `fetch_update` method has been added to all atomic integer types.][71843]
2440 - [`BTreeMap::remove_entry`]
2442 - [`rc::Weak::as_ptr`]
2443 - [`rc::Weak::from_raw`]
2444 - [`rc::Weak::into_raw`]
2445 - [`str::strip_prefix`]
2446 - [`str::strip_suffix`]
2447 - [`sync::Weak::as_ptr`]
2448 - [`sync::Weak::from_raw`]
2449 - [`sync::Weak::into_raw`]
2450 - [`char::UNICODE_VERSION`]
2451 - [`Span::resolved_at`]
2452 - [`Span::located_at`]
2453 - [`Span::mixed_site`]
2454 - [`unix::process::CommandExt::arg0`]
2459 - [Cargo uses the `embed-bitcode` flag to optimize disk usage and build
2464 - [Rustdoc now supports strikethrough text in Markdown.][71928] E.g.
2465 `~~outdated information~~` becomes "~~outdated information~~".
2466 - [Added an emoji to Rustdoc's deprecated API message.][72014]
2470 - [Trying to self initialize a static value (that is creating a value using
2471 itself) is unsound and now causes a compile error.][71140]
2472 - [`{f32, f64}::powi` now returns a slightly different value on Windows.][73420]
2473 This is due to changes in LLVM's intrinsics which `{f32, f64}::powi` uses.
2474 - [Rustdoc's CLI's extra error exit codes have been removed.][71900] These were
2475 previously undocumented and not intended for public use. Rustdoc still provides
2476 a non-zero exit code on errors.
2477 - [Rustc's `lto` flag is incompatible with the new `embed-bitcode=no`.][71848]
2478 This may cause issues if LTO is enabled through `RUSTFLAGS` or `cargo rustc`
2479 flags while cargo is adding `embed-bitcode` itself. The recommended way to
2480 control LTO is with Cargo profiles, either in `Cargo.toml` or `.cargo/config`,
2481 or by setting `CARGO_PROFILE_<name>_LTO` in the environment.
2485 - [Make clippy a git subtree instead of a git submodule][70655]
2486 - [Unify the undo log of all snapshot types][69464]
2488 [71848]: https://github.com/rust-lang/rust/issues/71848/
2489 [73420]: https://github.com/rust-lang/rust/issues/73420/
2490 [72324]: https://github.com/rust-lang/rust/pull/72324/
2491 [71843]: https://github.com/rust-lang/rust/pull/71843/
2492 [71886]: https://github.com/rust-lang/rust/pull/71886/
2493 [72234]: https://github.com/rust-lang/rust/pull/72234/
2494 [72239]: https://github.com/rust-lang/rust/pull/72239/
2495 [72397]: https://github.com/rust-lang/rust/pull/72397/
2496 [72413]: https://github.com/rust-lang/rust/pull/72413/
2497 [72014]: https://github.com/rust-lang/rust/pull/72014/
2498 [72062]: https://github.com/rust-lang/rust/pull/72062/
2499 [72094]: https://github.com/rust-lang/rust/pull/72094/
2500 [72133]: https://github.com/rust-lang/rust/pull/72133/
2501 [67759]: https://github.com/rust-lang/rust/pull/67759/
2502 [71900]: https://github.com/rust-lang/rust/pull/71900/
2503 [71928]: https://github.com/rust-lang/rust/pull/71928/
2504 [71662]: https://github.com/rust-lang/rust/pull/71662/
2505 [71716]: https://github.com/rust-lang/rust/pull/71716/
2506 [71447]: https://github.com/rust-lang/rust/pull/71447/
2507 [71269]: https://github.com/rust-lang/rust/pull/71269/
2508 [71095]: https://github.com/rust-lang/rust/pull/71095/
2509 [71140]: https://github.com/rust-lang/rust/pull/71140/
2510 [70655]: https://github.com/rust-lang/rust/pull/70655/
2511 [70705]: https://github.com/rust-lang/rust/pull/70705/
2512 [69984]: https://github.com/rust-lang/rust/pull/69984/
2513 [69813]: https://github.com/rust-lang/rust/pull/69813/
2514 [69464]: https://github.com/rust-lang/rust/pull/69464/
2515 [68717]: https://github.com/rust-lang/rust/pull/68717/
2516 [cargo/8066]: https://github.com/rust-lang/cargo/pull/8066
2517 [`Arc::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Arc.html#method.as_ptr
2518 [`BTreeMap::remove_entry`]: https://doc.rust-lang.org/stable/std/collections/struct.BTreeMap.html#method.remove_entry
2519 [`Rc::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Rc.html#method.as_ptr
2520 [`rc::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.as_ptr
2521 [`rc::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.from_raw
2522 [`rc::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/rc/struct.Weak.html#method.into_raw
2523 [`sync::Weak::as_ptr`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.as_ptr
2524 [`sync::Weak::from_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.from_raw
2525 [`sync::Weak::into_raw`]: https://doc.rust-lang.org/stable/std/sync/struct.Weak.html#method.into_raw
2526 [`str::strip_prefix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_prefix
2527 [`str::strip_suffix`]: https://doc.rust-lang.org/stable/std/primitive.str.html#method.strip_suffix
2528 [`char::UNICODE_VERSION`]: https://doc.rust-lang.org/stable/std/char/constant.UNICODE_VERSION.html
2529 [`Span::resolved_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.resolved_at
2530 [`Span::located_at`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.located_at
2531 [`Span::mixed_site`]: https://doc.rust-lang.org/stable/proc_macro/struct.Span.html#method.mixed_site
2532 [`unix::process::CommandExt::arg0`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.arg0
2535 Version 1.44.1 (2020-06-18)
2536 ===========================
2538 * [rustfmt accepts rustfmt_skip in cfg_attr again.][73078]
2539 * [Don't hash executable filenames on apple platforms, fixing backtraces.][cargo/8329]
2540 * [Fix crashes when finding backtrace on macOS.][71397]
2541 * [Clippy applies lint levels into different files.][clippy/5356]
2543 [71397]: https://github.com/rust-lang/rust/issues/71397
2544 [73078]: https://github.com/rust-lang/rust/issues/73078
2545 [cargo/8329]: https://github.com/rust-lang/cargo/pull/8329
2546 [clippy/5356]: https://github.com/rust-lang/rust-clippy/issues/5356
2549 Version 1.44.0 (2020-06-04)
2550 ==========================
2554 - [You can now use `async/.await` with `#[no_std]` enabled.][69033]
2555 - [Added the `unused_braces` lint.][70081]
2557 **Syntax-only changes**
2559 - [Expansion-driven outline module parsing][69838]
2564 mod baz; // `foo/bar/baz.rs` doesn't exist, but no error!
2569 These are still rejected semantically, so you will likely receive an error but
2570 these changes can be seen and parsed by macros and conditional compilation.
2574 - [Rustc now respects the `-C codegen-units` flag in incremental mode.][70156]
2575 Additionally when in incremental mode rustc defaults to 256 codegen units.
2576 - [Refactored `catch_unwind` to have zero-cost, unless unwinding is enabled and
2577 a panic is thrown.][67502]
2578 - [Added tier 3\* support for the `aarch64-unknown-none` and
2579 `aarch64-unknown-none-softfloat` targets.][68334]
2580 - [Added tier 3 support for `arm64-apple-tvos` and
2581 `x86_64-apple-tvos` targets.][68191]
2586 - [Special cased `vec![]` to map directly to `Vec::new()`.][70632] This allows
2587 `vec![]` to be able to be used in `const` contexts.
2588 - [`convert::Infallible` now implements `Hash`.][70281]
2589 - [`OsString` now implements `DerefMut` and `IndexMut` returning
2590 a `&mut OsStr`.][70048]
2591 - [Unicode 13 is now supported.][69929]
2592 - [`String` now implements `From<&mut str>`.][69661]
2593 - [`IoSlice` now implements `Copy`.][69403]
2594 - [`Vec<T>` now implements `From<[T; N]>`.][68692] Where `N` is at most 32.
2595 - [`proc_macro::LexError` now implements `fmt::Display` and `Error`.][68899]
2596 - [`from_le_bytes`, `to_le_bytes`, `from_be_bytes`, `to_be_bytes`,
2597 `from_ne_bytes`, and `to_ne_bytes` methods are now `const` for all
2598 integer types.][69373]
2602 - [`PathBuf::with_capacity`]
2603 - [`PathBuf::capacity`]
2604 - [`PathBuf::clear`]
2605 - [`PathBuf::reserve`]
2606 - [`PathBuf::reserve_exact`]
2607 - [`PathBuf::shrink_to_fit`]
2608 - [`f32::to_int_unchecked`]
2609 - [`f64::to_int_unchecked`]
2610 - [`Layout::align_to`]
2611 - [`Layout::pad_to_align`]
2613 - [`Layout::extend`]
2617 - [Added the `cargo tree` command which will print a tree graph of
2618 your dependencies.][cargo/8062] E.g.
2620 mdbook v0.3.2 (/Users/src/rust/mdbook)
2622 │ ├── html5ever v0.24.0
2624 │ │ │ └── cfg-if v0.1.9
2626 │ │ └── markup5ever v0.9.0
2627 │ │ ├── log v0.4.8 (*)
2629 │ │ │ └── phf_shared v0.7.24
2630 │ │ │ ├── siphasher v0.2.3
2631 │ │ │ └── unicase v1.4.2
2632 │ │ │ [build-dependencies]
2633 │ │ │ └── version_check v0.1.5
2636 You can also display dependencies on multiple versions of the same crate with
2637 `cargo tree -d` (short for `cargo tree --duplicates`).
2641 - [Rustdoc now allows you to specify `--crate-version` to have rustdoc include
2642 the version in the sidebar.][69494]
2646 - [Rustc now correctly generates static libraries on Windows GNU targets with
2647 the `.a` extension, rather than the previous `.lib`.][70937]
2648 - [Removed the `-C no_integrated_as` flag from rustc.][70345]
2649 - [The `file_name` property in JSON output of macro errors now points the actual
2650 source file rather than the previous format of `<NAME macros>`.][70969]
2651 **Note:** this may not point to a file that actually exists on the user's system.
2652 - [The minimum required external LLVM version has been bumped to LLVM 8.][71147]
2653 - [`mem::{zeroed, uninitialised}` will now panic when used with types that do
2654 not allow zero initialization such as `NonZeroU8`.][66059] This was
2655 previously a warning.
2656 - [In 1.45.0 (the next release) converting a `f64` to `u32` using the `as`
2657 operator has been defined as a saturating operation.][71269] This was previously
2658 undefined behaviour, but you can use the `{f64, f32}::to_int_unchecked` methods to
2659 continue using the current behaviour, which may be desirable in rare performance
2660 sensitive situations.
2664 These changes provide no direct user facing benefits, but represent significant
2665 improvements to the internals and overall performance of rustc and
2668 - [dep_graph Avoid allocating a set on when the number reads are small.][69778]
2669 - [Replace big JS dict with JSON parsing.][71250]
2671 [69373]: https://github.com/rust-lang/rust/pull/69373/
2672 [66059]: https://github.com/rust-lang/rust/pull/66059/
2673 [68191]: https://github.com/rust-lang/rust/pull/68191/
2674 [68899]: https://github.com/rust-lang/rust/pull/68899/
2675 [71147]: https://github.com/rust-lang/rust/pull/71147/
2676 [71250]: https://github.com/rust-lang/rust/pull/71250/
2677 [70937]: https://github.com/rust-lang/rust/pull/70937/
2678 [70969]: https://github.com/rust-lang/rust/pull/70969/
2679 [70632]: https://github.com/rust-lang/rust/pull/70632/
2680 [70281]: https://github.com/rust-lang/rust/pull/70281/
2681 [70345]: https://github.com/rust-lang/rust/pull/70345/
2682 [70048]: https://github.com/rust-lang/rust/pull/70048/
2683 [70081]: https://github.com/rust-lang/rust/pull/70081/
2684 [70156]: https://github.com/rust-lang/rust/pull/70156/
2685 [71269]: https://github.com/rust-lang/rust/pull/71269/
2686 [69838]: https://github.com/rust-lang/rust/pull/69838/
2687 [69929]: https://github.com/rust-lang/rust/pull/69929/
2688 [69661]: https://github.com/rust-lang/rust/pull/69661/
2689 [69778]: https://github.com/rust-lang/rust/pull/69778/
2690 [69494]: https://github.com/rust-lang/rust/pull/69494/
2691 [69403]: https://github.com/rust-lang/rust/pull/69403/
2692 [69033]: https://github.com/rust-lang/rust/pull/69033/
2693 [68692]: https://github.com/rust-lang/rust/pull/68692/
2694 [68334]: https://github.com/rust-lang/rust/pull/68334/
2695 [67502]: https://github.com/rust-lang/rust/pull/67502/
2696 [cargo/8062]: https://github.com/rust-lang/cargo/pull/8062/
2697 [`PathBuf::with_capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.with_capacity
2698 [`PathBuf::capacity`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.capacity
2699 [`PathBuf::clear`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.clear
2700 [`PathBuf::reserve`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve
2701 [`PathBuf::reserve_exact`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.reserve_exact
2702 [`PathBuf::shrink_to_fit`]: https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.shrink_to_fit
2703 [`f32::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_int_unchecked
2704 [`f64::to_int_unchecked`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_int_unchecked
2705 [`Layout::align_to`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.align_to
2706 [`Layout::pad_to_align`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.pad_to_align
2707 [`Layout::array`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.array
2708 [`Layout::extend`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html#method.extend
2711 Version 1.43.1 (2020-05-07)
2712 ===========================
2714 * [Updated openssl-src to 1.1.1g for CVE-2020-1967.][71430]
2715 * [Fixed the stabilization of AVX-512 features.][71473]
2716 * [Fixed `cargo package --list` not working with unpublished dependencies.][cargo/8151]
2718 [71430]: https://github.com/rust-lang/rust/pull/71430
2719 [71473]: https://github.com/rust-lang/rust/issues/71473
2720 [cargo/8151]: https://github.com/rust-lang/cargo/issues/8151
2723 Version 1.43.0 (2020-04-23)
2724 ==========================
2728 - [Fixed using binary operations with `&{number}` (e.g. `&1.0`) not having
2729 the type inferred correctly.][68129]
2730 - [Attributes such as `#[cfg()]` can now be used on `if` expressions.][69201]
2732 **Syntax only changes**
2733 - [Allow `type Foo: Ord` syntactically.][69361]
2734 - [Fuse associated and extern items up to defaultness.][69194]
2735 - [Syntactically allow `self` in all `fn` contexts.][68764]
2736 - [Merge `fn` syntax + cleanup item parsing.][68728]
2737 - [`item` macro fragments can be interpolated into `trait`s, `impl`s, and `extern` blocks.][69366]
2738 For example, you may now write:
2740 macro_rules! mac_trait {
2750 These are still rejected *semantically*, so you will likely receive an error but
2751 these changes can be seen and parsed by macros and
2752 conditional compilation.
2757 - [You can now pass multiple lint flags to rustc to override the previous
2758 flags.][67885] For example; `rustc -D unused -A unused-variables` denies
2759 everything in the `unused` lint group except `unused-variables` which
2760 is explicitly allowed. However, passing `rustc -A unused-variables -D unused` denies
2761 everything in the `unused` lint group **including** `unused-variables` since
2762 the allow flag is specified before the deny flag (and therefore overridden).
2763 - [rustc will now prefer your system MinGW libraries over its bundled libraries
2764 if they are available on `windows-gnu`.][67429]
2765 - [rustc now buffers errors/warnings printed in JSON.][69227]
2769 - [`Arc<[T; N]>`, `Box<[T; N]>`, and `Rc<[T; N]>`, now implement
2770 `TryFrom<Arc<[T]>>`,`TryFrom<Box<[T]>>`, and `TryFrom<Rc<[T]>>`
2771 respectively.][69538] **Note** These conversions are only available when `N`
2773 - [You can now use associated constants on floats and integers directly, rather
2774 than having to import the module.][68952] e.g. You can now write `u32::MAX` or
2775 `f32::NAN` with no imports.
2776 - [`u8::is_ascii` is now `const`.][68984]
2777 - [`String` now implements `AsMut<str>`.][68742]
2778 - [Added the `primitive` module to `std` and `core`.][67637] This module
2779 reexports Rust's primitive types. This is mainly useful in macros
2780 where you want avoid these types being shadowed.
2781 - [Relaxed some of the trait bounds on `HashMap` and `HashSet`.][67642]
2782 - [`string::FromUtf8Error` now implements `Clone + Eq`.][68738]
2786 - [`Once::is_completed`]
2791 - [`iter::once_with`]
2795 - [You can now set config `[profile]`s in your `.cargo/config`, or through
2796 your environment.][cargo/7823]
2797 - [Cargo will now set `CARGO_BIN_EXE_<name>` pointing to a binary's
2798 executable path when running integration tests or benchmarks.][cargo/7697]
2799 `<name>` is the name of your binary as-is e.g. If you wanted the executable
2800 path for a binary named `my-program`you would use `env!("CARGO_BIN_EXE_my-program")`.
2804 - [Certain checks in the `const_err` lint were deemed unrelated to const
2805 evaluation][69185], and have been moved to the `unconditional_panic` and
2806 `arithmetic_overflow` lints.
2811 - [Having trailing syntax in the `assert!` macro is now a hard error.][69548] This
2812 has been a warning since 1.36.0.
2813 - [Fixed `Self` not having the correctly inferred type.][69340] This incorrectly
2814 led to some instances being accepted, and now correctly emits a hard error.
2816 [69340]: https://github.com/rust-lang/rust/pull/69340
2820 These changes provide no direct user facing benefits, but represent significant
2821 improvements to the internals and overall performance of `rustc` and
2824 - [All components are now built with `opt-level=3` instead of `2`.][67878]
2825 - [Improved how rustc generates drop code.][67332]
2826 - [Improved performance from `#[inline]`-ing certain hot functions.][69256]
2827 - [traits: preallocate 2 Vecs of known initial size][69022]
2828 - [Avoid exponential behaviour when relating types][68772]
2829 - [Skip `Drop` terminators for enum variants without drop glue][68943]
2830 - [Improve performance of coherence checks][68966]
2831 - [Deduplicate types in the generator witness][68672]
2832 - [Invert control in struct_lint_level.][68725]
2834 [67332]: https://github.com/rust-lang/rust/pull/67332/
2835 [67429]: https://github.com/rust-lang/rust/pull/67429/
2836 [67637]: https://github.com/rust-lang/rust/pull/67637/
2837 [67642]: https://github.com/rust-lang/rust/pull/67642/
2838 [67878]: https://github.com/rust-lang/rust/pull/67878/
2839 [67885]: https://github.com/rust-lang/rust/pull/67885/
2840 [68129]: https://github.com/rust-lang/rust/pull/68129/
2841 [68672]: https://github.com/rust-lang/rust/pull/68672/
2842 [68725]: https://github.com/rust-lang/rust/pull/68725/
2843 [68728]: https://github.com/rust-lang/rust/pull/68728/
2844 [68738]: https://github.com/rust-lang/rust/pull/68738/
2845 [68742]: https://github.com/rust-lang/rust/pull/68742/
2846 [68764]: https://github.com/rust-lang/rust/pull/68764/
2847 [68772]: https://github.com/rust-lang/rust/pull/68772/
2848 [68943]: https://github.com/rust-lang/rust/pull/68943/
2849 [68952]: https://github.com/rust-lang/rust/pull/68952/
2850 [68966]: https://github.com/rust-lang/rust/pull/68966/
2851 [68984]: https://github.com/rust-lang/rust/pull/68984/
2852 [69022]: https://github.com/rust-lang/rust/pull/69022/
2853 [69185]: https://github.com/rust-lang/rust/pull/69185/
2854 [69194]: https://github.com/rust-lang/rust/pull/69194/
2855 [69201]: https://github.com/rust-lang/rust/pull/69201/
2856 [69227]: https://github.com/rust-lang/rust/pull/69227/
2857 [69548]: https://github.com/rust-lang/rust/pull/69548/
2858 [69256]: https://github.com/rust-lang/rust/pull/69256/
2859 [69361]: https://github.com/rust-lang/rust/pull/69361/
2860 [69366]: https://github.com/rust-lang/rust/pull/69366/
2861 [69538]: https://github.com/rust-lang/rust/pull/69538/
2862 [cargo/7823]: https://github.com/rust-lang/cargo/pull/7823
2863 [cargo/7697]: https://github.com/rust-lang/cargo/pull/7697
2864 [`Once::is_completed`]: https://doc.rust-lang.org/std/sync/struct.Once.html#method.is_completed
2865 [`f32::LOG10_2`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG10_2.html
2866 [`f32::LOG2_10`]: https://doc.rust-lang.org/std/f32/consts/constant.LOG2_10.html
2867 [`f64::LOG10_2`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG10_2.html
2868 [`f64::LOG2_10`]: https://doc.rust-lang.org/std/f64/consts/constant.LOG2_10.html
2869 [`iter::once_with`]: https://doc.rust-lang.org/std/iter/fn.once_with.html
2872 Version 1.42.0 (2020-03-12)
2873 ==========================
2877 - [You can now use the slice pattern syntax with subslices.][67712] e.g.
2879 fn foo(words: &[&str]) {
2881 ["Hello", "World", "!", ..] => println!("Hello World!"),
2882 ["Foo", "Bar", ..] => println!("Baz"),
2883 rest => println!("{:?}", rest),
2887 - [You can now use `#[repr(transparent)]` on univariant `enum`s.][68122] Meaning
2888 that you can create an enum that has the exact layout and ABI of the type
2890 - [You can now use outer attribute procedural macros on inline modules.][64273]
2891 - [There are some *syntax-only* changes:][67131]
2892 - `default` is syntactically allowed before items in `trait` definitions.
2893 - Items in `impl`s (i.e. `const`s, `type`s, and `fn`s) may syntactically
2894 leave out their bodies in favor of `;`.
2895 - Bounds on associated types in `impl`s are now syntactically allowed
2896 (e.g. `type Foo: Ord;`).
2897 - `...` (the C-variadic type) may occur syntactically directly as the type of
2898 any function parameter.
2900 These are still rejected *semantically*, so you will likely receive an error
2901 but these changes can be seen and parsed by procedural macros and
2902 conditional compilation.
2906 - [Added tier 2\* support for `armv7a-none-eabi`.][68253]
2907 - [Added tier 2 support for `riscv64gc-unknown-linux-gnu`.][68339]
2908 - [`Option::{expect,unwrap}` and
2909 `Result::{expect, expect_err, unwrap, unwrap_err}` now produce panic messages
2910 pointing to the location where they were called, rather than
2911 `core`'s internals. ][67887]
2913 \* Refer to Rust's [platform support page][platform-support-doc] for more
2914 information on Rust's tiered platform support.
2918 - [`iter::Empty<T>` now implements `Send` and `Sync` for any `T`.][68348]
2919 - [`Pin::{map_unchecked, map_unchecked_mut}` no longer require the return type
2920 to implement `Sized`.][67935]
2921 - [`io::Cursor` now derives `PartialEq` and `Eq`.][67233]
2922 - [`Layout::new` is now `const`.][66254]
2923 - [Added Standard Library support for `riscv64gc-unknown-linux-gnu`.][66899]
2928 - [`CondVar::wait_while`]
2929 - [`CondVar::wait_timeout_while`]
2931 - [`DebugMap::value`]
2932 - [`ManuallyDrop::take`]
2934 - [`ptr::slice_from_raw_parts_mut`]
2935 - [`ptr::slice_from_raw_parts`]
2939 - [You no longer need to include `extern crate proc_macro;` to be able to
2940 `use proc_macro;` in the `2018` edition.][cargo/7700]
2944 - [`Error::description` has been deprecated, and its use will now produce a
2945 warning.][66919] It's recommended to use `Display`/`to_string` instead.
2947 [68253]: https://github.com/rust-lang/rust/pull/68253/
2948 [68348]: https://github.com/rust-lang/rust/pull/68348/
2949 [67935]: https://github.com/rust-lang/rust/pull/67935/
2950 [68339]: https://github.com/rust-lang/rust/pull/68339/
2951 [68122]: https://github.com/rust-lang/rust/pull/68122/
2952 [64273]: https://github.com/rust-lang/rust/pull/64273/
2953 [67712]: https://github.com/rust-lang/rust/pull/67712/
2954 [67887]: https://github.com/rust-lang/rust/pull/67887/
2955 [67131]: https://github.com/rust-lang/rust/pull/67131/
2956 [67233]: https://github.com/rust-lang/rust/pull/67233/
2957 [66899]: https://github.com/rust-lang/rust/pull/66899/
2958 [66919]: https://github.com/rust-lang/rust/pull/66919/
2959 [66254]: https://github.com/rust-lang/rust/pull/66254/
2960 [cargo/7700]: https://github.com/rust-lang/cargo/pull/7700
2961 [`DebugMap::key`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.key
2962 [`DebugMap::value`]: https://doc.rust-lang.org/stable/std/fmt/struct.DebugMap.html#method.value
2963 [`ManuallyDrop::take`]: https://doc.rust-lang.org/stable/std/mem/struct.ManuallyDrop.html#method.take
2964 [`matches!`]: https://doc.rust-lang.org/stable/std/macro.matches.html
2965 [`ptr::slice_from_raw_parts_mut`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts_mut.html
2966 [`ptr::slice_from_raw_parts`]: https://doc.rust-lang.org/stable/std/ptr/fn.slice_from_raw_parts.html
2967 [`CondVar::wait_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_while
2968 [`CondVar::wait_timeout_while`]: https://doc.rust-lang.org/stable/std/sync/struct.Condvar.html#method.wait_timeout_while
2971 Version 1.41.1 (2020-02-27)
2972 ===========================
2974 * [Always check types of static items][69145]
2975 * [Always check lifetime bounds of `Copy` impls][69145]
2976 * [Fix miscompilation in callers of `Layout::repeat`][69225]
2978 [69225]: https://github.com/rust-lang/rust/issues/69225
2979 [69145]: https://github.com/rust-lang/rust/pull/69145
2982 Version 1.41.0 (2020-01-30)
2983 ===========================
2988 - [You can now pass type parameters to foreign items when implementing
2989 traits.][65879] E.g. You can now write `impl<T> From<Foo> for Vec<T> {}`.
2990 - [You can now arbitrarily nest receiver types in the `self` position.][64325] E.g. you can
2991 now write `fn foo(self: Box<Box<Self>>) {}`. Previously only `Self`, `&Self`,
2992 `&mut Self`, `Arc<Self>`, `Rc<Self>`, and `Box<Self>` were allowed.
2993 - [You can now use any valid identifier in a `format_args` macro.][66847]
2994 Previously identifiers starting with an underscore were not allowed.
2995 - [Visibility modifiers (e.g. `pub`) are now syntactically allowed on trait items and
2996 enum variants.][66183] These are still rejected semantically, but
2997 can be seen and parsed by procedural macros and conditional compilation.
2998 - [You can now define a Rust `extern "C"` function with `Box<T>` and use `T*` as the corresponding
2999 type on the C side.][62514] Please see [the documentation][box-memory-layout] for more information,
3000 including the important caveat about preferring to avoid `Box<T>` in Rust signatures for functions defined in C.
3002 [box-memory-layout]: https://doc.rust-lang.org/std/boxed/index.html#memory-layout
3007 - [Rustc will now warn if you have unused loop `'label`s.][66325]
3008 - [Removed support for the `i686-unknown-dragonfly` target.][67255]
3009 - [Added tier 3 support\* for the `riscv64gc-unknown-linux-gnu` target.][66661]
3010 - [You can now pass an arguments file passing the `@path` syntax
3011 to rustc.][66172] Note that the format differs somewhat from what is
3012 found in other tooling; please see [the documentation][argfile-docs] for
3014 - [You can now provide `--extern` flag without a path, indicating that it is
3015 available from the search path or specified with an `-L` flag.][64882]
3017 \* Refer to Rust's [platform support page][platform-support-doc] for more
3018 information on Rust's tiered platform support.
3020 [argfile-docs]: https://doc.rust-lang.org/nightly/rustc/command-line-arguments.html#path-load-command-line-flags-from-a-path
3025 - [The `core::panic` module is now stable.][66771] It was already stable
3027 - [`NonZero*` numerics now implement `From<NonZero*>` if it's a smaller integer
3028 width.][66277] E.g. `NonZeroU16` now implements `From<NonZeroU8>`.
3029 - [`MaybeUninit<T>` now implements `fmt::Debug`.][65013]
3034 - [`Result::map_or`]
3035 - [`Result::map_or_else`]
3036 - [`std::rc::Weak::weak_count`]
3037 - [`std::rc::Weak::strong_count`]
3038 - [`std::sync::Weak::weak_count`]
3039 - [`std::sync::Weak::strong_count`]
3044 - [Cargo will now document all the private items for binary crates
3045 by default.][cargo/7593]
3046 - [`cargo-install` will now reinstall the package if it detects that it is out
3047 of date.][cargo/7560]
3048 - [Cargo.lock now uses a more git friendly format that should help to reduce
3049 merge conflicts.][cargo/7579]
3050 - [You can now override specific dependencies's build settings][cargo/7591] E.g.
3051 `[profile.dev.package.image] opt-level = 2` sets the `image` crate's
3052 optimisation level to `2` for debug builds. You can also use
3053 `[profile.<profile>.build-override]` to override build scripts and
3059 - [You can now specify `edition` in documentation code blocks to compile the block
3060 for that edition.][66238] E.g. `edition2018` tells rustdoc that the code sample
3061 should be compiled the 2018 edition of Rust.
3062 - [You can now provide custom themes to rustdoc with `--theme`, and check the
3063 current theme with `--check-theme`.][54733]
3064 - [You can use `#[cfg(doc)]` to compile an item when building documentation.][61351]
3069 - [As previously announced 1.41.0 will be the last tier 1 release for 32-bit
3070 Apple targets.][apple-32bit-drop] This means that the source code is still
3071 available to build, but the targets are no longer being tested and release
3072 binaries for those platforms will no longer be distributed by the Rust project.
3073 Please refer to the linked blog post for more information.
3075 [54733]: https://github.com/rust-lang/rust/pull/54733/
3076 [61351]: https://github.com/rust-lang/rust/pull/61351/
3077 [62514]: https://github.com/rust-lang/rust/pull/62514/
3078 [67255]: https://github.com/rust-lang/rust/pull/67255/
3079 [66661]: https://github.com/rust-lang/rust/pull/66661/
3080 [66771]: https://github.com/rust-lang/rust/pull/66771/
3081 [66847]: https://github.com/rust-lang/rust/pull/66847/
3082 [66238]: https://github.com/rust-lang/rust/pull/66238/
3083 [66277]: https://github.com/rust-lang/rust/pull/66277/
3084 [66325]: https://github.com/rust-lang/rust/pull/66325/
3085 [66172]: https://github.com/rust-lang/rust/pull/66172/
3086 [66183]: https://github.com/rust-lang/rust/pull/66183/
3087 [65879]: https://github.com/rust-lang/rust/pull/65879/
3088 [65013]: https://github.com/rust-lang/rust/pull/65013/
3089 [64882]: https://github.com/rust-lang/rust/pull/64882/
3090 [64325]: https://github.com/rust-lang/rust/pull/64325/
3091 [cargo/7560]: https://github.com/rust-lang/cargo/pull/7560/
3092 [cargo/7579]: https://github.com/rust-lang/cargo/pull/7579/
3093 [cargo/7591]: https://github.com/rust-lang/cargo/pull/7591/
3094 [cargo/7593]: https://github.com/rust-lang/cargo/pull/7593/
3095 [`Result::map_or_else`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or_else
3096 [`Result::map_or`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.map_or
3097 [`std::rc::Weak::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.weak_count
3098 [`std::rc::Weak::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Weak.html#method.strong_count
3099 [`std::sync::Weak::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.weak_count
3100 [`std::sync::Weak::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Weak.html#method.strong_count
3101 [apple-32bit-drop]: https://blog.rust-lang.org/2020/01/03/reducing-support-for-32-bit-apple-targets.html
3103 Version 1.40.0 (2019-12-19)
3104 ===========================
3108 - [You can now use tuple `struct`s and tuple `enum` variant's constructors in
3109 `const` contexts.][65188] e.g.
3112 pub struct Point(i32, i32);
3114 const ORIGIN: Point = {
3115 let constructor = Point;
3121 - [You can now mark `struct`s, `enum`s, and `enum` variants with the `#[non_exhaustive]` attribute to
3122 indicate that there may be variants or fields added in the future.][64639]
3123 For example this requires adding a wild-card branch (`_ => {}`) to any match
3124 statements on a non-exhaustive `enum`. [(RFC 2008)]
3125 - [You can now use function-like procedural macros in `extern` blocks and in
3126 type positions.][63931] e.g. `type Generated = macro!();`
3127 - [Function-like and attribute procedural macros can now emit
3128 `macro_rules!` items, so you can now have your macros generate macros.][64035]
3129 - [The `meta` pattern matcher in `macro_rules!` now correctly matches the modern
3130 attribute syntax.][63674] For example `(#[$m:meta])` now matches `#[attr]`,
3131 `#[attr{tokens}]`, `#[attr[tokens]]`, and `#[attr(tokens)]`.
3135 - [Added tier 3 support\* for the
3136 `thumbv7neon-unknown-linux-musleabihf` target.][66103]
3137 - [Added tier 3 support for the
3138 `aarch64-unknown-none-softfloat` target.][64589]
3139 - [Added tier 3 support for the `mips64-unknown-linux-muslabi64`, and
3140 `mips64el-unknown-linux-muslabi64` targets.][65843]
3142 \* Refer to Rust's [platform support page][platform-support-doc] for more
3143 information on Rust's tiered platform support.
3147 - [The `is_power_of_two` method on unsigned numeric types is now a `const` function.][65092]
3151 - [`BTreeMap::get_key_value`]
3152 - [`HashMap::get_key_value`]
3153 - [`Option::as_deref_mut`]
3154 - [`Option::as_deref`]
3155 - [`Option::flatten`]
3156 - [`UdpSocket::peer_addr`]
3157 - [`f32::to_be_bytes`]
3158 - [`f32::to_le_bytes`]
3159 - [`f32::to_ne_bytes`]
3160 - [`f64::to_be_bytes`]
3161 - [`f64::to_le_bytes`]
3162 - [`f64::to_ne_bytes`]
3163 - [`f32::from_be_bytes`]
3164 - [`f32::from_le_bytes`]
3165 - [`f32::from_ne_bytes`]
3166 - [`f64::from_be_bytes`]
3167 - [`f64::from_le_bytes`]
3168 - [`f64::from_ne_bytes`]
3175 - [Cargo will now always display warnings, rather than only on
3176 fresh builds.][cargo/7450]
3177 - [Feature flags (except `--all-features`) passed to a virtual workspace will
3178 now produce an error.][cargo/7507] Previously these flags were ignored.
3179 - [You can now publish `dev-dependencies` without including
3180 a `version`.][cargo/7333]
3184 - [You can now specify the `#[cfg(doctest)]` attribute to include an item only
3185 when running documentation tests with `rustdoc`.][63803]
3189 - [As previously announced, any previous NLL warnings in the 2015 edition are
3190 now hard errors.][64221]
3191 - [The `include!` macro will now warn if it failed to include the
3192 entire file.][64284] The `include!` macro unintentionally only includes the
3193 first _expression_ in a file, and this can be unintuitive. This will become
3194 either a hard error in a future release, or the behavior may be fixed to include all expressions as expected.
3195 - [Using `#[inline]` on function prototypes and consts now emits a warning under
3196 `unused_attribute` lint.][65294] Using `#[inline]` anywhere else inside traits
3197 or `extern` blocks now correctly emits a hard error.
3199 [65294]: https://github.com/rust-lang/rust/pull/65294/
3200 [66103]: https://github.com/rust-lang/rust/pull/66103/
3201 [65843]: https://github.com/rust-lang/rust/pull/65843/
3202 [65188]: https://github.com/rust-lang/rust/pull/65188/
3203 [65092]: https://github.com/rust-lang/rust/pull/65092/
3204 [64589]: https://github.com/rust-lang/rust/pull/64589/
3205 [64639]: https://github.com/rust-lang/rust/pull/64639/
3206 [64221]: https://github.com/rust-lang/rust/pull/64221/
3207 [64284]: https://github.com/rust-lang/rust/pull/64284/
3208 [63931]: https://github.com/rust-lang/rust/pull/63931/
3209 [64035]: https://github.com/rust-lang/rust/pull/64035/
3210 [63674]: https://github.com/rust-lang/rust/pull/63674/
3211 [63803]: https://github.com/rust-lang/rust/pull/63803/
3212 [cargo/7450]: https://github.com/rust-lang/cargo/pull/7450/
3213 [cargo/7507]: https://github.com/rust-lang/cargo/pull/7507/
3214 [cargo/7333]: https://github.com/rust-lang/cargo/pull/7333/
3215 [(rfc 2008)]: https://rust-lang.github.io/rfcs/2008-non-exhaustive.html
3216 [`f32::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_be_bytes
3217 [`f32::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_le_bytes
3218 [`f32::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_ne_bytes
3219 [`f64::to_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_be_bytes
3220 [`f64::to_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_le_bytes
3221 [`f64::to_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_ne_bytes
3222 [`f32::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_be_bytes
3223 [`f32::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_le_bytes
3224 [`f32::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_ne_bytes
3225 [`f64::from_be_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_be_bytes
3226 [`f64::from_le_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_le_bytes
3227 [`f64::from_ne_bytes`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_ne_bytes
3228 [`option::flatten`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.flatten
3229 [`option::as_deref`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref
3230 [`option::as_deref_mut`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.as_deref_mut
3231 [`hashmap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.get_key_value
3232 [`btreemap::get_key_value`]: https://doc.rust-lang.org/std/collections/struct.BTreeMap.html#method.get_key_value
3233 [`slice::repeat`]: https://doc.rust-lang.org/std/primitive.slice.html#method.repeat
3234 [`mem::take`]: https://doc.rust-lang.org/std/mem/fn.take.html
3235 [`udpsocket::peer_addr`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peer_addr
3236 [`todo!`]: https://doc.rust-lang.org/std/macro.todo.html
3239 Version 1.39.0 (2019-11-07)
3240 ===========================
3244 - [You can now create `async` functions and blocks with `async fn`, `async move {}`, and
3245 `async {}` respectively, and you can now call `.await` on async expressions.][63209]
3246 - [You can now use certain attributes on function, closure, and function pointer
3247 parameters.][64010] These attributes include `cfg`, `cfg_attr`, `allow`, `warn`,
3248 `deny`, `forbid` as well as inert helper attributes used by procedural macro
3249 attributes applied to items. e.g.
3252 #[cfg(windows)] slice: &[u16],
3253 #[cfg(not(windows))] slice: &[u8],
3258 - [You can now take shared references to bind-by-move patterns in the `if` guards
3259 of `match` arms.][63118] e.g.
3262 let array: Box<[u8; 4]> = Box::new([1, 2, 3, 4]);
3266 // ---- `nums` is bound by move.
3267 if nums.iter().sum::<u8>() == 10
3268 // ^------ `.iter()` implicitly takes a reference to `nums`.
3271 // ----------- Legal as `nums` was bound by move and so we have ownership.
3273 _ => unreachable!(),
3282 - [Added tier 3\* support for the `i686-unknown-uefi` target.][64334]
3283 - [Added tier 3 support for the `sparc64-unknown-openbsd` target.][63595]
3284 - [rustc will now trim code snippets in diagnostics to fit in your terminal.][63402]
3285 **Note** Cargo currently doesn't use this feature. Refer to
3286 [cargo#7315][cargo/7315] to track this feature's progress.
3287 - [You can now pass `--show-output` argument to test binaries to print the
3288 output of successful tests.][62600]
3291 \* Refer to Rust's [platform support page][platform-support-doc] for more
3292 information on Rust's tiered platform support.
3296 - [`Vec::new` and `String::new` are now `const` functions.][64028]
3297 - [`LinkedList::new` is now a `const` function.][63684]
3298 - [`str::len`, `[T]::len` and `str::as_bytes` are now `const` functions.][63770]
3299 - [The `abs`, `wrapping_abs`, and `overflowing_abs` numeric functions are
3300 now `const`.][63786]
3304 - [`Pin::into_inner`]
3305 - [`Instant::checked_duration_since`]
3306 - [`Instant::saturating_duration_since`]
3310 - [You can now publish git dependencies if supplied with a `version`.][cargo/7237]
3311 - [The `--all` flag has been renamed to `--workspace`.][cargo/7241] Using
3312 `--all` is now deprecated.
3316 - [You can now pass `-Clinker` to rustdoc to control the linker used
3317 for compiling doctests.][63834]
3321 - [Code that was previously accepted by the old borrow checker, but rejected by
3322 the NLL borrow checker is now a hard error in Rust 2018.][63565] This was
3323 previously a warning, and will also become a hard error in the Rust 2015
3324 edition in the 1.40.0 release.
3325 - [`rustdoc` now requires `rustc` to be installed and in the same directory to
3326 run tests.][63827] This should improve performance when running a large
3328 - [The `try!` macro will now issue a deprecation warning.][62672] It is
3329 recommended to use the `?` operator instead.
3330 - [`asinh(-0.0)` now correctly returns `-0.0`.][63698] Previously this
3333 [62600]: https://github.com/rust-lang/rust/pull/62600/
3334 [62672]: https://github.com/rust-lang/rust/pull/62672/
3335 [63118]: https://github.com/rust-lang/rust/pull/63118/
3336 [63209]: https://github.com/rust-lang/rust/pull/63209/
3337 [63402]: https://github.com/rust-lang/rust/pull/63402/
3338 [63565]: https://github.com/rust-lang/rust/pull/63565/
3339 [63595]: https://github.com/rust-lang/rust/pull/63595/
3340 [63684]: https://github.com/rust-lang/rust/pull/63684/
3341 [63698]: https://github.com/rust-lang/rust/pull/63698/
3342 [63770]: https://github.com/rust-lang/rust/pull/63770/
3343 [63786]: https://github.com/rust-lang/rust/pull/63786/
3344 [63827]: https://github.com/rust-lang/rust/pull/63827/
3345 [63834]: https://github.com/rust-lang/rust/pull/63834/
3346 [64010]: https://github.com/rust-lang/rust/pull/64010/
3347 [64028]: https://github.com/rust-lang/rust/pull/64028/
3348 [64334]: https://github.com/rust-lang/rust/pull/64334/
3349 [cargo/7237]: https://github.com/rust-lang/cargo/pull/7237/
3350 [cargo/7241]: https://github.com/rust-lang/cargo/pull/7241/
3351 [cargo/7315]: https://github.com/rust-lang/cargo/pull/7315/
3352 [`Pin::into_inner`]: https://doc.rust-lang.org/std/pin/struct.Pin.html#method.into_inner
3353 [`Instant::checked_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_duration_since
3354 [`Instant::saturating_duration_since`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.saturating_duration_since
3356 Version 1.38.0 (2019-09-26)
3357 ==========================
3361 - [The `#[global_allocator]` attribute can now be used in submodules.][62735]
3362 - [The `#[deprecated]` attribute can now be used on macros.][62042]
3366 - [Added pipelined compilation support to `rustc`.][62766] This will
3367 improve compilation times in some cases. For further information please refer
3368 to the [_"Evaluating pipelined rustc compilation"_][pipeline-internals] thread.
3369 - [Added tier 3\* support for the `aarch64-uwp-windows-msvc`, `i686-uwp-windows-gnu`,
3370 `i686-uwp-windows-msvc`, `x86_64-uwp-windows-gnu`, and
3371 `x86_64-uwp-windows-msvc` targets.][60260]
3372 - [Added tier 3 support for the `armv7-unknown-linux-gnueabi` and
3373 `armv7-unknown-linux-musleabi` targets.][63107]
3374 - [Added tier 3 support for the `hexagon-unknown-linux-musl` target.][62814]
3375 - [Added tier 3 support for the `riscv32i-unknown-none-elf` target.][62784]
3376 - [Upgraded to LLVM 9.][62592]
3378 \* Refer to Rust's [platform support page][platform-support-doc] for more
3379 information on Rust's tiered platform support.
3383 - [`ascii::EscapeDefault` now implements `Clone` and `Display`.][63421]
3384 - [Derive macros for prelude traits (e.g. `Clone`, `Debug`, `Hash`) are now
3385 available at the same path as the trait.][63056] (e.g. The `Clone` derive macro
3386 is available at `std::clone::Clone`). This also makes all built-in macros
3387 available in `std`/`core` root. e.g. `std::include_bytes!`.
3388 - [`str::Chars` now implements `Debug`.][63000]
3389 - [`slice::{concat, connect, join}` now accepts `&[T]` in addition to `&T`.][62528]
3390 - [`*const T` and `*mut T` now implement `marker::Unpin`.][62583]
3391 - [`Arc<[T]>` and `Rc<[T]>` now implement `FromIterator<T>`.][61953]
3392 - [Added euclidean remainder and division operations (`div_euclid`,
3393 `rem_euclid`) to all numeric primitives.][61884] Additionally `checked`,
3394 `overflowing`, and `wrapping` versions are available for all
3396 - [`thread::AccessError` now implements `Clone`, `Copy`, `Eq`, `Error`, and
3397 `PartialEq`.][61491]
3398 - [`iter::{StepBy, Peekable, Take}` now implement `DoubleEndedIterator`.][61457]
3402 - [`<*const T>::cast`]
3403 - [`<*mut T>::cast`]
3404 - [`Duration::as_secs_f32`]
3405 - [`Duration::as_secs_f64`]
3406 - [`Duration::div_f32`]
3407 - [`Duration::div_f64`]
3408 - [`Duration::from_secs_f32`]
3409 - [`Duration::from_secs_f64`]
3410 - [`Duration::mul_f32`]
3411 - [`Duration::mul_f64`]
3412 - [`any::type_name`]
3416 - [Added pipelined compilation support to `cargo`.][cargo/7143]
3417 - [You can now pass the `--features` option multiple times to enable
3418 multiple features.][cargo/7084]
3423 - [Documentation on `pub use` statements is prepended to the documentation of the re-exported item][63048]
3427 - [`rustc` will now warn about some incorrect uses of
3428 `mem::{uninitialized, zeroed}` that are known to cause undefined behaviour.][63346]
3432 - The [`x86_64-unknown-uefi` platform can not be built][62785] with rustc
3434 - The [`armv7-unknown-linux-gnueabihf` platform is known to have
3435 issues][62896] with certain crates such as libc.
3437 [60260]: https://github.com/rust-lang/rust/pull/60260/
3438 [61457]: https://github.com/rust-lang/rust/pull/61457/
3439 [61491]: https://github.com/rust-lang/rust/pull/61491/
3440 [61884]: https://github.com/rust-lang/rust/pull/61884/
3441 [61953]: https://github.com/rust-lang/rust/pull/61953/
3442 [62042]: https://github.com/rust-lang/rust/pull/62042/
3443 [62528]: https://github.com/rust-lang/rust/pull/62528/
3444 [62583]: https://github.com/rust-lang/rust/pull/62583/
3445 [62735]: https://github.com/rust-lang/rust/pull/62735/
3446 [62766]: https://github.com/rust-lang/rust/pull/62766/
3447 [62784]: https://github.com/rust-lang/rust/pull/62784/
3448 [62592]: https://github.com/rust-lang/rust/pull/62592/
3449 [62785]: https://github.com/rust-lang/rust/issues/62785/
3450 [62814]: https://github.com/rust-lang/rust/pull/62814/
3451 [62896]: https://github.com/rust-lang/rust/issues/62896/
3452 [63000]: https://github.com/rust-lang/rust/pull/63000/
3453 [63056]: https://github.com/rust-lang/rust/pull/63056/
3454 [63107]: https://github.com/rust-lang/rust/pull/63107/
3455 [63346]: https://github.com/rust-lang/rust/pull/63346/
3456 [63421]: https://github.com/rust-lang/rust/pull/63421/
3457 [cargo/7084]: https://github.com/rust-lang/cargo/pull/7084/
3458 [cargo/7143]: https://github.com/rust-lang/cargo/pull/7143/
3459 [63048]: https://github.com/rust-lang/rust/pull/63048
3460 [`<*const T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
3461 [`<*mut T>::cast`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.cast
3462 [`Duration::as_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f32
3463 [`Duration::as_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f64
3464 [`Duration::div_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f32
3465 [`Duration::div_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.div_f64
3466 [`Duration::from_secs_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f32
3467 [`Duration::from_secs_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_secs_f64
3468 [`Duration::mul_f32`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f32
3469 [`Duration::mul_f64`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.mul_f64
3470 [`any::type_name`]: https://doc.rust-lang.org/std/any/fn.type_name.html
3471 [platform-support-doc]: https://doc.rust-lang.org/nightly/rustc/platform-support.html
3472 [pipeline-internals]: https://internals.rust-lang.org/t/evaluating-pipelined-rustc-compilation/10199
3474 Version 1.37.0 (2019-08-15)
3475 ==========================
3479 - `#[must_use]` will now warn if the type is contained in a [tuple][61100],
3480 [`Box`][62228], or an [array][62235] and unused.
3481 - [You can now use the `cfg` and `cfg_attr` attributes on
3482 generic parameters.][61547]
3483 - [You can now use enum variants through type alias.][61682] e.g. You can
3484 write the following:
3486 type MyOption = Option<u8>;
3488 fn increment_or_zero(x: MyOption) -> u8 {
3490 MyOption::Some(y) => y + 1,
3491 MyOption::None => 0,
3495 - [You can now use `_` as an identifier for consts.][61347] e.g. You can write
3496 `const _: u32 = 5;`.
3497 - [You can now use `#[repr(align(X)]` on enums.][61229]
3498 - [The `?` Kleene macro operator is now available in the
3499 2015 edition.][60932]
3503 - [You can now enable Profile-Guided Optimization with the `-C profile-generate`
3504 and `-C profile-use` flags.][61268] For more information on how to use profile
3505 guided optimization, please refer to the [rustc book][rustc-book-pgo].
3506 - [The `rust-lldb` wrapper script should now work again.][61827]
3510 - [`mem::MaybeUninit<T>` is now ABI-compatible with `T`.][61802]
3514 - [`BufReader::buffer`]
3515 - [`BufWriter::buffer`]
3516 - [`Cell::from_mut`]
3517 - [`Cell<[T]>::as_slice_of_cells`][`Cell<slice>::as_slice_of_cells`]
3518 - [`DoubleEndedIterator::nth_back`]
3520 - [`Wrapping::reverse_bits`]
3521 - [`i128::reverse_bits`]
3522 - [`i16::reverse_bits`]
3523 - [`i32::reverse_bits`]
3524 - [`i64::reverse_bits`]
3525 - [`i8::reverse_bits`]
3526 - [`isize::reverse_bits`]
3527 - [`slice::copy_within`]
3528 - [`u128::reverse_bits`]
3529 - [`u16::reverse_bits`]
3530 - [`u32::reverse_bits`]
3531 - [`u64::reverse_bits`]
3532 - [`u8::reverse_bits`]
3533 - [`usize::reverse_bits`]
3537 - [`Cargo.lock` files are now included by default when publishing executable crates
3538 with executables.][cargo/7026]
3539 - [You can now specify `default-run="foo"` in `[package]` to specify the
3540 default executable to use for `cargo run`.][cargo/7056]
3547 - [Using `...` for inclusive range patterns will now warn by default.][61342]
3548 Please transition your code to using the `..=` syntax for inclusive
3550 - [Using a trait object without the `dyn` will now warn by default.][61203]
3551 Please transition your code to use `dyn Trait` for trait objects instead.
3553 [62228]: https://github.com/rust-lang/rust/pull/62228/
3554 [62235]: https://github.com/rust-lang/rust/pull/62235/
3555 [61802]: https://github.com/rust-lang/rust/pull/61802/
3556 [61827]: https://github.com/rust-lang/rust/pull/61827/
3557 [61547]: https://github.com/rust-lang/rust/pull/61547/
3558 [61682]: https://github.com/rust-lang/rust/pull/61682/
3559 [61268]: https://github.com/rust-lang/rust/pull/61268/
3560 [61342]: https://github.com/rust-lang/rust/pull/61342/
3561 [61347]: https://github.com/rust-lang/rust/pull/61347/
3562 [61100]: https://github.com/rust-lang/rust/pull/61100/
3563 [61203]: https://github.com/rust-lang/rust/pull/61203/
3564 [61229]: https://github.com/rust-lang/rust/pull/61229/
3565 [60932]: https://github.com/rust-lang/rust/pull/60932/
3566 [cargo/7026]: https://github.com/rust-lang/cargo/pull/7026/
3567 [cargo/7056]: https://github.com/rust-lang/cargo/pull/7056/
3568 [`BufReader::buffer`]: https://doc.rust-lang.org/std/io/struct.BufReader.html#method.buffer
3569 [`BufWriter::buffer`]: https://doc.rust-lang.org/std/io/struct.BufWriter.html#method.buffer
3570 [`Cell::from_mut`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.from_mut
3571 [`Cell<slice>::as_slice_of_cells`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_slice_of_cells
3572 [`DoubleEndedIterator::nth_back`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.nth_back
3573 [`Option::xor`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.xor
3574 [`Wrapping::reverse_bits`]: https://doc.rust-lang.org/std/num/struct.Wrapping.html#method.reverse_bits
3575 [`i128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i128.html#method.reverse_bits
3576 [`i16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i16.html#method.reverse_bits
3577 [`i32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i32.html#method.reverse_bits
3578 [`i64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i64.html#method.reverse_bits
3579 [`i8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.i8.html#method.reverse_bits
3580 [`isize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.isize.html#method.reverse_bits
3581 [`slice::copy_within`]: https://doc.rust-lang.org/std/primitive.slice.html#method.copy_within
3582 [`u128::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u128.html#method.reverse_bits
3583 [`u16::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u16.html#method.reverse_bits
3584 [`u32::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u32.html#method.reverse_bits
3585 [`u64::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u64.html#method.reverse_bits
3586 [`u8::reverse_bits`]: https://doc.rust-lang.org/std/primitive.u8.html#method.reverse_bits
3587 [`usize::reverse_bits`]: https://doc.rust-lang.org/std/primitive.usize.html#method.reverse_bits
3588 [rustc-book-pgo]: https://doc.rust-lang.org/rustc/profile-guided-optimization.html
3591 Version 1.36.0 (2019-07-04)
3592 ==========================
3596 - [Non-Lexical Lifetimes are now enabled on the 2015 edition.][59114]
3597 - [The order of traits in trait objects no longer affects the semantics of that
3598 object.][59445] e.g. `dyn Send + fmt::Debug` is now equivalent to
3599 `dyn fmt::Debug + Send`, where this was previously not the case.
3603 - [`HashMap`'s implementation has been replaced with `hashbrown::HashMap` implementation.][58623]
3604 - [`TryFromSliceError` now implements `From<Infallible>`.][60318]
3605 - [`mem::needs_drop` is now available as a const fn.][60364]
3606 - [`alloc::Layout::from_size_align_unchecked` is now available as a const fn.][60370]
3607 - [`String` now implements `BorrowMut<str>`.][60404]
3608 - [`io::Cursor` now implements `Default`.][60234]
3609 - [Both `NonNull::{dangling, cast}` are now const fns.][60244]
3610 - [The `alloc` crate is now stable.][59675] `alloc` allows you to use a subset
3611 of `std` (e.g. `Vec`, `Box`, `Arc`) in `#![no_std]` environments if the
3612 environment has access to heap memory allocation.
3613 - [`String` now implements `From<&String>`.][59825]
3614 - [You can now pass multiple arguments to the `dbg!` macro.][59826] `dbg!` will
3615 return a tuple of each argument when there is multiple arguments.
3616 - [`Result::{is_err, is_ok}` are now `#[must_use]` and will produce a warning if
3621 - [`VecDeque::rotate_left`]
3622 - [`VecDeque::rotate_right`]
3623 - [`Iterator::copied`]
3625 - [`io::IoSliceMut`]
3626 - [`Read::read_vectored`]
3627 - [`Write::write_vectored`]
3628 - [`str::as_mut_ptr`]
3629 - [`mem::MaybeUninit`]
3630 - [`pointer::align_offset`]
3631 - [`future::Future`]
3633 - [`task::RawWaker`]
3634 - [`task::RawWakerVTable`]
3640 - [Cargo will now produce an error if you attempt to use the name of a required dependency as a feature.][cargo/6860]
3641 - [You can now pass the `--offline` flag to run cargo without accessing the network.][cargo/6934]
3643 You can find further change's in [Cargo's 1.36.0 release notes][cargo-1-36-0].
3647 There have been numerous additions and fixes to clippy, see [Clippy's 1.36.0 release notes][clippy-1-36-0] for more details.
3654 - With the stabilisation of `mem::MaybeUninit`, `mem::uninitialized` use is no
3655 longer recommended, and will be deprecated in 1.39.0.
3657 [60318]: https://github.com/rust-lang/rust/pull/60318/
3658 [60364]: https://github.com/rust-lang/rust/pull/60364/
3659 [60370]: https://github.com/rust-lang/rust/pull/60370/
3660 [60404]: https://github.com/rust-lang/rust/pull/60404/
3661 [60234]: https://github.com/rust-lang/rust/pull/60234/
3662 [60244]: https://github.com/rust-lang/rust/pull/60244/
3663 [58623]: https://github.com/rust-lang/rust/pull/58623/
3664 [59648]: https://github.com/rust-lang/rust/pull/59648/
3665 [59675]: https://github.com/rust-lang/rust/pull/59675/
3666 [59825]: https://github.com/rust-lang/rust/pull/59825/
3667 [59826]: https://github.com/rust-lang/rust/pull/59826/
3668 [59445]: https://github.com/rust-lang/rust/pull/59445/
3669 [59114]: https://github.com/rust-lang/rust/pull/59114/
3670 [cargo/6860]: https://github.com/rust-lang/cargo/pull/6860/
3671 [cargo/6934]: https://github.com/rust-lang/cargo/pull/6934/
3672 [`VecDeque::rotate_left`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_left
3673 [`VecDeque::rotate_right`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.rotate_right
3674 [`Iterator::copied`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#tymethod.copied
3675 [`io::IoSlice`]: https://doc.rust-lang.org/std/io/struct.IoSlice.html
3676 [`io::IoSliceMut`]: https://doc.rust-lang.org/std/io/struct.IoSliceMut.html
3677 [`Read::read_vectored`]: https://doc.rust-lang.org/std/io/trait.Read.html#method.read_vectored
3678 [`Write::write_vectored`]: https://doc.rust-lang.org/std/io/trait.Write.html#method.write_vectored
3679 [`str::as_mut_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_mut_ptr
3680 [`mem::MaybeUninit`]: https://doc.rust-lang.org/std/mem/union.MaybeUninit.html
3681 [`pointer::align_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.align_offset
3682 [`future::Future`]: https://doc.rust-lang.org/std/future/trait.Future.html
3683 [`task::Context`]: https://doc.rust-lang.org/beta/std/task/struct.Context.html
3684 [`task::RawWaker`]: https://doc.rust-lang.org/beta/std/task/struct.RawWaker.html
3685 [`task::RawWakerVTable`]: https://doc.rust-lang.org/beta/std/task/struct.RawWakerVTable.html
3686 [`task::Waker`]: https://doc.rust-lang.org/beta/std/task/struct.Waker.html
3687 [`task::Poll`]: https://doc.rust-lang.org/beta/std/task/enum.Poll.html
3688 [clippy-1-36-0]: https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#rust-136
3689 [cargo-1-36-0]: https://github.com/rust-lang/cargo/blob/master/CHANGELOG.md#cargo-136-2019-07-04
3692 Version 1.35.0 (2019-05-23)
3693 ==========================
3697 - [`FnOnce`, `FnMut`, and the `Fn` traits are now implemented for `Box<FnOnce>`,
3698 `Box<FnMut>`, and `Box<Fn>` respectively.][59500]
3699 - [You can now coerce closures into unsafe function pointers.][59580] e.g.
3701 unsafe fn call_unsafe(func: unsafe fn()) {
3706 unsafe { call_unsafe(|| {}); }
3713 - [Added the `armv6-unknown-freebsd-gnueabihf` and
3714 `armv7-unknown-freebsd-gnueabihf` targets.][58080]
3715 - [Added the `wasm32-unknown-wasi` target.][59464]
3720 - [`Thread` will now show its ID in `Debug` output.][59460]
3721 - [`StdinLock`, `StdoutLock`, and `StderrLock` now implement `AsRawFd`.][59512]
3722 - [`alloc::System` now implements `Default`.][59451]
3723 - [Expanded `Debug` output (`{:#?}`) for structs now has a trailing comma on the
3725 - [`char::{ToLowercase, ToUppercase}` now
3726 implement `ExactSizeIterator`.][58778]
3727 - [All `NonZero` numeric types now implement `FromStr`.][58717]
3728 - [Removed the `Read` trait bounds
3729 on the `BufReader::{get_ref, get_mut, into_inner}` methods.][58423]
3730 - [You can now call the `dbg!` macro without any parameters to print the file
3731 and line where it is called.][57847]
3732 - [In place ASCII case conversions are now up to 4× faster.][59283]
3733 e.g. `str::make_ascii_lowercase`
3734 - [`hash_map::{OccupiedEntry, VacantEntry}` now implement `Sync`
3741 - [`RefCell::replace_with`]
3742 - [`RefCell::map_split`]
3744 - [`Range::contains`]
3745 - [`RangeFrom::contains`]
3746 - [`RangeTo::contains`]
3747 - [`RangeInclusive::contains`]
3748 - [`RangeToInclusive::contains`]
3749 - [`Option::copied`]
3753 - [You can now set `cargo:rustc-cdylib-link-arg` at build time to pass custom
3754 linker arguments when building a `cdylib`.][cargo/6298] Its usage is highly
3759 - [The Rust toolchain is now available natively for musl based distros.][58575]
3761 [59460]: https://github.com/rust-lang/rust/pull/59460/
3762 [59464]: https://github.com/rust-lang/rust/pull/59464/
3763 [59500]: https://github.com/rust-lang/rust/pull/59500/
3764 [59512]: https://github.com/rust-lang/rust/pull/59512/
3765 [59580]: https://github.com/rust-lang/rust/pull/59580/
3766 [59283]: https://github.com/rust-lang/rust/pull/59283/
3767 [59451]: https://github.com/rust-lang/rust/pull/59451/
3768 [59076]: https://github.com/rust-lang/rust/pull/59076/
3769 [58778]: https://github.com/rust-lang/rust/pull/58778/
3770 [58717]: https://github.com/rust-lang/rust/pull/58717/
3771 [58369]: https://github.com/rust-lang/rust/pull/58369/
3772 [58423]: https://github.com/rust-lang/rust/pull/58423/
3773 [58080]: https://github.com/rust-lang/rust/pull/58080/
3774 [57847]: https://github.com/rust-lang/rust/pull/57847/
3775 [58575]: https://github.com/rust-lang/rust/pull/58575
3776 [cargo/6298]: https://github.com/rust-lang/cargo/pull/6298/
3777 [`f32::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f32.html#method.copysign
3778 [`f64::copysign`]: https://doc.rust-lang.org/stable/std/primitive.f64.html#method.copysign
3779 [`RefCell::replace_with`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.replace_with
3780 [`RefCell::map_split`]: https://doc.rust-lang.org/stable/std/cell/struct.RefCell.html#method.map_split
3781 [`ptr::hash`]: https://doc.rust-lang.org/stable/std/ptr/fn.hash.html
3782 [`Range::contains`]: https://doc.rust-lang.org/std/ops/struct.Range.html#method.contains
3783 [`RangeFrom::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeFrom.html#method.contains
3784 [`RangeTo::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeTo.html#method.contains
3785 [`RangeInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.contains
3786 [`RangeToInclusive::contains`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html#method.contains
3787 [`Option::copied`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.copied
3789 Version 1.34.2 (2019-05-14)
3790 ===========================
3792 * [Destabilize the `Error::type_id` function due to a security
3793 vulnerability][60785] ([CVE-2019-12083])
3795 [60785]: https://github.com/rust-lang/rust/pull/60785
3796 [CVE-2019-12083]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-12083
3798 Version 1.34.1 (2019-04-25)
3799 ===========================
3801 * [Fix false positives for the `redundant_closure` Clippy lint][clippy/3821]
3802 * [Fix false positives for the `missing_const_for_fn` Clippy lint][clippy/3844]
3803 * [Fix Clippy panic when checking some macros][clippy/3805]
3805 [clippy/3821]: https://github.com/rust-lang/rust-clippy/pull/3821
3806 [clippy/3844]: https://github.com/rust-lang/rust-clippy/pull/3844
3807 [clippy/3805]: https://github.com/rust-lang/rust-clippy/pull/3805
3809 Version 1.34.0 (2019-04-11)
3810 ==========================
3814 - [You can now use `#[deprecated = "reason"]`][58166] as a shorthand for
3815 `#[deprecated(note = "reason")]`. This was previously allowed by mistake
3817 - [You can now accept token streams in `#[attr()]`,`#[attr[]]`, and
3818 `#[attr{}]` procedural macros.][57367]
3819 - [You can now write `extern crate self as foo;`][57407] to import your
3820 crate's root into the extern prelude.
3825 - [You can now target `riscv64imac-unknown-none-elf` and
3826 `riscv64gc-unknown-none-elf`.][58406]
3827 - [You can now enable linker plugin LTO optimisations with
3828 `-C linker-plugin-lto`.][58057] This allows rustc to compile your Rust code
3829 into LLVM bitcode allowing LLVM to perform LTO optimisations across C/C++ FFI
3831 - [You can now target `powerpc64-unknown-freebsd`.][57809]
3836 - [The trait bounds have been removed on some of `HashMap<K, V, S>`'s and
3837 `HashSet<T, S>`'s basic methods.][58370] Most notably you no longer require
3838 the `Hash` trait to create an iterator.
3839 - [The `Ord` trait bounds have been removed on some of `BinaryHeap<T>`'s basic
3840 methods.][58421] Most notably you no longer require the `Ord` trait to create
3842 - [The methods `overflowing_neg` and `wrapping_neg` are now `const` functions
3843 for all numeric types.][58044]
3844 - [Indexing a `str` is now generic over all types that
3845 implement `SliceIndex<str>`.][57604]
3846 - [`str::trim`, `str::trim_matches`, `str::trim_{start, end}`, and
3847 `str::trim_{start, end}_matches` are now `#[must_use]`][57106] and will
3848 produce a warning if their returning type is unused.
3849 - [The methods `checked_pow`, `saturating_pow`, `wrapping_pow`, and
3850 `overflowing_pow` are now available for all numeric types.][57873] These are
3851 equivalent to methods such as `wrapping_add` for the `pow` operation.
3859 * [`Error::type_id`]
3860 * [`atomic::AtomicI16`]
3861 * [`atomic::AtomicI32`]
3862 * [`atomic::AtomicI64`]
3863 * [`atomic::AtomicI8`]
3864 * [`atomic::AtomicU16`]
3865 * [`atomic::AtomicU32`]
3866 * [`atomic::AtomicU64`]
3867 * [`atomic::AtomicU8`]
3868 * [`convert::Infallible`]
3869 * [`convert::TryFrom`]
3870 * [`convert::TryInto`]
3872 * [`iter::successors`]
3873 * [`num::NonZeroI128`]
3874 * [`num::NonZeroI16`]
3875 * [`num::NonZeroI32`]
3876 * [`num::NonZeroI64`]
3877 * [`num::NonZeroI8`]
3878 * [`num::NonZeroIsize`]
3879 * [`slice::sort_by_cached_key`]
3880 * [`str::escape_debug`]
3881 * [`str::escape_default`]
3882 * [`str::escape_unicode`]
3883 * [`str::split_ascii_whitespace`]
3886 * [`Instant::checked_add`]
3887 * [`Instant::checked_sub`]
3888 * [`SystemTime::checked_add`]
3889 * [`SystemTime::checked_sub`]
3893 - [You can now use alternative registries to crates.io.][cargo/6654]
3897 - [You can now use the `?` operator in your documentation tests without manually
3898 adding `fn main() -> Result<(), _> {}`.][56470]
3902 - [`Command::before_exec` is being replaced by the unsafe method
3903 `Command::pre_exec`][58059] and will be deprecated with Rust 1.37.0.
3904 - [Use of `ATOMIC_{BOOL, ISIZE, USIZE}_INIT` is now deprecated][57425] as you
3905 can now use `const` functions in `static` variables.
3907 [58370]: https://github.com/rust-lang/rust/pull/58370/
3908 [58406]: https://github.com/rust-lang/rust/pull/58406/
3909 [58421]: https://github.com/rust-lang/rust/pull/58421/
3910 [58166]: https://github.com/rust-lang/rust/pull/58166/
3911 [58044]: https://github.com/rust-lang/rust/pull/58044/
3912 [58057]: https://github.com/rust-lang/rust/pull/58057/
3913 [58059]: https://github.com/rust-lang/rust/pull/58059/
3914 [57809]: https://github.com/rust-lang/rust/pull/57809/
3915 [57873]: https://github.com/rust-lang/rust/pull/57873/
3916 [57604]: https://github.com/rust-lang/rust/pull/57604/
3917 [57367]: https://github.com/rust-lang/rust/pull/57367/
3918 [57407]: https://github.com/rust-lang/rust/pull/57407/
3919 [57425]: https://github.com/rust-lang/rust/pull/57425/
3920 [57106]: https://github.com/rust-lang/rust/pull/57106/
3921 [56470]: https://github.com/rust-lang/rust/pull/56470/
3922 [cargo/6654]: https://github.com/rust-lang/cargo/pull/6654/
3923 [`Any::type_id`]: https://doc.rust-lang.org/std/any/trait.Any.html#tymethod.type_id
3924 [`Error::type_id`]: https://doc.rust-lang.org/std/error/trait.Error.html#method.type_id
3925 [`atomic::AtomicI16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI16.html
3926 [`atomic::AtomicI32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI32.html
3927 [`atomic::AtomicI64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI64.html
3928 [`atomic::AtomicI8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI8.html
3929 [`atomic::AtomicU16`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU16.html
3930 [`atomic::AtomicU32`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU32.html
3931 [`atomic::AtomicU64`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU64.html
3932 [`atomic::AtomicU8`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html
3933 [`convert::Infallible`]: https://doc.rust-lang.org/std/convert/enum.Infallible.html
3934 [`convert::TryFrom`]: https://doc.rust-lang.org/std/convert/trait.TryFrom.html
3935 [`convert::TryInto`]: https://doc.rust-lang.org/std/convert/trait.TryInto.html
3936 [`iter::from_fn`]: https://doc.rust-lang.org/std/iter/fn.from_fn.html
3937 [`iter::successors`]: https://doc.rust-lang.org/std/iter/fn.successors.html
3938 [`num::NonZeroI128`]: https://doc.rust-lang.org/std/num/struct.NonZeroI128.html
3939 [`num::NonZeroI16`]: https://doc.rust-lang.org/std/num/struct.NonZeroI16.html
3940 [`num::NonZeroI32`]: https://doc.rust-lang.org/std/num/struct.NonZeroI32.html
3941 [`num::NonZeroI64`]: https://doc.rust-lang.org/std/num/struct.NonZeroI64.html
3942 [`num::NonZeroI8`]: https://doc.rust-lang.org/std/num/struct.NonZeroI8.html
3943 [`num::NonZeroIsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroIsize.html
3944 [`slice::sort_by_cached_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_by_cached_key
3945 [`str::escape_debug`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_debug
3946 [`str::escape_default`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_default
3947 [`str::escape_unicode`]: https://doc.rust-lang.org/std/primitive.str.html#method.escape_unicode
3948 [`str::split_ascii_whitespace`]: https://doc.rust-lang.org/std/primitive.str.html#method.split_ascii_whitespace
3949 [`Instant::checked_add`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_add
3950 [`Instant::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.checked_sub
3951 [`SystemTime::checked_add`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_add
3952 [`SystemTime::checked_sub`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#method.checked_sub
3955 Version 1.33.0 (2019-02-28)
3956 ==========================
3960 - [You can now use the `cfg(target_vendor)` attribute.][57465] E.g.
3961 `#[cfg(target_vendor="apple")] fn main() { println!("Hello Apple!"); }`
3962 - [Integer patterns such as in a match expression can now be exhaustive.][56362]
3963 E.g. You can have match statement on a `u8` that covers `0..=255` and
3964 you would no longer be required to have a `_ => unreachable!()` case.
3965 - [You can now have multiple patterns in `if let` and `while let`
3966 expressions.][57532] You can do this with the same syntax as a `match`
3976 let state = Creature::Crab("Ferris");
3978 if let Creature::Crab(name) | Creature::Person(name) = state {
3979 println!("This creature's name is: {}", name);
3983 - [You can now have irrefutable `if let` and `while let` patterns.][57535] Using
3984 this feature will by default produce a warning as this behaviour can be
3985 unintuitive. E.g. `if let _ = 5 {}`
3986 - [You can now use `let` bindings, assignments, expression statements,
3987 and irrefutable pattern destructuring in const functions.][57175]
3988 - [You can now call unsafe const functions.][57067] E.g.
3990 const unsafe fn foo() -> i32 { 5 }
3991 const fn bar() -> i32 {
3995 - [You can now specify multiple attributes in a `cfg_attr` attribute.][57332]
3996 E.g. `#[cfg_attr(all(), must_use, optimize)]`
3997 - [You can now specify a specific alignment with the `#[repr(packed)]`
3998 attribute.][57049] E.g. `#[repr(packed(2))] struct Foo(i16, i32);` is a struct
3999 with an alignment of 2 bytes and a size of 6 bytes.
4000 - [You can now import an item from a module as an `_`.][56303] This allows you to
4001 import a trait's impls, and not have the name in the namespace. E.g.
4003 use std::io::Read as _;
4005 // Allowed as there is only one `Read` in the module.
4008 - [You may now use `Rc`, `Arc`, and `Pin` as method receivers][56805].
4012 - [You can now set a linker flavor for `rustc` with the `-Clinker-flavor`
4013 command line argument.][56351]
4014 - [The minimum required LLVM version has been bumped to 6.0.][56642]
4015 - [Added support for the PowerPC64 architecture on FreeBSD.][57615]
4016 - [The `x86_64-fortanix-unknown-sgx` target support has been upgraded to
4017 tier 2 support.][57130] Visit the [platform support][platform-support] page for
4018 information on Rust's platform support.
4019 - [Added support for the `thumbv7neon-linux-androideabi` and
4020 `thumbv7neon-unknown-linux-gnueabihf` targets.][56947]
4021 - [Added support for the `x86_64-unknown-uefi` target.][56769]
4025 - [The methods `overflowing_{add, sub, mul, shl, shr}` are now `const`
4026 functions for all numeric types.][57566]
4027 - [The methods `rotate_left`, `rotate_right`, and `wrapping_{add, sub, mul, shl, shr}`
4028 are now `const` functions for all numeric types.][57105]
4029 - [The methods `is_positive` and `is_negative` are now `const` functions for
4030 all signed numeric types.][57105]
4031 - [The `get` method for all `NonZero` types is now `const`.][57167]
4032 - [The methods `count_ones`, `count_zeros`, `leading_zeros`, `trailing_zeros`,
4033 `swap_bytes`, `from_be`, `from_le`, `to_be`, `to_le` are now `const` for all
4034 numeric types.][57234]
4035 - [`Ipv4Addr::new` is now a `const` function][57234]
4039 - [`unix::FileExt::read_exact_at`]
4040 - [`unix::FileExt::write_all_at`]
4041 - [`Option::transpose`]
4042 - [`Result::transpose`]
4043 - [`convert::identity`]
4046 - [`marker::PhantomPinned`]
4047 - [`Vec::resize_with`]
4048 - [`VecDeque::resize_with`]
4049 - [`Duration::as_millis`]
4050 - [`Duration::as_micros`]
4051 - [`Duration::as_nanos`]
4056 - [You can now publish crates that require a feature flag to compile with
4057 `cargo publish --features` or `cargo publish --all-features`.][cargo/6453]
4058 - [Cargo should now rebuild a crate if a file was modified during the initial
4063 - The methods `str::{trim_left, trim_right, trim_left_matches, trim_right_matches}`
4064 are now deprecated in the standard library, and their usage will now produce a warning.
4065 Please use the `str::{trim_start, trim_end, trim_start_matches, trim_end_matches}`
4067 - The `Error::cause` method has been deprecated in favor of `Error::source` which supports
4069 - [Libtest no longer creates a new thread for each test when
4070 `--test-threads=1`. It also runs the tests in deterministic order][56243]
4072 [56243]: https://github.com/rust-lang/rust/pull/56243
4073 [56303]: https://github.com/rust-lang/rust/pull/56303/
4074 [56351]: https://github.com/rust-lang/rust/pull/56351/
4075 [56362]: https://github.com/rust-lang/rust/pull/56362
4076 [56642]: https://github.com/rust-lang/rust/pull/56642/
4077 [56769]: https://github.com/rust-lang/rust/pull/56769/
4078 [56805]: https://github.com/rust-lang/rust/pull/56805
4079 [56947]: https://github.com/rust-lang/rust/pull/56947/
4080 [57049]: https://github.com/rust-lang/rust/pull/57049/
4081 [57067]: https://github.com/rust-lang/rust/pull/57067/
4082 [57105]: https://github.com/rust-lang/rust/pull/57105
4083 [57130]: https://github.com/rust-lang/rust/pull/57130/
4084 [57167]: https://github.com/rust-lang/rust/pull/57167/
4085 [57175]: https://github.com/rust-lang/rust/pull/57175/
4086 [57234]: https://github.com/rust-lang/rust/pull/57234/
4087 [57332]: https://github.com/rust-lang/rust/pull/57332/
4088 [57465]: https://github.com/rust-lang/rust/pull/57465/
4089 [57532]: https://github.com/rust-lang/rust/pull/57532/
4090 [57535]: https://github.com/rust-lang/rust/pull/57535/
4091 [57566]: https://github.com/rust-lang/rust/pull/57566/
4092 [57615]: https://github.com/rust-lang/rust/pull/57615/
4093 [cargo/6453]: https://github.com/rust-lang/cargo/pull/6453/
4094 [cargo/6484]: https://github.com/rust-lang/cargo/pull/6484/
4095 [`unix::FileExt::read_exact_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.read_exact_at
4096 [`unix::FileExt::write_all_at`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html#method.write_all_at
4097 [`Option::transpose`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.transpose
4098 [`Result::transpose`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.transpose
4099 [`convert::identity`]: https://doc.rust-lang.org/std/convert/fn.identity.html
4100 [`pin::Pin`]: https://doc.rust-lang.org/std/pin/struct.Pin.html
4101 [`marker::Unpin`]: https://doc.rust-lang.org/stable/std/marker/trait.Unpin.html
4102 [`marker::PhantomPinned`]: https://doc.rust-lang.org/nightly/std/marker/struct.PhantomPinned.html
4103 [`Vec::resize_with`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.resize_with
4104 [`VecDeque::resize_with`]: https://doc.rust-lang.org/std/collections/struct.VecDeque.html#method.resize_with
4105 [`Duration::as_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_millis
4106 [`Duration::as_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_micros
4107 [`Duration::as_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_nanos
4108 [platform-support]: https://forge.rust-lang.org/platform-support.html
4110 Version 1.32.0 (2019-01-17)
4111 ==========================
4116 - [You can now use the `?` operator in macro definitions.][56245] The `?`
4117 operator allows you to specify zero or one repetitions similar to the `*` and
4119 - [Module paths with no leading keyword like `super`, `self`, or `crate`, will
4120 now always resolve to the item (`enum`, `struct`, etc.) available in the
4121 module if present, before resolving to a external crate or an item the prelude.][56759]
4124 enum Color { Red, Green, Blue }
4130 - [You can now match against `PhantomData<T>` types.][55837]
4131 - [You can now match against literals in macros with the `literal`
4132 specifier.][56072] This will match against a literal of any type.
4133 E.g. `1`, `'A'`, `"Hello World"`
4134 - [Self can now be used as a constructor and pattern for unit and tuple structs.][56365] E.g.
4136 struct Point(i32, i32);
4139 pub fn new(x: i32, y: i32) -> Self {
4143 pub fn is_origin(&self) -> bool {
4151 - [Self can also now be used in type definitions.][56366] E.g.
4155 Self: PartialOrd<Self> // can write `Self` instead of `List<T>`
4158 Cons(T, Box<Self>) // likewise here
4161 - [You can now mark traits with `#[must_use]`.][55663] This provides a warning if
4162 a `impl Trait` or `dyn Trait` is returned and unused in the program.
4166 - [The default allocator has changed from jemalloc to the default allocator on
4167 your system.][55238] The compiler itself on Linux & macOS will still use
4168 jemalloc, but programs compiled with it will use the system allocator.
4169 - [Added the `aarch64-pc-windows-msvc` target.][55702]
4173 - [`PathBuf` now implements `FromStr`.][55148]
4174 - [`Box<[T]>` now implements `FromIterator<T>`.][55843]
4175 - [The `dbg!` macro has been stabilized.][56395] This macro enables you to
4176 easily debug expressions in your rust program. E.g.
4179 let b = dbg!(a * 2) + 1;
4180 // ^-- prints: [src/main.rs:4] a * 2 = 4
4184 The following APIs are now `const` functions and can be used in a
4188 - [`UnsafeCell::get`]
4189 - [`char::is_ascii`]
4191 - [`ManuallyDrop::new`]
4192 - [`ManuallyDrop::into_inner`]
4193 - [`RangeInclusive::start`]
4194 - [`RangeInclusive::end`]
4195 - [`NonNull::as_ptr`]
4198 - [`Duration::as_secs`]
4199 - [`Duration::subsec_millis`]
4200 - [`Duration::subsec_micros`]
4201 - [`Duration::subsec_nanos`]
4203 - [`Ipv4Addr::is_unspecified`]
4205 - [`Ipv6Addr::octets`]
4209 - [`i8::to_be_bytes`]
4210 - [`i8::to_le_bytes`]
4211 - [`i8::to_ne_bytes`]
4212 - [`i8::from_be_bytes`]
4213 - [`i8::from_le_bytes`]
4214 - [`i8::from_ne_bytes`]
4215 - [`i16::to_be_bytes`]
4216 - [`i16::to_le_bytes`]
4217 - [`i16::to_ne_bytes`]
4218 - [`i16::from_be_bytes`]
4219 - [`i16::from_le_bytes`]
4220 - [`i16::from_ne_bytes`]
4221 - [`i32::to_be_bytes`]
4222 - [`i32::to_le_bytes`]
4223 - [`i32::to_ne_bytes`]
4224 - [`i32::from_be_bytes`]
4225 - [`i32::from_le_bytes`]
4226 - [`i32::from_ne_bytes`]
4227 - [`i64::to_be_bytes`]
4228 - [`i64::to_le_bytes`]
4229 - [`i64::to_ne_bytes`]
4230 - [`i64::from_be_bytes`]
4231 - [`i64::from_le_bytes`]
4232 - [`i64::from_ne_bytes`]
4233 - [`i128::to_be_bytes`]
4234 - [`i128::to_le_bytes`]
4235 - [`i128::to_ne_bytes`]
4236 - [`i128::from_be_bytes`]
4237 - [`i128::from_le_bytes`]
4238 - [`i128::from_ne_bytes`]
4239 - [`isize::to_be_bytes`]
4240 - [`isize::to_le_bytes`]
4241 - [`isize::to_ne_bytes`]
4242 - [`isize::from_be_bytes`]
4243 - [`isize::from_le_bytes`]
4244 - [`isize::from_ne_bytes`]
4245 - [`u8::to_be_bytes`]
4246 - [`u8::to_le_bytes`]
4247 - [`u8::to_ne_bytes`]
4248 - [`u8::from_be_bytes`]
4249 - [`u8::from_le_bytes`]
4250 - [`u8::from_ne_bytes`]
4251 - [`u16::to_be_bytes`]
4252 - [`u16::to_le_bytes`]
4253 - [`u16::to_ne_bytes`]
4254 - [`u16::from_be_bytes`]
4255 - [`u16::from_le_bytes`]
4256 - [`u16::from_ne_bytes`]
4257 - [`u32::to_be_bytes`]
4258 - [`u32::to_le_bytes`]
4259 - [`u32::to_ne_bytes`]
4260 - [`u32::from_be_bytes`]
4261 - [`u32::from_le_bytes`]
4262 - [`u32::from_ne_bytes`]
4263 - [`u64::to_be_bytes`]
4264 - [`u64::to_le_bytes`]
4265 - [`u64::to_ne_bytes`]
4266 - [`u64::from_be_bytes`]
4267 - [`u64::from_le_bytes`]
4268 - [`u64::from_ne_bytes`]
4269 - [`u128::to_be_bytes`]
4270 - [`u128::to_le_bytes`]
4271 - [`u128::to_ne_bytes`]
4272 - [`u128::from_be_bytes`]
4273 - [`u128::from_le_bytes`]
4274 - [`u128::from_ne_bytes`]
4275 - [`usize::to_be_bytes`]
4276 - [`usize::to_le_bytes`]
4277 - [`usize::to_ne_bytes`]
4278 - [`usize::from_be_bytes`]
4279 - [`usize::from_le_bytes`]
4280 - [`usize::from_ne_bytes`]
4284 - [You can now run `cargo c` as an alias for `cargo check`.][cargo/6218]
4285 - [Usernames are now allowed in alt registry URLs.][cargo/6242]
4289 - [`libproc_macro` has been added to the `rust-src` distribution.][55280]
4293 - [The argument types for AVX's
4294 `_mm256_stream_si256`, `_mm256_stream_pd`, `_mm256_stream_ps`][55610] have
4295 been changed from `*const` to `*mut` as the previous implementation
4299 [55148]: https://github.com/rust-lang/rust/pull/55148/
4300 [55238]: https://github.com/rust-lang/rust/pull/55238/
4301 [55280]: https://github.com/rust-lang/rust/pull/55280/
4302 [55610]: https://github.com/rust-lang/rust/pull/55610/
4303 [55663]: https://github.com/rust-lang/rust/pull/55663/
4304 [55702]: https://github.com/rust-lang/rust/pull/55702/
4305 [55837]: https://github.com/rust-lang/rust/pull/55837/
4306 [55843]: https://github.com/rust-lang/rust/pull/55843/
4307 [56072]: https://github.com/rust-lang/rust/pull/56072/
4308 [56245]: https://github.com/rust-lang/rust/pull/56245/
4309 [56365]: https://github.com/rust-lang/rust/pull/56365/
4310 [56366]: https://github.com/rust-lang/rust/pull/56366/
4311 [56395]: https://github.com/rust-lang/rust/pull/56395/
4312 [56759]: https://github.com/rust-lang/rust/pull/56759/
4313 [cargo/6218]: https://github.com/rust-lang/cargo/pull/6218/
4314 [cargo/6242]: https://github.com/rust-lang/cargo/pull/6242/
4315 [`CStr::as_ptr`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.as_ptr
4316 [`Cell::as_ptr`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr
4317 [`Duration::as_secs`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs
4318 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
4319 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
4320 [`Duration::subsec_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_nanos
4321 [`Ipv4Addr::is_unspecified`]: https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified
4322 [`Ipv6Addr::new`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.new
4323 [`Ipv6Addr::octets`]: https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets
4324 [`ManuallyDrop::into_inner`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.into_inner
4325 [`ManuallyDrop::new`]: https://doc.rust-lang.org/std/mem/struct.ManuallyDrop.html#method.new
4326 [`NonNull::as_ptr`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.as_ptr
4327 [`RangeInclusive::end`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.end
4328 [`RangeInclusive::start`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html#method.start
4329 [`UnsafeCell::get`]: https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html#method.get
4330 [`slice::as_ptr`]: https://doc.rust-lang.org/std/primitive.slice.html#method.as_ptr
4331 [`char::is_ascii`]: https://doc.rust-lang.org/std/primitive.char.html#method.is_ascii
4332 [`i128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_be_bytes
4333 [`i128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_le_bytes
4334 [`i128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.from_ne_bytes
4335 [`i128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_be_bytes
4336 [`i128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_le_bytes
4337 [`i128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i128.html#method.to_ne_bytes
4338 [`i16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_be_bytes
4339 [`i16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_le_bytes
4340 [`i16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.from_ne_bytes
4341 [`i16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_be_bytes
4342 [`i16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_le_bytes
4343 [`i16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i16.html#method.to_ne_bytes
4344 [`i32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_be_bytes
4345 [`i32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_le_bytes
4346 [`i32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.from_ne_bytes
4347 [`i32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_be_bytes
4348 [`i32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_le_bytes
4349 [`i32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i32.html#method.to_ne_bytes
4350 [`i64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_be_bytes
4351 [`i64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_le_bytes
4352 [`i64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.from_ne_bytes
4353 [`i64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_be_bytes
4354 [`i64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_le_bytes
4355 [`i64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i64.html#method.to_ne_bytes
4356 [`i8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_be_bytes
4357 [`i8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_le_bytes
4358 [`i8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.from_ne_bytes
4359 [`i8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_be_bytes
4360 [`i8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_le_bytes
4361 [`i8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.i8.html#method.to_ne_bytes
4362 [`isize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_be_bytes
4363 [`isize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_le_bytes
4364 [`isize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.from_ne_bytes
4365 [`isize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_be_bytes
4366 [`isize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_le_bytes
4367 [`isize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.isize.html#method.to_ne_bytes
4368 [`iter::empty`]: https://doc.rust-lang.org/std/iter/fn.empty.html
4369 [`str::as_ptr`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_ptr
4370 [`u128::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_be_bytes
4371 [`u128::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_le_bytes
4372 [`u128::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.from_ne_bytes
4373 [`u128::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_be_bytes
4374 [`u128::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_le_bytes
4375 [`u128::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u128.html#method.to_ne_bytes
4376 [`u16::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_be_bytes
4377 [`u16::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_le_bytes
4378 [`u16::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.from_ne_bytes
4379 [`u16::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_be_bytes
4380 [`u16::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_le_bytes
4381 [`u16::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u16.html#method.to_ne_bytes
4382 [`u32::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_be_bytes
4383 [`u32::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_le_bytes
4384 [`u32::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.from_ne_bytes
4385 [`u32::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_be_bytes
4386 [`u32::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_le_bytes
4387 [`u32::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u32.html#method.to_ne_bytes
4388 [`u64::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_be_bytes
4389 [`u64::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_le_bytes
4390 [`u64::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.from_ne_bytes
4391 [`u64::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_be_bytes
4392 [`u64::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_le_bytes
4393 [`u64::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u64.html#method.to_ne_bytes
4394 [`u8::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_be_bytes
4395 [`u8::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_le_bytes
4396 [`u8::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.from_ne_bytes
4397 [`u8::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_be_bytes
4398 [`u8::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_le_bytes
4399 [`u8::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.u8.html#method.to_ne_bytes
4400 [`usize::from_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_be_bytes
4401 [`usize::from_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_le_bytes
4402 [`usize::from_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.from_ne_bytes
4403 [`usize::to_be_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_be_bytes
4404 [`usize::to_le_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_le_bytes
4405 [`usize::to_ne_bytes`]: https://doc.rust-lang.org/stable/std/primitive.usize.html#method.to_ne_bytes
4408 Version 1.31.1 (2018-12-20)
4409 ===========================
4411 - [Fix Rust failing to build on `powerpc-unknown-netbsd`][56562]
4412 - [Fix broken go-to-definition in RLS][rls/1171]
4413 - [Fix infinite loop on hover in RLS][rls/1170]
4415 [56562]: https://github.com/rust-lang/rust/pull/56562
4416 [rls/1171]: https://github.com/rust-lang/rls/issues/1171
4417 [rls/1170]: https://github.com/rust-lang/rls/pull/1170
4419 Version 1.31.0 (2018-12-06)
4420 ==========================
4424 - 🎉 [This version marks the release of the 2018 edition of Rust.][54057] 🎉
4425 - [New lifetime elision rules now allow for eliding lifetimes in functions and
4426 impl headers.][54778] E.g. `impl<'a> Reader for BufReader<'a> {}` can now be
4427 `impl Reader for BufReader<'_> {}`. Lifetimes are still required to be defined
4429 - [You can now define and use `const` functions.][54835] These are currently
4430 a strict minimal subset of the [const fn RFC][RFC-911]. Refer to the
4431 [language reference][const-reference] for what exactly is available.
4432 - [You can now use tool lints, which allow you to scope lints from external
4433 tools using attributes.][54870] E.g. `#[allow(clippy::filter_map)]`.
4434 - [`#[no_mangle]` and `#[export_name]` attributes can now be located anywhere in
4435 a crate, not just in exported functions.][54451]
4436 - [You can now use parentheses in pattern matches.][54497]
4440 - [Updated musl to 1.1.20][54430]
4444 - [You can now convert `num::NonZero*` types to their raw equivalents using the
4445 `From` trait.][54240] E.g. `u8` now implements `From<NonZeroU8>`.
4446 - [You can now convert a `&Option<T>` into `Option<&T>` and `&mut Option<T>`
4447 into `Option<&mut T>` using the `From` trait.][53218]
4448 - [You can now multiply (`*`) a `time::Duration` by a `u32`.][52813]
4453 - [`slice::align_to`]
4454 - [`slice::align_to_mut`]
4455 - [`slice::chunks_exact`]
4456 - [`slice::chunks_exact_mut`]
4457 - [`slice::rchunks`]
4458 - [`slice::rchunks_mut`]
4459 - [`slice::rchunks_exact`]
4460 - [`slice::rchunks_exact_mut`]
4461 - [`Option::replace`]
4465 - [Cargo will now download crates in parallel using HTTP/2.][cargo/6005]
4466 - [You can now rename packages in your Cargo.toml][cargo/6319] We have a guide
4467 on [how to use the `package` key in your dependencies.][cargo-rename-reference]
4469 [52813]: https://github.com/rust-lang/rust/pull/52813/
4470 [53218]: https://github.com/rust-lang/rust/pull/53218/
4471 [54057]: https://github.com/rust-lang/rust/pull/54057/
4472 [54240]: https://github.com/rust-lang/rust/pull/54240/
4473 [54430]: https://github.com/rust-lang/rust/pull/54430/
4474 [54451]: https://github.com/rust-lang/rust/pull/54451/
4475 [54497]: https://github.com/rust-lang/rust/pull/54497/
4476 [54778]: https://github.com/rust-lang/rust/pull/54778/
4477 [54835]: https://github.com/rust-lang/rust/pull/54835/
4478 [54870]: https://github.com/rust-lang/rust/pull/54870/
4479 [RFC-911]: https://github.com/rust-lang/rfcs/pull/911
4480 [`Option::replace`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.replace
4481 [`slice::align_to_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to_mut
4482 [`slice::align_to`]: https://doc.rust-lang.org/std/primitive.slice.html#method.align_to
4483 [`slice::chunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact_mut
4484 [`slice::chunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.chunks_exact
4485 [`slice::rchunks_exact_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
4486 [`slice::rchunks_exact`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_exact
4487 [`slice::rchunks_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks_mut
4488 [`slice::rchunks`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rchunks
4489 [cargo/6005]: https://github.com/rust-lang/cargo/pull/6005/
4490 [cargo/6319]: https://github.com/rust-lang/cargo/pull/6319/
4491 [cargo-rename-reference]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml
4492 [const-reference]: https://doc.rust-lang.org/reference/items/functions.html#const-functions
4494 Version 1.30.1 (2018-11-08)
4495 ===========================
4497 - [Fixed overflow ICE in rustdoc][54199]
4498 - [Cap Cargo progress bar width at 60 in MSYS terminals][cargo/6122]
4500 [54199]: https://github.com/rust-lang/rust/pull/54199
4501 [cargo/6122]: https://github.com/rust-lang/cargo/pull/6122
4503 Version 1.30.0 (2018-10-25)
4504 ==========================
4508 - [Procedural macros are now available.][52081] These kinds of macros allow for
4509 more powerful code generation. There is a [new chapter available][proc-macros]
4510 in the Rust Programming Language book that goes further in depth.
4511 - [You can now use keywords as identifiers using the raw identifiers
4512 syntax (`r#`),][53236] e.g. `let r#for = true;`
4513 - [Using anonymous parameters in traits is now deprecated with a warning and
4514 will be a hard error in the 2018 edition.][53272]
4515 - [You can now use `crate` in paths.][54404] This allows you to refer to the
4516 crate root in the path, e.g. `use crate::foo;` refers to `foo` in `src/lib.rs`.
4517 - [Using a external crate no longer requires being prefixed with `::`.][54404]
4518 Previously, using a external crate in a module without a use statement
4519 required `let json = ::serde_json::from_str(foo);` but can now be written
4520 as `let json = serde_json::from_str(foo);`.
4521 - [You can now apply the `#[used]` attribute to static items to prevent the
4522 compiler from optimising them away, even if they appear to be unused,][51363]
4523 e.g. `#[used] static FOO: u32 = 1;`
4524 - [You can now import and reexport macros from other crates with the `use`
4525 syntax.][50911] Macros exported with `#[macro_export]` are now placed into
4526 the root module of the crate. If your macro relies on calling other local
4527 macros, it is recommended to export with the
4528 `#[macro_export(local_inner_macros)]` attribute so users won't have to import
4530 - [You can now catch visibility keywords (e.g. `pub`, `pub(crate)`) in macros
4531 using the `vis` specifier.][53370]
4532 - [Non-macro attributes now allow all forms of literals, not just
4533 strings.][53044] Previously, you would write `#[attr("true")]`, and you can now
4534 write `#[attr(true)]`.
4535 - [You can now specify a function to handle a panic in the Rust runtime with the
4536 `#[panic_handler]` attribute.][51366]
4540 - [Added the `riscv32imc-unknown-none-elf` target.][53822]
4541 - [Added the `aarch64-unknown-netbsd` target][53165]
4542 - [Upgraded to LLVM 8.][53611]
4546 - [`ManuallyDrop` now allows the inner type to be unsized.][53033]
4550 - [`Ipv4Addr::BROADCAST`]
4551 - [`Ipv4Addr::LOCALHOST`]
4552 - [`Ipv4Addr::UNSPECIFIED`]
4553 - [`Ipv6Addr::LOCALHOST`]
4554 - [`Ipv6Addr::UNSPECIFIED`]
4555 - [`Iterator::find_map`]
4557 The following methods are replacement methods for `trim_left`, `trim_right`,
4558 `trim_left_matches`, and `trim_right_matches`, which will be deprecated
4560 - [`str::trim_end_matches`]
4562 - [`str::trim_start_matches`]
4563 - [`str::trim_start`]
4567 - [`cargo run` doesn't require specifying a package in workspaces.][cargo/5877]
4568 - [`cargo doc` now supports `--message-format=json`.][cargo/5878] This is
4569 equivalent to calling `rustdoc --error-format=json`.
4570 - [Cargo will now provide a progress bar for builds.][cargo/5995]
4574 - [`rustdoc` allows you to specify what edition to treat your code as with the
4575 `--edition` option.][54057]
4576 - [`rustdoc` now has the `--color` (specify whether to output color) and
4577 `--error-format` (specify error format, e.g. `json`) options.][53003]
4578 - [We now distribute a `rust-gdbgui` script that invokes `gdbgui` with Rust
4579 debug symbols.][53774]
4580 - [Attributes from Rust tools such as `rustfmt` or `clippy` are now
4581 available,][53459] e.g. `#[rustfmt::skip]` will skip formatting the next item.
4583 [50911]: https://github.com/rust-lang/rust/pull/50911/
4584 [51363]: https://github.com/rust-lang/rust/pull/51363/
4585 [51366]: https://github.com/rust-lang/rust/pull/51366/
4586 [52081]: https://github.com/rust-lang/rust/pull/52081/
4587 [53003]: https://github.com/rust-lang/rust/pull/53003/
4588 [53033]: https://github.com/rust-lang/rust/pull/53033/
4589 [53044]: https://github.com/rust-lang/rust/pull/53044/
4590 [53165]: https://github.com/rust-lang/rust/pull/53165/
4591 [53611]: https://github.com/rust-lang/rust/pull/53611/
4592 [53236]: https://github.com/rust-lang/rust/pull/53236/
4593 [53272]: https://github.com/rust-lang/rust/pull/53272/
4594 [53370]: https://github.com/rust-lang/rust/pull/53370/
4595 [53459]: https://github.com/rust-lang/rust/pull/53459/
4596 [53774]: https://github.com/rust-lang/rust/pull/53774/
4597 [53822]: https://github.com/rust-lang/rust/pull/53822/
4598 [54057]: https://github.com/rust-lang/rust/pull/54057/
4599 [54404]: https://github.com/rust-lang/rust/pull/54404/
4600 [cargo/5877]: https://github.com/rust-lang/cargo/pull/5877/
4601 [cargo/5878]: https://github.com/rust-lang/cargo/pull/5878/
4602 [cargo/5995]: https://github.com/rust-lang/cargo/pull/5995/
4603 [proc-macros]: https://doc.rust-lang.org/nightly/book/2018-edition/ch19-06-macros.html
4605 [`Ipv4Addr::BROADCAST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.BROADCAST
4606 [`Ipv4Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.LOCALHOST
4607 [`Ipv4Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#associatedconstant.UNSPECIFIED
4608 [`Ipv6Addr::LOCALHOST`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.LOCALHOST
4609 [`Ipv6Addr::UNSPECIFIED`]: https://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#associatedconstant.UNSPECIFIED
4610 [`Iterator::find_map`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.find_map
4611 [`str::trim_end_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end_matches
4612 [`str::trim_end`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_end
4613 [`str::trim_start_matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start_matches
4614 [`str::trim_start`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.trim_start
4617 Version 1.29.2 (2018-10-11)
4618 ===========================
4620 - [Workaround for an aliasing-related LLVM bug, which caused miscompilation.][54639]
4621 - The `rls-preview` component on the windows-gnu targets has been restored.
4623 [54639]: https://github.com/rust-lang/rust/pull/54639
4626 Version 1.29.1 (2018-09-25)
4627 ===========================
4632 - The standard library's `str::repeat` function contained an out of bounds write
4633 caused by an integer overflow. This has been fixed by deterministically
4634 panicking when an overflow happens.
4636 Thank you to Scott McMurray for responsibly disclosing this vulnerability to
4640 Version 1.29.0 (2018-09-13)
4641 ==========================
4645 - [Bumped minimum LLVM version to 5.0.][51899]
4646 - [Added `powerpc64le-unknown-linux-musl` target.][51619]
4647 - [Added `aarch64-unknown-hermit` and `x86_64-unknown-hermit` targets.][52861]
4648 - [Upgraded to LLVM 7.][51966]
4652 - [`Once::call_once` no longer requires `Once` to be `'static`.][52239]
4653 - [`BuildHasherDefault` now implements `PartialEq` and `Eq`.][52402]
4654 - [`Box<CStr>`, `Box<OsStr>`, and `Box<Path>` now implement `Clone`.][51912]
4655 - [Implemented `PartialEq<&str>` for `OsString` and `PartialEq<OsString>`
4657 - [`Cell<T>` now allows `T` to be unsized.][50494]
4658 - [`SocketAddr` is now stable on Redox.][52656]
4663 - [`Iterator::flatten`]
4668 - [Cargo can silently fix some bad lockfiles.][cargo/5831] You can use
4669 `--locked` to disable this behavior.
4670 - [`cargo-install` will now allow you to cross compile an install
4671 using `--target`.][cargo/5614]
4672 - [Added the `cargo-fix` subcommand to automatically move project code from
4673 2015 edition to 2018.][cargo/5723]
4674 - [`cargo doc` can now optionally document private types using the
4675 `--document-private-items` flag.][cargo/5543]
4679 - [`rustdoc` now has the `--cap-lints` option which demotes all lints above
4680 the specified level to that level.][52354] For example `--cap-lints warn`
4681 will demote `deny` and `forbid` lints to `warn`.
4682 - [`rustc` and `rustdoc` will now have the exit code of `1` if compilation
4683 fails and `101` if there is a panic.][52197]
4684 - [A preview of clippy has been made available through rustup.][51122]
4685 You can install the preview with `rustup component add clippy-preview`.
4689 - [`str::{slice_unchecked, slice_unchecked_mut}` are now deprecated.][51807]
4690 Use `str::get_unchecked(begin..end)` instead.
4691 - [`std::env::home_dir` is now deprecated for its unintuitive behavior.][51656]
4692 Consider using the `home_dir` function from
4693 https://crates.io/crates/dirs instead.
4694 - [`rustc` will no longer silently ignore invalid data in target spec.][52330]
4695 - [`cfg` attributes and `--cfg` command line flags are now more
4696 strictly validated.][53893]
4698 [53893]: https://github.com/rust-lang/rust/pull/53893/
4699 [52861]: https://github.com/rust-lang/rust/pull/52861/
4700 [51966]: https://github.com/rust-lang/rust/pull/51966/
4701 [52656]: https://github.com/rust-lang/rust/pull/52656/
4702 [52239]: https://github.com/rust-lang/rust/pull/52239/
4703 [52330]: https://github.com/rust-lang/rust/pull/52330/
4704 [52354]: https://github.com/rust-lang/rust/pull/52354/
4705 [52402]: https://github.com/rust-lang/rust/pull/52402/
4706 [52197]: https://github.com/rust-lang/rust/pull/52197/
4707 [51807]: https://github.com/rust-lang/rust/pull/51807/
4708 [51899]: https://github.com/rust-lang/rust/pull/51899/
4709 [51912]: https://github.com/rust-lang/rust/pull/51912/
4710 [51619]: https://github.com/rust-lang/rust/pull/51619/
4711 [51656]: https://github.com/rust-lang/rust/pull/51656/
4712 [51178]: https://github.com/rust-lang/rust/pull/51178/
4713 [51122]: https://github.com/rust-lang/rust/pull/51122
4714 [50494]: https://github.com/rust-lang/rust/pull/50494/
4715 [cargo/5543]: https://github.com/rust-lang/cargo/pull/5543
4716 [cargo/5614]: https://github.com/rust-lang/cargo/pull/5614/
4717 [cargo/5723]: https://github.com/rust-lang/cargo/pull/5723/
4718 [cargo/5831]: https://github.com/rust-lang/cargo/pull/5831/
4719 [`Arc::downcast`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.downcast
4720 [`Iterator::flatten`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.flatten
4721 [`Rc::downcast`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.downcast
4724 Version 1.28.0 (2018-08-02)
4725 ===========================
4729 - [The `#[repr(transparent)]` attribute is now stable.][51562] This attribute
4730 allows a Rust newtype wrapper (`struct NewType<T>(T);`) to be represented as
4731 the inner type across Foreign Function Interface (FFI) boundaries.
4732 - [The keywords `pure`, `sizeof`, `alignof`, and `offsetof` have been unreserved
4733 and can now be used as identifiers.][51196]
4734 - [The `GlobalAlloc` trait and `#[global_allocator]` attribute are now
4735 stable.][51241] This will allow users to specify a global allocator for
4737 - [Unit test functions marked with the `#[test]` attribute can now return
4738 `Result<(), E: Debug>` in addition to `()`.][51298]
4739 - [The `lifetime` specifier for `macro_rules!` is now stable.][50385] This
4740 allows macros to easily target lifetimes.
4744 - [The `s` and `z` optimisation levels are now stable.][50265] These optimisations
4745 prioritise making smaller binary sizes. `z` is the same as `s` with the
4746 exception that it does not vectorise loops, which typically results in an even
4748 - [The short error format is now stable.][49546] Specified with
4749 `--error-format=short` this option will provide a more compressed output of
4750 rust error messages.
4751 - [Added a lint warning when you have duplicated `macro_export`s.][50143]
4752 - [Reduced the number of allocations in the macro parser.][50855] This can
4753 improve compile times of macro heavy crates on average by 5%.
4757 - [Implemented `Default` for `&mut str`.][51306]
4758 - [Implemented `From<bool>` for all integer and unsigned number types.][50554]
4759 - [Implemented `Extend` for `()`.][50234]
4760 - [The `Debug` implementation of `time::Duration` should now be more easily
4761 human readable.][50364] Previously a `Duration` of one second would printed as
4762 `Duration { secs: 1, nanos: 0 }` and will now be printed as `1s`.
4763 - [Implemented `From<&String>` for `Cow<str>`, `From<&Vec<T>>` for `Cow<[T]>`,
4764 `From<Cow<CStr>>` for `CString`, `From<CString>, From<CStr>, From<&CString>`
4765 for `Cow<CStr>`, `From<OsString>, From<OsStr>, From<&OsString>` for
4766 `Cow<OsStr>`, `From<&PathBuf>` for `Cow<Path>`, and `From<Cow<Path>>`
4767 for `PathBuf`.][50170]
4768 - [Implemented `Shl` and `Shr` for `Wrapping<u128>`
4769 and `Wrapping<i128>`.][50465]
4770 - [`DirEntry::metadata` now uses `fstatat` instead of `lstat` when
4771 possible.][51050] This can provide up to a 40% speed increase.
4772 - [Improved error messages when using `format!`.][50610]
4776 - [`Iterator::step_by`]
4777 - [`Path::ancestors`]
4778 - [`SystemTime::UNIX_EPOCH`]
4779 - [`alloc::GlobalAlloc`]
4781 - [`alloc::LayoutErr`]
4784 - [`alloc::alloc_zeroed`]
4785 - [`alloc::dealloc`]
4786 - [`alloc::realloc`]
4787 - [`alloc::handle_alloc_error`]
4788 - [`btree_map::Entry::or_default`]
4789 - [`fmt::Alignment`]
4790 - [`hash_map::Entry::or_default`]
4791 - [`iter::repeat_with`]
4792 - [`num::NonZeroUsize`]
4793 - [`num::NonZeroU128`]
4794 - [`num::NonZeroU16`]
4795 - [`num::NonZeroU32`]
4796 - [`num::NonZeroU64`]
4797 - [`num::NonZeroU8`]
4798 - [`ops::RangeBounds`]
4799 - [`slice::SliceIndex`]
4800 - [`slice::from_mut`]
4801 - [`slice::from_ref`]
4802 - [`{Any + Send + Sync}::downcast_mut`]
4803 - [`{Any + Send + Sync}::downcast_ref`]
4804 - [`{Any + Send + Sync}::is`]
4808 - [Cargo will now no longer allow you to publish crates with build scripts that
4809 modify the `src` directory.][cargo/5584] The `src` directory in a crate should be
4810 considered to be immutable.
4814 - [The `suggestion_applicability` field in `rustc`'s json output is now
4815 stable.][50486] This will allow dev tools to check whether a code suggestion
4816 would apply to them.
4820 - [Rust will consider trait objects with duplicated constraints to be the same
4821 type as without the duplicated constraint.][51276] For example the below code will
4822 now fail to compile.
4827 fn test(&self) { println!("one"); } //~ ERROR duplicate definitions with name `test`
4830 impl Trait + Send + Send {
4831 fn test(&self) { println!("two"); }
4835 [49546]: https://github.com/rust-lang/rust/pull/49546/
4836 [50143]: https://github.com/rust-lang/rust/pull/50143/
4837 [50170]: https://github.com/rust-lang/rust/pull/50170/
4838 [50234]: https://github.com/rust-lang/rust/pull/50234/
4839 [50265]: https://github.com/rust-lang/rust/pull/50265/
4840 [50364]: https://github.com/rust-lang/rust/pull/50364/
4841 [50385]: https://github.com/rust-lang/rust/pull/50385/
4842 [50465]: https://github.com/rust-lang/rust/pull/50465/
4843 [50486]: https://github.com/rust-lang/rust/pull/50486/
4844 [50554]: https://github.com/rust-lang/rust/pull/50554/
4845 [50610]: https://github.com/rust-lang/rust/pull/50610/
4846 [50855]: https://github.com/rust-lang/rust/pull/50855/
4847 [51050]: https://github.com/rust-lang/rust/pull/51050/
4848 [51196]: https://github.com/rust-lang/rust/pull/51196/
4849 [51241]: https://github.com/rust-lang/rust/pull/51241/
4850 [51276]: https://github.com/rust-lang/rust/pull/51276/
4851 [51298]: https://github.com/rust-lang/rust/pull/51298/
4852 [51306]: https://github.com/rust-lang/rust/pull/51306/
4853 [51562]: https://github.com/rust-lang/rust/pull/51562/
4854 [cargo/5584]: https://github.com/rust-lang/cargo/pull/5584/
4855 [`Iterator::step_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.step_by
4856 [`Path::ancestors`]: https://doc.rust-lang.org/std/path/struct.Path.html#method.ancestors
4857 [`SystemTime::UNIX_EPOCH`]: https://doc.rust-lang.org/std/time/struct.SystemTime.html#associatedconstant.UNIX_EPOCH
4858 [`alloc::GlobalAlloc`]: https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html
4859 [`alloc::Layout`]: https://doc.rust-lang.org/std/alloc/struct.Layout.html
4860 [`alloc::LayoutErr`]: https://doc.rust-lang.org/std/alloc/struct.LayoutErr.html
4861 [`alloc::System`]: https://doc.rust-lang.org/std/alloc/struct.System.html
4862 [`alloc::alloc`]: https://doc.rust-lang.org/std/alloc/fn.alloc.html
4863 [`alloc::alloc_zeroed`]: https://doc.rust-lang.org/std/alloc/fn.alloc_zeroed.html
4864 [`alloc::dealloc`]: https://doc.rust-lang.org/std/alloc/fn.dealloc.html
4865 [`alloc::realloc`]: https://doc.rust-lang.org/std/alloc/fn.realloc.html
4866 [`alloc::handle_alloc_error`]: https://doc.rust-lang.org/std/alloc/fn.handle_alloc_error.html
4867 [`btree_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.or_default
4868 [`fmt::Alignment`]: https://doc.rust-lang.org/std/fmt/enum.Alignment.html
4869 [`hash_map::Entry::or_default`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.or_default
4870 [`iter::repeat_with`]: https://doc.rust-lang.org/std/iter/fn.repeat_with.html
4871 [`num::NonZeroUsize`]: https://doc.rust-lang.org/std/num/struct.NonZeroUsize.html
4872 [`num::NonZeroU128`]: https://doc.rust-lang.org/std/num/struct.NonZeroU128.html
4873 [`num::NonZeroU16`]: https://doc.rust-lang.org/std/num/struct.NonZeroU16.html
4874 [`num::NonZeroU32`]: https://doc.rust-lang.org/std/num/struct.NonZeroU32.html
4875 [`num::NonZeroU64`]: https://doc.rust-lang.org/std/num/struct.NonZeroU64.html
4876 [`num::NonZeroU8`]: https://doc.rust-lang.org/std/num/struct.NonZeroU8.html
4877 [`ops::RangeBounds`]: https://doc.rust-lang.org/std/ops/trait.RangeBounds.html
4878 [`slice::SliceIndex`]: https://doc.rust-lang.org/std/slice/trait.SliceIndex.html
4879 [`slice::from_mut`]: https://doc.rust-lang.org/std/slice/fn.from_mut.html
4880 [`slice::from_ref`]: https://doc.rust-lang.org/std/slice/fn.from_ref.html
4881 [`{Any + Send + Sync}::downcast_mut`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_mut-2
4882 [`{Any + Send + Sync}::downcast_ref`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.downcast_ref-2
4883 [`{Any + Send + Sync}::is`]: https://doc.rust-lang.org/std/any/trait.Any.html#method.is-2
4885 Version 1.27.2 (2018-07-20)
4886 ===========================
4891 - The borrow checker was fixed to avoid potential unsoundness when using
4892 match ergonomics: [#52213][52213].
4894 [52213]: https://github.com/rust-lang/rust/issues/52213
4896 Version 1.27.1 (2018-07-10)
4897 ===========================
4902 - rustdoc would execute plugins in the /tmp/rustdoc/plugins directory
4903 when running, which enabled executing code as some other user on a
4904 given machine. This release fixes that vulnerability; you can read
4905 more about this on the [blog][rustdoc-sec]. The associated CVE is [CVE-2018-1000622].
4907 Thank you to Red Hat for responsibly disclosing this vulnerability to us.
4912 - The borrow checker was fixed to avoid an additional potential unsoundness when using
4913 match ergonomics: [#51415][51415], [#49534][49534].
4915 [51415]: https://github.com/rust-lang/rust/issues/51415
4916 [49534]: https://github.com/rust-lang/rust/issues/49534
4917 [rustdoc-sec]: https://blog.rust-lang.org/2018/07/06/security-advisory-for-rustdoc.html
4918 [CVE-2018-1000622]: https://cve.mitre.org/cgi-bin/cvename.cgi?name=%20CVE-2018-1000622
4920 Version 1.27.0 (2018-06-21)
4921 ==========================
4925 - [Removed 'proc' from the reserved keywords list.][49699] This allows `proc` to
4926 be used as an identifier.
4927 - [The dyn syntax is now available.][49968] This syntax is equivalent to the
4928 bare `Trait` syntax, and should make it clearer when being used in tandem with
4929 `impl Trait` because it is equivalent to the following syntax:
4930 `&Trait == &dyn Trait`, `&mut Trait == &mut dyn Trait`, and
4931 `Box<Trait> == Box<dyn Trait>`.
4932 - [Attributes on generic parameters such as types and lifetimes are
4933 now stable.][48851] e.g.
4934 `fn foo<#[lifetime_attr] 'a, #[type_attr] T: 'a>() {}`
4935 - [The `#[must_use]` attribute can now also be used on functions as well as
4936 types.][48925] It provides a lint that by default warns users when the
4937 value returned by a function has not been used.
4941 - [Added the `armv5te-unknown-linux-musleabi` target.][50423]
4945 - [SIMD (Single Instruction Multiple Data) on x86/x86_64 is now stable.][49664]
4946 This includes [`arch::x86`] & [`arch::x86_64`] modules which contain
4947 SIMD intrinsics, a new macro called `is_x86_feature_detected!`, the
4948 `#[target_feature(enable="")]` attribute, and adding `target_feature = ""` to
4949 the `cfg` attribute.
4950 - [A lot of methods for `[u8]`, `f32`, and `f64` previously only available in
4951 std are now available in core.][49896]
4952 - [The generic `Rhs` type parameter on `ops::{Shl, ShlAssign, Shr}` now defaults
4954 - [`std::str::replace` now has the `#[must_use]` attribute][50177] to clarify
4955 that the operation isn't done in place.
4956 - [`Clone::clone`, `Iterator::collect`, and `ToOwned::to_owned` now have
4957 the `#[must_use]` attribute][49533] to warn about unused potentially
4958 expensive allocations.
4962 - [`DoubleEndedIterator::rfind`]
4963 - [`DoubleEndedIterator::rfold`]
4964 - [`DoubleEndedIterator::try_rfold`]
4965 - [`Duration::from_micros`]
4966 - [`Duration::from_nanos`]
4967 - [`Duration::subsec_micros`]
4968 - [`Duration::subsec_millis`]
4969 - [`HashMap::remove_entry`]
4970 - [`Iterator::try_fold`]
4971 - [`Iterator::try_for_each`]
4973 - [`Option::filter`]
4974 - [`String::replace_range`]
4975 - [`Take::set_limit`]
4976 - [`hint::unreachable_unchecked`]
4977 - [`os::unix::process::parent_id`]
4978 - [`ptr::swap_nonoverlapping`]
4979 - [`slice::rsplit_mut`]
4981 - [`slice::swap_with_slice`]
4985 - [`cargo-metadata` now includes `authors`, `categories`, `keywords`,
4986 `readme`, and `repository` fields.][cargo/5386]
4987 - [`cargo-metadata` now includes a package's `metadata` table.][cargo/5360]
4988 - [Added the `--target-dir` optional argument.][cargo/5393] This allows you to specify
4989 a different directory than `target` for placing compilation artifacts.
4990 - [Cargo will be adding automatic target inference for binaries, benchmarks,
4991 examples, and tests in the Rust 2018 edition.][cargo/5335] If your project specifies
4992 specific targets, e.g. using `[[bin]]`, and have other binaries in locations
4993 where cargo would infer a binary, Cargo will produce a warning. You can
4994 disable this feature ahead of time by setting any of the following to false:
4995 `autobins`, `autobenches`, `autoexamples`, `autotests`.
4996 - [Cargo will now cache compiler information.][cargo/5359] This can be disabled by
4997 setting `CARGO_CACHE_RUSTC_INFO=0` in your environment.
5001 - [Added “The Rustc book” into the official documentation.][49707]
5002 [“The Rustc book”] documents and teaches how to use the rustc compiler.
5003 - [All books available on `doc.rust-lang.org` are now searchable.][49623]
5007 - [Calling a `CharExt` or `StrExt` method directly on core will no longer
5008 work.][49896] e.g. `::core::prelude::v1::StrExt::is_empty("")` will not
5009 compile, `"".is_empty()` will still compile.
5010 - [`Debug` output on `atomic::{AtomicBool, AtomicIsize, AtomicPtr, AtomicUsize}`
5011 will only print the inner type.][48553] E.g.
5012 `print!("{:?}", AtomicBool::new(true))` will print `true`,
5013 not `AtomicBool(true)`.
5014 - [The maximum number for `repr(align(N))` is now 2²⁹.][50378] Previously you
5015 could enter higher numbers but they were not supported by LLVM. Up to 512MB
5016 alignment should cover all use cases.
5017 - The `.description()` method on the `std::error::Error` trait
5018 [has been soft-deprecated][50163]. It is no longer required to implement it.
5020 [48553]: https://github.com/rust-lang/rust/pull/48553/
5021 [48851]: https://github.com/rust-lang/rust/pull/48851/
5022 [48925]: https://github.com/rust-lang/rust/pull/48925/
5023 [49533]: https://github.com/rust-lang/rust/pull/49533/
5024 [49623]: https://github.com/rust-lang/rust/pull/49623/
5025 [49630]: https://github.com/rust-lang/rust/pull/49630/
5026 [49664]: https://github.com/rust-lang/rust/pull/49664/
5027 [49699]: https://github.com/rust-lang/rust/pull/49699/
5028 [49707]: https://github.com/rust-lang/rust/pull/49707/
5029 [49896]: https://github.com/rust-lang/rust/pull/49896/
5030 [49968]: https://github.com/rust-lang/rust/pull/49968/
5031 [50163]: https://github.com/rust-lang/rust/pull/50163
5032 [50177]: https://github.com/rust-lang/rust/pull/50177/
5033 [50378]: https://github.com/rust-lang/rust/pull/50378/
5034 [50423]: https://github.com/rust-lang/rust/pull/50423/
5035 [cargo/5335]: https://github.com/rust-lang/cargo/pull/5335/
5036 [cargo/5359]: https://github.com/rust-lang/cargo/pull/5359/
5037 [cargo/5360]: https://github.com/rust-lang/cargo/pull/5360/
5038 [cargo/5386]: https://github.com/rust-lang/cargo/pull/5386/
5039 [cargo/5393]: https://github.com/rust-lang/cargo/pull/5393/
5040 [`DoubleEndedIterator::rfind`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfind
5041 [`DoubleEndedIterator::rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.rfold
5042 [`DoubleEndedIterator::try_rfold`]: https://doc.rust-lang.org/std/iter/trait.DoubleEndedIterator.html#method.try_rfold
5043 [`Duration::from_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_micros
5044 [`Duration::from_nanos`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.from_nanos
5045 [`Duration::subsec_micros`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_micros
5046 [`Duration::subsec_millis`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.subsec_millis
5047 [`HashMap::remove_entry`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.remove_entry
5048 [`Iterator::try_fold`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_fold
5049 [`Iterator::try_for_each`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.try_for_each
5050 [`NonNull::cast`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html#method.cast
5051 [`Option::filter`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.filter
5052 [`String::replace_range`]: https://doc.rust-lang.org/std/string/struct.String.html#method.replace_range
5053 [`Take::set_limit`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.set_limit
5054 [`hint::unreachable_unchecked`]: https://doc.rust-lang.org/std/hint/fn.unreachable_unchecked.html
5055 [`os::unix::process::parent_id`]: https://doc.rust-lang.org/std/os/unix/process/fn.parent_id.html
5056 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
5057 [`ptr::swap_nonoverlapping`]: https://doc.rust-lang.org/std/ptr/fn.swap_nonoverlapping.html
5058 [`slice::rsplit_mut`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit_mut
5059 [`slice::rsplit`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rsplit
5060 [`slice::swap_with_slice`]: https://doc.rust-lang.org/std/primitive.slice.html#method.swap_with_slice
5061 [`arch::x86_64`]: https://doc.rust-lang.org/std/arch/x86_64/index.html
5062 [`arch::x86`]: https://doc.rust-lang.org/std/arch/x86/index.html
5063 [“The Rustc book”]: https://doc.rust-lang.org/rustc
5066 Version 1.26.2 (2018-06-05)
5067 ==========================
5072 - [The borrow checker was fixed to avoid unsoundness when using match ergonomics.][51117]
5074 [51117]: https://github.com/rust-lang/rust/issues/51117
5077 Version 1.26.1 (2018-05-29)
5078 ==========================
5083 - [RLS now works on Windows.][50646]
5084 - [Rustfmt stopped badly formatting text in some cases.][rustfmt/2695]
5090 - [`fn main() -> impl Trait` no longer works for non-Termination
5092 This reverts an accidental stabilization.
5093 - [`NaN > NaN` no longer returns true in const-fn contexts.][50812]
5094 - [Prohibit using turbofish for `impl Trait` in method arguments.][50950]
5096 [50646]: https://github.com/rust-lang/rust/issues/50646
5097 [50656]: https://github.com/rust-lang/rust/pull/50656
5098 [50812]: https://github.com/rust-lang/rust/pull/50812
5099 [50950]: https://github.com/rust-lang/rust/issues/50950
5100 [rustfmt/2695]: https://github.com/rust-lang-nursery/rustfmt/issues/2695
5102 Version 1.26.0 (2018-05-10)
5103 ==========================
5107 - [Closures now implement `Copy` and/or `Clone` if all captured variables
5108 implement either or both traits.][49299]
5109 - [The inclusive range syntax e.g. `for x in 0..=10` is now stable.][47813]
5110 - [The `'_` lifetime is now stable. The underscore lifetime can be used anywhere a
5111 lifetime can be elided.][49458]
5112 - [`impl Trait` is now stable allowing you to have abstract types in returns
5113 or in function parameters.][49255] E.g. `fn foo() -> impl Iterator<Item=u8>` or
5114 `fn open(path: impl AsRef<Path>)`.
5115 - [Pattern matching will now automatically apply dereferences.][49394]
5116 - [128-bit integers in the form of `u128` and `i128` are now stable.][49101]
5117 - [`main` can now return `Result<(), E: Debug>`][49162] in addition to `()`.
5118 - [A lot of operations are now available in a const context.][46882] E.g. You
5119 can now index into constant arrays, reference and dereference into constants,
5120 and use tuple struct constructors.
5121 - [Fixed entry slice patterns are now stable.][48516] E.g.
5123 let points = [1, 2, 3, 4];
5125 [1, 2, 3, 4] => println!("All points were sequential."),
5126 _ => println!("Not all points were sequential."),
5133 - [LLD is now used as the default linker for `wasm32-unknown-unknown`.][48125]
5134 - [Fixed exponential projection complexity on nested types.][48296]
5135 This can provide up to a ~12% reduction in compile times for certain crates.
5136 - [Added the `--remap-path-prefix` option to rustc.][48359] Allowing you
5137 to remap path prefixes outputted by the compiler.
5138 - [Added `powerpc-unknown-netbsd` target.][48281]
5142 - [Implemented `From<u16> for usize` & `From<{u8, i16}> for isize`.][49305]
5143 - [Added hexadecimal formatting for integers with fmt::Debug][48978]
5144 e.g. `assert!(format!("{:02x?}", b"Foo\0") == "[46, 6f, 6f, 00]")`
5145 - [Implemented `Default, Hash` for `cmp::Reverse`.][48628]
5146 - [Optimized `str::repeat` being 8x faster in large cases.][48657]
5147 - [`ascii::escape_default` is now available in libcore.][48735]
5148 - [Trailing commas are now supported in std and core macros.][48056]
5149 - [Implemented `Copy, Clone` for `cmp::Reverse`][47379]
5150 - [Implemented `Clone` for `char::{ToLowercase, ToUppercase}`.][48629]
5155 - [`*const T::copy_to_nonoverlapping`]
5156 - [`*const T::copy_to`]
5157 - [`*const T::read_unaligned`]
5158 - [`*const T::read_volatile`]
5159 - [`*const T::read`]
5161 - [`*const T::wrapping_add`]
5162 - [`*const T::wrapping_sub`]
5164 - [`*mut T::copy_to_nonoverlapping`]
5165 - [`*mut T::copy_to`]
5166 - [`*mut T::read_unaligned`]
5167 - [`*mut T::read_volatile`]
5169 - [`*mut T::replace`]
5172 - [`*mut T::wrapping_add`]
5173 - [`*mut T::wrapping_sub`]
5174 - [`*mut T::write_bytes`]
5175 - [`*mut T::write_unaligned`]
5176 - [`*mut T::write_volatile`]
5179 - [`FromUtf8Error::as_bytes`]
5180 - [`LocalKey::try_with`]
5181 - [`Option::cloned`]
5182 - [`btree_map::Entry::and_modify`]
5183 - [`fs::read_to_string`]
5186 - [`hash_map::Entry::and_modify`]
5187 - [`iter::FusedIterator`]
5188 - [`ops::RangeInclusive`]
5189 - [`ops::RangeToInclusive`]
5191 - [`slice::rotate_left`]
5192 - [`slice::rotate_right`]
5193 - [`String::retain`]
5198 - [Cargo will now output path to custom commands when `-v` is
5199 passed with `--list`][cargo/5041]
5200 - [The Cargo binary version is now the same as the Rust version][cargo/5083]
5204 - [The second edition of "The Rust Programming Language" book is now recommended
5205 over the first.][48404]
5210 - [aliasing a `Fn` trait as `dyn` no longer works.][48481] E.g. the following
5211 syntax is now invalid.
5213 use std::ops::Fn as dyn;
5214 fn g(_: Box<dyn(std::fmt::Debug)>) {}
5216 - [The result of dereferences are no longer promoted to `'static`.][47408]
5220 const PAIR: &(i32, i32) = &(0, 1);
5221 let _reversed_pair: &'static _ = &(PAIR.1, PAIR.0); // Doesn't work
5224 - [Deprecate `AsciiExt` trait in favor of inherent methods.][49109]
5225 - [`".e0"` will now no longer parse as `0.0` and will instead cause
5227 - [Removed hoedown from rustdoc.][48274]
5228 - [Bounds on higher-kinded lifetimes a hard error.][48326]
5230 [46882]: https://github.com/rust-lang/rust/pull/46882
5231 [47379]: https://github.com/rust-lang/rust/pull/47379
5232 [47408]: https://github.com/rust-lang/rust/pull/47408
5233 [47813]: https://github.com/rust-lang/rust/pull/47813
5234 [48056]: https://github.com/rust-lang/rust/pull/48056
5235 [48125]: https://github.com/rust-lang/rust/pull/48125
5236 [48235]: https://github.com/rust-lang/rust/pull/48235
5237 [48274]: https://github.com/rust-lang/rust/pull/48274
5238 [48281]: https://github.com/rust-lang/rust/pull/48281
5239 [48296]: https://github.com/rust-lang/rust/pull/48296
5240 [48326]: https://github.com/rust-lang/rust/pull/48326
5241 [48359]: https://github.com/rust-lang/rust/pull/48359
5242 [48404]: https://github.com/rust-lang/rust/pull/48404
5243 [48481]: https://github.com/rust-lang/rust/pull/48481
5244 [48516]: https://github.com/rust-lang/rust/pull/48516
5245 [48628]: https://github.com/rust-lang/rust/pull/48628
5246 [48629]: https://github.com/rust-lang/rust/pull/48629
5247 [48657]: https://github.com/rust-lang/rust/pull/48657
5248 [48735]: https://github.com/rust-lang/rust/pull/48735
5249 [48978]: https://github.com/rust-lang/rust/pull/48978
5250 [49101]: https://github.com/rust-lang/rust/pull/49101
5251 [49109]: https://github.com/rust-lang/rust/pull/49109
5252 [49162]: https://github.com/rust-lang/rust/pull/49162
5253 [49255]: https://github.com/rust-lang/rust/pull/49255
5254 [49299]: https://github.com/rust-lang/rust/pull/49299
5255 [49305]: https://github.com/rust-lang/rust/pull/49305
5256 [49394]: https://github.com/rust-lang/rust/pull/49394
5257 [49458]: https://github.com/rust-lang/rust/pull/49458
5258 [`*const T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add
5259 [`*const T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping
5260 [`*const T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to
5261 [`*const T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned
5262 [`*const T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile
5263 [`*const T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read
5264 [`*const T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub
5265 [`*const T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add
5266 [`*const T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub
5267 [`*mut T::add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.add-1
5268 [`*mut T::copy_to_nonoverlapping`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to_nonoverlapping-1
5269 [`*mut T::copy_to`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.copy_to-1
5270 [`*mut T::read_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_unaligned-1
5271 [`*mut T::read_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read_volatile-1
5272 [`*mut T::read`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.read-1
5273 [`*mut T::replace`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.replace
5274 [`*mut T::sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.sub-1
5275 [`*mut T::swap`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.swap
5276 [`*mut T::wrapping_add`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_add-1
5277 [`*mut T::wrapping_sub`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_sub-1
5278 [`*mut T::write_bytes`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_bytes
5279 [`*mut T::write_unaligned`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_unaligned
5280 [`*mut T::write_volatile`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write_volatile
5281 [`*mut T::write`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.write
5282 [`Box::leak`]: https://doc.rust-lang.org/std/boxed/struct.Box.html#method.leak
5283 [`FromUtf8Error::as_bytes`]: https://doc.rust-lang.org/std/string/struct.FromUtf8Error.html#method.as_bytes
5284 [`LocalKey::try_with`]: https://doc.rust-lang.org/std/thread/struct.LocalKey.html#method.try_with
5285 [`Option::cloned`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.cloned
5286 [`btree_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/btree_map/enum.Entry.html#method.and_modify
5287 [`fs::read_to_string`]: https://doc.rust-lang.org/std/fs/fn.read_to_string.html
5288 [`fs::read`]: https://doc.rust-lang.org/std/fs/fn.read.html
5289 [`fs::write`]: https://doc.rust-lang.org/std/fs/fn.write.html
5290 [`hash_map::Entry::and_modify`]: https://doc.rust-lang.org/std/collections/hash_map/enum.Entry.html#method.and_modify
5291 [`iter::FusedIterator`]: https://doc.rust-lang.org/std/iter/trait.FusedIterator.html
5292 [`ops::RangeInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeInclusive.html
5293 [`ops::RangeToInclusive`]: https://doc.rust-lang.org/std/ops/struct.RangeToInclusive.html
5294 [`process::id`]: https://doc.rust-lang.org/std/process/fn.id.html
5295 [`slice::rotate_left`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_left
5296 [`slice::rotate_right`]: https://doc.rust-lang.org/std/primitive.slice.html#method.rotate_right
5297 [`String::retain`]: https://doc.rust-lang.org/std/string/struct.String.html#method.retain
5298 [cargo/5041]: https://github.com/rust-lang/cargo/pull/5041
5299 [cargo/5083]: https://github.com/rust-lang/cargo/pull/5083
5302 Version 1.25.0 (2018-03-29)
5303 ==========================
5307 - [The `#[repr(align(x))]` attribute is now stable.][47006] [RFC 1358]
5308 - [You can now use nested groups of imports.][47948]
5309 e.g. `use std::{fs::File, io::Read, path::{Path, PathBuf}};`
5310 - [You can now have `|` at the start of a match arm.][47947] e.g.
5312 enum Foo { A, B, C }
5318 | Foo::B => println!("AB"),
5319 | Foo::C => println!("C"),
5326 - [Upgraded to LLVM 6.][47828]
5327 - [Added `-C lto=val` option.][47521]
5328 - [Added `i586-unknown-linux-musl` target][47282]
5332 - [Impl Send for `process::Command` on Unix.][47760]
5333 - [Impl PartialEq and Eq for `ParseCharError`.][47790]
5334 - [`UnsafeCell::into_inner` is now safe.][47204]
5335 - [Implement libstd for CloudABI.][47268]
5336 - [`Float::{from_bits, to_bits}` is now available in libcore.][46931]
5337 - [Implement `AsRef<Path>` for Component][46985]
5338 - [Implemented `Write` for `Cursor<&mut Vec<u8>>`][46830]
5339 - [Moved `Duration` to libcore.][46666]
5343 - [`Location::column`]
5346 The following functions can now be used in a constant expression.
5347 eg. `static MINUTE: Duration = Duration::from_secs(60);`
5348 - [`Duration::new`][47300]
5349 - [`Duration::from_secs`][47300]
5350 - [`Duration::from_millis`][47300]
5354 - [`cargo new` no longer removes `rust` or `rs` prefixs/suffixs.][cargo/5013]
5355 - [`cargo new` now defaults to creating a binary crate, instead of a
5356 library crate.][cargo/5029]
5360 - [Rust by example is now shipped with new releases][46196]
5364 - [Deprecated `net::lookup_host`.][47510]
5365 - [`rustdoc` has switched to pulldown as the default markdown renderer.][47398]
5366 - The borrow checker was sometimes incorrectly permitting overlapping borrows
5367 around indexing operations (see [#47349][47349]). This has been fixed (which also
5368 enabled some correct code that used to cause errors (e.g. [#33903][33903] and [#46095][46095]).
5369 - [Removed deprecated unstable attribute `#[simd]`.][47251]
5371 [33903]: https://github.com/rust-lang/rust/pull/33903
5372 [47947]: https://github.com/rust-lang/rust/pull/47947
5373 [47948]: https://github.com/rust-lang/rust/pull/47948
5374 [47760]: https://github.com/rust-lang/rust/pull/47760
5375 [47790]: https://github.com/rust-lang/rust/pull/47790
5376 [47828]: https://github.com/rust-lang/rust/pull/47828
5377 [47398]: https://github.com/rust-lang/rust/pull/47398
5378 [47510]: https://github.com/rust-lang/rust/pull/47510
5379 [47521]: https://github.com/rust-lang/rust/pull/47521
5380 [47204]: https://github.com/rust-lang/rust/pull/47204
5381 [47251]: https://github.com/rust-lang/rust/pull/47251
5382 [47268]: https://github.com/rust-lang/rust/pull/47268
5383 [47282]: https://github.com/rust-lang/rust/pull/47282
5384 [47300]: https://github.com/rust-lang/rust/pull/47300
5385 [47349]: https://github.com/rust-lang/rust/pull/47349
5386 [46931]: https://github.com/rust-lang/rust/pull/46931
5387 [46985]: https://github.com/rust-lang/rust/pull/46985
5388 [47006]: https://github.com/rust-lang/rust/pull/47006
5389 [46830]: https://github.com/rust-lang/rust/pull/46830
5390 [46095]: https://github.com/rust-lang/rust/pull/46095
5391 [46666]: https://github.com/rust-lang/rust/pull/46666
5392 [46196]: https://github.com/rust-lang/rust/pull/46196
5393 [cargo/5013]: https://github.com/rust-lang/cargo/pull/5013
5394 [cargo/5029]: https://github.com/rust-lang/cargo/pull/5029
5395 [RFC 1358]: https://github.com/rust-lang/rfcs/pull/1358
5396 [`Location::column`]: https://doc.rust-lang.org/std/panic/struct.Location.html#method.column
5397 [`ptr::NonNull`]: https://doc.rust-lang.org/std/ptr/struct.NonNull.html
5400 Version 1.24.1 (2018-03-01)
5401 ==========================
5403 - [Do not abort when unwinding through FFI][48251]
5404 - [Emit UTF-16 files for linker arguments on Windows][48318]
5405 - [Make the error index generator work again][48308]
5406 - [Cargo will warn on Windows 7 if an update is needed][cargo/5069].
5408 [48251]: https://github.com/rust-lang/rust/issues/48251
5409 [48308]: https://github.com/rust-lang/rust/issues/48308
5410 [48318]: https://github.com/rust-lang/rust/issues/48318
5411 [cargo/5069]: https://github.com/rust-lang/cargo/pull/5069
5414 Version 1.24.0 (2018-02-15)
5415 ==========================
5419 - [External `sysv64` ffi is now available.][46528]
5420 eg. `extern "sysv64" fn foo () {}`
5424 - [rustc now uses 16 codegen units by default for release builds.][46910]
5425 For the fastest builds, utilize `codegen-units=1`.
5426 - [Added `armv4t-unknown-linux-gnueabi` target.][47018]
5427 - [Add `aarch64-unknown-openbsd` support][46760]
5431 - [`str::find::<char>` now uses memchr.][46735] This should lead to a 10x
5432 improvement in performance in the majority of cases.
5433 - [`OsStr`'s `Debug` implementation is now lossless and consistent
5434 with Windows.][46798]
5435 - [`time::{SystemTime, Instant}` now implement `Hash`.][46828]
5436 - [impl `From<bool>` for `AtomicBool`][46293]
5437 - [impl `From<{CString, &CStr}>` for `{Arc<CStr>, Rc<CStr>}`][45990]
5438 - [impl `From<{OsString, &OsStr}>` for `{Arc<OsStr>, Rc<OsStr>}`][45990]
5439 - [impl `From<{PathBuf, &Path}>` for `{Arc<Path>, Rc<Path>}`][45990]
5440 - [float::from_bits now just uses transmute.][46012] This provides
5441 some optimisations from LLVM.
5442 - [Copied `AsciiExt` methods onto `char`][46077]
5443 - [Remove `T: Sized` requirement on `ptr::is_null()`][46094]
5444 - [impl `From<RecvError>` for `{TryRecvError, RecvTimeoutError}`][45506]
5445 - [Optimised `f32::{min, max}` to generate more efficient x86 assembly][47080]
5446 - [`[u8]::contains` now uses memchr which provides a 3x speed improvement][46713]
5450 - [`RefCell::replace`]
5452 - [`atomic::spin_loop_hint`]
5454 The following functions can now be used in a constant expression.
5455 eg. `let buffer: [u8; size_of::<usize>()];`, `static COUNTER: AtomicUsize = AtomicUsize::new(1);`
5457 - [`AtomicBool::new`][46287]
5458 - [`AtomicUsize::new`][46287]
5459 - [`AtomicIsize::new`][46287]
5460 - [`AtomicPtr::new`][46287]
5461 - [`Cell::new`][46287]
5462 - [`{integer}::min_value`][46287]
5463 - [`{integer}::max_value`][46287]
5464 - [`mem::size_of`][46287]
5465 - [`mem::align_of`][46287]
5466 - [`ptr::null`][46287]
5467 - [`ptr::null_mut`][46287]
5468 - [`RefCell::new`][46287]
5469 - [`UnsafeCell::new`][46287]
5473 - [Added a `workspace.default-members` config that
5474 overrides implied `--all` in virtual workspaces.][cargo/4743]
5475 - [Enable incremental by default on development builds.][cargo/4817] Also added
5476 configuration keys to `Cargo.toml` and `.cargo/config` to disable on a
5477 per-project or global basis respectively.
5484 - [Floating point types `Debug` impl now always prints a decimal point.][46831]
5485 - [`Ipv6Addr` now rejects superfluous `::`'s in IPv6 addresses][46671] This is
5486 in accordance with IETF RFC 4291 §2.2.
5487 - [Unwinding will no longer go past FFI boundaries, and will instead abort.][46833]
5488 - [`Formatter::flags` method is now deprecated.][46284] The `sign_plus`,
5489 `sign_minus`, `alternate`, and `sign_aware_zero_pad` should be used instead.
5490 - [Leading zeros in tuple struct members is now an error][47084]
5491 - [`column!()` macro is one-based instead of zero-based][46977]
5492 - [`fmt::Arguments` can no longer be shared across threads][45198]
5493 - [Access to `#[repr(packed)]` struct fields is now unsafe][44884]
5494 - [Cargo sets a different working directory for the compiler][cargo/4788]
5496 [44884]: https://github.com/rust-lang/rust/pull/44884
5497 [45198]: https://github.com/rust-lang/rust/pull/45198
5498 [45506]: https://github.com/rust-lang/rust/pull/45506
5499 [45990]: https://github.com/rust-lang/rust/pull/45990
5500 [46012]: https://github.com/rust-lang/rust/pull/46012
5501 [46077]: https://github.com/rust-lang/rust/pull/46077
5502 [46094]: https://github.com/rust-lang/rust/pull/46094
5503 [46284]: https://github.com/rust-lang/rust/pull/46284
5504 [46287]: https://github.com/rust-lang/rust/pull/46287
5505 [46293]: https://github.com/rust-lang/rust/pull/46293
5506 [46528]: https://github.com/rust-lang/rust/pull/46528
5507 [46671]: https://github.com/rust-lang/rust/pull/46671
5508 [46713]: https://github.com/rust-lang/rust/pull/46713
5509 [46735]: https://github.com/rust-lang/rust/pull/46735
5510 [46760]: https://github.com/rust-lang/rust/pull/46760
5511 [46798]: https://github.com/rust-lang/rust/pull/46798
5512 [46828]: https://github.com/rust-lang/rust/pull/46828
5513 [46831]: https://github.com/rust-lang/rust/pull/46831
5514 [46833]: https://github.com/rust-lang/rust/pull/46833
5515 [46910]: https://github.com/rust-lang/rust/pull/46910
5516 [46977]: https://github.com/rust-lang/rust/pull/46977
5517 [47018]: https://github.com/rust-lang/rust/pull/47018
5518 [47080]: https://github.com/rust-lang/rust/pull/47080
5519 [47084]: https://github.com/rust-lang/rust/pull/47084
5520 [cargo/4743]: https://github.com/rust-lang/cargo/pull/4743
5521 [cargo/4788]: https://github.com/rust-lang/cargo/pull/4788
5522 [cargo/4817]: https://github.com/rust-lang/cargo/pull/4817
5523 [`RefCell::replace`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.replace
5524 [`RefCell::swap`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.swap
5525 [`atomic::spin_loop_hint`]: https://doc.rust-lang.org/std/sync/atomic/fn.spin_loop_hint.html
5528 Version 1.23.0 (2018-01-04)
5529 ==========================
5533 - [Arbitrary `auto` traits are now permitted in trait objects.][45772]
5534 - [rustc now uses subtyping on the left hand side of binary operations.][45435]
5535 Which should fix some confusing errors in some operations.
5539 - [Enabled `TrapUnreachable` in LLVM which should mitigate the impact of
5540 undefined behavior.][45920]
5541 - [rustc now suggests renaming import if names clash.][45660]
5542 - [Display errors/warnings correctly when there are zero-width or
5543 wide characters.][45711]
5544 - [rustc now avoids unnecessary copies of arguments that are
5545 simple bindings][45380] This should improve memory usage on average by 5-10%.
5546 - [Updated musl used to build musl rustc to 1.1.17][45393]
5550 - [Allow a trailing comma in `assert_eq/ne` macro][45887]
5551 - [Implement Hash for raw pointers to unsized types][45483]
5552 - [impl `From<*mut T>` for `AtomicPtr<T>`][45610]
5553 - [impl `From<usize/isize>` for `AtomicUsize/AtomicIsize`.][45610]
5554 - [Removed the `T: Sync` requirement for `RwLock<T>: Send`][45267]
5555 - [Removed `T: Sized` requirement for `{<*const T>, <*mut T>}::as_ref`
5556 and `<*mut T>::as_mut`][44932]
5557 - [Optimized `Thread::{park, unpark}` implementation][45524]
5558 - [Improved `SliceExt::binary_search` performance.][45333]
5559 - [impl `FromIterator<()>` for `()`][45379]
5560 - [Copied `AsciiExt` trait methods to primitive types.][44042] Use of `AsciiExt`
5568 - [Cargo now supports uninstallation of multiple packages][cargo/4561]
5569 eg. `cargo uninstall foo bar` uninstalls `foo` and `bar`.
5570 - [Added unit test checking to `cargo check`][cargo/4592]
5571 - [Cargo now lets you install a specific version
5572 using `cargo install --version`][cargo/4637]
5576 - [Releases now ship with the Cargo book documentation.][45692]
5577 - [rustdoc now prints rendering warnings on every run.][45324]
5581 - [Changes have been made to type equality to make it more correct,
5582 in rare cases this could break some code.][45853] [Tracking issue for
5583 further information][45852]
5584 - [`char::escape_debug` now uses Unicode 10 over 9.][45571]
5585 - [Upgraded Android SDK to 27, and NDK to r15c.][45580] This drops support for
5586 Android 9, the minimum supported version is Android 14.
5587 - [Bumped the minimum LLVM to 3.9][45326]
5589 [44042]: https://github.com/rust-lang/rust/pull/44042
5590 [44932]: https://github.com/rust-lang/rust/pull/44932
5591 [45267]: https://github.com/rust-lang/rust/pull/45267
5592 [45324]: https://github.com/rust-lang/rust/pull/45324
5593 [45326]: https://github.com/rust-lang/rust/pull/45326
5594 [45333]: https://github.com/rust-lang/rust/pull/45333
5595 [45379]: https://github.com/rust-lang/rust/pull/45379
5596 [45380]: https://github.com/rust-lang/rust/pull/45380
5597 [45393]: https://github.com/rust-lang/rust/pull/45393
5598 [45435]: https://github.com/rust-lang/rust/pull/45435
5599 [45483]: https://github.com/rust-lang/rust/pull/45483
5600 [45524]: https://github.com/rust-lang/rust/pull/45524
5601 [45571]: https://github.com/rust-lang/rust/pull/45571
5602 [45580]: https://github.com/rust-lang/rust/pull/45580
5603 [45610]: https://github.com/rust-lang/rust/pull/45610
5604 [45660]: https://github.com/rust-lang/rust/pull/45660
5605 [45692]: https://github.com/rust-lang/rust/pull/45692
5606 [45711]: https://github.com/rust-lang/rust/pull/45711
5607 [45772]: https://github.com/rust-lang/rust/pull/45772
5608 [45852]: https://github.com/rust-lang/rust/issues/45852
5609 [45853]: https://github.com/rust-lang/rust/pull/45853
5610 [45887]: https://github.com/rust-lang/rust/pull/45887
5611 [45920]: https://github.com/rust-lang/rust/pull/45920
5612 [cargo/4561]: https://github.com/rust-lang/cargo/pull/4561
5613 [cargo/4592]: https://github.com/rust-lang/cargo/pull/4592
5614 [cargo/4637]: https://github.com/rust-lang/cargo/pull/4637
5617 Version 1.22.1 (2017-11-22)
5618 ==========================
5620 - [Update Cargo to fix an issue with macOS 10.13 "High Sierra"][46183]
5622 [46183]: https://github.com/rust-lang/rust/pull/46183
5624 Version 1.22.0 (2017-11-22)
5625 ==========================
5629 - [`non_snake_case` lint now allows extern no-mangle functions][44966]
5630 - [Now accepts underscores in unicode escapes][43716]
5631 - [`T op= &T` now works for numeric types.][44287] eg. `let mut x = 2; x += &8;`
5632 - [types that impl `Drop` are now allowed in `const` and `static` types][44456]
5636 - [rustc now defaults to having 16 codegen units at debug on supported platforms.][45064]
5637 - [rustc will no longer inline in codegen units when compiling for debug][45075]
5638 This should decrease compile times for debug builds.
5639 - [strict memory alignment now enabled on ARMv6][45094]
5640 - [Remove support for the PNaCl target `le32-unknown-nacl`][45041]
5644 - [Allow atomic operations up to 32 bits
5645 on `armv5te_unknown_linux_gnueabi`][44978]
5646 - [`Box<Error>` now impls `From<Cow<str>>`][44466]
5647 - [`std::mem::Discriminant` is now guaranteed to be `Send + Sync`][45095]
5648 - [`fs::copy` now returns the length of the main stream on NTFS.][44895]
5649 - [Properly detect overflow in `Instant += Duration`.][44220]
5650 - [impl `Hasher` for `{&mut Hasher, Box<Hasher>}`][44015]
5651 - [impl `fmt::Debug` for `SplitWhitespace`.][44303]
5652 - [`Option<T>` now impls `Try`][42526] This allows for using `?` with `Option` types.
5659 - [Cargo will now build multi file examples in subdirectories of the `examples`
5660 folder that have a `main.rs` file.][cargo/4496]
5661 - [Changed `[root]` to `[package]` in `Cargo.lock`][cargo/4571] Packages with
5662 the old format will continue to work and can be updated with `cargo update`.
5663 - [Now supports vendoring git repositories][cargo/3992]
5667 - [`libbacktrace` is now available on Apple platforms.][44251]
5668 - [Stabilised the `compile_fail` attribute for code fences in doc-comments.][43949]
5669 This now lets you specify that a given code example will fail to compile.
5673 - [The minimum Android version that rustc can build for has been bumped
5674 to `4.0` from `2.3`][45656]
5675 - [Allowing `T op= &T` for numeric types has broken some type
5676 inference cases][45480]
5679 [42526]: https://github.com/rust-lang/rust/pull/42526
5680 [43716]: https://github.com/rust-lang/rust/pull/43716
5681 [43949]: https://github.com/rust-lang/rust/pull/43949
5682 [44015]: https://github.com/rust-lang/rust/pull/44015
5683 [44220]: https://github.com/rust-lang/rust/pull/44220
5684 [44251]: https://github.com/rust-lang/rust/pull/44251
5685 [44287]: https://github.com/rust-lang/rust/pull/44287
5686 [44303]: https://github.com/rust-lang/rust/pull/44303
5687 [44456]: https://github.com/rust-lang/rust/pull/44456
5688 [44466]: https://github.com/rust-lang/rust/pull/44466
5689 [44895]: https://github.com/rust-lang/rust/pull/44895
5690 [44966]: https://github.com/rust-lang/rust/pull/44966
5691 [44978]: https://github.com/rust-lang/rust/pull/44978
5692 [45041]: https://github.com/rust-lang/rust/pull/45041
5693 [45064]: https://github.com/rust-lang/rust/pull/45064
5694 [45075]: https://github.com/rust-lang/rust/pull/45075
5695 [45094]: https://github.com/rust-lang/rust/pull/45094
5696 [45095]: https://github.com/rust-lang/rust/pull/45095
5697 [45480]: https://github.com/rust-lang/rust/issues/45480
5698 [45656]: https://github.com/rust-lang/rust/pull/45656
5699 [cargo/3992]: https://github.com/rust-lang/cargo/pull/3992
5700 [cargo/4496]: https://github.com/rust-lang/cargo/pull/4496
5701 [cargo/4571]: https://github.com/rust-lang/cargo/pull/4571
5708 Version 1.21.0 (2017-10-12)
5709 ==========================
5713 - [You can now use static references for literals.][43838]
5717 let x: &'static u32 = &0;
5720 - [Relaxed path syntax. Optional `::` before `<` is now allowed in all contexts.][43540]
5723 my_macro!(Vec<i32>::new); // Always worked
5724 my_macro!(Vec::<i32>::new); // Now works
5729 - [Upgraded jemalloc to 4.5.0][43911]
5730 - [Enabled unwinding panics on Redox][43917]
5731 - [Now runs LLVM in parallel during translation phase.][43506]
5732 This should reduce peak memory usage.
5736 - [Generate builtin impls for `Clone` for all arrays and tuples that
5737 are `T: Clone`][43690]
5738 - [`Stdin`, `Stdout`, and `Stderr` now implement `AsRawFd`.][43459]
5739 - [`Rc` and `Arc` now implement `From<&[T]> where T: Clone`, `From<str>`,
5740 `From<String>`, `From<Box<T>> where T: ?Sized`, and `From<Vec<T>>`.][42565]
5745 [`std::mem::discriminant`]
5749 - [You can now call `cargo install` with multiple package names][cargo/4216]
5750 - [Cargo commands inside a virtual workspace will now implicitly
5751 pass `--all`][cargo/4335]
5752 - [Added a `[patch]` section to `Cargo.toml` to handle
5753 prepublication dependencies][cargo/4123] [RFC 1969]
5754 - [`include` & `exclude` fields in `Cargo.toml` now accept gitignore
5755 like patterns][cargo/4270]
5756 - [Added the `--all-targets` option][cargo/4400]
5757 - [Using required dependencies as a feature is now deprecated and emits
5758 a warning][cargo/4364]
5763 - [Cargo docs are moving][43916]
5764 to [doc.rust-lang.org/cargo](https://doc.rust-lang.org/cargo)
5765 - [The rustdoc book is now available][43863]
5766 at [doc.rust-lang.org/rustdoc](https://doc.rust-lang.org/rustdoc)
5767 - [Added a preview of RLS has been made available through rustup][44204]
5768 Install with `rustup component add rls-preview`
5769 - [`std::os` documentation for Unix, Linux, and Windows now appears on doc.rust-lang.org][43348]
5770 Previously only showed `std::os::unix`.
5774 - [Changes in method matching against higher-ranked types][43880] This may cause
5775 breakage in subtyping corner cases. [A more in-depth explanation is available.][info/43880]
5776 - [rustc's JSON error output's byte position start at top of file.][42973]
5777 Was previously relative to the rustc's internal `CodeMap` struct which
5778 required the unstable library `libsyntax` to correctly use.
5779 - [`unused_results` lint no longer ignores booleans][43728]
5781 [42565]: https://github.com/rust-lang/rust/pull/42565
5782 [42973]: https://github.com/rust-lang/rust/pull/42973
5783 [43348]: https://github.com/rust-lang/rust/pull/43348
5784 [43459]: https://github.com/rust-lang/rust/pull/43459
5785 [43506]: https://github.com/rust-lang/rust/pull/43506
5786 [43540]: https://github.com/rust-lang/rust/pull/43540
5787 [43690]: https://github.com/rust-lang/rust/pull/43690
5788 [43728]: https://github.com/rust-lang/rust/pull/43728
5789 [43838]: https://github.com/rust-lang/rust/pull/43838
5790 [43863]: https://github.com/rust-lang/rust/pull/43863
5791 [43880]: https://github.com/rust-lang/rust/pull/43880
5792 [43911]: https://github.com/rust-lang/rust/pull/43911
5793 [43916]: https://github.com/rust-lang/rust/pull/43916
5794 [43917]: https://github.com/rust-lang/rust/pull/43917
5795 [44204]: https://github.com/rust-lang/rust/pull/44204
5796 [cargo/4123]: https://github.com/rust-lang/cargo/pull/4123
5797 [cargo/4216]: https://github.com/rust-lang/cargo/pull/4216
5798 [cargo/4270]: https://github.com/rust-lang/cargo/pull/4270
5799 [cargo/4335]: https://github.com/rust-lang/cargo/pull/4335
5800 [cargo/4364]: https://github.com/rust-lang/cargo/pull/4364
5801 [cargo/4400]: https://github.com/rust-lang/cargo/pull/4400
5802 [RFC 1969]: https://github.com/rust-lang/rfcs/pull/1969
5803 [info/43880]: https://github.com/rust-lang/rust/issues/44224#issuecomment-330058902
5804 [`std::mem::discriminant`]: https://doc.rust-lang.org/std/mem/fn.discriminant.html
5806 Version 1.20.0 (2017-08-31)
5807 ===========================
5811 - [Associated constants are now stabilised.][42809]
5812 - [A lot of macro bugs are now fixed.][42913]
5817 - [Struct fields are now properly coerced to the expected field type.][42807]
5818 - [Enabled wasm LLVM backend][42571] WASM can now be built with the
5819 `wasm32-experimental-emscripten` target.
5820 - [Changed some of the error messages to be more helpful.][42033]
5821 - [Add support for RELRO(RELocation Read-Only) for platforms that support
5823 - [rustc now reports the total number of errors on compilation failure][43015]
5824 previously this was only the number of errors in the pass that failed.
5825 - [Expansion in rustc has been sped up 29x.][42533]
5826 - [added `msp430-none-elf` target.][43099]
5827 - [rustc will now suggest one-argument enum variant to fix type mismatch when
5829 - [Fixes backtraces on Redox][43228]
5830 - [rustc now identifies different versions of same crate when absolute paths of
5831 different types match in an error message.][42826]
5837 - [Relaxed Debug constraints on `{HashMap,BTreeMap}::{Keys,Values}`.][42854]
5838 - [Impl `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Debug`, `Hash` for unsized
5840 - [Impl `fmt::{Display, Debug}` for `Ref`, `RefMut`, `MutexGuard`,
5841 `RwLockReadGuard`, `RwLockWriteGuard`][42822]
5842 - [Impl `Clone` for `DefaultHasher`.][42799]
5843 - [Impl `Sync` for `SyncSender`.][42397]
5844 - [Impl `FromStr` for `char`][42271]
5845 - [Fixed how `{f32, f64}::{is_sign_negative, is_sign_positive}` handles
5847 - [allow messages in the `unimplemented!()` macro.][42155]
5848 ie. `unimplemented!("Waiting for 1.21 to be stable")`
5849 - [`pub(restricted)` is now supported in the `thread_local!` macro.][43185]
5850 - [Upgrade to Unicode 10.0.0][42999]
5851 - [Reimplemented `{f32, f64}::{min, max}` in Rust instead of using CMath.][42430]
5852 - [Skip the main thread's manual stack guard on Linux][43072]
5853 - [Iterator::nth for `ops::{Range, RangeFrom}` is now done in *O*(1) time][43077]
5854 - [`#[repr(align(N))]` attribute max number is now 2^31 - 1.][43097] This was
5856 - [`{OsStr, Path}::Display` now avoids allocations where possible][42613]
5861 - [`CStr::into_c_string`]
5862 - [`CString::as_c_str`]
5863 - [`CString::into_boxed_c_str`]
5864 - [`Chain::get_mut`]
5865 - [`Chain::get_ref`]
5866 - [`Chain::into_inner`]
5867 - [`Option::get_or_insert_with`]
5868 - [`Option::get_or_insert`]
5869 - [`OsStr::into_os_string`]
5870 - [`OsString::into_boxed_os_str`]
5873 - [`Utf8Error::error_len`]
5874 - [`char::EscapeDebug`]
5875 - [`char::escape_debug`]
5876 - [`compile_error!`]
5877 - [`f32::from_bits`]
5879 - [`f64::from_bits`]
5881 - [`mem::ManuallyDrop`]
5882 - [`slice::sort_unstable_by_key`]
5883 - [`slice::sort_unstable_by`]
5884 - [`slice::sort_unstable`]
5885 - [`str::from_boxed_utf8_unchecked`]
5886 - [`str::as_bytes_mut`]
5887 - [`str::as_bytes_mut`]
5888 - [`str::from_utf8_mut`]
5889 - [`str::from_utf8_unchecked_mut`]
5891 - [`str::get_unchecked_mut`]
5892 - [`str::get_unchecked`]
5894 - [`str::into_boxed_bytes`]
5899 - [Cargo API token location moved from `~/.cargo/config` to
5900 `~/.cargo/credentials`.][cargo/3978]
5901 - [Cargo will now build `main.rs` binaries that are in sub-directories of
5902 `src/bin`.][cargo/4214] ie. Having `src/bin/server/main.rs` and
5903 `src/bin/client/main.rs` generates `target/debug/server` and `target/debug/client`
5904 - [You can now specify version of a binary when installed through
5905 `cargo install` using `--vers`.][cargo/4229]
5906 - [Added `--no-fail-fast` flag to cargo to run all benchmarks regardless of
5907 failure.][cargo/4248]
5908 - [Changed the convention around which file is the crate root.][cargo/4259]
5913 - [Functions with `'static` in their return types will now not be as usable as
5914 if they were using lifetime parameters instead.][42417]
5915 - [The reimplementation of `{f32, f64}::is_sign_{negative, positive}` now
5916 takes the sign of NaN into account where previously didn't.][42430]
5918 [42033]: https://github.com/rust-lang/rust/pull/42033
5919 [42155]: https://github.com/rust-lang/rust/pull/42155
5920 [42271]: https://github.com/rust-lang/rust/pull/42271
5921 [42397]: https://github.com/rust-lang/rust/pull/42397
5922 [42417]: https://github.com/rust-lang/rust/pull/42417
5923 [42430]: https://github.com/rust-lang/rust/pull/42430
5924 [42431]: https://github.com/rust-lang/rust/pull/42431
5925 [42533]: https://github.com/rust-lang/rust/pull/42533
5926 [42571]: https://github.com/rust-lang/rust/pull/42571
5927 [42613]: https://github.com/rust-lang/rust/pull/42613
5928 [42799]: https://github.com/rust-lang/rust/pull/42799
5929 [42807]: https://github.com/rust-lang/rust/pull/42807
5930 [42809]: https://github.com/rust-lang/rust/pull/42809
5931 [42822]: https://github.com/rust-lang/rust/pull/42822
5932 [42826]: https://github.com/rust-lang/rust/pull/42826
5933 [42854]: https://github.com/rust-lang/rust/pull/42854
5934 [42913]: https://github.com/rust-lang/rust/pull/42913
5935 [42999]: https://github.com/rust-lang/rust/pull/42999
5936 [43011]: https://github.com/rust-lang/rust/pull/43011
5937 [43015]: https://github.com/rust-lang/rust/pull/43015
5938 [43072]: https://github.com/rust-lang/rust/pull/43072
5939 [43077]: https://github.com/rust-lang/rust/pull/43077
5940 [43097]: https://github.com/rust-lang/rust/pull/43097
5941 [43099]: https://github.com/rust-lang/rust/pull/43099
5942 [43170]: https://github.com/rust-lang/rust/pull/43170
5943 [43178]: https://github.com/rust-lang/rust/pull/43178
5944 [43185]: https://github.com/rust-lang/rust/pull/43185
5945 [43228]: https://github.com/rust-lang/rust/pull/43228
5946 [cargo/3978]: https://github.com/rust-lang/cargo/pull/3978
5947 [cargo/4214]: https://github.com/rust-lang/cargo/pull/4214
5948 [cargo/4229]: https://github.com/rust-lang/cargo/pull/4229
5949 [cargo/4248]: https://github.com/rust-lang/cargo/pull/4248
5950 [cargo/4259]: https://github.com/rust-lang/cargo/pull/4259
5951 [`CStr::into_c_string`]: https://doc.rust-lang.org/std/ffi/struct.CStr.html#method.into_c_string
5952 [`CString::as_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.as_c_str
5953 [`CString::into_boxed_c_str`]: https://doc.rust-lang.org/std/ffi/struct.CString.html#method.into_boxed_c_str
5954 [`Chain::get_mut`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_mut
5955 [`Chain::get_ref`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.get_ref
5956 [`Chain::into_inner`]: https://doc.rust-lang.org/std/io/struct.Chain.html#method.into_inner
5957 [`Option::get_or_insert_with`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert_with
5958 [`Option::get_or_insert`]: https://doc.rust-lang.org/std/option/enum.Option.html#method.get_or_insert
5959 [`OsStr::into_os_string`]: https://doc.rust-lang.org/std/ffi/struct.OsStr.html#method.into_os_string
5960 [`OsString::into_boxed_os_str`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.into_boxed_os_str
5961 [`Take::get_mut`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_mut
5962 [`Take::get_ref`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.get_ref
5963 [`Utf8Error::error_len`]: https://doc.rust-lang.org/std/str/struct.Utf8Error.html#method.error_len
5964 [`char::EscapeDebug`]: https://doc.rust-lang.org/std/char/struct.EscapeDebug.html
5965 [`char::escape_debug`]: https://doc.rust-lang.org/std/primitive.char.html#method.escape_debug
5966 [`compile_error!`]: https://doc.rust-lang.org/std/macro.compile_error.html
5967 [`f32::from_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.from_bits
5968 [`f32::to_bits`]: https://doc.rust-lang.org/std/primitive.f32.html#method.to_bits
5969 [`f64::from_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.from_bits
5970 [`f64::to_bits`]: https://doc.rust-lang.org/std/primitive.f64.html#method.to_bits
5971 [`mem::ManuallyDrop`]: https://doc.rust-lang.org/std/mem/union.ManuallyDrop.html
5972 [`slice::sort_unstable_by_key`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by_key
5973 [`slice::sort_unstable_by`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable_by
5974 [`slice::sort_unstable`]: https://doc.rust-lang.org/std/primitive.slice.html#method.sort_unstable
5975 [`str::from_boxed_utf8_unchecked`]: https://doc.rust-lang.org/std/str/fn.from_boxed_utf8_unchecked.html
5976 [`str::as_bytes_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.as_bytes_mut
5977 [`str::from_utf8_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_mut.html
5978 [`str::from_utf8_unchecked_mut`]: https://doc.rust-lang.org/std/str/fn.from_utf8_unchecked_mut.html
5979 [`str::get_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_mut
5980 [`str::get_unchecked_mut`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked_mut
5981 [`str::get_unchecked`]: https://doc.rust-lang.org/std/primitive.str.html#method.get_unchecked
5982 [`str::get`]: https://doc.rust-lang.org/std/primitive.str.html#method.get
5983 [`str::into_boxed_bytes`]: https://doc.rust-lang.org/std/primitive.str.html#method.into_boxed_bytes
5986 Version 1.19.0 (2017-07-20)
5987 ===========================
5992 - [Numeric fields can now be used for creating tuple structs.][41145] [RFC 1506]
5993 For example `struct Point(u32, u32); let x = Point { 0: 7, 1: 0 };`.
5994 - [Macro recursion limit increased to 1024 from 64.][41676]
5995 - [Added lint for detecting unused macros.][41907]
5996 - [`loop` can now return a value with `break`.][42016] [RFC 1624]
5997 For example: `let x = loop { break 7; };`
5998 - [C compatible `union`s are now available.][42068] [RFC 1444] They can only
5999 contain `Copy` types and cannot have a `Drop` implementation.
6000 Example: `union Foo { bar: u8, baz: usize }`
6001 - [Non capturing closures can now be coerced into `fn`s,][42162] [RFC 1558]
6002 Example: `let foo: fn(u8) -> u8 = |v: u8| { v };`
6007 - [Add support for bootstrapping the Rust compiler toolchain on Android.][41370]
6008 - [Change `arm-linux-androideabi` to correspond to the `armeabi`
6009 official ABI.][41656] If you wish to continue targeting the `armeabi-v7a` ABI
6010 you should use `--target armv7-linux-androideabi`.
6011 - [Fixed ICE when removing a source file between compilation sessions.][41873]
6012 - [Minor optimisation of string operations.][42037]
6013 - [Compiler error message is now `aborting due to previous error(s)` instead of
6014 `aborting due to N previous errors`][42150] This was previously inaccurate and
6015 would only count certain kinds of errors.
6016 - [The compiler now supports Visual Studio 2017][42225]
6017 - [The compiler is now built against LLVM 4.0.1 by default][42948]
6018 - [Added a lot][42264] of [new error codes][42302]
6019 - [Added `target-feature=+crt-static` option][37406] [RFC 1721] Which allows
6020 libraries with C Run-time Libraries(CRT) to be statically linked.
6021 - [Fixed various ARM codegen bugs][42740]
6026 - [`String` now implements `FromIterator<Cow<'a, str>>` and
6027 `Extend<Cow<'a, str>>`][41449]
6028 - [`Vec` now implements `From<&mut [T]>`][41530]
6029 - [`Box<[u8]>` now implements `From<Box<str>>`][41258]
6030 - [`SplitWhitespace` now implements `Clone`][41659]
6031 - [`[u8]::reverse` is now 5x faster and `[u16]::reverse` is now
6033 - [`eprint!` and `eprintln!` macros added to prelude.][41192] Same as the `print!`
6034 macros, but for printing to stderr.
6039 - [`OsString::shrink_to_fit`]
6042 - [`thread::ThreadId`]
6047 - [Build scripts can now add environment variables to the environment
6048 the crate is being compiled in.
6049 Example: `println!("cargo:rustc-env=FOO=bar");`][cargo/3929]
6050 - [Subcommands now replace the current process rather than spawning a new
6051 child process][cargo/3970]
6052 - [Workspace members can now accept glob file patterns][cargo/3979]
6053 - [Added `--all` flag to the `cargo bench` subcommand to run benchmarks of all
6054 the members in a given workspace.][cargo/3988]
6055 - [Updated `libssh2-sys` to 0.2.6][cargo/4008]
6056 - [Target directory path is now in the cargo metadata][cargo/4022]
6057 - [Cargo no longer checks out a local working directory for the
6058 crates.io index][cargo/4026] This should provide smaller file size for the
6059 registry, and improve cloning times, especially on Windows machines.
6060 - [Added an `--exclude` option for excluding certain packages when using the
6061 `--all` option][cargo/4031]
6062 - [Cargo will now automatically retry when receiving a 5xx error
6063 from crates.io][cargo/4032]
6064 - [The `--features` option now accepts multiple comma or space
6065 delimited values.][cargo/4084]
6066 - [Added support for custom target specific runners][cargo/3954]
6071 - [Added `rust-windbg.cmd`][39983] for loading rust `.natvis` files in the
6073 - [Rust will now release XZ compressed packages][rust-installer/57]
6074 - [rustup will now prefer to download rust packages with
6075 XZ compression][rustup/1100] over GZip packages.
6076 - [Added the ability to escape `#` in rust documentation][41785] By adding
6077 additional `#`'s ie. `##` is now `#`
6082 - [`MutexGuard<T>` may only be `Sync` if `T` is `Sync`.][41624]
6083 - [`-Z` flags are now no longer allowed to be used on the stable
6084 compiler.][41751] This has been a warning for a year previous to this.
6085 - [As a result of the `-Z` flag change, the `cargo-check` plugin no
6086 longer works][42844]. Users should migrate to the built-in `check`
6087 command, which has been available since 1.16.
6088 - [Ending a float literal with `._` is now a hard error.
6089 Example: `42._` .][41946]
6090 - [Any use of a private `extern crate` outside of its module is now a
6091 hard error.][36886] This was previously a warning.
6092 - [`use ::self::foo;` is now a hard error.][36888] `self` paths are always
6093 relative while the `::` prefix makes a path absolute, but was ignored and the
6094 path was relative regardless.
6095 - [Floating point constants in match patterns is now a hard error][36890]
6096 This was previously a warning.
6097 - [Struct or enum constants that don't derive `PartialEq` & `Eq` used
6098 match patterns is now a hard error][36891] This was previously a warning.
6099 - [Lifetimes named `'_` are no longer allowed.][36892] This was previously
6101 - [From the pound escape, lines consisting of multiple `#`s are
6103 - [It is an error to re-export private enum variants][42460]. This is
6104 known to break a number of crates that depend on an older version of
6106 - [On Windows, if `VCINSTALLDIR` is set incorrectly, `rustc` will try
6107 to use it to find the linker, and the build will fail where it did
6108 not previously][42607]
6110 [36886]: https://github.com/rust-lang/rust/issues/36886
6111 [36888]: https://github.com/rust-lang/rust/issues/36888
6112 [36890]: https://github.com/rust-lang/rust/issues/36890
6113 [36891]: https://github.com/rust-lang/rust/issues/36891
6114 [36892]: https://github.com/rust-lang/rust/issues/36892
6115 [37406]: https://github.com/rust-lang/rust/issues/37406
6116 [39983]: https://github.com/rust-lang/rust/pull/39983
6117 [41145]: https://github.com/rust-lang/rust/pull/41145
6118 [41192]: https://github.com/rust-lang/rust/pull/41192
6119 [41258]: https://github.com/rust-lang/rust/pull/41258
6120 [41370]: https://github.com/rust-lang/rust/pull/41370
6121 [41449]: https://github.com/rust-lang/rust/pull/41449
6122 [41530]: https://github.com/rust-lang/rust/pull/41530
6123 [41624]: https://github.com/rust-lang/rust/pull/41624
6124 [41656]: https://github.com/rust-lang/rust/pull/41656
6125 [41659]: https://github.com/rust-lang/rust/pull/41659
6126 [41676]: https://github.com/rust-lang/rust/pull/41676
6127 [41751]: https://github.com/rust-lang/rust/pull/41751
6128 [41764]: https://github.com/rust-lang/rust/pull/41764
6129 [41785]: https://github.com/rust-lang/rust/pull/41785
6130 [41873]: https://github.com/rust-lang/rust/pull/41873
6131 [41907]: https://github.com/rust-lang/rust/pull/41907
6132 [41946]: https://github.com/rust-lang/rust/pull/41946
6133 [42016]: https://github.com/rust-lang/rust/pull/42016
6134 [42037]: https://github.com/rust-lang/rust/pull/42037
6135 [42068]: https://github.com/rust-lang/rust/pull/42068
6136 [42150]: https://github.com/rust-lang/rust/pull/42150
6137 [42162]: https://github.com/rust-lang/rust/pull/42162
6138 [42225]: https://github.com/rust-lang/rust/pull/42225
6139 [42264]: https://github.com/rust-lang/rust/pull/42264
6140 [42302]: https://github.com/rust-lang/rust/pull/42302
6141 [42460]: https://github.com/rust-lang/rust/issues/42460
6142 [42607]: https://github.com/rust-lang/rust/issues/42607
6143 [42740]: https://github.com/rust-lang/rust/pull/42740
6144 [42844]: https://github.com/rust-lang/rust/issues/42844
6145 [42948]: https://github.com/rust-lang/rust/pull/42948
6146 [RFC 1444]: https://github.com/rust-lang/rfcs/pull/1444
6147 [RFC 1506]: https://github.com/rust-lang/rfcs/pull/1506
6148 [RFC 1558]: https://github.com/rust-lang/rfcs/pull/1558
6149 [RFC 1624]: https://github.com/rust-lang/rfcs/pull/1624
6150 [RFC 1721]: https://github.com/rust-lang/rfcs/pull/1721
6151 [`Command::envs`]: https://doc.rust-lang.org/std/process/struct.Command.html#method.envs
6152 [`OsString::shrink_to_fit`]: https://doc.rust-lang.org/std/ffi/struct.OsString.html#method.shrink_to_fit
6153 [`cmp::Reverse`]: https://doc.rust-lang.org/std/cmp/struct.Reverse.html
6154 [`thread::ThreadId`]: https://doc.rust-lang.org/std/thread/struct.ThreadId.html
6155 [cargo/3929]: https://github.com/rust-lang/cargo/pull/3929
6156 [cargo/3954]: https://github.com/rust-lang/cargo/pull/3954
6157 [cargo/3970]: https://github.com/rust-lang/cargo/pull/3970
6158 [cargo/3979]: https://github.com/rust-lang/cargo/pull/3979
6159 [cargo/3988]: https://github.com/rust-lang/cargo/pull/3988
6160 [cargo/4008]: https://github.com/rust-lang/cargo/pull/4008
6161 [cargo/4022]: https://github.com/rust-lang/cargo/pull/4022
6162 [cargo/4026]: https://github.com/rust-lang/cargo/pull/4026
6163 [cargo/4031]: https://github.com/rust-lang/cargo/pull/4031
6164 [cargo/4032]: https://github.com/rust-lang/cargo/pull/4032
6165 [cargo/4084]: https://github.com/rust-lang/cargo/pull/4084
6166 [rust-installer/57]: https://github.com/rust-lang/rust-installer/pull/57
6167 [rustup/1100]: https://github.com/rust-lang-nursery/rustup.rs/pull/1100
6170 Version 1.18.0 (2017-06-08)
6171 ===========================
6176 - [Stabilize pub(restricted)][40556] `pub` can now accept a module path to
6177 make the item visible to just that module tree. Also accepts the keyword
6178 `crate` to make something public to the whole crate but not users of the
6179 library. Example: `pub(crate) mod utils;`. [RFC 1422].
6180 - [Stabilize `#![windows_subsystem]` attribute][40870] conservative exposure of the
6181 `/SUBSYSTEM` linker flag on Windows platforms. [RFC 1665].
6182 - [Refactor of trait object type parsing][40043] Now `ty` in macros can accept
6183 types like `Write + Send`, trailing `+` are now supported in trait objects,
6184 and better error reporting for trait objects starting with `?Sized`.
6185 - [0e+10 is now a valid floating point literal][40589]
6186 - [Now warns if you bind a lifetime parameter to 'static][40734]
6187 - [Tuples, Enum variant fields, and structs with no `repr` attribute or with
6188 `#[repr(Rust)]` are reordered to minimize padding and produce a smaller
6189 representation in some cases.][40377]
6194 - [rustc can now emit mir with `--emit mir`][39891]
6195 - [Improved LLVM IR for trivial functions][40367]
6196 - [Added explanation for E0090(Wrong number of lifetimes are supplied)][40723]
6197 - [rustc compilation is now 15%-20% faster][41469] Thanks to optimisation
6198 opportunities found through profiling
6199 - [Improved backtrace formatting when panicking][38165]
6204 - [Specialized `Vec::from_iter` being passed `vec::IntoIter`][40731] if the
6205 iterator hasn't been advanced the original `Vec` is reassembled with no actual
6206 iteration or reallocation.
6207 - [Simplified HashMap Bucket interface][40561] provides performance
6208 improvements for iterating and cloning.
6209 - [Specialize Vec::from_elem to use calloc][40409]
6210 - [Fixed Race condition in fs::create_dir_all][39799]
6211 - [No longer caching stdio on Windows][40516]
6212 - [Optimized insertion sort in slice][40807] insertion sort in some cases
6213 2.50%~ faster and in one case now 12.50% faster.
6214 - [Optimized `AtomicBool::fetch_nand`][41143]
6219 - [`Child::try_wait`]
6220 - [`HashMap::retain`]
6221 - [`HashSet::retain`]
6223 - [`TcpStream::peek`]
6224 - [`UdpSocket::peek`]
6225 - [`UdpSocket::peek_from`]
6230 - [Added partial Pijul support][cargo/3842] Pijul is a version control system in Rust.
6231 You can now create new cargo projects with Pijul using `cargo new --vcs pijul`
6232 - [Now always emits build script warnings for crates that fail to build][cargo/3847]
6233 - [Added Android build support][cargo/3885]
6234 - [Added `--bins` and `--tests` flags][cargo/3901] now you can build all programs
6235 of a certain type, for example `cargo build --bins` will build all
6237 - [Added support for haiku][cargo/3952]
6242 - [rustdoc can now use pulldown-cmark with the `--enable-commonmark` flag][40338]
6243 - [Rust now uses the official cross compiler for NetBSD][40612]
6244 - [rustdoc now accepts `#` at the start of files][40828]
6245 - [Fixed jemalloc support for musl][41168]
6250 - [Changes to how the `0` flag works in format!][40241] Padding zeroes are now
6251 always placed after the sign if it exists and before the digits. With the `#`
6252 flag the zeroes are placed after the prefix and before the digits.
6253 - [Due to the struct field optimisation][40377], using `transmute` on structs
6254 that have no `repr` attribute or `#[repr(Rust)]` will no longer work. This has
6255 always been undefined behavior, but is now more likely to break in practice.
6256 - [The refactor of trait object type parsing][40043] fixed a bug where `+` was
6257 receiving the wrong priority parsing things like `&for<'a> Tr<'a> + Send` as
6258 `&(for<'a> Tr<'a> + Send)` instead of `(&for<'a> Tr<'a>) + Send`
6259 - [Overlapping inherent `impl`s are now a hard error][40728]
6260 - [`PartialOrd` and `Ord` must agree on the ordering.][41270]
6261 - [`rustc main.rs -o out --emit=asm,llvm-ir`][41085] Now will output
6262 `out.asm` and `out.ll` instead of only one of the filetypes.
6263 - [ calling a function that returns `Self` will no longer work][41805] when
6264 the size of `Self` cannot be statically determined.
6265 - [rustc now builds with a "pthreads" flavour of MinGW for Windows GNU][40805]
6266 this has caused a few regressions namely:
6268 - Changed the link order of local static/dynamic libraries (respecting the
6269 order on given rather than having the compiler reorder).
6270 - Changed how MinGW is linked, native code linked to dynamic libraries
6271 may require manually linking to the gcc support library (for the native
6274 [38165]: https://github.com/rust-lang/rust/pull/38165
6275 [39799]: https://github.com/rust-lang/rust/pull/39799
6276 [39891]: https://github.com/rust-lang/rust/pull/39891
6277 [40043]: https://github.com/rust-lang/rust/pull/40043
6278 [40241]: https://github.com/rust-lang/rust/pull/40241
6279 [40338]: https://github.com/rust-lang/rust/pull/40338
6280 [40367]: https://github.com/rust-lang/rust/pull/40367
6281 [40377]: https://github.com/rust-lang/rust/pull/40377
6282 [40409]: https://github.com/rust-lang/rust/pull/40409
6283 [40516]: https://github.com/rust-lang/rust/pull/40516
6284 [40556]: https://github.com/rust-lang/rust/pull/40556
6285 [40561]: https://github.com/rust-lang/rust/pull/40561
6286 [40589]: https://github.com/rust-lang/rust/pull/40589
6287 [40612]: https://github.com/rust-lang/rust/pull/40612
6288 [40723]: https://github.com/rust-lang/rust/pull/40723
6289 [40728]: https://github.com/rust-lang/rust/pull/40728
6290 [40731]: https://github.com/rust-lang/rust/pull/40731
6291 [40734]: https://github.com/rust-lang/rust/pull/40734
6292 [40805]: https://github.com/rust-lang/rust/pull/40805
6293 [40807]: https://github.com/rust-lang/rust/pull/40807
6294 [40828]: https://github.com/rust-lang/rust/pull/40828
6295 [40870]: https://github.com/rust-lang/rust/pull/40870
6296 [41085]: https://github.com/rust-lang/rust/pull/41085
6297 [41143]: https://github.com/rust-lang/rust/pull/41143
6298 [41168]: https://github.com/rust-lang/rust/pull/41168
6299 [41270]: https://github.com/rust-lang/rust/issues/41270
6300 [41469]: https://github.com/rust-lang/rust/pull/41469
6301 [41805]: https://github.com/rust-lang/rust/issues/41805
6302 [RFC 1422]: https://github.com/rust-lang/rfcs/blob/master/text/1422-pub-restricted.md
6303 [RFC 1665]: https://github.com/rust-lang/rfcs/blob/master/text/1665-windows-subsystem.md
6304 [`Child::try_wait`]: https://doc.rust-lang.org/std/process/struct.Child.html#method.try_wait
6305 [`HashMap::retain`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.retain
6306 [`HashSet::retain`]: https://doc.rust-lang.org/std/collections/struct.HashSet.html#method.retain
6307 [`PeekMut::pop`]: https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html#method.pop
6308 [`TcpStream::peek`]: https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.peek
6309 [`UdpSocket::peek_from`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek_from
6310 [`UdpSocket::peek`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek
6311 [cargo/3842]: https://github.com/rust-lang/cargo/pull/3842
6312 [cargo/3847]: https://github.com/rust-lang/cargo/pull/3847
6313 [cargo/3885]: https://github.com/rust-lang/cargo/pull/3885
6314 [cargo/3901]: https://github.com/rust-lang/cargo/pull/3901
6315 [cargo/3952]: https://github.com/rust-lang/cargo/pull/3952
6318 Version 1.17.0 (2017-04-27)
6319 ===========================
6324 * [The lifetime of statics and consts defaults to `'static`][39265]. [RFC 1623]
6325 * [Fields of structs may be initialized without duplicating the field/variable
6326 names][39761]. [RFC 1682]
6327 * [`Self` may be included in the `where` clause of `impls`][38864]. [RFC 1647]
6328 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
6329 there is no subtyping between `T` and `U` when `T: Unsize<U>`. For example,
6330 coercing `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to
6331 `'b`. Soundness fix.
6332 * [Values passed to the indexing operator, `[]`, automatically coerce][40166]
6333 * [Static variables may contain references to other statics][40027]
6338 * [Exit quickly on only `--emit dep-info`][40336]
6339 * [Make `-C relocation-model` more correctly determine whether the linker
6340 creates a position-independent executable][40245]
6341 * [Add `-C overflow-checks` to directly control whether integer overflow
6343 * [The rustc type checker now checks items on demand instead of in a single
6344 in-order pass][40008]. This is mostly an internal refactoring in support of
6345 future work, including incremental type checking, but also resolves [RFC
6346 1647], allowing `Self` to appear in `impl` `where` clauses.
6347 * [Optimize vtable loads][39995]
6348 * [Turn off vectorization for Emscripten targets][39990]
6349 * [Provide suggestions for unknown macros imported with `use`][39953]
6350 * [Fix ICEs in path resolution][39939]
6351 * [Strip exception handling code on Emscripten when `panic=abort`][39193]
6352 * [Add clearer error message using `&str + &str`][39116]
6363 * [`Ordering::then`]
6364 * [`Ordering::then_with`]
6365 * [`BTreeMap::range`]
6366 * [`BTreeMap::range_mut`]
6367 * [`collections::Bound`]
6368 * [`process::abort`]
6369 * [`ptr::read_unaligned`]
6370 * [`ptr::write_unaligned`]
6371 * [`Result::expect_err`]
6374 * [`Cell::into_inner`]
6380 * [`BTreeMap` and `BTreeSet` can iterate over ranges][27787]
6381 * [`Cell` can store non-`Copy` types][39793]. [RFC 1651]
6382 * [`String` implements `FromIterator<&char>`][40028]
6383 * `Box` [implements][40009] a number of new conversions:
6384 `From<Box<str>> for String`,
6385 `From<Box<[T]>> for Vec<T>`,
6386 `From<Box<CStr>> for CString`,
6387 `From<Box<OsStr>> for OsString`,
6388 `From<Box<Path>> for PathBuf`,
6389 `Into<Box<str>> for String`,
6390 `Into<Box<[T]>> for Vec<T>`,
6391 `Into<Box<CStr>> for CString`,
6392 `Into<Box<OsStr>> for OsString`,
6393 `Into<Box<Path>> for PathBuf`,
6394 `Default for Box<str>`,
6395 `Default for Box<CStr>`,
6396 `Default for Box<OsStr>`,
6397 `From<&CStr> for Box<CStr>`,
6398 `From<&OsStr> for Box<OsStr>`,
6399 `From<&Path> for Box<Path>`
6400 * [`ffi::FromBytesWithNulError` implements `Error` and `Display`][39960]
6401 * [Specialize `PartialOrd<A> for [A] where A: Ord`][39642]
6402 * [Slightly optimize `slice::sort`][39538]
6403 * [Add `ToString` trait specialization for `Cow<'a, str>` and `String`][39440]
6404 * [`Box<[T]>` implements `From<&[T]> where T: Copy`,
6405 `Box<str>` implements `From<&str>`][39438]
6406 * [`IpAddr` implements `From` for various arrays. `SocketAddr` implements
6407 `From<(I, u16)> where I: Into<IpAddr>`][39372]
6408 * [`format!` estimates the needed capacity before writing a string][39356]
6409 * [Support unprivileged symlink creation in Windows][38921]
6410 * [`PathBuf` implements `Default`][38764]
6411 * [Implement `PartialEq<[A]>` for `VecDeque<A>`][38661]
6412 * [`HashMap` resizes adaptively][38368] to guard against DOS attacks
6413 and poor hash functions.
6418 * [Add `cargo check --all`][cargo/3731]
6419 * [Add an option to ignore SSL revocation checking][cargo/3699]
6420 * [Add `cargo run --package`][cargo/3691]
6421 * [Add `required_features`][cargo/3667]
6422 * [Assume `build.rs` is a build script][cargo/3664]
6423 * [Find workspace via `workspace_root` link in containing member][cargo/3562]
6428 * [Documentation is rendered with mdbook instead of the obsolete, in-tree
6430 * [The "Unstable Book" documents nightly-only features][ubook]
6431 * [Improve the style of the sidebar in rustdoc output][40265]
6432 * [Configure build correctly on 64-bit CPU's with the armhf ABI][40261]
6433 * [Fix MSP430 breakage due to `i128`][40257]
6434 * [Preliminary Solaris/SPARCv9 support][39903]
6435 * [`rustc` is linked statically on Windows MSVC targets][39837], allowing it to
6436 run without installing the MSVC runtime.
6437 * [`rustdoc --test` includes file names in test names][39788]
6438 * This release includes builds of `std` for `sparc64-unknown-linux-gnu`,
6439 `aarch64-unknown-linux-fuchsia`, and `x86_64-unknown-linux-fuchsia`.
6440 * [Initial support for `aarch64-unknown-freebsd`][39491]
6441 * [Initial support for `i686-unknown-netbsd`][39426]
6442 * [This release no longer includes the old makefile build system][39431]. Rust
6443 is built with a custom build system, written in Rust, and with Cargo.
6444 * [Add Debug implementations for libcollection structs][39002]
6445 * [`TypeId` implements `PartialOrd` and `Ord`][38981]
6446 * [`--test-threads=0` produces an error][38945]
6447 * [`rustup` installs documentation by default][40526]
6448 * [The Rust source includes NatVis visualizations][39843]. These can be used by
6449 WinDbg and Visual Studio to improve the debugging experience.
6454 * [Rust 1.17 does not correctly detect the MSVC 2017 linker][38584]. As a
6455 workaround, either use MSVC 2015 or run vcvars.bat.
6456 * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
6457 disallow subtyping between `T` and `U` when `T: Unsize<U>`, e.g. coercing
6458 `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to `'b`. Soundness
6460 * [`format!` and `Display::to_string` panic if an underlying formatting
6461 implementation returns an error][40117]. Previously the error was silently
6462 ignored. It is incorrect for `write_fmt` to return an error when writing
6464 * [In-tree crates are verified to be unstable][39851]. Previously, some minor
6465 crates were marked stable and could be accessed from the stable toolchain.
6466 * [Rust git source no longer includes vendored crates][39728]. Those that need
6467 to build with vendored crates should build from release tarballs.
6468 * [Fix inert attributes from `proc_macro_derives`][39572]
6469 * [During crate resolution, rustc prefers a crate in the sysroot if two crates
6470 are otherwise identical][39518]. Unlikely to be encountered outside the Rust
6472 * [Fixed bugs around how type inference interacts with dead-code][39485]. The
6473 existing code generally ignores the type of dead-code unless a type-hint is
6474 provided; this can cause surprising inference interactions particularly around
6475 defaulting. The new code uniformly ignores the result type of dead-code.
6476 * [Tuple-struct constructors with private fields are no longer visible][38932]
6477 * [Lifetime parameters that do not appear in the arguments are now considered
6478 early-bound][38897], resolving a soundness bug (#[32330]). The
6479 `hr_lifetime_in_assoc_type` future-compatibility lint has been in effect since
6481 * [rustdoc: fix doctests with non-feature crate attributes][38161]
6482 * [Make transmuting from fn item types to pointer-sized types a hard
6485 [27787]: https://github.com/rust-lang/rust/issues/27787
6486 [32330]: https://github.com/rust-lang/rust/issues/32330
6487 [34198]: https://github.com/rust-lang/rust/pull/34198
6488 [38161]: https://github.com/rust-lang/rust/pull/38161
6489 [38368]: https://github.com/rust-lang/rust/pull/38368
6490 [38584]: https://github.com/rust-lang/rust/issues/38584
6491 [38661]: https://github.com/rust-lang/rust/pull/38661
6492 [38764]: https://github.com/rust-lang/rust/pull/38764
6493 [38864]: https://github.com/rust-lang/rust/issues/38864
6494 [38897]: https://github.com/rust-lang/rust/pull/38897
6495 [38921]: https://github.com/rust-lang/rust/pull/38921
6496 [38932]: https://github.com/rust-lang/rust/pull/38932
6497 [38945]: https://github.com/rust-lang/rust/pull/38945
6498 [38981]: https://github.com/rust-lang/rust/pull/38981
6499 [39002]: https://github.com/rust-lang/rust/pull/39002
6500 [39116]: https://github.com/rust-lang/rust/pull/39116
6501 [39193]: https://github.com/rust-lang/rust/pull/39193
6502 [39265]: https://github.com/rust-lang/rust/pull/39265
6503 [39356]: https://github.com/rust-lang/rust/pull/39356
6504 [39372]: https://github.com/rust-lang/rust/pull/39372
6505 [39426]: https://github.com/rust-lang/rust/pull/39426
6506 [39431]: https://github.com/rust-lang/rust/pull/39431
6507 [39438]: https://github.com/rust-lang/rust/pull/39438
6508 [39440]: https://github.com/rust-lang/rust/pull/39440
6509 [39485]: https://github.com/rust-lang/rust/pull/39485
6510 [39491]: https://github.com/rust-lang/rust/pull/39491
6511 [39518]: https://github.com/rust-lang/rust/pull/39518
6512 [39538]: https://github.com/rust-lang/rust/pull/39538
6513 [39572]: https://github.com/rust-lang/rust/pull/39572
6514 [39633]: https://github.com/rust-lang/rust/pull/39633
6515 [39642]: https://github.com/rust-lang/rust/pull/39642
6516 [39728]: https://github.com/rust-lang/rust/pull/39728
6517 [39761]: https://github.com/rust-lang/rust/pull/39761
6518 [39788]: https://github.com/rust-lang/rust/pull/39788
6519 [39793]: https://github.com/rust-lang/rust/pull/39793
6520 [39837]: https://github.com/rust-lang/rust/pull/39837
6521 [39843]: https://github.com/rust-lang/rust/pull/39843
6522 [39851]: https://github.com/rust-lang/rust/pull/39851
6523 [39903]: https://github.com/rust-lang/rust/pull/39903
6524 [39939]: https://github.com/rust-lang/rust/pull/39939
6525 [39953]: https://github.com/rust-lang/rust/pull/39953
6526 [39960]: https://github.com/rust-lang/rust/pull/39960
6527 [39990]: https://github.com/rust-lang/rust/pull/39990
6528 [39995]: https://github.com/rust-lang/rust/pull/39995
6529 [40008]: https://github.com/rust-lang/rust/pull/40008
6530 [40009]: https://github.com/rust-lang/rust/pull/40009
6531 [40027]: https://github.com/rust-lang/rust/pull/40027
6532 [40028]: https://github.com/rust-lang/rust/pull/40028
6533 [40037]: https://github.com/rust-lang/rust/pull/40037
6534 [40117]: https://github.com/rust-lang/rust/pull/40117
6535 [40166]: https://github.com/rust-lang/rust/pull/40166
6536 [40245]: https://github.com/rust-lang/rust/pull/40245
6537 [40257]: https://github.com/rust-lang/rust/pull/40257
6538 [40261]: https://github.com/rust-lang/rust/pull/40261
6539 [40265]: https://github.com/rust-lang/rust/pull/40265
6540 [40319]: https://github.com/rust-lang/rust/pull/40319
6541 [40336]: https://github.com/rust-lang/rust/pull/40336
6542 [40526]: https://github.com/rust-lang/rust/pull/40526
6543 [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
6544 [RFC 1647]: https://github.com/rust-lang/rfcs/blob/master/text/1647-allow-self-in-where-clauses.md
6545 [RFC 1651]: https://github.com/rust-lang/rfcs/blob/master/text/1651-movecell.md
6546 [RFC 1682]: https://github.com/rust-lang/rfcs/blob/master/text/1682-field-init-shorthand.md
6547 [`Arc::from_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.from_raw
6548 [`Arc::into_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.into_raw
6549 [`Arc::ptr_eq`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.ptr_eq
6550 [`BTreeMap::range_mut`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range_mut
6551 [`BTreeMap::range`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range
6552 [`Cell::into_inner`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.into_inner
6553 [`Cell::replace`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.replace
6554 [`Cell::swap`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.swap
6555 [`Cell::take`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.take
6556 [`Ordering::then_with`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then_with
6557 [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
6558 [`Rc::from_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.from_raw
6559 [`Rc::into_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.into_raw
6560 [`Rc::ptr_eq`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.ptr_eq
6561 [`Result::expect_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.expect_err
6562 [`collections::Bound`]: https://doc.rust-lang.org/std/collections/enum.Bound.html
6563 [`process::abort`]: https://doc.rust-lang.org/std/process/fn.abort.html
6564 [`ptr::read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
6565 [`ptr::write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
6566 [cargo/3562]: https://github.com/rust-lang/cargo/pull/3562
6567 [cargo/3664]: https://github.com/rust-lang/cargo/pull/3664
6568 [cargo/3667]: https://github.com/rust-lang/cargo/pull/3667
6569 [cargo/3691]: https://github.com/rust-lang/cargo/pull/3691
6570 [cargo/3699]: https://github.com/rust-lang/cargo/pull/3699
6571 [cargo/3731]: https://github.com/rust-lang/cargo/pull/3731
6572 [ubook]: https://doc.rust-lang.org/unstable-book/
6575 Version 1.16.0 (2017-03-16)
6576 ===========================
6581 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
6582 * [Uninhabitable enums (those without any variants) no longer permit wildcard
6583 match patterns][38069]
6584 * [Clean up semantics of `self` in an import list][38313]
6585 * [`Self` may appear in `impl` headers][38920]
6586 * [`Self` may appear in struct expressions][39282]
6591 * [`rustc` now supports `--emit=metadata`, which causes rustc to emit
6592 a `.rmeta` file containing only crate metadata][38571]. This can be
6593 used by tools like the Rust Language Service to perform
6594 metadata-only builds.
6595 * [Levenshtein based typo suggestions now work in most places, while
6596 previously they worked only for fields and sometimes for local
6597 variables][38927]. Together with the overhaul of "no
6598 resolution"/"unexpected resolution" errors (#[38154]) they result in
6599 large and systematic improvement in resolution diagnostics.
6600 * [Fix `transmute::<T, U>` where `T` requires a bigger alignment than
6602 * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798]
6603 * [`rustc` no longer attempts to provide "consider using an explicit
6604 lifetime" suggestions][37057]. They were inaccurate.
6609 * [`VecDeque::truncate`]
6610 * [`VecDeque::resize`]
6611 * [`String::insert_str`]
6612 * [`Duration::checked_add`]
6613 * [`Duration::checked_sub`]
6614 * [`Duration::checked_div`]
6615 * [`Duration::checked_mul`]
6618 * [`SocketAddr::is_ipv4`]
6619 * [`SocketAddr::is_ipv6`]
6620 * [`IpAddr::is_ipv4`]
6621 * [`IpAddr::is_ipv6`]
6623 * [`Vec::dedup_by_key`]
6624 * [`Result::unwrap_or_default`]
6625 * [`<*const T>::wrapping_offset`]
6626 * [`<*mut T>::wrapping_offset`]
6627 * `CommandExt::creation_flags`
6628 * [`File::set_permissions`]
6629 * [`String::split_off`]
6634 * [`[T]::binary_search` and `[T]::binary_search_by_key` now take
6635 their argument by `Borrow` parameter][37761]
6636 * [All public types in std implement `Debug`][38006]
6637 * [`IpAddr` implements `From<Ipv4Addr>` and `From<Ipv6Addr>`][38327]
6638 * [`Ipv6Addr` implements `From<[u16; 8]>`][38131]
6639 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
6641 * [std: Fix partial writes in `LineWriter`][38062]
6642 * [std: Clamp max read/write sizes on Unix][38622]
6643 * [Use more specific panic message for `&str` slicing errors][38066]
6644 * [`TcpListener::set_only_v6` is deprecated][38304]. This
6645 functionality cannot be achieved in std currently.
6646 * [`writeln!`, like `println!`, now accepts a form with no string
6647 or formatting arguments, to just print a newline][38469]
6648 * [Implement `iter::Sum` and `iter::Product` for `Result`][38580]
6649 * [Reduce the size of static data in `std_unicode::tables`][38781]
6650 * [`char::EscapeDebug`, `EscapeDefault`, `EscapeUnicode`,
6651 `CaseMappingIter`, `ToLowercase`, `ToUppercase`, implement
6653 * [`Duration` implements `Sum`][38712]
6654 * [`String` implements `ToSocketAddrs`][39048]
6659 * [The `cargo check` command does a type check of a project without
6660 building it][cargo/3296]
6661 * [crates.io will display CI badges from Travis and AppVeyor, if
6662 specified in Cargo.toml][cargo/3546]
6663 * [crates.io will display categories listed in Cargo.toml][cargo/3301]
6664 * [Compilation profiles accept integer values for `debug`, in addition
6665 to `true` and `false`. These are passed to `rustc` as the value to
6666 `-C debuginfo`][cargo/3534]
6667 * [Implement `cargo --version --verbose`][cargo/3604]
6668 * [All builds now output 'dep-info' build dependencies compatible with
6669 make and ninja][cargo/3557]
6670 * [Build all workspace members with `build --all`][cargo/3511]
6671 * [Document all workspace members with `doc --all`][cargo/3515]
6672 * [Path deps outside workspace are not members][cargo/3443]
6677 * [`rustdoc` has a `--sysroot` argument that, like `rustc`, specifies
6678 the path to the Rust implementation][38589]
6679 * [The `armv7-linux-androideabi` target no longer enables NEON
6680 extensions, per Google's ABI guide][38413]
6681 * [The stock standard library can be compiled for Redox OS][38401]
6682 * [Rust has initial SPARC support][38726]. Tier 3. No builds
6684 * [Rust has experimental support for Nvidia PTX][38559]. Tier 3. No
6686 * [Fix backtraces on i686-pc-windows-gnu by disabling FPO][39379]
6691 * [Uninhabitable enums (those without any variants) no longer permit wildcard
6692 match patterns][38069]
6693 * In this release, references to uninhabited types can not be
6694 pattern-matched. This was accidentally allowed in 1.15.
6695 * [The compiler's `dead_code` lint now accounts for type aliases][38051].
6696 * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
6698 * [Clean up semantics of `self` in an import list][38313]
6699 * Reimplemented lifetime elision. This change was almost entirely compatible
6700 with existing code, but it did close a number of small bugs and loopholes,
6701 as well as being more accepting in some other [cases][41105].
6703 [37057]: https://github.com/rust-lang/rust/pull/37057
6704 [37761]: https://github.com/rust-lang/rust/pull/37761
6705 [38006]: https://github.com/rust-lang/rust/pull/38006
6706 [38051]: https://github.com/rust-lang/rust/pull/38051
6707 [38062]: https://github.com/rust-lang/rust/pull/38062
6708 [38622]: https://github.com/rust-lang/rust/pull/38622
6709 [38066]: https://github.com/rust-lang/rust/pull/38066
6710 [38069]: https://github.com/rust-lang/rust/pull/38069
6711 [38131]: https://github.com/rust-lang/rust/pull/38131
6712 [38154]: https://github.com/rust-lang/rust/pull/38154
6713 [38274]: https://github.com/rust-lang/rust/pull/38274
6714 [38304]: https://github.com/rust-lang/rust/pull/38304
6715 [38313]: https://github.com/rust-lang/rust/pull/38313
6716 [38327]: https://github.com/rust-lang/rust/pull/38327
6717 [38401]: https://github.com/rust-lang/rust/pull/38401
6718 [38413]: https://github.com/rust-lang/rust/pull/38413
6719 [38469]: https://github.com/rust-lang/rust/pull/38469
6720 [38559]: https://github.com/rust-lang/rust/pull/38559
6721 [38571]: https://github.com/rust-lang/rust/pull/38571
6722 [38580]: https://github.com/rust-lang/rust/pull/38580
6723 [38589]: https://github.com/rust-lang/rust/pull/38589
6724 [38670]: https://github.com/rust-lang/rust/pull/38670
6725 [38712]: https://github.com/rust-lang/rust/pull/38712
6726 [38726]: https://github.com/rust-lang/rust/pull/38726
6727 [38781]: https://github.com/rust-lang/rust/pull/38781
6728 [38798]: https://github.com/rust-lang/rust/pull/38798
6729 [38909]: https://github.com/rust-lang/rust/pull/38909
6730 [38920]: https://github.com/rust-lang/rust/pull/38920
6731 [38927]: https://github.com/rust-lang/rust/pull/38927
6732 [39048]: https://github.com/rust-lang/rust/pull/39048
6733 [39282]: https://github.com/rust-lang/rust/pull/39282
6734 [39379]: https://github.com/rust-lang/rust/pull/39379
6735 [41105]: https://github.com/rust-lang/rust/issues/41105
6736 [`<*const T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
6737 [`<*mut T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
6738 [`Duration::checked_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_add
6739 [`Duration::checked_div`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_div
6740 [`Duration::checked_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_mul
6741 [`Duration::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_sub
6742 [`File::set_permissions`]: https://doc.rust-lang.org/std/fs/struct.File.html#method.set_permissions
6743 [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv4
6744 [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv6
6745 [`Result::unwrap_or_default`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.unwrap_or_default
6746 [`SocketAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv4
6747 [`SocketAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv6
6748 [`String::insert_str`]: https://doc.rust-lang.org/std/string/struct.String.html#method.insert_str
6749 [`String::split_off`]: https://doc.rust-lang.org/std/string/struct.String.html#method.split_off
6750 [`Vec::dedup_by_key`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by_key
6751 [`Vec::dedup_by`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by
6752 [`VecDeque::resize`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.resize
6753 [`VecDeque::truncate`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.truncate
6754 [`str::repeat`]: https://doc.rust-lang.org/std/primitive.str.html#method.repeat
6755 [`str::replacen`]: https://doc.rust-lang.org/std/primitive.str.html#method.replacen
6756 [cargo/3296]: https://github.com/rust-lang/cargo/pull/3296
6757 [cargo/3301]: https://github.com/rust-lang/cargo/pull/3301
6758 [cargo/3443]: https://github.com/rust-lang/cargo/pull/3443
6759 [cargo/3511]: https://github.com/rust-lang/cargo/pull/3511
6760 [cargo/3515]: https://github.com/rust-lang/cargo/pull/3515
6761 [cargo/3534]: https://github.com/rust-lang/cargo/pull/3534
6762 [cargo/3546]: https://github.com/rust-lang/cargo/pull/3546
6763 [cargo/3557]: https://github.com/rust-lang/cargo/pull/3557
6764 [cargo/3604]: https://github.com/rust-lang/cargo/pull/3604
6767 Version 1.15.1 (2017-02-09)
6768 ===========================
6770 * [Fix IntoIter::as_mut_slice's signature][39466]
6771 * [Compile compiler builtins with `-fPIC` on 32-bit platforms][39523]
6773 [39466]: https://github.com/rust-lang/rust/pull/39466
6774 [39523]: https://github.com/rust-lang/rust/pull/39523
6777 Version 1.15.0 (2017-02-02)
6778 ===========================
6783 * Basic procedural macros allowing custom `#[derive]`, aka "macros 1.1", are
6784 stable. This allows popular code-generating crates like Serde and Diesel to
6785 work ergonomically. [RFC 1681].
6786 * [Tuple structs may be empty. Unary and empty tuple structs may be instantiated
6787 with curly braces][36868]. Part of [RFC 1506].
6788 * [A number of minor changes to name resolution have been activated][37127].
6789 They add up to more consistent semantics, allowing for future evolution of
6790 Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
6791 details of what is different. The breaking changes here have been transitioned
6792 through the [`legacy_imports`] lint since 1.14, with no known regressions.
6793 * [In `macro_rules`, `path` fragments can now be parsed as type parameter
6795 * [`?Sized` can be used in `where` clauses][37791]
6796 * [There is now a limit on the size of monomorphized types and it can be
6797 modified with the `#![type_size_limit]` crate attribute, similarly to
6798 the `#![recursion_limit]` attribute][37789]
6803 * [On Windows, the compiler will apply dllimport attributes when linking to
6804 extern functions][37973]. Additional attributes and flags can control which
6805 library kind is linked and its name. [RFC 1717].
6806 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
6807 * [The `--test` flag works with procedural macro crates][38107]
6808 * [Fix `extern "aapcs" fn` ABI][37814]
6809 * [The `-C no-stack-check` flag is deprecated][37636]. It does nothing.
6810 * [The `format!` expander recognizes incorrect `printf` and shell-style
6811 formatting directives and suggests the correct format][37613].
6812 * [Only report one error for all unused imports in an import list][37456]
6814 Compiler Performance
6815 --------------------
6817 * [Avoid unnecessary `mk_ty` calls in `Ty::super_fold_with`][37705]
6818 * [Avoid more unnecessary `mk_ty` calls in `Ty::super_fold_with`][37979]
6819 * [Don't clone in `UnificationTable::probe`][37848]
6820 * [Remove `scope_auxiliary` to cut RSS by 10%][37764]
6821 * [Use small vectors in type walker][37760]
6822 * [Macro expansion performance was improved][37701]
6823 * [Change `HirVec<P<T>>` to `HirVec<T>` in `hir::Expr`][37642]
6824 * [Replace FNV with a faster hash function][37229]
6829 * [`std::iter::Iterator::min_by`]
6830 * [`std::iter::Iterator::max_by`]
6831 * [`std::os::*::fs::FileExt`]
6832 * [`std::sync::atomic::Atomic*::get_mut`]
6833 * [`std::sync::atomic::Atomic*::into_inner`]
6834 * [`std::vec::IntoIter::as_slice`]
6835 * [`std::vec::IntoIter::as_mut_slice`]
6836 * [`std::sync::mpsc::Receiver::try_iter`]
6837 * [`std::os::unix::process::CommandExt::before_exec`]
6838 * [`std::rc::Rc::strong_count`]
6839 * [`std::rc::Rc::weak_count`]
6840 * [`std::sync::Arc::strong_count`]
6841 * [`std::sync::Arc::weak_count`]
6842 * [`std::char::encode_utf8`]
6843 * [`std::char::encode_utf16`]
6844 * [`std::cell::Ref::clone`]
6845 * [`std::io::Take::into_inner`]
6850 * [The standard sorting algorithm has been rewritten for dramatic performance
6851 improvements][38192]. It is a hybrid merge sort, drawing influences from
6852 Timsort. Previously it was a naive merge sort.
6853 * [`Iterator::nth` no longer has a `Sized` bound][38134]
6854 * [`Extend<&T>` is specialized for `Vec` where `T: Copy`][38182] to improve
6856 * [`chars().count()` is much faster][37888] and so are [`chars().last()`
6857 and `char_indices().last()`][37882]
6858 * [Fix ARM Objective-C ABI in `std::env::args`][38146]
6859 * [Chinese characters display correctly in `fmt::Debug`][37855]
6860 * [Derive `Default` for `Duration`][37699]
6861 * [Support creation of anonymous pipes on WinXP/2k][37677]
6862 * [`mpsc::RecvTimeoutError` implements `Error`][37527]
6863 * [Don't pass overlapped handles to processes][38835]
6868 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
6869 environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
6870 should instead check the variable at runtime with `std::env`. That the value
6871 was set at build time was a bug, and incorrect when cross-compiling. This
6872 change is known to cause breakage.
6873 * [Add `--all` flag to `cargo test`][cargo/3221]
6874 * [Compile statically against the MSVC CRT][cargo/3363]
6875 * [Mix feature flags into fingerprint/metadata shorthash][cargo/3102]
6876 * [Link OpenSSL statically on OSX][cargo/3311]
6877 * [Apply new fingerprinting to build dir outputs][cargo/3310]
6878 * [Test for bad path overrides with summaries][cargo/3336]
6879 * [Require `cargo install --vers` to take a semver version][cargo/3338]
6880 * [Fix retrying crate downloads for network errors][cargo/3348]
6881 * [Implement string lookup for `build.rustflags` config key][cargo/3356]
6882 * [Emit more info on --message-format=json][cargo/3319]
6883 * [Assume `build.rs` in the same directory as `Cargo.toml` is a build script][cargo/3361]
6884 * [Don't ignore errors in workspace manifest][cargo/3409]
6885 * [Fix `--message-format JSON` when rustc emits non-JSON warnings][cargo/3410]
6890 * [Test runners (binaries built with `--test`) now support a `--list` argument
6891 that lists the tests it contains][38185]
6892 * [Test runners now support a `--exact` argument that makes the test filter
6893 match exactly, instead of matching only a substring of the test name][38181]
6894 * [rustdoc supports a `--playground-url` flag][37763]
6895 * [rustdoc provides more details about `#[should_panic]` errors][37749]
6900 * [The Rust build system is now written in Rust][37817]. The Makefiles may
6901 continue to be used in this release by passing `--disable-rustbuild` to the
6902 configure script, but they will be deleted soon. Note that the new build
6903 system uses a different on-disk layout that will likely affect any scripts
6905 * [Rust supports i686-unknown-openbsd][38086]. Tier 3 support. No testing or
6907 * [Rust supports the MSP430][37627]. Tier 3 support. No testing or releases.
6908 * [Rust supports the ARMv5TE architecture][37615]. Tier 3 support. No testing or
6914 * [A number of minor changes to name resolution have been activated][37127].
6915 They add up to more consistent semantics, allowing for future evolution of
6916 Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
6917 details of what is different. The breaking changes here have been transitioned
6918 through the [`legacy_imports`] lint since 1.14, with no known regressions.
6919 * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
6920 environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
6921 should instead check the variable at runtime with `std::env`. That the value
6922 was set at build time was a bug, and incorrect when cross-compiling. This
6923 change is known to cause breakage.
6924 * [Higher-ranked lifetimes are no longer allowed to appear _only_ in associated
6925 types][33685]. The [`hr_lifetime_in_assoc_type` lint] has been a warning since
6926 1.10 and is now an error by default. It will become a hard error in the near
6928 * [The semantics relating modules to file system directories are changing in
6929 minor ways][37602]. This is captured in the new `legacy_directory_ownership`
6930 lint, which is a warning in this release, and will become a hard error in the
6932 * [Rust-ABI symbols are no longer exported from cdylibs][38117]
6933 * [Once `Peekable` peeks a `None` it will return that `None` without re-querying
6934 the underlying iterator][37834]
6936 ["changes"]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md#changes-to-name-resolution-rules
6937 [33685]: https://github.com/rust-lang/rust/issues/33685
6938 [36868]: https://github.com/rust-lang/rust/pull/36868
6939 [37127]: https://github.com/rust-lang/rust/pull/37127
6940 [37229]: https://github.com/rust-lang/rust/pull/37229
6941 [37456]: https://github.com/rust-lang/rust/pull/37456
6942 [37527]: https://github.com/rust-lang/rust/pull/37527
6943 [37602]: https://github.com/rust-lang/rust/pull/37602
6944 [37613]: https://github.com/rust-lang/rust/pull/37613
6945 [37615]: https://github.com/rust-lang/rust/pull/37615
6946 [37636]: https://github.com/rust-lang/rust/pull/37636
6947 [37627]: https://github.com/rust-lang/rust/pull/37627
6948 [37642]: https://github.com/rust-lang/rust/pull/37642
6949 [37677]: https://github.com/rust-lang/rust/pull/37677
6950 [37699]: https://github.com/rust-lang/rust/pull/37699
6951 [37701]: https://github.com/rust-lang/rust/pull/37701
6952 [37705]: https://github.com/rust-lang/rust/pull/37705
6953 [37749]: https://github.com/rust-lang/rust/pull/37749
6954 [37760]: https://github.com/rust-lang/rust/pull/37760
6955 [37763]: https://github.com/rust-lang/rust/pull/37763
6956 [37764]: https://github.com/rust-lang/rust/pull/37764
6957 [37789]: https://github.com/rust-lang/rust/pull/37789
6958 [37791]: https://github.com/rust-lang/rust/pull/37791
6959 [37814]: https://github.com/rust-lang/rust/pull/37814
6960 [37817]: https://github.com/rust-lang/rust/pull/37817
6961 [37834]: https://github.com/rust-lang/rust/pull/37834
6962 [37848]: https://github.com/rust-lang/rust/pull/37848
6963 [37855]: https://github.com/rust-lang/rust/pull/37855
6964 [37882]: https://github.com/rust-lang/rust/pull/37882
6965 [37888]: https://github.com/rust-lang/rust/pull/37888
6966 [37973]: https://github.com/rust-lang/rust/pull/37973
6967 [37979]: https://github.com/rust-lang/rust/pull/37979
6968 [38086]: https://github.com/rust-lang/rust/pull/38086
6969 [38107]: https://github.com/rust-lang/rust/pull/38107
6970 [38117]: https://github.com/rust-lang/rust/pull/38117
6971 [38134]: https://github.com/rust-lang/rust/pull/38134
6972 [38146]: https://github.com/rust-lang/rust/pull/38146
6973 [38181]: https://github.com/rust-lang/rust/pull/38181
6974 [38182]: https://github.com/rust-lang/rust/pull/38182
6975 [38185]: https://github.com/rust-lang/rust/pull/38185
6976 [38192]: https://github.com/rust-lang/rust/pull/38192
6977 [38279]: https://github.com/rust-lang/rust/pull/38279
6978 [38835]: https://github.com/rust-lang/rust/pull/38835
6979 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
6980 [RFC 1560]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md
6981 [RFC 1681]: https://github.com/rust-lang/rfcs/blob/master/text/1681-macros-1.1.md
6982 [RFC 1717]: https://github.com/rust-lang/rfcs/blob/master/text/1717-dllimport.md
6983 [`hr_lifetime_in_assoc_type` lint]: https://github.com/rust-lang/rust/issues/33685
6984 [`legacy_imports`]: https://github.com/rust-lang/rust/pull/38271
6985 [cargo/3102]: https://github.com/rust-lang/cargo/pull/3102
6986 [cargo/3221]: https://github.com/rust-lang/cargo/pull/3221
6987 [cargo/3310]: https://github.com/rust-lang/cargo/pull/3310
6988 [cargo/3311]: https://github.com/rust-lang/cargo/pull/3311
6989 [cargo/3319]: https://github.com/rust-lang/cargo/pull/3319
6990 [cargo/3336]: https://github.com/rust-lang/cargo/pull/3336
6991 [cargo/3338]: https://github.com/rust-lang/cargo/pull/3338
6992 [cargo/3348]: https://github.com/rust-lang/cargo/pull/3348
6993 [cargo/3356]: https://github.com/rust-lang/cargo/pull/3356
6994 [cargo/3361]: https://github.com/rust-lang/cargo/pull/3361
6995 [cargo/3363]: https://github.com/rust-lang/cargo/pull/3363
6996 [cargo/3368]: https://github.com/rust-lang/cargo/issues/3368
6997 [cargo/3409]: https://github.com/rust-lang/cargo/pull/3409
6998 [cargo/3410]: https://github.com/rust-lang/cargo/pull/3410
6999 [`std::iter::Iterator::min_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.min_by
7000 [`std::iter::Iterator::max_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.max_by
7001 [`std::os::*::fs::FileExt`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html
7002 [`std::sync::atomic::Atomic*::get_mut`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.get_mut
7003 [`std::sync::atomic::Atomic*::into_inner`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.into_inner
7004 [`std::vec::IntoIter::as_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_slice
7005 [`std::vec::IntoIter::as_mut_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_mut_slice
7006 [`std::sync::mpsc::Receiver::try_iter`]: https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_iter
7007 [`std::os::unix::process::CommandExt::before_exec`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.before_exec
7008 [`std::rc::Rc::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.strong_count
7009 [`std::rc::Rc::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.weak_count
7010 [`std::sync::Arc::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.strong_count
7011 [`std::sync::Arc::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.weak_count
7012 [`std::char::encode_utf8`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf8
7013 [`std::char::encode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf16
7014 [`std::cell::Ref::clone`]: https://doc.rust-lang.org/std/cell/struct.Ref.html#method.clone
7015 [`std::io::Take::into_inner`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.into_inner
7018 Version 1.14.0 (2016-12-22)
7019 ===========================
7024 * [`..` matches multiple tuple fields in enum variants, structs
7025 and tuples][36843]. [RFC 1492].
7026 * [Safe `fn` items can be coerced to `unsafe fn` pointers][37389]
7027 * [`use *` and `use ::*` both glob-import from the crate root][37367]
7028 * [It's now possible to call a `Vec<Box<Fn()>>` without explicit
7029 dereferencing][36822]
7034 * [Mark enums with non-zero discriminant as non-zero][37224]
7035 * [Lower-case `static mut` names are linted like other
7036 statics and consts][37162]
7037 * [Fix ICE on some macros in const integer positions
7038 (e.g. `[u8; m!()]`)][36819]
7039 * [Improve error message and snippet for "did you mean `x`"][36798]
7040 * [Add a panic-strategy field to the target specification][36794]
7041 * [Include LLVM version in `--version --verbose`][37200]
7043 Compile-time Optimizations
7044 --------------------------
7046 * [Improve macro expansion performance][37569]
7047 * [Shrink `Expr_::ExprInlineAsm`][37445]
7048 * [Replace all uses of SHA-256 with BLAKE2b][37439]
7049 * [Reduce the number of bytes hashed by `IchHasher`][37427]
7050 * [Avoid more allocations when compiling html5ever][37373]
7051 * [Use `SmallVector` in `CombineFields::instantiate`][37322]
7052 * [Avoid some allocations in the macro parser][37318]
7053 * [Use a faster deflate setting][37298]
7054 * [Add `ArrayVec` and `AccumulateVec` to reduce heap allocations
7055 during interning of slices][37270]
7056 * [Optimize `write_metadata`][37267]
7057 * [Don't process obligation forest cycles when stalled][37231]
7058 * [Avoid many `CrateConfig` clones][37161]
7059 * [Optimize `Substs::super_fold_with`][37108]
7060 * [Optimize `ObligationForest`'s `NodeState` handling][36993]
7061 * [Speed up `plug_leaks`][36917]
7066 * [`println!()`, with no arguments, prints newline][36825].
7067 Previously, an empty string was required to achieve the same.
7068 * [`Wrapping` impls standard binary and unary operators, as well as
7069 the `Sum` and `Product` iterators][37356]
7070 * [Implement `From<Cow<str>> for String` and `From<Cow<[T]>> for
7072 * [Improve `fold` performance for `chain`, `cloned`, `map`, and
7073 `VecDeque` iterators][37315]
7074 * [Improve `SipHasher` performance on small values][37312]
7075 * [Add Iterator trait TrustedLen to enable better FromIterator /
7077 * [Expand `.zip()` specialization to `.map()` and `.cloned()`][37230]
7078 * [`ReadDir` implements `Debug`][37221]
7079 * [Implement `RefUnwindSafe` for atomic types][37178]
7080 * [Specialize `Vec::extend` to `Vec::extend_from_slice`][37094]
7081 * [Avoid allocations in `Decoder::read_str`][37064]
7082 * [`io::Error` implements `From<io::ErrorKind>`][37037]
7083 * [Impl `Debug` for raw pointers to unsized data][36880]
7084 * [Don't reuse `HashMap` random seeds][37470]
7085 * [The internal memory layout of `HashMap` is more cache-friendly, for
7086 significant improvements in some operations][36692]
7087 * [`HashMap` uses less memory on 32-bit architectures][36595]
7088 * [Impl `Add<{str, Cow<str>}>` for `Cow<str>`][36430]
7093 * [Expose rustc cfg values to build scripts][cargo/3243]
7094 * [Allow cargo to work with read-only `CARGO_HOME`][cargo/3259]
7095 * [Fix passing --features when testing multiple packages][cargo/3280]
7096 * [Use a single profile set per workspace][cargo/3249]
7097 * [Load `replace` sections from lock files][cargo/3220]
7098 * [Ignore `panic` configuration for test/bench profiles][cargo/3175]
7103 * [rustup is the recommended Rust installation method][1.14rustup]
7104 * This release includes host (rustc) builds for Linux on MIPS, PowerPC, and
7105 S390x. These are [tier 2] platforms and may have major defects. Follow the
7106 instructions on the website to install, or add the targets to an existing
7107 installation with `rustup target add`. The new target triples are:
7108 - `mips-unknown-linux-gnu`
7109 - `mipsel-unknown-linux-gnu`
7110 - `mips64-unknown-linux-gnuabi64`
7111 - `mips64el-unknown-linux-gnuabi64 `
7112 - `powerpc-unknown-linux-gnu`
7113 - `powerpc64-unknown-linux-gnu`
7114 - `powerpc64le-unknown-linux-gnu`
7115 - `s390x-unknown-linux-gnu `
7116 * This release includes target (std) builds for ARM Linux running MUSL
7117 libc. These are [tier 2] platforms and may have major defects. Add the
7118 following triples to an existing rustup installation with `rustup target add`:
7119 - `arm-unknown-linux-musleabi`
7120 - `arm-unknown-linux-musleabihf`
7121 - `armv7-unknown-linux-musleabihf`
7122 * This release includes [experimental support for WebAssembly][1.14wasm], via
7123 the `wasm32-unknown-emscripten` target. This target is known to have major
7124 defects. Please test, report, and fix.
7125 * rustup no longer installs documentation by default. Run `rustup
7126 component add rust-docs` to install.
7127 * [Fix line stepping in debugger][37310]
7128 * [Enable line number debuginfo in releases][37280]
7133 * [Disable jemalloc on aarch64/powerpc/mips][37392]
7134 * [Add support for Fuchsia OS][37313]
7135 * [Detect local-rebuild by only MAJOR.MINOR version][37273]
7140 * [A number of forward-compatibility lints used by the compiler
7141 to gradually introduce language changes have been converted
7142 to deny by default][36894]:
7143 - ["use of inaccessible extern crate erroneously allowed"][36886]
7144 - ["type parameter default erroneously allowed in invalid location"][36887]
7145 - ["detects super or self keywords at the beginning of global path"][36888]
7146 - ["two overlapping inherent impls define an item with the same name
7147 were erroneously allowed"][36889]
7148 - ["floating-point constants cannot be used in patterns"][36890]
7149 - ["constants of struct or enum type can only be used in a pattern if
7150 the struct or enum has `#[derive(PartialEq, Eq)]`"][36891]
7151 - ["lifetimes or labels named `'_` were erroneously allowed"][36892]
7152 * [Prohibit patterns in trait methods without bodies][37378]
7153 * [The atomic `Ordering` enum may not be matched exhaustively][37351]
7154 * [Future-proofing `#[no_link]` breaks some obscure cases][37247]
7155 * [The `$crate` macro variable is accepted in fewer locations][37213]
7156 * [Impls specifying extra region requirements beyond the trait
7157 they implement are rejected][37167]
7158 * [Enums may not be unsized][37111]. Unsized enums are intended to
7159 work but never have. For now they are forbidden.
7160 * [Enforce the shadowing restrictions from RFC 1560 for today's macros][36767]
7162 [tier 2]: https://forge.rust-lang.org/platform-support.html
7163 [1.14rustup]: https://internals.rust-lang.org/t/beta-testing-rustup-rs/3316/204
7164 [1.14wasm]: https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten/7627
7165 [36430]: https://github.com/rust-lang/rust/pull/36430
7166 [36595]: https://github.com/rust-lang/rust/pull/36595
7167 [36692]: https://github.com/rust-lang/rust/pull/36692
7168 [36767]: https://github.com/rust-lang/rust/pull/36767
7169 [36794]: https://github.com/rust-lang/rust/pull/36794
7170 [36798]: https://github.com/rust-lang/rust/pull/36798
7171 [36819]: https://github.com/rust-lang/rust/pull/36819
7172 [36822]: https://github.com/rust-lang/rust/pull/36822
7173 [36825]: https://github.com/rust-lang/rust/pull/36825
7174 [36843]: https://github.com/rust-lang/rust/pull/36843
7175 [36880]: https://github.com/rust-lang/rust/pull/36880
7176 [36886]: https://github.com/rust-lang/rust/issues/36886
7177 [36887]: https://github.com/rust-lang/rust/issues/36887
7178 [36888]: https://github.com/rust-lang/rust/issues/36888
7179 [36889]: https://github.com/rust-lang/rust/issues/36889
7180 [36890]: https://github.com/rust-lang/rust/issues/36890
7181 [36891]: https://github.com/rust-lang/rust/issues/36891
7182 [36892]: https://github.com/rust-lang/rust/issues/36892
7183 [36894]: https://github.com/rust-lang/rust/pull/36894
7184 [36917]: https://github.com/rust-lang/rust/pull/36917
7185 [36993]: https://github.com/rust-lang/rust/pull/36993
7186 [37037]: https://github.com/rust-lang/rust/pull/37037
7187 [37064]: https://github.com/rust-lang/rust/pull/37064
7188 [37094]: https://github.com/rust-lang/rust/pull/37094
7189 [37108]: https://github.com/rust-lang/rust/pull/37108
7190 [37111]: https://github.com/rust-lang/rust/pull/37111
7191 [37161]: https://github.com/rust-lang/rust/pull/37161
7192 [37162]: https://github.com/rust-lang/rust/pull/37162
7193 [37167]: https://github.com/rust-lang/rust/pull/37167
7194 [37178]: https://github.com/rust-lang/rust/pull/37178
7195 [37200]: https://github.com/rust-lang/rust/pull/37200
7196 [37213]: https://github.com/rust-lang/rust/pull/37213
7197 [37221]: https://github.com/rust-lang/rust/pull/37221
7198 [37224]: https://github.com/rust-lang/rust/pull/37224
7199 [37230]: https://github.com/rust-lang/rust/pull/37230
7200 [37231]: https://github.com/rust-lang/rust/pull/37231
7201 [37247]: https://github.com/rust-lang/rust/pull/37247
7202 [37267]: https://github.com/rust-lang/rust/pull/37267
7203 [37270]: https://github.com/rust-lang/rust/pull/37270
7204 [37273]: https://github.com/rust-lang/rust/pull/37273
7205 [37280]: https://github.com/rust-lang/rust/pull/37280
7206 [37298]: https://github.com/rust-lang/rust/pull/37298
7207 [37306]: https://github.com/rust-lang/rust/pull/37306
7208 [37310]: https://github.com/rust-lang/rust/pull/37310
7209 [37312]: https://github.com/rust-lang/rust/pull/37312
7210 [37313]: https://github.com/rust-lang/rust/pull/37313
7211 [37315]: https://github.com/rust-lang/rust/pull/37315
7212 [37318]: https://github.com/rust-lang/rust/pull/37318
7213 [37322]: https://github.com/rust-lang/rust/pull/37322
7214 [37326]: https://github.com/rust-lang/rust/pull/37326
7215 [37351]: https://github.com/rust-lang/rust/pull/37351
7216 [37356]: https://github.com/rust-lang/rust/pull/37356
7217 [37367]: https://github.com/rust-lang/rust/pull/37367
7218 [37373]: https://github.com/rust-lang/rust/pull/37373
7219 [37378]: https://github.com/rust-lang/rust/pull/37378
7220 [37389]: https://github.com/rust-lang/rust/pull/37389
7221 [37392]: https://github.com/rust-lang/rust/pull/37392
7222 [37427]: https://github.com/rust-lang/rust/pull/37427
7223 [37439]: https://github.com/rust-lang/rust/pull/37439
7224 [37445]: https://github.com/rust-lang/rust/pull/37445
7225 [37470]: https://github.com/rust-lang/rust/pull/37470
7226 [37569]: https://github.com/rust-lang/rust/pull/37569
7227 [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
7228 [cargo/3175]: https://github.com/rust-lang/cargo/pull/3175
7229 [cargo/3220]: https://github.com/rust-lang/cargo/pull/3220
7230 [cargo/3243]: https://github.com/rust-lang/cargo/pull/3243
7231 [cargo/3249]: https://github.com/rust-lang/cargo/pull/3249
7232 [cargo/3259]: https://github.com/rust-lang/cargo/pull/3259
7233 [cargo/3280]: https://github.com/rust-lang/cargo/pull/3280
7236 Version 1.13.0 (2016-11-10)
7237 ===========================
7242 * [Stabilize the `?` operator][36995]. `?` is a simple way to propagate
7243 errors, like the `try!` macro, described in [RFC 0243].
7244 * [Stabilize macros in type position][36014]. Described in [RFC 873].
7245 * [Stabilize attributes on statements][36995]. Described in [RFC 0016].
7246 * [Fix `#[derive]` for empty tuple structs/variants][35728]
7247 * [Fix lifetime rules for 'if' conditions][36029]
7248 * [Avoid loading and parsing unconfigured non-inline modules][36482]
7253 * [Add the `-C link-arg` argument][36574]
7254 * [Remove the old AST-based backend from rustc_trans][35764]
7255 * [Don't enable NEON by default on armv7 Linux][35814]
7256 * [Fix debug line number info for macro expansions][35238]
7257 * [Do not emit "class method" debuginfo for types that are not
7258 DICompositeType][36008]
7259 * [Warn about multiple conflicting #[repr] hints][34623]
7260 * [When sizing DST, don't double-count nested struct prefixes][36351]
7261 * [Default RUST_MIN_STACK to 16MiB for now][36505]
7262 * [Improve rlib metadata format][36551]. Reduces rlib size significantly.
7263 * [Reject macros with empty repetitions to avoid infinite loop][36721]
7264 * [Expand macros without recursing to avoid stack overflows][36214]
7269 * [Replace macro backtraces with labeled local uses][35702]
7270 * [Improve error message for misplaced doc comments][33922]
7271 * [Buffer unix and lock windows to prevent message interleaving][35975]
7272 * [Update lifetime errors to specifically note temporaries][36171]
7273 * [Special case a few colors for Windows][36178]
7274 * [Suggest `use self` when such an import resolves][36289]
7275 * [Be more specific when type parameter shadows primitive type][36338]
7276 * Many minor improvements
7278 Compile-time Optimizations
7279 --------------------------
7281 * [Compute and cache HIR hashes at beginning][35854]
7282 * [Don't hash types in loan paths][36004]
7283 * [Cache projections in trans][35761]
7284 * [Optimize the parser's last token handling][36527]
7285 * [Only instantiate #[inline] functions in codegen units referencing
7286 them][36524]. This leads to big improvements in cases where crates export
7287 define many inline functions without using them directly.
7288 * [Lazily allocate TypedArena's first chunk][36592]
7289 * [Don't allocate during default HashSet creation][36734]
7296 * [`overflowing_abs`]
7297 * [`RefCell::try_borrow`]
7298 * [`RefCell::try_borrow_mut`]
7303 * [Add `assert_ne!` and `debug_assert_ne!`][35074]
7304 * [Make `vec_deque::Drain`, `hash_map::Drain`, and `hash_set::Drain`
7306 * [Implement `AsRef<[T]>` for `std::slice::Iter`][35559]
7307 * [Implement `Debug` for `std::vec::IntoIter`][35707]
7308 * [`CString`: avoid excessive growth just to 0-terminate][35871]
7309 * [Implement `CoerceUnsized` for `{Cell, RefCell, UnsafeCell}`][35627]
7310 * [Use arc4rand on FreeBSD][35884]
7311 * [memrchr: Correct aligned offset computation][35969]
7312 * [Improve Demangling of Rust Symbols][36059]
7313 * [Use monotonic time in condition variables][35048]
7314 * [Implement `Debug` for `std::path::{Components,Iter}`][36101]
7315 * [Implement conversion traits for `char`][35755]
7316 * [Fix illegal instruction caused by overflow in channel cloning][36104]
7317 * [Zero first byte of CString on drop][36264]
7318 * [Inherit overflow checks for sum and product][36372]
7319 * [Add missing Eq implementations][36423]
7320 * [Implement `Debug` for `DirEntry`][36631]
7321 * [When `getaddrinfo` returns `EAI_SYSTEM` retrieve actual error from
7323 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
7324 * [Implement more traits for `std::io::ErrorKind`][35911]
7325 * [Optimize BinaryHeap bounds checking][36072]
7326 * [Work around pointer aliasing issue in `Vec::extend_from_slice`,
7327 `extend_with_element`][36355]
7328 * [Fix overflow checking in unsigned pow()][34942]
7333 * This release includes security fixes to both curl and OpenSSL.
7334 * [Fix transitive doctests when panic=abort][cargo/3021]
7335 * [Add --all-features flag to cargo][cargo/3038]
7336 * [Reject path-based dependencies in `cargo package`][cargo/3060]
7337 * [Don't parse the home directory more than once][cargo/3078]
7338 * [Don't try to generate Cargo.lock on empty workspaces][cargo/3092]
7339 * [Update OpenSSL to 1.0.2j][cargo/3121]
7340 * [Add license and license_file to cargo metadata output][cargo/3110]
7341 * [Make crates-io registry URL optional in config; ignore all changes to
7342 source.crates-io][cargo/3089]
7343 * [Don't download dependencies from other platforms][cargo/3123]
7344 * [Build transitive dev-dependencies when needed][cargo/3125]
7345 * [Add support for per-target rustflags in .cargo/config][cargo/3157]
7346 * [Avoid updating registry when adding existing deps][cargo/3144]
7347 * [Warn about path overrides that won't work][cargo/3136]
7348 * [Use workspaces during `cargo install`][cargo/3146]
7349 * [Leak mspdbsrv.exe processes on Windows][cargo/3162]
7350 * [Add --message-format flag][cargo/3000]
7351 * [Pass target environment for rustdoc][cargo/3205]
7352 * [Use `CommandExt::exec` for `cargo run` on Unix][cargo/2818]
7353 * [Update curl and curl-sys][cargo/3241]
7354 * [Call rustdoc test with the correct cfg flags of a package][cargo/3242]
7359 * [rustdoc: Add the `--sysroot` argument][36586]
7360 * [rustdoc: Fix a couple of issues with the search results][35655]
7361 * [rustdoc: remove the `!` from macro URLs and titles][35234]
7362 * [gdb: Fix pretty-printing special-cased Rust types][35585]
7363 * [rustdoc: Filter more incorrect methods inherited through Deref][36266]
7368 * [Remove unmaintained style guide][35124]
7369 * [Add s390x support][36369]
7370 * [Initial work at Haiku OS support][36727]
7371 * [Add mips-uclibc targets][35734]
7372 * [Crate-ify compiler-rt into compiler-builtins][35021]
7373 * [Add rustc version info (git hash + date) to dist tarball][36213]
7374 * Many documentation improvements
7379 * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
7380 * [Deny (by default) transmuting from fn item types to pointer-sized
7381 types][34923]. Continuing the long transition to zero-sized fn items,
7383 * [Fix `#[derive]` for empty tuple structs/variants][35728].
7385 * [Issue deprecation warnings for safe accesses to extern statics][36173]
7386 * [Fix lifetime rules for 'if' conditions][36029].
7387 * [Inherit overflow checks for sum and product][36372].
7388 * [Forbid user-defined macros named "macro_rules"][36730].
7390 [33922]: https://github.com/rust-lang/rust/pull/33922
7391 [34623]: https://github.com/rust-lang/rust/pull/34623
7392 [34923]: https://github.com/rust-lang/rust/pull/34923
7393 [34942]: https://github.com/rust-lang/rust/pull/34942
7394 [35021]: https://github.com/rust-lang/rust/pull/35021
7395 [35048]: https://github.com/rust-lang/rust/pull/35048
7396 [35074]: https://github.com/rust-lang/rust/pull/35074
7397 [35124]: https://github.com/rust-lang/rust/pull/35124
7398 [35234]: https://github.com/rust-lang/rust/pull/35234
7399 [35238]: https://github.com/rust-lang/rust/pull/35238
7400 [35354]: https://github.com/rust-lang/rust/pull/35354
7401 [35559]: https://github.com/rust-lang/rust/pull/35559
7402 [35585]: https://github.com/rust-lang/rust/pull/35585
7403 [35627]: https://github.com/rust-lang/rust/pull/35627
7404 [35655]: https://github.com/rust-lang/rust/pull/35655
7405 [35702]: https://github.com/rust-lang/rust/pull/35702
7406 [35707]: https://github.com/rust-lang/rust/pull/35707
7407 [35728]: https://github.com/rust-lang/rust/pull/35728
7408 [35734]: https://github.com/rust-lang/rust/pull/35734
7409 [35755]: https://github.com/rust-lang/rust/pull/35755
7410 [35761]: https://github.com/rust-lang/rust/pull/35761
7411 [35764]: https://github.com/rust-lang/rust/pull/35764
7412 [35814]: https://github.com/rust-lang/rust/pull/35814
7413 [35854]: https://github.com/rust-lang/rust/pull/35854
7414 [35871]: https://github.com/rust-lang/rust/pull/35871
7415 [35884]: https://github.com/rust-lang/rust/pull/35884
7416 [35911]: https://github.com/rust-lang/rust/pull/35911
7417 [35969]: https://github.com/rust-lang/rust/pull/35969
7418 [35975]: https://github.com/rust-lang/rust/pull/35975
7419 [36004]: https://github.com/rust-lang/rust/pull/36004
7420 [36008]: https://github.com/rust-lang/rust/pull/36008
7421 [36014]: https://github.com/rust-lang/rust/pull/36014
7422 [36029]: https://github.com/rust-lang/rust/pull/36029
7423 [36059]: https://github.com/rust-lang/rust/pull/36059
7424 [36072]: https://github.com/rust-lang/rust/pull/36072
7425 [36101]: https://github.com/rust-lang/rust/pull/36101
7426 [36104]: https://github.com/rust-lang/rust/pull/36104
7427 [36171]: https://github.com/rust-lang/rust/pull/36171
7428 [36173]: https://github.com/rust-lang/rust/pull/36173
7429 [36178]: https://github.com/rust-lang/rust/pull/36178
7430 [36213]: https://github.com/rust-lang/rust/pull/36213
7431 [36214]: https://github.com/rust-lang/rust/pull/36214
7432 [36264]: https://github.com/rust-lang/rust/pull/36264
7433 [36266]: https://github.com/rust-lang/rust/pull/36266
7434 [36289]: https://github.com/rust-lang/rust/pull/36289
7435 [36338]: https://github.com/rust-lang/rust/pull/36338
7436 [36351]: https://github.com/rust-lang/rust/pull/36351
7437 [36355]: https://github.com/rust-lang/rust/pull/36355
7438 [36369]: https://github.com/rust-lang/rust/pull/36369
7439 [36372]: https://github.com/rust-lang/rust/pull/36372
7440 [36423]: https://github.com/rust-lang/rust/pull/36423
7441 [36482]: https://github.com/rust-lang/rust/pull/36482
7442 [36505]: https://github.com/rust-lang/rust/pull/36505
7443 [36524]: https://github.com/rust-lang/rust/pull/36524
7444 [36527]: https://github.com/rust-lang/rust/pull/36527
7445 [36551]: https://github.com/rust-lang/rust/pull/36551
7446 [36574]: https://github.com/rust-lang/rust/pull/36574
7447 [36586]: https://github.com/rust-lang/rust/pull/36586
7448 [36592]: https://github.com/rust-lang/rust/pull/36592
7449 [36631]: https://github.com/rust-lang/rust/pull/36631
7450 [36721]: https://github.com/rust-lang/rust/pull/36721
7451 [36727]: https://github.com/rust-lang/rust/pull/36727
7452 [36730]: https://github.com/rust-lang/rust/pull/36730
7453 [36734]: https://github.com/rust-lang/rust/pull/36734
7454 [36754]: https://github.com/rust-lang/rust/pull/36754
7455 [36995]: https://github.com/rust-lang/rust/pull/36995
7456 [RFC 0016]: https://github.com/rust-lang/rfcs/blob/master/text/0016-more-attributes.md
7457 [RFC 0243]: https://github.com/rust-lang/rfcs/blob/master/text/0243-trait-based-exception-handling.md
7458 [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
7459 [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
7460 [RFC 873]: https://github.com/rust-lang/rfcs/blob/master/text/0873-type-macros.md
7461 [cargo/2818]: https://github.com/rust-lang/cargo/pull/2818
7462 [cargo/3000]: https://github.com/rust-lang/cargo/pull/3000
7463 [cargo/3021]: https://github.com/rust-lang/cargo/pull/3021
7464 [cargo/3038]: https://github.com/rust-lang/cargo/pull/3038
7465 [cargo/3060]: https://github.com/rust-lang/cargo/pull/3060
7466 [cargo/3078]: https://github.com/rust-lang/cargo/pull/3078
7467 [cargo/3089]: https://github.com/rust-lang/cargo/pull/3089
7468 [cargo/3092]: https://github.com/rust-lang/cargo/pull/3092
7469 [cargo/3110]: https://github.com/rust-lang/cargo/pull/3110
7470 [cargo/3121]: https://github.com/rust-lang/cargo/pull/3121
7471 [cargo/3123]: https://github.com/rust-lang/cargo/pull/3123
7472 [cargo/3125]: https://github.com/rust-lang/cargo/pull/3125
7473 [cargo/3136]: https://github.com/rust-lang/cargo/pull/3136
7474 [cargo/3144]: https://github.com/rust-lang/cargo/pull/3144
7475 [cargo/3146]: https://github.com/rust-lang/cargo/pull/3146
7476 [cargo/3157]: https://github.com/rust-lang/cargo/pull/3157
7477 [cargo/3162]: https://github.com/rust-lang/cargo/pull/3162
7478 [cargo/3205]: https://github.com/rust-lang/cargo/pull/3205
7479 [cargo/3241]: https://github.com/rust-lang/cargo/pull/3241
7480 [cargo/3242]: https://github.com/rust-lang/cargo/pull/3242
7481 [`checked_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.checked_abs
7482 [`wrapping_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_abs
7483 [`overflowing_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.overflowing_abs
7484 [`RefCell::try_borrow`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow
7485 [`RefCell::try_borrow_mut`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_mut
7486 [`SipHasher`]: https://doc.rust-lang.org/std/hash/struct.SipHasher.html
7487 [`DefaultHasher`]: https://doc.rust-lang.org/std/collections/hash_map/struct.DefaultHasher.html
7490 Version 1.12.1 (2016-10-20)
7491 ===========================
7496 * [ICE: 'rustc' panicked at 'assertion failed: concrete_substs.is_normalized_for_trans()' #36381][36381]
7497 * [Confusion with double negation and booleans][36856]
7498 * [rustc 1.12.0 fails with SIGSEGV in release mode (syn crate 0.8.0)][36875]
7499 * [Rustc 1.12.0 Windows build of `ethcore` crate fails with LLVM error][36924]
7500 * [1.12.0: High memory usage when linking in release mode with debug info][36926]
7501 * [Corrupted memory after updated to 1.12][36936]
7502 * ["Let NullaryConstructor = something;" causes internal compiler error: "tried to overwrite interned AdtDef"][37026]
7503 * [Fix ICE: inject bitcast if types mismatch for invokes/calls/stores][37112]
7504 * [debuginfo: Handle spread_arg case in MIR-trans in a more stable way.][37153]
7506 [36381]: https://github.com/rust-lang/rust/issues/36381
7507 [36856]: https://github.com/rust-lang/rust/issues/36856
7508 [36875]: https://github.com/rust-lang/rust/issues/36875
7509 [36924]: https://github.com/rust-lang/rust/issues/36924
7510 [36926]: https://github.com/rust-lang/rust/issues/36926
7511 [36936]: https://github.com/rust-lang/rust/issues/36936
7512 [37026]: https://github.com/rust-lang/rust/issues/37026
7513 [37112]: https://github.com/rust-lang/rust/issues/37112
7514 [37153]: https://github.com/rust-lang/rust/issues/37153
7517 Version 1.12.0 (2016-09-29)
7518 ===========================
7523 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
7524 This translation pass is far simpler than the previous AST->LLVM pass, and
7525 creates opportunities to perform new optimizations directly on the MIR. It
7526 was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
7527 * [`rustc` presents a new, more readable error format, along with
7528 machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
7529 Most common editors supporting Rust have been updated to work with it. It was
7530 previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
7535 * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
7536 This translation pass is far simpler than the previous AST->LLVM pass, and
7537 creates opportunities to perform new optimizations directly on the MIR. It
7538 was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
7539 * [Print the Rust target name, not the LLVM target name, with
7540 `--print target-list`](https://github.com/rust-lang/rust/pull/35489)
7541 * [The computation of `TypeId` is correct in some cases where it was previously
7542 producing inconsistent results](https://github.com/rust-lang/rust/pull/35267)
7543 * [The `mips-unknown-linux-gnu` target uses hardware floating point by default](https://github.com/rust-lang/rust/pull/34910)
7544 * [The `rustc` arguments, `--print target-cpus`, `--print target-features`,
7545 `--print relocation-models`, and `--print code-models` print the available
7546 options to the `-C target-cpu`, `-C target-feature`, `-C relocation-model` and
7547 `-C code-model` code generation arguments](https://github.com/rust-lang/rust/pull/34845)
7548 * [`rustc` supports three new MUSL targets on ARM: `arm-unknown-linux-musleabi`,
7549 `arm-unknown-linux-musleabihf`, and `armv7-unknown-linux-musleabihf`](https://github.com/rust-lang/rust/pull/35060).
7550 These targets produce statically-linked binaries. There are no binary release
7556 * [`rustc` presents a new, more readable error format, along with
7557 machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
7558 Most common editors supporting Rust have been updated to work with it. It was
7559 previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
7560 * [In error descriptions, references are now described in plain English,
7561 instead of as "&-ptr"](https://github.com/rust-lang/rust/pull/35611)
7562 * [In error type descriptions, unknown numeric types are named `{integer}` or
7563 `{float}` instead of `_`](https://github.com/rust-lang/rust/pull/35080)
7564 * [`rustc` emits a clearer error when inner attributes follow a doc comment](https://github.com/rust-lang/rust/pull/34676)
7569 * [`macro_rules!` invocations can be made within `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34925)
7570 * [`macro_rules!` meta-variables are hygienic](https://github.com/rust-lang/rust/pull/35453)
7571 * [`macro_rules!` `tt` matchers can be reparsed correctly, making them much more
7572 useful](https://github.com/rust-lang/rust/pull/34908)
7573 * [`macro_rules!` `stmt` matchers correctly consume the entire contents when
7574 inside non-braces invocations](https://github.com/rust-lang/rust/pull/34886)
7575 * [Semicolons are properly required as statement delimiters inside
7576 `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34660)
7577 * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
7582 * [`Cell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr)
7583 * [`RefCell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.as_ptr)
7584 * [`IpAddr::is_unspecified`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_unspecified)
7585 * [`IpAddr::is_loopback`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_loopback)
7586 * [`IpAddr::is_multicast`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_multicast)
7587 * [`Ipv4Addr::is_unspecified`](https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified)
7588 * [`Ipv6Addr::octets`](https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets)
7589 * [`LinkedList::contains`](https://doc.rust-lang.org/std/collections/linked_list/struct.LinkedList.html#method.contains)
7590 * [`VecDeque::contains`](https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.contains)
7591 * [`ExitStatusExt::from_raw`](https://doc.rust-lang.org/std/os/unix/process/trait.ExitStatusExt.html#tymethod.from_raw).
7592 Both on Unix and Windows.
7593 * [`Receiver::recv_timeout`](https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.recv_timeout)
7594 * [`RecvTimeoutError`](https://doc.rust-lang.org/std/sync/mpsc/enum.RecvTimeoutError.html)
7595 * [`BinaryHeap::peek_mut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.peek_mut)
7596 * [`PeekMut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html)
7597 * [`iter::Product`](https://doc.rust-lang.org/std/iter/trait.Product.html)
7598 * [`iter::Sum`](https://doc.rust-lang.org/std/iter/trait.Sum.html)
7599 * [`OccupiedEntry::remove_entry`](https://doc.rust-lang.org/std/collections/btree_map/struct.OccupiedEntry.html#method.remove_entry)
7600 * [`VacantEntry::into_key`](https://doc.rust-lang.org/std/collections/btree_map/struct.VacantEntry.html#method.into_key)
7605 * [The `format!` macro and friends now allow a single argument to be formatted
7606 in multiple styles](https://github.com/rust-lang/rust/pull/33642)
7607 * [The lifetime bounds on `[T]::binary_search_by` and
7608 `[T]::binary_search_by_key` have been adjusted to be more flexible](https://github.com/rust-lang/rust/pull/34762)
7609 * [`Option` implements `From` for its contained type](https://github.com/rust-lang/rust/pull/34828)
7610 * [`Cell`, `RefCell` and `UnsafeCell` implement `From` for their contained type](https://github.com/rust-lang/rust/pull/35392)
7611 * [`RwLock` panics if the reader count overflows](https://github.com/rust-lang/rust/pull/35378)
7612 * [`vec_deque::Drain`, `hash_map::Drain` and `hash_set::Drain` are covariant](https://github.com/rust-lang/rust/pull/35354)
7613 * [`vec::Drain` and `binary_heap::Drain` are covariant](https://github.com/rust-lang/rust/pull/34951)
7614 * [`Cow<str>` implements `FromIterator` for `char`, `&str` and `String`](https://github.com/rust-lang/rust/pull/35064)
7615 * [Sockets on Linux are correctly closed in subprocesses via `SOCK_CLOEXEC`](https://github.com/rust-lang/rust/pull/34946)
7616 * [`hash_map::Entry`, `hash_map::VacantEntry` and `hash_map::OccupiedEntry`
7617 implement `Debug`](https://github.com/rust-lang/rust/pull/34937)
7618 * [`btree_map::Entry`, `btree_map::VacantEntry` and `btree_map::OccupiedEntry`
7619 implement `Debug`](https://github.com/rust-lang/rust/pull/34885)
7620 * [`String` implements `AddAssign`](https://github.com/rust-lang/rust/pull/34890)
7621 * [Variadic `extern fn` pointers implement the `Clone`, `PartialEq`, `Eq`,
7622 `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and `fmt::Debug` traits](https://github.com/rust-lang/rust/pull/34879)
7623 * [`FileType` implements `Debug`](https://github.com/rust-lang/rust/pull/34757)
7624 * [References to `Mutex` and `RwLock` are unwind-safe](https://github.com/rust-lang/rust/pull/34756)
7625 * [`mpsc::sync_channel` `Receiver`s return any available message before
7626 reporting a disconnect](https://github.com/rust-lang/rust/pull/34731)
7627 * [Unicode definitions have been updated to 9.0](https://github.com/rust-lang/rust/pull/34599)
7628 * [`env` iterators implement `DoubleEndedIterator`](https://github.com/rust-lang/rust/pull/33312)
7633 * [Support local mirrors of registries](https://github.com/rust-lang/cargo/pull/2857)
7634 * [Add support for command aliases](https://github.com/rust-lang/cargo/pull/2679)
7635 * [Allow `opt-level="s"` / `opt-level="z"` in profile overrides](https://github.com/rust-lang/cargo/pull/3007)
7636 * [Make `cargo doc --open --target` work as expected](https://github.com/rust-lang/cargo/pull/2988)
7637 * [Speed up noop registry updates](https://github.com/rust-lang/cargo/pull/2974)
7638 * [Update OpenSSL](https://github.com/rust-lang/cargo/pull/2971)
7639 * [Fix `--panic=abort` with plugins](https://github.com/rust-lang/cargo/pull/2954)
7640 * [Always pass `-C metadata` to the compiler](https://github.com/rust-lang/cargo/pull/2946)
7641 * [Fix depending on git repos with workspaces](https://github.com/rust-lang/cargo/pull/2938)
7642 * [Add a `--lib` flag to `cargo new`](https://github.com/rust-lang/cargo/pull/2921)
7643 * [Add `http.cainfo` for custom certs](https://github.com/rust-lang/cargo/pull/2917)
7644 * [Indicate the compilation profile after compiling](https://github.com/rust-lang/cargo/pull/2909)
7645 * [Allow enabling features for dependencies with `--features`](https://github.com/rust-lang/cargo/pull/2876)
7646 * [Add `--jobs` flag to `cargo package`](https://github.com/rust-lang/cargo/pull/2867)
7647 * [Add `--dry-run` to `cargo publish`](https://github.com/rust-lang/cargo/pull/2849)
7648 * [Add support for `RUSTDOCFLAGS`](https://github.com/rust-lang/cargo/pull/2794)
7653 * [`panic::catch_unwind` is more optimized](https://github.com/rust-lang/rust/pull/35444)
7654 * [`panic::catch_unwind` no longer accesses thread-local storage on entry](https://github.com/rust-lang/rust/pull/34866)
7659 * [Test binaries now support a `--test-threads` argument to specify the number
7660 of threads used to run tests, and which acts the same as the
7661 `RUST_TEST_THREADS` environment variable](https://github.com/rust-lang/rust/pull/35414)
7662 * [The test runner now emits a warning when tests run over 60 seconds](https://github.com/rust-lang/rust/pull/35405)
7663 * [rustdoc: Fix methods in search results](https://github.com/rust-lang/rust/pull/34752)
7664 * [`rust-lldb` warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
7665 * [Rust releases now come with source packages that can be installed by rustup
7666 via `rustup component add rust-src`](https://github.com/rust-lang/rust/pull/34366).
7667 The resulting source code can be used by tools and IDES, located in the
7668 sysroot under `lib/rustlib/src`.
7673 * [The compiler can now be built against LLVM 3.9](https://github.com/rust-lang/rust/pull/35594)
7674 * Many minor improvements to the documentation.
7675 * [The Rust exception handling "personality" routine is now written in Rust](https://github.com/rust-lang/rust/pull/34832)
7680 * [When printing Windows `OsStr`s, unpaired surrogate codepoints are escaped
7681 with the lowercase format instead of the uppercase](https://github.com/rust-lang/rust/pull/35084)
7682 * [When formatting strings, if "precision" is specified, the "fill",
7683 "align" and "width" specifiers are no longer ignored](https://github.com/rust-lang/rust/pull/34544)
7684 * [The `Debug` impl for strings no longer escapes all non-ASCII characters](https://github.com/rust-lang/rust/pull/34485)
7687 Version 1.11.0 (2016-08-18)
7688 ===========================
7693 * [Support nested `cfg_attr` attributes](https://github.com/rust-lang/rust/pull/34216)
7694 * [Allow statement-generating braced macro invocations at the end of blocks](https://github.com/rust-lang/rust/pull/34436)
7695 * [Macros can be expanded inside of trait definitions](https://github.com/rust-lang/rust/pull/34213)
7696 * [`#[macro_use]` works properly when it is itself expanded from a macro](https://github.com/rust-lang/rust/pull/34032)
7701 * [`BinaryHeap::append`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.append)
7702 * [`BTreeMap::append`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.append)
7703 * [`BTreeMap::split_off`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.split_off)
7704 * [`BTreeSet::append`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.append)
7705 * [`BTreeSet::split_off`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.split_off)
7706 * [`f32::to_degrees`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_degrees)
7707 (in libcore - previously stabilized in libstd)
7708 * [`f32::to_radians`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_radians)
7709 (in libcore - previously stabilized in libstd)
7710 * [`f64::to_degrees`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_degrees)
7711 (in libcore - previously stabilized in libstd)
7712 * [`f64::to_radians`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_radians)
7713 (in libcore - previously stabilized in libstd)
7714 * [`Iterator::sum`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
7715 * [`Iterator::product`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
7716 * [`Cell::get_mut`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.get_mut)
7717 * [`RefCell::get_mut`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.get_mut)
7722 * [The `thread_local!` macro supports multiple definitions in a single
7723 invocation, and can apply attributes](https://github.com/rust-lang/rust/pull/34077)
7724 * [`Cow` implements `Default`](https://github.com/rust-lang/rust/pull/34305)
7725 * [`Wrapping` implements binary, octal, lower-hex and upper-hex
7726 `Display` formatting](https://github.com/rust-lang/rust/pull/34190)
7727 * [The range types implement `Hash`](https://github.com/rust-lang/rust/pull/34180)
7728 * [`lookup_host` ignores unknown address types](https://github.com/rust-lang/rust/pull/34067)
7729 * [`assert_eq!` accepts a custom error message, like `assert!` does](https://github.com/rust-lang/rust/pull/33976)
7730 * [The main thread is now called "main" instead of "<main>"](https://github.com/rust-lang/rust/pull/33803)
7735 * [Disallow specifying features of transitive deps](https://github.com/rust-lang/cargo/pull/2821)
7736 * [Add color support for Windows consoles](https://github.com/rust-lang/cargo/pull/2804)
7737 * [Fix `harness = false` on `[lib]` sections](https://github.com/rust-lang/cargo/pull/2795)
7738 * [Don't panic when `links` contains a '.'](https://github.com/rust-lang/cargo/pull/2787)
7739 * [Build scripts can emit warnings](https://github.com/rust-lang/cargo/pull/2630),
7740 and `-vv` prints warnings for all crates.
7741 * [Ignore file locks on OS X NFS mounts](https://github.com/rust-lang/cargo/pull/2720)
7742 * [Don't warn about `package.metadata` keys](https://github.com/rust-lang/cargo/pull/2668).
7743 This provides room for expansion by arbitrary tools.
7744 * [Add support for cdylib crate types](https://github.com/rust-lang/cargo/pull/2741)
7745 * [Prevent publishing crates when files are dirty](https://github.com/rust-lang/cargo/pull/2781)
7746 * [Don't fetch all crates on clean](https://github.com/rust-lang/cargo/pull/2704)
7747 * [Propagate --color option to rustc](https://github.com/rust-lang/cargo/pull/2779)
7748 * [Fix `cargo doc --open` on Windows](https://github.com/rust-lang/cargo/pull/2780)
7749 * [Improve autocompletion](https://github.com/rust-lang/cargo/pull/2772)
7750 * [Configure colors of stderr as well as stdout](https://github.com/rust-lang/cargo/pull/2739)
7755 * [Caching projections speeds up type check dramatically for some
7756 workloads](https://github.com/rust-lang/rust/pull/33816)
7757 * [The default `HashMap` hasher is SipHash 1-3 instead of SipHash 2-4](https://github.com/rust-lang/rust/pull/33940)
7758 This hasher is faster, but is believed to provide sufficient
7759 protection from collision attacks.
7760 * [Comparison of `Ipv4Addr` is 10x faster](https://github.com/rust-lang/rust/pull/33891)
7765 * [Fix empty implementation section on some module pages](https://github.com/rust-lang/rust/pull/34536)
7766 * [Fix inlined renamed re-exports in import lists](https://github.com/rust-lang/rust/pull/34479)
7767 * [Fix search result layout for enum variants and struct fields](https://github.com/rust-lang/rust/pull/34477)
7768 * [Fix issues with source links to external crates](https://github.com/rust-lang/rust/pull/34387)
7769 * [Fix redirect pages for renamed re-exports](https://github.com/rust-lang/rust/pull/34245)
7774 * [rustc is better at finding the MSVC toolchain](https://github.com/rust-lang/rust/pull/34492)
7775 * [When emitting debug info, rustc emits frame pointers for closures,
7776 shims and glue, as it does for all other functions](https://github.com/rust-lang/rust/pull/33909)
7777 * [rust-lldb warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
7778 * Many more errors have been given error codes and extended
7780 * API documentation continues to be improved, with many new examples
7785 * [rustc no longer hangs when dependencies recursively re-export
7786 submodules](https://github.com/rust-lang/rust/pull/34542)
7787 * [rustc requires LLVM 3.7+](https://github.com/rust-lang/rust/pull/34104)
7788 * [The 'How Safe and Unsafe Interact' chapter of The Rustonomicon was
7789 rewritten](https://github.com/rust-lang/rust/pull/33895)
7790 * [rustc support 16-bit pointer sizes](https://github.com/rust-lang/rust/pull/33460).
7791 No targets use this yet, but it works toward AVR support.
7796 * [`const`s and `static`s may not have unsized types](https://github.com/rust-lang/rust/pull/34443)
7797 * [The new follow-set rules that place restrictions on `macro_rules!`
7798 in order to ensure syntax forward-compatibility have been enabled](https://github.com/rust-lang/rust/pull/33982)
7799 This was an [amendment to RFC 550](https://github.com/rust-lang/rfcs/pull/1384),
7800 and has been a warning since 1.10.
7801 * [`cfg` attribute process has been refactored to fix various bugs](https://github.com/rust-lang/rust/pull/33706).
7802 This causes breakage in some corner cases.
7805 Version 1.10.0 (2016-07-07)
7806 ===========================
7811 * [`Copy` types are required to have a trivial implementation of `Clone`](https://github.com/rust-lang/rust/pull/33420).
7812 [RFC 1521](https://github.com/rust-lang/rfcs/blob/master/text/1521-copy-clone-semantics.md).
7813 * [Single-variant enums support the `#[repr(..)]` attribute](https://github.com/rust-lang/rust/pull/33355).
7814 * [Fix `#[derive(RustcEncodable)]` in the presence of other `encode` methods](https://github.com/rust-lang/rust/pull/32908).
7815 * [`panic!` can be converted to a runtime abort with the
7816 `-C panic=abort` flag](https://github.com/rust-lang/rust/pull/32900).
7817 [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
7818 * [Add a new crate type, 'cdylib'](https://github.com/rust-lang/rust/pull/33553).
7819 cdylibs are dynamic libraries suitable for loading by non-Rust hosts.
7820 [RFC 1510](https://github.com/rust-lang/rfcs/blob/master/text/1510-cdylib.md).
7821 Note that Cargo does not yet directly support cdylibs.
7826 * `os::windows::fs::OpenOptionsExt::access_mode`
7827 * `os::windows::fs::OpenOptionsExt::share_mode`
7828 * `os::windows::fs::OpenOptionsExt::custom_flags`
7829 * `os::windows::fs::OpenOptionsExt::attributes`
7830 * `os::windows::fs::OpenOptionsExt::security_qos_flags`
7831 * `os::unix::fs::OpenOptionsExt::custom_flags`
7832 * [`sync::Weak::new`](http://doc.rust-lang.org/alloc/arc/struct.Weak.html#method.new)
7833 * `Default for sync::Weak`
7834 * [`panic::set_hook`](http://doc.rust-lang.org/std/panic/fn.set_hook.html)
7835 * [`panic::take_hook`](http://doc.rust-lang.org/std/panic/fn.take_hook.html)
7836 * [`panic::PanicInfo`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html)
7837 * [`panic::PanicInfo::payload`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.payload)
7838 * [`panic::PanicInfo::location`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.location)
7839 * [`panic::Location`](http://doc.rust-lang.org/std/panic/struct.Location.html)
7840 * [`panic::Location::file`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.file)
7841 * [`panic::Location::line`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.line)
7842 * [`ffi::CStr::from_bytes_with_nul`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul)
7843 * [`ffi::CStr::from_bytes_with_nul_unchecked`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked)
7844 * [`ffi::FromBytesWithNulError`](http://doc.rust-lang.org/std/ffi/struct.FromBytesWithNulError.html)
7845 * [`fs::Metadata::modified`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.modified)
7846 * [`fs::Metadata::accessed`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.accessed)
7847 * [`fs::Metadata::created`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.created)
7848 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
7849 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
7850 * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
7851 * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
7852 * [`SocketAddr::is_unnamed`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.is_unnamed)
7853 * [`SocketAddr::as_pathname`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.as_pathname)
7854 * [`UnixStream::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.connect)
7855 * [`UnixStream::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.pair)
7856 * [`UnixStream::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.try_clone)
7857 * [`UnixStream::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.local_addr)
7858 * [`UnixStream::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.peer_addr)
7859 * [`UnixStream::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
7860 * [`UnixStream::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
7861 * [`UnixStream::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
7862 * [`UnixStream::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
7863 * [`UnixStream::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.set_nonblocking)
7864 * [`UnixStream::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.take_error)
7865 * [`UnixStream::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.shutdown)
7866 * Read/Write/RawFd impls for `UnixStream`
7867 * [`UnixListener::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.bind)
7868 * [`UnixListener::accept`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.accept)
7869 * [`UnixListener::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.try_clone)
7870 * [`UnixListener::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.local_addr)
7871 * [`UnixListener::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.set_nonblocking)
7872 * [`UnixListener::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.take_error)
7873 * [`UnixListener::incoming`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.incoming)
7874 * RawFd impls for `UnixListener`
7875 * [`UnixDatagram::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.bind)
7876 * [`UnixDatagram::unbound`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.unbound)
7877 * [`UnixDatagram::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.pair)
7878 * [`UnixDatagram::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.connect)
7879 * [`UnixDatagram::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.try_clone)
7880 * [`UnixDatagram::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.local_addr)
7881 * [`UnixDatagram::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.peer_addr)
7882 * [`UnixDatagram::recv_from`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv_from)
7883 * [`UnixDatagram::recv`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv)
7884 * [`UnixDatagram::send_to`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send_to)
7885 * [`UnixDatagram::send`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send)
7886 * [`UnixDatagram::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_read_timeout)
7887 * [`UnixDatagram::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_write_timeout)
7888 * [`UnixDatagram::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.read_timeout)
7889 * [`UnixDatagram::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.write_timeout)
7890 * [`UnixDatagram::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_nonblocking)
7891 * [`UnixDatagram::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.take_error)
7892 * [`UnixDatagram::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.shutdown)
7893 * RawFd impls for `UnixDatagram`
7894 * `{BTree,Hash}Map::values_mut`
7895 * [`<[_]>::binary_search_by_key`](http://doc.rust-lang.org/std/primitive.slice.html#method.binary_search_by_key)
7900 * [The `abs_sub` method of floats is deprecated](https://github.com/rust-lang/rust/pull/33664).
7901 The semantics of this minor method are subtle and probably not what
7903 * [Add implementation of Ord for Cell<T> and RefCell<T> where T: Ord](https://github.com/rust-lang/rust/pull/33306).
7904 * [On Linux, if `HashMap`s can't be initialized with `getrandom` they
7905 will fall back to `/dev/urandom` temporarily to avoid blocking
7906 during early boot](https://github.com/rust-lang/rust/pull/33086).
7907 * [Implemented negation for wrapping numerals](https://github.com/rust-lang/rust/pull/33067).
7908 * [Implement `Clone` for `binary_heap::IntoIter`](https://github.com/rust-lang/rust/pull/33050).
7909 * [Implement `Display` and `Hash` for `std::num::Wrapping`](https://github.com/rust-lang/rust/pull/33023).
7910 * [Add `Default` implementation for `&CStr`, `CString`](https://github.com/rust-lang/rust/pull/32990).
7911 * [Implement `From<Vec<T>>` and `Into<Vec<T>>` for `VecDeque<T>`](https://github.com/rust-lang/rust/pull/32866).
7912 * [Implement `Default` for `UnsafeCell`, `fmt::Error`, `Condvar`,
7913 `Mutex`, `RwLock`](https://github.com/rust-lang/rust/pull/32785).
7917 * [Cargo.toml supports the `profile.*.panic` option](https://github.com/rust-lang/cargo/pull/2687).
7918 This controls the runtime behavior of the `panic!` macro
7919 and can be either "unwind" (the default), or "abort".
7920 [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
7921 * [Don't throw away errors with `-p` arguments](https://github.com/rust-lang/cargo/pull/2723).
7922 * [Report status to stderr instead of stdout](https://github.com/rust-lang/cargo/pull/2693).
7923 * [Build scripts are passed a `CARGO_MANIFEST_LINKS` environment
7924 variable that corresponds to the `links` field of the manifest](https://github.com/rust-lang/cargo/pull/2710).
7925 * [Ban keywords from crate names](https://github.com/rust-lang/cargo/pull/2707).
7926 * [Canonicalize `CARGO_HOME` on Windows](https://github.com/rust-lang/cargo/pull/2604).
7927 * [Retry network requests](https://github.com/rust-lang/cargo/pull/2396).
7928 By default they are retried twice, which can be customized with the
7929 `net.retry` value in `.cargo/config`.
7930 * [Don't print extra error info for failing subcommands](https://github.com/rust-lang/cargo/pull/2674).
7931 * [Add `--force` flag to `cargo install`](https://github.com/rust-lang/cargo/pull/2405).
7932 * [Don't use `flock` on NFS mounts](https://github.com/rust-lang/cargo/pull/2623).
7933 * [Prefer building `cargo install` artifacts in temporary directories](https://github.com/rust-lang/cargo/pull/2610).
7934 Makes it possible to install multiple crates in parallel.
7935 * [Add `cargo test --doc`](https://github.com/rust-lang/cargo/pull/2578).
7936 * [Add `cargo --explain`](https://github.com/rust-lang/cargo/pull/2551).
7937 * [Don't print warnings when `-q` is passed](https://github.com/rust-lang/cargo/pull/2576).
7938 * [Add `cargo doc --lib` and `--bin`](https://github.com/rust-lang/cargo/pull/2577).
7939 * [Don't require build script output to be UTF-8](https://github.com/rust-lang/cargo/pull/2560).
7940 * [Correctly attempt multiple git usernames](https://github.com/rust-lang/cargo/pull/2584).
7945 * [rustc memory usage was reduced by refactoring the context used for
7946 type checking](https://github.com/rust-lang/rust/pull/33425).
7947 * [Speed up creation of `HashMap`s by caching the random keys used
7948 to initialize the hash state](https://github.com/rust-lang/rust/pull/33318).
7949 * [The `find` implementation for `Chain` iterators is 2x faster](https://github.com/rust-lang/rust/pull/33289).
7950 * [Trait selection optimizations speed up type checking by 15%](https://github.com/rust-lang/rust/pull/33138).
7951 * [Efficient trie lookup for boolean Unicode properties](https://github.com/rust-lang/rust/pull/33098).
7952 10x faster than the previous lookup tables.
7953 * [Special case `#[derive(Copy, Clone)]` to avoid bloat](https://github.com/rust-lang/rust/pull/31414).
7958 * Many incremental improvements to documentation and rustdoc.
7959 * [rustdoc: List blanket trait impls](https://github.com/rust-lang/rust/pull/33514).
7960 * [rustdoc: Clean up ABI rendering](https://github.com/rust-lang/rust/pull/33151).
7961 * [Indexing with the wrong type produces a more informative error](https://github.com/rust-lang/rust/pull/33401).
7962 * [Improve diagnostics for constants being used in irrefutable patterns](https://github.com/rust-lang/rust/pull/33406).
7963 * [When many method candidates are in scope limit the suggestions to 10](https://github.com/rust-lang/rust/pull/33338).
7964 * [Remove confusing suggestion when calling a `fn` type](https://github.com/rust-lang/rust/pull/33325).
7965 * [Do not suggest changing `&mut self` to `&mut mut self`](https://github.com/rust-lang/rust/pull/33319).
7970 * [Update i686-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33651).
7971 * [Update aarch64-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33500).
7972 * [`std` no longer prints backtraces on platforms where the running
7973 module must be loaded with `env::current_exe`, which can't be relied
7974 on](https://github.com/rust-lang/rust/pull/33554).
7975 * This release includes std binaries for the i586-unknown-linux-gnu,
7976 i686-unknown-linux-musl, and armv7-linux-androideabi targets. The
7977 i586 target is for old x86 hardware without SSE2, and the armv7
7978 target is for Android running on modern ARM architectures.
7979 * [The `rust-gdb` and `rust-lldb` scripts are distributed on all
7980 Unix platforms](https://github.com/rust-lang/rust/pull/32835).
7981 * [On Unix the runtime aborts by calling `libc::abort` instead of
7982 generating an illegal instruction](https://github.com/rust-lang/rust/pull/31457).
7983 * [Rust is now bootstrapped from the previous release of Rust,
7984 instead of a snapshot from an arbitrary commit](https://github.com/rust-lang/rust/pull/32942).
7989 * [`AtomicBool` is now bool-sized, not word-sized](https://github.com/rust-lang/rust/pull/33579).
7990 * [`target_env` for Linux ARM targets is just `gnu`, not
7991 `gnueabihf`, `gnueabi`, etc](https://github.com/rust-lang/rust/pull/33403).
7992 * [Consistently panic on overflow in `Duration::new`](https://github.com/rust-lang/rust/pull/33072).
7993 * [Change `String::truncate` to panic less](https://github.com/rust-lang/rust/pull/32977).
7994 * [Add `:block` to the follow set for `:ty` and `:path`](https://github.com/rust-lang/rust/pull/32945).
7995 Affects how macros are parsed.
7996 * [Fix macro hygiene bug](https://github.com/rust-lang/rust/pull/32923).
7997 * [Feature-gated attributes on macro-generated macro invocations are
7998 now rejected](https://github.com/rust-lang/rust/pull/32791).
7999 * [Suppress fallback and ambiguity errors during type inference](https://github.com/rust-lang/rust/pull/32258).
8000 This caused some minor changes to type inference.
8003 Version 1.9.0 (2016-05-26)
8004 ==========================
8009 * The `#[deprecated]` attribute when applied to an API will generate
8010 warnings when used. The warnings may be suppressed with
8011 `#[allow(deprecated)]`. [RFC 1270].
8012 * [`fn` item types are zero sized, and each `fn` names a unique
8013 type][1.9fn]. This will break code that transmutes `fn`s, so calling
8014 `transmute` on a `fn` type will generate a warning for a few cycles,
8015 then will be converted to an error.
8016 * [Field and method resolution understand visibility, so private
8017 fields and methods cannot prevent the proper use of public fields
8018 and methods][1.9fv].
8019 * [The parser considers unicode codepoints in the
8020 `PATTERN_WHITE_SPACE` category to be whitespace][1.9ws].
8026 * [`std::panic::catch_unwind`] (renamed from `recover`)
8027 * [`std::panic::resume_unwind`] (renamed from `propagate`)
8028 * [`std::panic::AssertUnwindSafe`] (renamed from `AssertRecoverSafe`)
8029 * [`std::panic::UnwindSafe`] (renamed from `RecoverSafe`)
8030 * [`str::is_char_boundary`]
8031 * [`<*const T>::as_ref`]
8032 * [`<*mut T>::as_ref`]
8033 * [`<*mut T>::as_mut`]
8034 * [`AsciiExt::make_ascii_uppercase`]
8035 * [`AsciiExt::make_ascii_lowercase`]
8036 * [`char::decode_utf16`]
8037 * [`char::DecodeUtf16`]
8038 * [`char::DecodeUtf16Error`]
8039 * [`char::DecodeUtf16Error::unpaired_surrogate`]
8040 * [`BTreeSet::take`]
8041 * [`BTreeSet::replace`]
8044 * [`HashSet::replace`]
8046 * [`OsString::with_capacity`]
8047 * [`OsString::clear`]
8048 * [`OsString::capacity`]
8049 * [`OsString::reserve`]
8050 * [`OsString::reserve_exact`]
8051 * [`OsStr::is_empty`]
8053 * [`std::os::unix::thread`]
8056 * [`JoinHandleExt::as_pthread_t`]
8057 * [`JoinHandleExt::into_pthread_t`]
8058 * [`HashSet::hasher`]
8059 * [`HashMap::hasher`]
8060 * [`CommandExt::exec`]
8061 * [`File::try_clone`]
8062 * [`SocketAddr::set_ip`]
8063 * [`SocketAddr::set_port`]
8064 * [`SocketAddrV4::set_ip`]
8065 * [`SocketAddrV4::set_port`]
8066 * [`SocketAddrV6::set_ip`]
8067 * [`SocketAddrV6::set_port`]
8068 * [`SocketAddrV6::set_flowinfo`]
8069 * [`SocketAddrV6::set_scope_id`]
8070 * [`slice::copy_from_slice`]
8071 * [`ptr::read_volatile`]
8072 * [`ptr::write_volatile`]
8073 * [`OpenOptions::create_new`]
8074 * [`TcpStream::set_nodelay`]
8075 * [`TcpStream::nodelay`]
8076 * [`TcpStream::set_ttl`]
8077 * [`TcpStream::ttl`]
8078 * [`TcpStream::set_only_v6`]
8079 * [`TcpStream::only_v6`]
8080 * [`TcpStream::take_error`]
8081 * [`TcpStream::set_nonblocking`]
8082 * [`TcpListener::set_ttl`]
8083 * [`TcpListener::ttl`]
8084 * [`TcpListener::set_only_v6`]
8085 * [`TcpListener::only_v6`]
8086 * [`TcpListener::take_error`]
8087 * [`TcpListener::set_nonblocking`]
8088 * [`UdpSocket::set_broadcast`]
8089 * [`UdpSocket::broadcast`]
8090 * [`UdpSocket::set_multicast_loop_v4`]
8091 * [`UdpSocket::multicast_loop_v4`]
8092 * [`UdpSocket::set_multicast_ttl_v4`]
8093 * [`UdpSocket::multicast_ttl_v4`]
8094 * [`UdpSocket::set_multicast_loop_v6`]
8095 * [`UdpSocket::multicast_loop_v6`]
8096 * [`UdpSocket::set_multicast_ttl_v6`]
8097 * [`UdpSocket::multicast_ttl_v6`]
8098 * [`UdpSocket::set_ttl`]
8099 * [`UdpSocket::ttl`]
8100 * [`UdpSocket::set_only_v6`]
8101 * [`UdpSocket::only_v6`]
8102 * [`UdpSocket::join_multicast_v4`]
8103 * [`UdpSocket::join_multicast_v6`]
8104 * [`UdpSocket::leave_multicast_v4`]
8105 * [`UdpSocket::leave_multicast_v6`]
8106 * [`UdpSocket::take_error`]
8107 * [`UdpSocket::connect`]
8108 * [`UdpSocket::send`]
8109 * [`UdpSocket::recv`]
8110 * [`UdpSocket::set_nonblocking`]
8115 * [`std::sync::Once` is poisoned if its initialization function
8117 * [`cell::Ref` and `cell::RefMut` can contain unsized types][1.9cu].
8118 * [Most types implement `fmt::Debug`][1.9db].
8119 * [The default buffer size used by `BufReader` and `BufWriter` was
8120 reduced to 8K, from 64K][1.9bf]. This is in line with the buffer size
8121 used by other languages.
8122 * [`Instant`, `SystemTime` and `Duration` implement `+=` and `-=`.
8123 `Duration` additionally implements `*=` and `/=`][1.9ta].
8124 * [`Skip` is a `DoubleEndedIterator`][1.9sk].
8125 * [`From<[u8; 4]>` is implemented for `Ipv4Addr`][1.9fi].
8126 * [`Chain` implements `BufRead`][1.9ch].
8127 * [`HashMap`, `HashSet` and iterators are covariant][1.9hc].
8132 * [Cargo can now run concurrently][1.9cc].
8133 * [Top-level overrides allow specific revisions of crates to be
8134 overridden through the entire crate graph][1.9ct]. This is intended
8135 to make upgrades easier for large projects, by allowing crates to be
8136 forked temporarily until they've been upgraded and republished.
8137 * [Cargo exports a `CARGO_PKG_AUTHORS` environment variable][1.9cp].
8138 * [Cargo will pass the contents of the `RUSTFLAGS` variable to `rustc`
8139 on the commandline][1.9cf]. `rustc` arguments can also be specified
8140 in the `build.rustflags` configuration key.
8145 * [The time complexity of comparing variables for equivalence during type
8146 unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads
8147 to major compilation time improvement in some scenarios.
8148 * [`ToString` is specialized for `str`, giving it the same performance
8149 as `to_owned`][1.9ts].
8150 * [Spawning processes with `Command::output` no longer creates extra
8152 * [`#[derive(PartialEq)]` and `#[derive(PartialOrd)]` emit less code
8153 for C-like enums][1.9cl].
8158 * [Passing the `--quiet` flag to a test runner will produce
8159 much-abbreviated output][1.9q].
8160 * The Rust Project now publishes std binaries for the
8161 `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`, and
8162 `i586-pc-windows-msvc` targets.
8167 * [`std::sync::Once` is poisoned if its initialization function
8169 * [It is illegal to define methods with the same name in overlapping
8170 inherent `impl` blocks][1.9sn].
8171 * [`fn` item types are zero sized, and each `fn` names a unique
8172 type][1.9fn]. This will break code that transmutes `fn`s, so calling
8173 `transmute` on a `fn` type will generate a warning for a few cycles,
8174 then will be converted to an error.
8175 * [Improvements to const evaluation may trigger new errors when integer
8176 literals are out of range][1.9ce].
8179 [1.9bf]: https://github.com/rust-lang/rust/pull/32695
8180 [1.9cc]: https://github.com/rust-lang/cargo/pull/2486
8181 [1.9ce]: https://github.com/rust-lang/rust/pull/30587
8182 [1.9cf]: https://github.com/rust-lang/cargo/pull/2241
8183 [1.9ch]: https://github.com/rust-lang/rust/pull/32541
8184 [1.9cl]: https://github.com/rust-lang/rust/pull/31977
8185 [1.9cp]: https://github.com/rust-lang/cargo/pull/2465
8186 [1.9ct]: https://github.com/rust-lang/cargo/pull/2385
8187 [1.9cu]: https://github.com/rust-lang/rust/pull/32652
8188 [1.9db]: https://github.com/rust-lang/rust/pull/32054
8189 [1.9fi]: https://github.com/rust-lang/rust/pull/32050
8190 [1.9fn]: https://github.com/rust-lang/rust/pull/31710
8191 [1.9fv]: https://github.com/rust-lang/rust/pull/31938
8192 [1.9hc]: https://github.com/rust-lang/rust/pull/32635
8193 [1.9o]: https://github.com/rust-lang/rust/pull/32325
8194 [1.9q]: https://github.com/rust-lang/rust/pull/31887
8195 [1.9sk]: https://github.com/rust-lang/rust/pull/31700
8196 [1.9sn]: https://github.com/rust-lang/rust/pull/31925
8197 [1.9sp]: https://github.com/rust-lang/rust/pull/31618
8198 [1.9ta]: https://github.com/rust-lang/rust/pull/32448
8199 [1.9ts]: https://github.com/rust-lang/rust/pull/32586
8200 [1.9tu]: https://github.com/rust-lang/rust/pull/32062
8201 [1.9ws]: https://github.com/rust-lang/rust/pull/29734
8202 [RFC 1270]: https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
8203 [`<*const T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
8204 [`<*mut T>::as_mut`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_mut
8205 [`<*mut T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
8206 [`slice::copy_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.copy_from_slice
8207 [`AsciiExt::make_ascii_lowercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase
8208 [`AsciiExt::make_ascii_uppercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase
8209 [`BTreeSet::get`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.get
8210 [`BTreeSet::replace`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.replace
8211 [`BTreeSet::take`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.take
8212 [`CommandExt::exec`]: http://doc.rust-lang.org/nightly/std/os/unix/process/trait.CommandExt.html#tymethod.exec
8213 [`File::try_clone`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.try_clone
8214 [`HashMap::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.hasher
8215 [`HashSet::get`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.get
8216 [`HashSet::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.hasher
8217 [`HashSet::replace`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.replace
8218 [`HashSet::take`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.take
8219 [`JoinHandleExt::as_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.as_pthread_t
8220 [`JoinHandleExt::into_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.into_pthread_t
8221 [`JoinHandleExt`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html
8222 [`OpenOptions::create_new`]: http://doc.rust-lang.org/nightly/std/fs/struct.OpenOptions.html#method.create_new
8223 [`OsStr::is_empty`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.is_empty
8224 [`OsStr::len`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.len
8225 [`OsString::capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.capacity
8226 [`OsString::clear`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.clear
8227 [`OsString::reserve_exact`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve_exact
8228 [`OsString::reserve`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve
8229 [`OsString::with_capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.with_capacity
8230 [`RawPthread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/type.RawPthread.html
8231 [`SocketAddr::set_ip`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_ip
8232 [`SocketAddr::set_port`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_port
8233 [`SocketAddrV4::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_ip
8234 [`SocketAddrV4::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_port
8235 [`SocketAddrV6::set_flowinfo`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_flowinfo
8236 [`SocketAddrV6::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_ip
8237 [`SocketAddrV6::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_port
8238 [`SocketAddrV6::set_scope_id`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_scope_id
8239 [`TcpListener::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
8240 [`TcpListener::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
8241 [`TcpListener::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
8242 [`TcpListener::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
8243 [`TcpListener::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
8244 [`TcpListener::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
8245 [`TcpStream::nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.nodelay
8246 [`TcpStream::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
8247 [`TcpStream::set_nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nodelay
8248 [`TcpStream::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
8249 [`TcpStream::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
8250 [`TcpStream::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
8251 [`TcpStream::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
8252 [`TcpStream::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
8253 [`UdpSocket::broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.broadcast
8254 [`UdpSocket::connect`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.connect
8255 [`UdpSocket::join_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v4
8256 [`UdpSocket::join_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v6
8257 [`UdpSocket::leave_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v4
8258 [`UdpSocket::leave_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v6
8259 [`UdpSocket::multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v4
8260 [`UdpSocket::multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v6
8261 [`UdpSocket::multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v4
8262 [`UdpSocket::multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v6
8263 [`UdpSocket::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.only_v6
8264 [`UdpSocket::recv`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.recv
8265 [`UdpSocket::send`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.send
8266 [`UdpSocket::set_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_broadcast
8267 [`UdpSocket::set_multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v4
8268 [`UdpSocket::set_multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v6
8269 [`UdpSocket::set_multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v4
8270 [`UdpSocket::set_multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v6
8271 [`UdpSocket::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_nonblocking
8272 [`UdpSocket::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_only_v6
8273 [`UdpSocket::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_ttl
8274 [`UdpSocket::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.take_error
8275 [`UdpSocket::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.ttl
8276 [`char::DecodeUtf16Error::unpaired_surrogate`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html#method.unpaired_surrogate
8277 [`char::DecodeUtf16Error`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html
8278 [`char::DecodeUtf16`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16.html
8279 [`char::decode_utf16`]: http://doc.rust-lang.org/nightly/std/char/fn.decode_utf16.html
8280 [`ptr::read_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.read_volatile.html
8281 [`ptr::write_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.write_volatile.html
8282 [`std::os::unix::thread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/index.html
8283 [`std::panic::AssertUnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/struct.AssertUnwindSafe.html
8284 [`std::panic::UnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html
8285 [`std::panic::catch_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.catch_unwind.html
8286 [`std::panic::resume_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.resume_unwind.html
8287 [`std::panic`]: http://doc.rust-lang.org/nightly/std/panic/index.html
8288 [`str::is_char_boundary`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary
8291 Version 1.8.0 (2016-04-14)
8292 ==========================
8297 * Rust supports overloading of compound assignment statements like
8298 `+=` by implementing the [`AddAssign`], [`SubAssign`],
8299 [`MulAssign`], [`DivAssign`], [`RemAssign`], [`BitAndAssign`],
8300 [`BitOrAssign`], [`BitXorAssign`], [`ShlAssign`], or [`ShrAssign`]
8302 * Empty structs can be defined with braces, as in `struct Foo { }`, in
8303 addition to the non-braced form, `struct Foo;`. [RFC 218].
8309 * [`str::encode_utf16`] (renamed from `utf16_units`)
8310 * [`str::EncodeUtf16`] (renamed from `Utf16Units`)
8313 * [`ptr::drop_in_place`]
8315 * [`time::SystemTime`]
8317 * [`Instant::duration_since`] (renamed from `duration_from_earlier`)
8318 * [`Instant::elapsed`]
8319 * [`SystemTime::now`]
8320 * [`SystemTime::duration_since`] (renamed from `duration_from_earlier`)
8321 * [`SystemTime::elapsed`]
8322 * Various `Add`/`Sub` impls for `Time` and `SystemTime`
8323 * [`SystemTimeError`]
8324 * [`SystemTimeError::duration`]
8325 * Various impls for `SystemTimeError`
8327 * [`AddAssign`], [`SubAssign`], [`MulAssign`], [`DivAssign`],
8328 [`RemAssign`], [`BitAndAssign`], [`BitOrAssign`],
8329 [`BitXorAssign`], [`ShlAssign`], [`ShrAssign`].
8330 * [The `write!` and `writeln!` macros correctly emit errors if any of
8331 their arguments can't be formatted][1.8w].
8332 * [Various I/O functions support large files on 32-bit Linux][1.8l].
8333 * [The Unix-specific `raw` modules, which contain a number of
8334 redefined C types are deprecated][1.8r], including `os::raw::unix`,
8335 `os::raw::macos`, and `os::raw::linux`. These modules defined types
8336 such as `ino_t` and `dev_t`. The inconsistency of these definitions
8337 across platforms was making it difficult to implement `std`
8338 correctly. Those that need these definitions should use the `libc`
8340 * The Unix-specific `MetadataExt` traits, including
8341 `os::unix::fs::MetadataExt`, which expose values such as inode
8342 numbers [no longer return platform-specific types][1.8r], but
8343 instead return widened integers. [RFC 1415].
8344 * [`btree_set::{IntoIter, Iter, Range}` are covariant][1.8cv].
8345 * [Atomic loads and stores are not volatile][1.8a].
8346 * [All types in `sync::mpsc` implement `fmt::Debug`][1.8mp].
8351 * [Inlining hash functions lead to a 3% compile-time improvement in
8352 some workloads][1.8h].
8353 * When using jemalloc, its symbols are [unprefixed so that it
8354 overrides the libc malloc implementation][1.8h]. This means that for
8355 rustc, LLVM is now using jemalloc, which results in a 6%
8356 compile-time improvement on a specific workload.
8357 * [Avoid quadratic growth in function size due to cleanups][1.8cu].
8362 * [32-bit MSVC builds finally implement unwinding][1.8ms].
8363 i686-pc-windows-msvc is now considered a tier-1 platform.
8364 * [The `--print targets` flag prints a list of supported targets][1.8t].
8365 * [The `--print cfg` flag prints the `cfg`s defined for the current
8367 * [`rustc` can be built with an new Cargo-based build system, written
8368 in Rust][1.8b]. It will eventually replace Rust's Makefile-based
8369 build system. To enable it configure with `configure --rustbuild`.
8370 * [Errors for non-exhaustive `match` patterns now list up to 3 missing
8371 variants while also indicating the total number of missing variants
8372 if more than 3][1.8m].
8373 * [Executable stacks are disabled on Linux and BSD][1.8nx].
8374 * The Rust Project now publishes binary releases of the standard
8375 library for a number of tier-2 targets:
8376 `armv7-unknown-linux-gnueabihf`, `powerpc-unknown-linux-gnu`,
8377 `powerpc64-unknown-linux-gnu`, `powerpc64le-unknown-linux-gnu`
8378 `x86_64-rumprun-netbsd`. These can be installed with
8379 tools such as [multirust][1.8mr].
8384 * [`cargo init` creates a new Cargo project in the current
8385 directory][1.8ci]. It is otherwise like `cargo new`.
8386 * [Cargo has configuration keys for `-v` and
8387 `--color`][1.8cc]. `verbose` and `color`, respectively, go in the
8388 `[term]` section of `.cargo/config`.
8389 * [Configuration keys that evaluate to strings or integers can be set
8390 via environment variables][1.8ce]. For example the `build.jobs` key
8391 can be set via `CARGO_BUILD_JOBS`. Environment variables take
8392 precedence over config files.
8393 * [Target-specific dependencies support Rust `cfg` syntax for
8394 describing targets][1.8cfg] so that dependencies for multiple
8395 targets can be specified together. [RFC 1361].
8396 * [The environment variables `CARGO_TARGET_ROOT`, `RUSTC`, and
8397 `RUSTDOC` take precedence over the `build.target-dir`,
8398 `build.rustc`, and `build.rustdoc` configuration values][1.8cfv].
8399 * [The child process tree is killed on Windows when Cargo is
8401 * [The `build.target` configuration value sets the target platform,
8402 like `--target`][1.8ct].
8407 * [Unstable compiler flags have been further restricted][1.8u]. Since
8408 1.0 `-Z` flags have been considered unstable, and other flags that
8409 were considered unstable additionally required passing `-Z
8410 unstable-options` to access. Unlike unstable language and library
8411 features though, these options have been accessible on the stable
8412 release channel. Going forward, *new unstable flags will not be
8413 available on the stable release channel*, and old unstable flags
8414 will warn about their usage. In the future, all unstable flags will
8415 be unavailable on the stable release channel.
8416 * [It is no longer possible to `match` on empty enum variants using
8417 the `Variant(..)` syntax][1.8v]. This has been a warning since 1.6.
8418 * The Unix-specific `MetadataExt` traits, including
8419 `os::unix::fs::MetadataExt`, which expose values such as inode
8420 numbers [no longer return platform-specific types][1.8r], but
8421 instead return widened integers. [RFC 1415].
8422 * [Modules sourced from the filesystem cannot appear within arbitrary
8423 blocks, but only within other modules][1.8mf].
8424 * [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
8425 * On Unix, [stack overflow triggers a runtime abort instead of a
8427 * [`Command::spawn` and its equivalents return an error if any of
8428 its command-line arguments contain interior `NUL`s][1.8n].
8429 * [Tuple and unit enum variants from other crates are in the type
8431 * [On Windows `rustc` emits `.lib` files for the `staticlib` library
8432 type instead of `.a` files][1.8st]. Additionally, for the MSVC
8433 toolchain, `rustc` emits import libraries named `foo.dll.lib`
8434 instead of `foo.lib`.
8437 [1.8a]: https://github.com/rust-lang/rust/pull/30962
8438 [1.8b]: https://github.com/rust-lang/rust/pull/31123
8439 [1.8c]: https://github.com/rust-lang/rust/pull/31530
8440 [1.8cc]: https://github.com/rust-lang/cargo/pull/2397
8441 [1.8ce]: https://github.com/rust-lang/cargo/pull/2398
8442 [1.8cf]: https://github.com/rust-lang/rust/pull/31278
8443 [1.8cfg]: https://github.com/rust-lang/cargo/pull/2328
8444 [1.8ci]: https://github.com/rust-lang/cargo/pull/2081
8445 [1.8ck]: https://github.com/rust-lang/cargo/pull/2370
8446 [1.8ct]: https://github.com/rust-lang/cargo/pull/2335
8447 [1.8cu]: https://github.com/rust-lang/rust/pull/31390
8448 [1.8cfv]: https://github.com/rust-lang/cargo/issues/2365
8449 [1.8cv]: https://github.com/rust-lang/rust/pull/30998
8450 [1.8h]: https://github.com/rust-lang/rust/pull/31460
8451 [1.8l]: https://github.com/rust-lang/rust/pull/31668
8452 [1.8m]: https://github.com/rust-lang/rust/pull/31020
8453 [1.8mf]: https://github.com/rust-lang/rust/pull/31534
8454 [1.8mp]: https://github.com/rust-lang/rust/pull/30894
8455 [1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
8456 [1.8ms]: https://github.com/rust-lang/rust/pull/30448
8457 [1.8n]: https://github.com/rust-lang/rust/pull/31056
8458 [1.8nx]: https://github.com/rust-lang/rust/pull/30859
8459 [1.8r]: https://github.com/rust-lang/rust/pull/31551
8460 [1.8so]: https://github.com/rust-lang/rust/pull/31333
8461 [1.8st]: https://github.com/rust-lang/rust/pull/29520
8462 [1.8t]: https://github.com/rust-lang/rust/pull/31358
8463 [1.8tn]: https://github.com/rust-lang/rust/pull/30882
8464 [1.8u]: https://github.com/rust-lang/rust/pull/31793
8465 [1.8v]: https://github.com/rust-lang/rust/pull/31757
8466 [1.8w]: https://github.com/rust-lang/rust/pull/31904
8467 [RFC 1361]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md
8468 [RFC 1415]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md
8469 [RFC 218]: https://github.com/rust-lang/rfcs/blob/master/text/0218-empty-struct-with-braces.md
8470 [RFC 953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md
8471 [`AddAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.AddAssign.html
8472 [`BitAndAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitAndAssign.html
8473 [`BitOrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitOrAssign.html
8474 [`BitXorAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitXorAssign.html
8475 [`DivAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.DivAssign.html
8476 [`Instant::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.duration_since
8477 [`Instant::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.elapsed
8478 [`Instant::now`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.now
8479 [`MulAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.MulAssign.html
8480 [`Ref::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.Ref.html#method.map
8481 [`RefMut::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map
8482 [`RemAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.RemAssign.html
8483 [`ShlAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShlAssign.html
8484 [`ShrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShrAssign.html
8485 [`SubAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.SubAssign.html
8486 [`SystemTime::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.duration_since
8487 [`SystemTime::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.elapsed
8488 [`SystemTime::now`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.now
8489 [`SystemTimeError::duration`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html#method.duration
8490 [`SystemTimeError`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html
8491 [`UNIX_EPOCH`]: http://doc.rust-lang.org/nightly/std/time/constant.UNIX_EPOCH.html
8492 [`ptr::drop_in_place`]: http://doc.rust-lang.org/nightly/std/ptr/fn.drop_in_place.html
8493 [`str::EncodeUtf16`]: http://doc.rust-lang.org/nightly/std/str/struct.EncodeUtf16.html
8494 [`str::encode_utf16`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16
8495 [`time::Instant`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html
8496 [`time::SystemTime`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html
8499 Version 1.7.0 (2016-03-03)
8500 ==========================
8507 * [`Path::strip_prefix`] (renamed from relative_from)
8508 * [`path::StripPrefixError`] (new error type returned from strip_prefix)
8510 * [`Ipv4Addr::is_loopback`]
8511 * [`Ipv4Addr::is_private`]
8512 * [`Ipv4Addr::is_link_local`]
8513 * [`Ipv4Addr::is_multicast`]
8514 * [`Ipv4Addr::is_broadcast`]
8515 * [`Ipv4Addr::is_documentation`]
8517 * [`Ipv6Addr::is_unspecified`]
8518 * [`Ipv6Addr::is_loopback`]
8519 * [`Ipv6Addr::is_multicast`]
8522 * [`Vec::as_mut_slice`]
8524 * [`String::as_str`]
8525 * [`String::as_mut_str`]
8527 * `<[T]>::`[`clone_from_slice`], which now requires the two slices to
8529 * `<[T]>::`[`sort_by_key`]
8530 * checked, saturated, and overflowing operations
8531 * [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`]
8532 * [`i32::saturating_mul`]
8533 * [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`]
8534 * [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`]
8535 * [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`]
8536 * [`u32::saturating_mul`]
8537 * [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`]
8538 * [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`]
8539 * and checked, saturated, and overflowing operations for other primitive types
8541 * [`ffi::IntoStringError`]
8542 * [`CString::into_string`]
8543 * [`CString::into_bytes`]
8544 * [`CString::into_bytes_with_nul`]
8545 * `From<CString> for Vec<u8>`
8547 * [`IntoStringError::into_cstring`]
8548 * [`IntoStringError::utf8_error`]
8549 * `Error for IntoStringError`
8551 * [`std::hash::BuildHasher`]
8552 * [`BuildHasher::Hasher`]
8553 * [`BuildHasher::build_hasher`]
8554 * [`std::hash::BuildHasherDefault`]
8555 * [`HashMap::with_hasher`]
8556 * [`HashMap::with_capacity_and_hasher`]
8557 * [`HashSet::with_hasher`]
8558 * [`HashSet::with_capacity_and_hasher`]
8559 * [`std::collections::hash_map::RandomState`]
8560 * [`RandomState::new`]
8561 * [Validating UTF-8 is faster by a factor of between 7 and 14x for
8562 ASCII input][1.7utf8]. This means that creating `String`s and `str`s
8563 from bytes is faster.
8564 * [The performance of `LineWriter` (and thus `io::stdout`) was
8565 improved by using `memchr` to search for newlines][1.7m].
8566 * [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The
8567 `f64` variants were stabilized previously.
8568 * [`BTreeMap` was rewritten to use less memory and improve the performance
8569 of insertion and iteration, the latter by as much as 5x][1.7bm].
8570 * [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are
8571 covariant over their contained type][1.7bt].
8572 * [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant
8573 over their contained type][1.7ll].
8574 * [`str::replace` now accepts a `Pattern`][1.7rp], like other string
8576 * [`Any` is implemented for unsized types][1.7a].
8577 * [`Hash` is implemented for `Duration`][1.7h].
8582 * [When running tests with `--test`, rustdoc will pass `--cfg`
8583 arguments to the compiler][1.7dt].
8584 * [The compiler is built with RPATH information by default][1.7rpa].
8585 This means that it will be possible to run `rustc` when installed in
8586 unusual configurations without configuring the dynamic linker search
8588 * [`rustc` passes `--enable-new-dtags` to GNU ld][1.7dta]. This makes
8589 any RPATH entries (emitted with `-C rpath`) *not* take precedence
8590 over `LD_LIBRARY_PATH`.
8595 * [`cargo rustc` accepts a `--profile` flag that runs `rustc` under
8596 any of the compilation profiles, 'dev', 'bench', or 'test'][1.7cp].
8597 * [The `rerun-if-changed` build script directive no longer causes the
8598 build script to incorrectly run twice in certain scenarios][1.7rr].
8603 * Soundness fixes to the interactions between associated types and
8604 lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
8605 code that violates the new rules. This is a significant change that
8606 is known to break existing code, so it has emitted warnings for the
8607 new error cases since 1.4 to give crate authors time to adapt. The
8608 details of what is changing are subtle; read the RFC for more.
8609 * [Several bugs in the compiler's visibility calculations were
8610 fixed][1.7v]. Since this was found to break significant amounts of
8611 code, the new errors will be emitted as warnings for several release
8612 cycles, under the `private_in_public` lint.
8613 * Defaulted type parameters were accidentally accepted in positions
8614 that were not intended. In this release, [defaulted type parameters
8615 appearing outside of type definitions will generate a
8616 warning][1.7d], which will become an error in future releases.
8617 * [Parsing "." as a float results in an error instead of 0][1.7p].
8618 That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`.
8619 * [Borrows of closure parameters may not outlive the closure][1.7bc].
8621 [1.7a]: https://github.com/rust-lang/rust/pull/30928
8622 [1.7bc]: https://github.com/rust-lang/rust/pull/30341
8623 [1.7bm]: https://github.com/rust-lang/rust/pull/30426
8624 [1.7bt]: https://github.com/rust-lang/rust/pull/30998
8625 [1.7cp]: https://github.com/rust-lang/cargo/pull/2224
8626 [1.7d]: https://github.com/rust-lang/rust/pull/30724
8627 [1.7dt]: https://github.com/rust-lang/rust/pull/30372
8628 [1.7dta]: https://github.com/rust-lang/rust/pull/30394
8629 [1.7f]: https://github.com/rust-lang/rust/pull/30672
8630 [1.7h]: https://github.com/rust-lang/rust/pull/30818
8631 [1.7ll]: https://github.com/rust-lang/rust/pull/30663
8632 [1.7m]: https://github.com/rust-lang/rust/pull/30381
8633 [1.7p]: https://github.com/rust-lang/rust/pull/30681
8634 [1.7rp]: https://github.com/rust-lang/rust/pull/29498
8635 [1.7rpa]: https://github.com/rust-lang/rust/pull/30353
8636 [1.7rr]: https://github.com/rust-lang/cargo/pull/2279
8637 [1.7sf]: https://github.com/rust-lang/rust/pull/30389
8638 [1.7utf8]: https://github.com/rust-lang/rust/pull/30740
8639 [1.7v]: https://github.com/rust-lang/rust/pull/29973
8640 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
8641 [`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
8642 [`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher
8643 [`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul
8644 [`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes
8645 [`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string
8646 [`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher
8647 [`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher
8648 [`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher
8649 [`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher
8650 [`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring
8651 [`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error
8652 [`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast
8653 [`Ipv4Addr::is_documentation`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_documentation
8654 [`Ipv4Addr::is_link_local`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_link_local
8655 [`Ipv4Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_loopback
8656 [`Ipv4Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_multicast
8657 [`Ipv4Addr::is_private`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_private
8658 [`Ipv6Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_loopback
8659 [`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast
8660 [`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified
8661 [`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix
8662 [`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new
8663 [`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str
8664 [`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str
8665 [`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice
8666 [`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
8667 [`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
8668 [`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html
8669 [`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg
8670 [`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem
8671 [`i32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shl
8672 [`i32::checked_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shr
8673 [`i32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_add
8674 [`i32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_div
8675 [`i32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_mul
8676 [`i32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_neg
8677 [`i32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_rem
8678 [`i32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shl
8679 [`i32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shr
8680 [`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
8681 [`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
8682 [`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
8683 [`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
8684 [`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html
8685 [`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html
8686 [`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html
8687 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
8688 [`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
8689 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
8690 [`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
8691 [`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add
8692 [`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div
8693 [`u32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_mul
8694 [`u32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_neg
8695 [`u32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_rem
8696 [`u32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shl
8697 [`u32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shr
8698 [`u32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_sub
8699 [`u32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.saturating_mul
8702 Version 1.6.0 (2016-01-21)
8703 ==========================
8708 * The `#![no_std]` attribute causes a crate to not be linked to the
8709 standard library, but only the [core library][1.6co], as described
8710 in [RFC 1184]. The core library defines common types and traits but
8711 has no platform dependencies whatsoever, and is the basis for Rust
8712 software in environments that cannot support a full port of the
8713 standard library, such as operating systems. Most of the core
8714 library is now stable.
8720 [`Read::read_exact`],
8721 [`ErrorKind::UnexpectedEof`] (renamed from `UnexpectedEOF`),
8722 [`fs::DirBuilder`], [`fs::DirBuilder::new`],
8723 [`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`],
8724 [`os::unix::fs::DirBuilderExt`],
8725 [`os::unix::fs::DirBuilderExt::mode`], [`vec::Drain`],
8726 [`vec::Vec::drain`], [`string::Drain`], [`string::String::drain`],
8727 [`vec_deque::Drain`], [`vec_deque::VecDeque::drain`],
8728 [`collections::hash_map::Drain`],
8729 [`collections::hash_map::HashMap::drain`],
8730 [`collections::hash_set::Drain`],
8731 [`collections::hash_set::HashSet::drain`],
8732 [`collections::binary_heap::Drain`],
8733 [`collections::binary_heap::BinaryHeap::drain`],
8734 [`Vec::extend_from_slice`] (renamed from `push_all`),
8735 [`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`],
8736 [`RwLock::into_inner`],
8737 [`Iterator::min_by_key`] (renamed from `min_by`),
8738 [`Iterator::max_by_key`] (renamed from `max_by`).
8739 * The [core library][1.6co] is stable, as are most of its APIs.
8740 * [The `assert_eq!` macro supports arguments that don't implement
8741 `Sized`][1.6ae], such as arrays. In this way it behaves more like
8743 * Several timer functions that take duration in milliseconds [are
8744 deprecated in favor of those that take `Duration`][1.6ms]. These
8745 include `Condvar::wait_timeout_ms`, `thread::sleep_ms`, and
8746 `thread::park_timeout_ms`.
8747 * The algorithm by which `Vec` reserves additional elements was
8748 [tweaked to not allocate excessive space][1.6a] while still growing
8750 * `From` conversions are [implemented from integers to floats][1.6f]
8751 in cases where the conversion is lossless. Thus they are not
8752 implemented for 32-bit ints to `f32`, nor for 64-bit ints to `f32`
8753 or `f64`. They are also not implemented for `isize` and `usize`
8754 because the implementations would be platform-specific. `From` is
8755 also implemented from `f32` to `f64`.
8756 * `From<&Path>` and `From<PathBuf>` are implemented for `Cow<Path>`.
8757 * `From<T>` is implemented for `Box<T>`, `Rc<T>` and `Arc<T>`.
8758 * `IntoIterator` is implemented for `&PathBuf` and `&Path`.
8759 * [`BinaryHeap` was refactored][1.6bh] for modest performance
8761 * Sorting slices that are already sorted [is 50% faster in some
8767 * Cargo will look in `$CARGO_HOME/bin` for subcommands [by default][1.6c].
8768 * Cargo build scripts can specify their dependencies by emitting the
8769 [`rerun-if-changed`][1.6rr] key.
8770 * crates.io will reject publication of crates with dependencies that
8771 have a wildcard version constraint. Crates with wildcard
8772 dependencies were seen to cause a variety of problems, as described
8773 in [RFC 1241]. Since 1.5 publication of such crates has emitted a
8775 * `cargo clean` [accepts a `--release` flag][1.6cc] to clean the
8776 release folder. A variety of artifacts that Cargo failed to clean
8777 are now correctly deleted.
8782 * The `unreachable_code` lint [warns when a function call's argument
8784 * The parser indicates [failures that may be caused by
8785 confusingly-similar Unicode characters][1.6uc]
8786 * Certain macro errors [are reported at definition time][1.6m], not
8792 * The compiler no longer makes use of the [`RUST_PATH`][1.6rp]
8793 environment variable when locating crates. This was a pre-cargo
8794 feature for integrating with the package manager that was
8795 accidentally never removed.
8796 * [A number of bugs were fixed in the privacy checker][1.6p] that
8797 could cause previously-accepted code to break.
8798 * [Modules and unit/tuple structs may not share the same name][1.6ts].
8799 * [Bugs in pattern matching unit structs were fixed][1.6us]. The tuple
8800 struct pattern syntax (`Foo(..)`) can no longer be used to match
8801 unit structs. This is a warning now, but will become an error in
8802 future releases. Patterns that share the same name as a const are
8804 * A bug was fixed that causes [rustc not to apply default type
8805 parameters][1.6xc] when resolving certain method implementations of
8806 traits defined in other crates.
8808 [1.6a]: https://github.com/rust-lang/rust/pull/29454
8809 [1.6ae]: https://github.com/rust-lang/rust/pull/29770
8810 [1.6bh]: https://github.com/rust-lang/rust/pull/29811
8811 [1.6c]: https://github.com/rust-lang/cargo/pull/2192
8812 [1.6cc]: https://github.com/rust-lang/cargo/pull/2131
8813 [1.6co]: http://doc.rust-lang.org/core/index.html
8814 [1.6dv]: https://github.com/rust-lang/rust/pull/30000
8815 [1.6f]: https://github.com/rust-lang/rust/pull/29129
8816 [1.6m]: https://github.com/rust-lang/rust/pull/29828
8817 [1.6ms]: https://github.com/rust-lang/rust/pull/29604
8818 [1.6p]: https://github.com/rust-lang/rust/pull/29726
8819 [1.6rp]: https://github.com/rust-lang/rust/pull/30034
8820 [1.6rr]: https://github.com/rust-lang/cargo/pull/2134
8821 [1.6s]: https://github.com/rust-lang/rust/pull/29675
8822 [1.6ts]: https://github.com/rust-lang/rust/issues/21546
8823 [1.6uc]: https://github.com/rust-lang/rust/pull/29837
8824 [1.6us]: https://github.com/rust-lang/rust/pull/29383
8825 [1.6xc]: https://github.com/rust-lang/rust/issues/30123
8826 [RFC 1184]: https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md
8827 [RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
8828 [`ErrorKind::UnexpectedEof`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html#variant.UnexpectedEof
8829 [`Iterator::max_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.max_by_key
8830 [`Iterator::min_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.min_by_key
8831 [`Mutex::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.get_mut
8832 [`Mutex::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.into_inner
8833 [`Read::read_exact`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact
8834 [`RwLock::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.get_mut
8835 [`RwLock::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.into_inner
8836 [`Vec::extend_from_slice`]: http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html#method.extend_from_slice
8837 [`collections::binary_heap::BinaryHeap::drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.BinaryHeap.html#method.drain
8838 [`collections::binary_heap::Drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.Drain.html
8839 [`collections::hash_map::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.Drain.html
8840 [`collections::hash_map::HashMap::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.HashMap.html#method.drain
8841 [`collections::hash_set::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.Drain.html
8842 [`collections::hash_set::HashSet::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.HashSet.html#method.drain
8843 [`fs::DirBuilder::create`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.create
8844 [`fs::DirBuilder::new`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.new
8845 [`fs::DirBuilder::recursive`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.recursive
8846 [`fs::DirBuilder`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html
8847 [`os::unix::fs::DirBuilderExt::mode`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode
8848 [`os::unix::fs::DirBuilderExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html
8849 [`string::Drain`]: http://doc.rust-lang.org/nightly/std/string/struct.Drain.html
8850 [`string::String::drain`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.drain
8851 [`vec::Drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Drain.html
8852 [`vec::Vec::drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain
8853 [`vec_deque::Drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.Drain.html
8854 [`vec_deque::VecDeque::drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.VecDeque.html#method.drain
8857 Version 1.5.0 (2015-12-10)
8858 ==========================
8860 * ~700 changes, numerous bugfixes
8866 [`BinaryHeap::from`], [`BinaryHeap::into_sorted_vec`],
8867 [`BinaryHeap::into_vec`], [`Condvar::wait_timeout`],
8868 [`FileTypeExt::is_block_device`], [`FileTypeExt::is_char_device`],
8869 [`FileTypeExt::is_fifo`], [`FileTypeExt::is_socket`],
8870 [`FileTypeExt`], [`Formatter::alternate`], [`Formatter::fill`],
8871 [`Formatter::precision`], [`Formatter::sign_aware_zero_pad`],
8872 [`Formatter::sign_minus`], [`Formatter::sign_plus`],
8873 [`Formatter::width`], [`Iterator::cmp`], [`Iterator::eq`],
8874 [`Iterator::ge`], [`Iterator::gt`], [`Iterator::le`],
8875 [`Iterator::lt`], [`Iterator::ne`], [`Iterator::partial_cmp`],
8876 [`Path::canonicalize`], [`Path::exists`], [`Path::is_dir`],
8877 [`Path::is_file`], [`Path::metadata`], [`Path::read_dir`],
8878 [`Path::read_link`], [`Path::symlink_metadata`],
8879 [`Utf8Error::valid_up_to`], [`Vec::resize`],
8880 [`VecDeque::as_mut_slices`], [`VecDeque::as_slices`],
8881 [`VecDeque::insert`], [`VecDeque::shrink_to_fit`],
8882 [`VecDeque::swap_remove_back`], [`VecDeque::swap_remove_front`],
8883 [`slice::split_first_mut`], [`slice::split_first`],
8884 [`slice::split_last_mut`], [`slice::split_last`],
8885 [`char::from_u32_unchecked`], [`fs::canonicalize`],
8886 [`str::MatchIndices`], [`str::RMatchIndices`],
8887 [`str::match_indices`], [`str::rmatch_indices`],
8888 [`str::slice_mut_unchecked`], [`string::ParseError`].
8889 * Rust applications hosted on crates.io can be installed locally to
8890 `~/.cargo/bin` with the [`cargo install`] command. Among other
8891 things this makes it easier to augment Cargo with new subcommands:
8892 when a binary named e.g. `cargo-foo` is found in `$PATH` it can be
8893 invoked as `cargo foo`.
8894 * Crates with wildcard (`*`) dependencies will [emit warnings when
8895 published][1.5w]. In 1.6 it will no longer be possible to publish
8896 crates with wildcard dependencies.
8901 * The rules determining when a particular lifetime must outlive
8902 a particular value (known as '[dropck]') have been [modified
8903 to not rely on parametricity][1.5p].
8904 * [Implementations of `AsRef` and `AsMut` were added to `Box`, `Rc`,
8905 and `Arc`][1.5a]. Because these smart pointer types implement
8906 `Deref`, this causes breakage in cases where the interior type
8907 contains methods of the same name.
8908 * [Correct a bug in Rc/Arc][1.5c] that caused [dropck] to be unaware
8909 that they could drop their content. Soundness fix.
8910 * All method invocations are [properly checked][1.5wf1] for
8911 [well-formedness][1.5wf2]. Soundness fix.
8912 * Traits whose supertraits contain `Self` are [not object
8913 safe][1.5o]. Soundness fix.
8914 * Target specifications support a [`no_default_libraries`][1.5nd]
8915 setting that controls whether `-nodefaultlibs` is passed to the
8916 linker, and in turn the `is_like_windows` setting no longer affects
8917 the `-nodefaultlibs` flag.
8918 * `#[derive(Show)]`, long-deprecated, [has been removed][1.5ds].
8919 * The `#[inline]` and `#[repr]` attributes [can only appear
8920 in valid locations][1.5at].
8921 * Native libraries linked from the local crate are [passed to
8922 the linker before native libraries from upstream crates][1.5nl].
8923 * Two rarely-used attributes, `#[no_debug]` and
8924 `#[omit_gdb_pretty_printer_section]` [are feature gated][1.5fg].
8925 * Negation of unsigned integers, which has been a warning for
8926 several releases, [is now behind a feature gate and will
8927 generate errors][1.5nu].
8928 * The parser accidentally accepted visibility modifiers on
8929 enum variants, a bug [which has been fixed][1.5ev].
8930 * [A bug was fixed that allowed `use` statements to import unstable
8936 * When evaluating expressions at compile-time that are not
8937 compile-time constants (const-evaluating expressions in non-const
8938 contexts), incorrect code such as overlong bitshifts and arithmetic
8939 overflow will [generate a warning instead of an error][1.5ce],
8940 delaying the error until runtime. This will allow the
8941 const-evaluator to be expanded in the future backwards-compatibly.
8942 * The `improper_ctypes` lint [no longer warns about using `isize` and
8943 `usize` in FFI][1.5ict].
8948 * `Arc<T>` and `Rc<T>` are [covariant with respect to `T` instead of
8950 * `Default` is [implemented for mutable slices][1.5d].
8951 * `FromStr` is [implemented for `SockAddrV4` and `SockAddrV6`][1.5s].
8952 * There are now `From` conversions [between floating point
8953 types][1.5f] where the conversions are lossless.
8954 * There are now `From` conversions [between integer types][1.5i] where
8955 the conversions are lossless.
8956 * [`fs::Metadata` implements `Clone`][1.5fs].
8957 * The `parse` method [accepts a leading "+" when parsing
8959 * [`AsMut` is implemented for `Vec`][1.5am].
8960 * The `clone_from` implementations for `String` and `BinaryHeap` [have
8961 been optimized][1.5cf] and no longer rely on the default impl.
8962 * The `extern "Rust"`, `extern "C"`, `unsafe extern "Rust"` and
8963 `unsafe extern "C"` function types now [implement `Clone`,
8964 `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and
8965 `fmt::Debug` for up to 12 arguments][1.5fp].
8966 * [Dropping `Vec`s is much faster in unoptimized builds when the
8967 element types don't implement `Drop`][1.5dv].
8968 * A bug that caused in incorrect behavior when [combining `VecDeque`
8969 with zero-sized types][1.5vdz] was resolved.
8970 * [`PartialOrd` for slices is faster][1.5po].
8975 * [Crate metadata size was reduced by 20%][1.5md].
8976 * [Improvements to code generation reduced the size of libcore by 3.3
8977 MB and rustc's memory usage by 18MB][1.5m].
8978 * [Improvements to deref translation increased performance in
8979 unoptimized builds][1.5dr].
8980 * Various errors in trait resolution [are deduplicated to only be
8981 reported once][1.5te].
8982 * Rust has preliminary [support for rumprun kernels][1.5rr].
8983 * Rust has preliminary [support for NetBSD on amd64][1.5na].
8985 [1.5use]: https://github.com/rust-lang/rust/pull/28364
8986 [1.5po]: https://github.com/rust-lang/rust/pull/28436
8987 [1.5ev]: https://github.com/rust-lang/rust/pull/28442
8988 [1.5nu]: https://github.com/rust-lang/rust/pull/28468
8989 [1.5dr]: https://github.com/rust-lang/rust/pull/28491
8990 [1.5vdz]: https://github.com/rust-lang/rust/pull/28494
8991 [1.5md]: https://github.com/rust-lang/rust/pull/28521
8992 [1.5fg]: https://github.com/rust-lang/rust/pull/28522
8993 [1.5dv]: https://github.com/rust-lang/rust/pull/28531
8994 [1.5na]: https://github.com/rust-lang/rust/pull/28543
8995 [1.5fp]: https://github.com/rust-lang/rust/pull/28560
8996 [1.5rr]: https://github.com/rust-lang/rust/pull/28593
8997 [1.5cf]: https://github.com/rust-lang/rust/pull/28602
8998 [1.5nl]: https://github.com/rust-lang/rust/pull/28605
8999 [1.5te]: https://github.com/rust-lang/rust/pull/28645
9000 [1.5at]: https://github.com/rust-lang/rust/pull/28650
9001 [1.5am]: https://github.com/rust-lang/rust/pull/28663
9002 [1.5m]: https://github.com/rust-lang/rust/pull/28778
9003 [1.5ict]: https://github.com/rust-lang/rust/pull/28779
9004 [1.5a]: https://github.com/rust-lang/rust/pull/28811
9005 [1.5pi]: https://github.com/rust-lang/rust/pull/28826
9006 [1.5ce]: https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md
9007 [1.5p]: https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
9008 [1.5i]: https://github.com/rust-lang/rust/pull/28921
9009 [1.5fs]: https://github.com/rust-lang/rust/pull/29021
9010 [1.5f]: https://github.com/rust-lang/rust/pull/29129
9011 [1.5ds]: https://github.com/rust-lang/rust/pull/29148
9012 [1.5s]: https://github.com/rust-lang/rust/pull/29190
9013 [1.5d]: https://github.com/rust-lang/rust/pull/29245
9014 [1.5o]: https://github.com/rust-lang/rust/pull/29259
9015 [1.5nd]: https://github.com/rust-lang/rust/pull/28578
9016 [1.5wf2]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
9017 [1.5wf1]: https://github.com/rust-lang/rust/pull/28669
9018 [dropck]: https://doc.rust-lang.org/nightly/nomicon/dropck.html
9019 [1.5c]: https://github.com/rust-lang/rust/pull/29110
9020 [1.5w]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
9021 [`cargo install`]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md
9022 [`BinaryHeap::from`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html#method.from
9023 [`BinaryHeap::into_sorted_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_sorted_vec
9024 [`BinaryHeap::into_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_vec
9025 [`Condvar::wait_timeout`]: http://doc.rust-lang.org/nightly/std/sync/struct.Condvar.html#method.wait_timeout
9026 [`FileTypeExt::is_block_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_block_device
9027 [`FileTypeExt::is_char_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_char_device
9028 [`FileTypeExt::is_fifo`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_fifo
9029 [`FileTypeExt::is_socket`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_socket
9030 [`FileTypeExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html
9031 [`Formatter::alternate`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.alternate
9032 [`Formatter::fill`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.fill
9033 [`Formatter::precision`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.precision
9034 [`Formatter::sign_aware_zero_pad`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_aware_zero_pad
9035 [`Formatter::sign_minus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_minus
9036 [`Formatter::sign_plus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_plus
9037 [`Formatter::width`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.width
9038 [`Iterator::cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cmp
9039 [`Iterator::eq`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.eq
9040 [`Iterator::ge`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ge
9041 [`Iterator::gt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.gt
9042 [`Iterator::le`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.le
9043 [`Iterator::lt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.lt
9044 [`Iterator::ne`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ne
9045 [`Iterator::partial_cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.partial_cmp
9046 [`Path::canonicalize`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.canonicalize
9047 [`Path::exists`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.exists
9048 [`Path::is_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_dir
9049 [`Path::is_file`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_file
9050 [`Path::metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.metadata
9051 [`Path::read_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_dir
9052 [`Path::read_link`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_link
9053 [`Path::symlink_metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.symlink_metadata
9054 [`Utf8Error::valid_up_to`]: http://doc.rust-lang.org/nightly/core/str/struct.Utf8Error.html#method.valid_up_to
9055 [`Vec::resize`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.resize
9056 [`VecDeque::as_mut_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_mut_slices
9057 [`VecDeque::as_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_slices
9058 [`VecDeque::insert`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.insert
9059 [`VecDeque::shrink_to_fit`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.shrink_to_fit
9060 [`VecDeque::swap_remove_back`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_back
9061 [`VecDeque::swap_remove_front`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_front
9062 [`slice::split_first_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first_mut
9063 [`slice::split_first`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first
9064 [`slice::split_last_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last_mut
9065 [`slice::split_last`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last
9066 [`char::from_u32_unchecked`]: http://doc.rust-lang.org/nightly/std/char/fn.from_u32_unchecked.html
9067 [`fs::canonicalize`]: http://doc.rust-lang.org/nightly/std/fs/fn.canonicalize.html
9068 [`str::MatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.MatchIndices.html
9069 [`str::RMatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.RMatchIndices.html
9070 [`str::match_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices
9071 [`str::rmatch_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices
9072 [`str::slice_mut_unchecked`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked
9073 [`string::ParseError`]: http://doc.rust-lang.org/nightly/std/string/enum.ParseError.html
9075 Version 1.4.0 (2015-10-29)
9076 ==========================
9078 * ~1200 changes, numerous bugfixes
9083 * Windows builds targeting the 64-bit MSVC ABI and linker (instead of
9084 GNU) are now supported and recommended for use.
9089 * [Several changes have been made to fix type soundness and improve
9090 the behavior of associated types][sound]. See [RFC 1214]. Although
9091 we have mostly introduced these changes as warnings this release, to
9092 become errors next release, there are still some scenarios that will
9093 see immediate breakage.
9094 * [The `str::lines` and `BufRead::lines` iterators treat `\r\n` as
9095 line breaks in addition to `\n`][crlf].
9096 * [Loans of `'static` lifetime extend to the end of a function][stat].
9097 * [`str::parse` no longer introduces avoidable rounding error when
9098 parsing floating point numbers. Together with earlier changes to
9099 float formatting/output, "round trips" like f.to_string().parse()
9100 now preserve the value of f exactly. Additionally, leading plus
9101 signs are now accepted][fp3].
9107 * `use` statements that import multiple items [can now rename
9108 them][i], as in `use foo::{bar as kitten, baz as puppy}`.
9109 * [Binops work correctly on fat pointers][binfat].
9110 * `pub extern crate`, which does not behave as expected, [issues a
9111 warning][pec] until a better solution is found.
9116 * [Many APIs were stabilized][stab]: `<Box<str>>::into_string`,
9117 [`Arc::downgrade`], [`Arc::get_mut`], [`Arc::make_mut`],
9118 [`Arc::try_unwrap`], [`Box::from_raw`], [`Box::into_raw`], [`CStr::to_str`],
9119 [`CStr::to_string_lossy`], [`CString::from_raw`], [`CString::into_raw`],
9120 [`IntoRawFd::into_raw_fd`], [`IntoRawFd`],
9121 `IntoRawHandle::into_raw_handle`, `IntoRawHandle`,
9122 `IntoRawSocket::into_raw_socket`, `IntoRawSocket`, [`Rc::downgrade`],
9123 [`Rc::get_mut`], [`Rc::make_mut`], [`Rc::try_unwrap`], [`Result::expect`],
9124 [`String::into_boxed_str`], [`TcpStream::read_timeout`],
9125 [`TcpStream::set_read_timeout`], [`TcpStream::set_write_timeout`],
9126 [`TcpStream::write_timeout`], [`UdpSocket::read_timeout`],
9127 [`UdpSocket::set_read_timeout`], [`UdpSocket::set_write_timeout`],
9128 [`UdpSocket::write_timeout`], `Vec::append`, `Vec::split_off`,
9129 [`VecDeque::append`], [`VecDeque::retain`], [`VecDeque::split_off`],
9130 [`rc::Weak::upgrade`], [`rc::Weak`], [`slice::Iter::as_slice`],
9131 [`slice::IterMut::into_slice`], [`str::CharIndices::as_str`],
9132 [`str::Chars::as_str`], [`str::split_at_mut`], [`str::split_at`],
9133 [`sync::Weak::upgrade`], [`sync::Weak`], [`thread::park_timeout`],
9135 * [Some APIs were deprecated][dep]: `BTreeMap::with_b`,
9136 `BTreeSet::with_b`, `Option::as_mut_slice`, `Option::as_slice`,
9137 `Result::as_mut_slice`, `Result::as_slice`, `f32::from_str_radix`,
9138 `f64::from_str_radix`.
9139 * [Reverse-searching strings is faster with the 'two-way'
9141 * [`std::io::copy` allows `?Sized` arguments][cc].
9142 * The `Windows`, `Chunks`, and `ChunksMut` iterators over slices all
9143 [override `count`, `nth` and `last` with an *O*(1)
9144 implementation][it].
9145 * [`Default` is implemented for arrays up to `[T; 32]`][d].
9146 * [`IntoRawFd` has been added to the Unix-specific prelude,
9147 `IntoRawSocket` and `IntoRawHandle` to the Windows-specific
9149 * [`Extend<String>` and `FromIterator<String` are both implemented for
9151 * [`IntoIterator` is implemented for references to `Option` and
9153 * [`HashMap` and `HashSet` implement `Extend<&T>` where `T:
9154 Copy`][ext] as part of [RFC 839]. This will cause type inference
9155 breakage in rare situations.
9156 * [`BinaryHeap` implements `Debug`][bh2].
9157 * [`Borrow` and `BorrowMut` are implemented for fixed-size
9159 * [`extern fn`s with the "Rust" and "C" ABIs implement common
9160 traits including `Eq`, `Ord`, `Debug`, `Hash`][fp].
9161 * [String comparison is faster][faststr].
9162 * `&mut T` where `T: std::fmt::Write` [also implements
9163 `std::fmt::Write`][mutw].
9164 * [A stable regression in `VecDeque::push_back` and other
9165 capacity-altering methods that caused panics for zero-sized types
9167 * [Function pointers implement traits for up to 12 parameters][fp2].
9172 * The compiler [no longer uses the 'morestack' feature to prevent
9173 stack overflow][mm]. Instead it uses guard pages and stack
9174 probes (though stack probes are not yet implemented on any platform
9176 * [The compiler matches traits faster when projections are involved][p].
9177 * The 'improper_ctypes' lint [no longer warns about use of `isize` and
9179 * [Cargo now displays useful information about what its doing during
9180 `cargo update`][cu].
9182 [`Arc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.downgrade
9183 [`Arc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.make_mut
9184 [`Arc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.get_mut
9185 [`Arc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.try_unwrap
9186 [`Box::from_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.from_raw
9187 [`Box::into_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.into_raw
9188 [`CStr::to_str`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_str
9189 [`CStr::to_string_lossy`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_string_lossy
9190 [`CString::from_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.from_raw
9191 [`CString::into_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_raw
9192 [`IntoRawFd::into_raw_fd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html#tymethod.into_raw_fd
9193 [`IntoRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html
9194 [`Rc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.downgrade
9195 [`Rc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.get_mut
9196 [`Rc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.make_mut
9197 [`Rc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.try_unwrap
9198 [`Result::expect`]: http://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.expect
9199 [`String::into_boxed_str`]: http://doc.rust-lang.org/nightly/collections/string/struct.String.html#method.into_boxed_str
9200 [`TcpStream::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
9201 [`TcpStream::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
9202 [`TcpStream::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
9203 [`TcpStream::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
9204 [`UdpSocket::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
9205 [`UdpSocket::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
9206 [`UdpSocket::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
9207 [`UdpSocket::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
9208 [`VecDeque::append`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.append
9209 [`VecDeque::retain`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.retain
9210 [`VecDeque::split_off`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.split_off
9211 [`rc::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html#method.upgrade
9212 [`rc::Weak`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html
9213 [`slice::Iter::as_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#method.as_slice
9214 [`slice::IterMut::into_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.IterMut.html#method.into_slice
9215 [`str::CharIndices::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.CharIndices.html#method.as_str
9216 [`str::Chars::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.Chars.html#method.as_str
9217 [`str::split_at_mut`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut
9218 [`str::split_at`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at
9219 [`sync::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html#method.upgrade
9220 [`sync::Weak`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html
9221 [`thread::park_timeout`]: http://doc.rust-lang.org/nightly/std/thread/fn.park_timeout.html
9222 [`thread::sleep`]: http://doc.rust-lang.org/nightly/std/thread/fn.sleep.html
9223 [bh2]: https://github.com/rust-lang/rust/pull/28156
9224 [binfat]: https://github.com/rust-lang/rust/pull/28270
9225 [bm]: https://github.com/rust-lang/rust/pull/28197
9226 [cc]: https://github.com/rust-lang/rust/pull/27531
9227 [crlf]: https://github.com/rust-lang/rust/pull/28034
9228 [cu]: https://github.com/rust-lang/cargo/pull/1931
9229 [d]: https://github.com/rust-lang/rust/pull/27825
9230 [dep]: https://github.com/rust-lang/rust/pull/28339
9231 [es]: https://github.com/rust-lang/rust/pull/27956
9232 [ext]: https://github.com/rust-lang/rust/pull/28094
9233 [faststr]: https://github.com/rust-lang/rust/pull/28338
9234 [ffi]: https://github.com/rust-lang/rust/pull/28779
9235 [fp]: https://github.com/rust-lang/rust/pull/28268
9236 [fp2]: https://github.com/rust-lang/rust/pull/28560
9237 [fp3]: https://github.com/rust-lang/rust/pull/27307
9238 [i]: https://github.com/rust-lang/rust/pull/27451
9239 [into2]: https://github.com/rust-lang/rust/pull/28039
9240 [it]: https://github.com/rust-lang/rust/pull/27652
9241 [mm]: https://github.com/rust-lang/rust/pull/27338
9242 [mutw]: https://github.com/rust-lang/rust/pull/28368
9243 [sound]: https://github.com/rust-lang/rust/pull/27641
9244 [p]: https://github.com/rust-lang/rust/pull/27866
9245 [pec]: https://github.com/rust-lang/rust/pull/28486
9246 [pr]: https://github.com/rust-lang/rust/pull/27896
9247 [RFC 839]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
9248 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
9249 [s]: https://github.com/rust-lang/rust/pull/27474
9250 [stab]: https://github.com/rust-lang/rust/pull/28339
9251 [stat]: https://github.com/rust-lang/rust/pull/28321
9252 [vd]: https://github.com/rust-lang/rust/pull/28494
9254 Version 1.3.0 (2015-09-17)
9255 ==============================
9257 * ~900 changes, numerous bugfixes
9262 * The [new object lifetime defaults][nold] have been [turned
9263 on][nold2] after a cycle of warnings about the change. Now types
9264 like `&'a Box<Trait>` (or `&'a Rc<Trait>`, etc) will change from
9265 being interpreted as `&'a Box<Trait+'a>` to `&'a
9266 Box<Trait+'static>`.
9267 * [The Rustonomicon][nom] is a new book in the official documentation
9268 that dives into writing unsafe Rust.
9269 * The [`Duration`] API, [has been stabilized][ds]. This basic unit of
9270 timekeeping is employed by other std APIs, as well as out-of-tree
9276 * The [new object lifetime defaults][nold] have been [turned
9277 on][nold2] after a cycle of warnings about the change.
9278 * There is a known [regression][lr] in how object lifetime elision is
9279 interpreted, the proper solution for which is undetermined.
9280 * The `#[prelude_import]` attribute, an internal implementation
9281 detail, was accidentally stabilized previously. [It has been put
9282 behind the `prelude_import` feature gate][pi]. This change is
9283 believed to break no existing code.
9284 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
9285 [more sane for dynamically sized types][dst3]. Code that relied on
9286 the previous behavior is thought to be broken.
9287 * The `dropck` rules, which checks that destructors can't access
9288 destroyed values, [have been updated][dropck] to match the
9289 [RFC][dropckrfc]. This fixes some soundness holes, and as such will
9290 cause some previously-compiling code to no longer build.
9295 * The [new object lifetime defaults][nold] have been [turned
9296 on][nold2] after a cycle of warnings about the change.
9297 * Semicolons may [now follow types and paths in
9298 macros](https://github.com/rust-lang/rust/pull/27000).
9299 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
9300 [more sane for dynamically sized types][dst3]. Code that relied on
9301 the previous behavior is not known to exist, and suspected to be
9303 * `'static` variables [may now be recursive][st].
9304 * `ref` bindings choose between [`Deref`] and [`DerefMut`]
9305 implementations correctly.
9306 * The `dropck` rules, which checks that destructors can't access
9307 destroyed values, [have been updated][dropck] to match the
9313 * The [`Duration`] API, [has been stabilized][ds], as well as the
9314 `std::time` module, which presently contains only `Duration`.
9315 * `Box<str>` and `Box<[T]>` both implement `Clone`.
9316 * The owned C string, [`CString`], implements [`Borrow`] and the
9317 borrowed C string, [`CStr`], implements [`ToOwned`]. The two of
9318 these allow C strings to be borrowed and cloned in generic code.
9319 * [`CStr`] implements [`Debug`].
9320 * [`AtomicPtr`] implements [`Debug`].
9321 * [`Error`] trait objects [can be downcast to their concrete types][e]
9322 in many common configurations, using the [`is`], [`downcast`],
9323 [`downcast_ref`] and [`downcast_mut`] methods, similarly to the
9325 * Searching for substrings now [employs the two-way algorithm][search]
9326 instead of doing a naive search. This gives major speedups to a
9327 number of methods, including [`contains`][sc], [`find`][sf],
9328 [`rfind`][srf], [`split`][ss]. [`starts_with`][ssw] and
9329 [`ends_with`][sew] are also faster.
9330 * The performance of `PartialEq` for slices is [much faster][ps].
9331 * The [`Hash`] trait offers the default method, [`hash_slice`], which
9332 is overridden and optimized by the implementations for scalars.
9333 * The [`Hasher`] trait now has a number of specialized `write_*`
9334 methods for primitive types, for efficiency.
9335 * The I/O-specific error type, [`std::io::Error`][ie], gained a set of
9336 methods for accessing the 'inner error', if any: [`get_ref`][iegr],
9337 [`get_mut`][iegm], [`into_inner`][ieii]. As well, the implementation
9338 of [`std::error::Error::cause`][iec] also delegates to the inner
9340 * [`process::Child`][pc] gained the [`id`] method, which returns a
9341 `u32` representing the platform-specific process identifier.
9342 * The [`connect`] method on slices is deprecated, replaced by the new
9343 [`join`] method (note that both of these are on the *unstable*
9344 [`SliceConcatExt`] trait, but through the magic of the prelude are
9345 available to stable code anyway).
9346 * The [`Div`] operator is implemented for [`Wrapping`] types.
9347 * [`DerefMut` is implemented for `String`][dms].
9348 * Performance of SipHash (the default hasher for `HashMap`) is
9349 [better for long data][sh].
9350 * [`AtomicPtr`] implements [`Send`].
9351 * The [`read_to_end`] implementations for [`Stdin`] and [`File`]
9352 are now [specialized to use uninitialized buffers for increased
9354 * Lifetime parameters of foreign functions [are now resolved
9360 * Rust can now, with some coercion, [produce programs that run on
9361 Windows XP][xp], though XP is not considered a supported platform.
9362 * Porting Rust on Windows from the GNU toolchain to MSVC continues
9363 ([1][win1], [2][win2], [3][win3], [4][win4]). It is still not
9364 recommended for use in 1.3, though should be fully-functional
9365 in the [64-bit 1.4 beta][b14].
9366 * On Fedora-based systems installation will [properly configure the
9367 dynamic linker][fl].
9368 * The compiler gained many new extended error descriptions, which can
9369 be accessed with the `--explain` flag.
9370 * The `dropck` pass, which checks that destructors can't access
9371 destroyed values, [has been rewritten][27261]. This fixes some
9372 soundness holes, and as such will cause some previously-compiling
9373 code to no longer build.
9374 * `rustc` now uses [LLVM to write archive files where possible][ar].
9375 Eventually this will eliminate the compiler's dependency on the ar
9377 * Rust has [preliminary support for i686 FreeBSD][26959] (it has long
9378 supported FreeBSD on x86_64).
9379 * The [`unused_mut`][lum], [`unconditional_recursion`][lur],
9380 [`improper_ctypes`][lic], and [`negate_unsigned`][lnu] lints are
9382 * If landing pads are disabled (with `-Z no-landing-pads`), [`panic!`
9383 will kill the process instead of leaking][nlp].
9385 [`Any`]: http://doc.rust-lang.org/nightly/std/any/trait.Any.html
9386 [`AtomicPtr`]: http://doc.rust-lang.org/nightly/std/sync/atomic/struct.AtomicPtr.html
9387 [`Borrow`]: http://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html
9388 [`CStr`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html
9389 [`CString`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html
9390 [`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
9391 [`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
9392 [`Deref`]: http://doc.rust-lang.org/nightly/std/ops/trait.Deref.html
9393 [`Div`]: http://doc.rust-lang.org/nightly/std/ops/trait.Div.html
9394 [`Duration`]: http://doc.rust-lang.org/nightly/std/time/struct.Duration.html
9395 [`Error`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html
9396 [`File`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html
9397 [`Hash`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html
9398 [`Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
9399 [`Send`]: http://doc.rust-lang.org/nightly/std/marker/trait.Send.html
9400 [`SliceConcatExt`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html
9401 [`Stdin`]: http://doc.rust-lang.org/nightly/std/io/struct.Stdin.html
9402 [`ToOwned`]: http://doc.rust-lang.org/nightly/std/borrow/trait.ToOwned.html
9403 [`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
9404 [`connect`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.connect
9405 [`downcast_mut`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_mut
9406 [`downcast_ref`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_ref
9407 [`downcast`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast
9408 [`hash_slice`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
9409 [`id`]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html#method.id
9410 [`is`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.is
9411 [`join`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.join
9412 [`read_to_end`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end
9413 [ar]: https://github.com/rust-lang/rust/pull/26926
9414 [b14]: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi
9415 [dms]: https://github.com/rust-lang/rust/pull/26241
9416 [27261]: https://github.com/rust-lang/rust/pull/27261
9417 [dropckrfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
9418 [ds]: https://github.com/rust-lang/rust/pull/26818
9419 [dst1]: http://doc.rust-lang.org/nightly/std/mem/fn.size_of_val.html
9420 [dst2]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of_val.html
9421 [dst3]: https://github.com/rust-lang/rust/pull/27351
9422 [e]: https://github.com/rust-lang/rust/pull/24793
9423 [f]: https://github.com/rust-lang/rust/pull/26588
9424 [26959]: https://github.com/rust-lang/rust/pull/26959
9425 [fl]: https://github.com/rust-lang/rust-installer/pull/41
9426 [ie]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html
9427 [iec]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.cause
9428 [iegm]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_mut
9429 [iegr]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_ref
9430 [ieii]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.into_inner
9431 [lic]: https://github.com/rust-lang/rust/pull/26583
9432 [lnu]: https://github.com/rust-lang/rust/pull/27026
9433 [lr]: https://github.com/rust-lang/rust/issues/27248
9434 [lum]: https://github.com/rust-lang/rust/pull/26378
9435 [lur]: https://github.com/rust-lang/rust/pull/26783
9436 [nlp]: https://github.com/rust-lang/rust/pull/27176
9437 [nold2]: https://github.com/rust-lang/rust/pull/27045
9438 [nold]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
9439 [nom]: http://doc.rust-lang.org/nightly/nomicon/
9440 [pc]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html
9441 [pi]: https://github.com/rust-lang/rust/pull/26699
9442 [ps]: https://github.com/rust-lang/rust/pull/26884
9443 [rte]: https://github.com/rust-lang/rust/pull/26950
9444 [sc]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.contains
9445 [search]: https://github.com/rust-lang/rust/pull/26327
9446 [sew]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.ends_with
9447 [sf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.find
9448 [sh]: https://github.com/rust-lang/rust/pull/27280
9449 [srf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rfind
9450 [ss]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split
9451 [ssw]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.starts_with
9452 [st]: https://github.com/rust-lang/rust/pull/26630
9453 [win1]: https://github.com/rust-lang/rust/pull/26569
9454 [win2]: https://github.com/rust-lang/rust/pull/26741
9455 [win3]: https://github.com/rust-lang/rust/pull/26741
9456 [win4]: https://github.com/rust-lang/rust/pull/27210
9457 [xp]: https://github.com/rust-lang/rust/pull/26569
9459 Version 1.2.0 (2015-08-07)
9460 ==========================
9462 * ~1200 changes, numerous bugfixes
9467 * [Dynamically-sized-type coercions][dst] allow smart pointer types
9468 like `Rc` to contain types without a fixed size, arrays and trait
9469 objects, finally enabling use of `Rc<[T]>` and completing the
9470 implementation of DST.
9471 * [Parallel codegen][parcodegen] is now working again, which can
9472 substantially speed up large builds in debug mode; It also gets
9473 another ~33% speedup when bootstrapping on a 4 core machine (using 8
9474 jobs). It's not enabled by default, but will be "in the near
9475 future". It can be activated with the `-C codegen-units=N` flag to
9477 * This is the first release with [experimental support for linking
9478 with the MSVC linker and lib C on Windows (instead of using the GNU
9479 variants via MinGW)][win]. It is yet recommended only for the most
9480 intrepid Rustaceans.
9481 * Benchmark compilations are showing a 30% improvement in
9482 bootstrapping over 1.1.
9487 * The [`to_uppercase`] and [`to_lowercase`] methods on `char` now do
9488 unicode case mapping, which is a previously-planned change in
9489 behavior and considered a bugfix.
9490 * [`mem::align_of`] now specifies [the *minimum alignment* for
9491 T][align], which is usually the alignment programs are interested
9492 in, and the same value reported by clang's
9493 `alignof`. [`mem::min_align_of`] is deprecated. This is not known to
9495 * [The `#[packed]` attribute is no longer silently accepted by the
9496 compiler][packed]. This attribute did nothing and code that
9497 mentioned it likely did not work as intended.
9498 * Associated type defaults are [now behind the
9499 `associated_type_defaults` feature gate][ad]. In 1.1 associated type
9500 defaults *did not work*, but could be mentioned syntactically. As
9501 such this breakage has minimal impact.
9506 * Patterns with `ref mut` now correctly invoke [`DerefMut`] when
9507 matching against dereferenceable values.
9512 * The [`Extend`] trait, which grows a collection from an iterator, is
9513 implemented over iterators of references, for `String`, `Vec`,
9514 `LinkedList`, `VecDeque`, `EnumSet`, `BinaryHeap`, `VecMap`,
9515 `BTreeSet` and `BTreeMap`. [RFC][extend-rfc].
9516 * The [`iter::once`] function returns an iterator that yields a single
9517 element, and [`iter::empty`] returns an iterator that yields no
9519 * The [`matches`] and [`rmatches`] methods on `str` return iterators
9520 over substring matches.
9521 * [`Cell`] and [`RefCell`] both implement `Eq`.
9522 * A number of methods for wrapping arithmetic are added to the
9523 integral types, [`wrapping_div`], [`wrapping_rem`],
9524 [`wrapping_neg`], [`wrapping_shl`], [`wrapping_shr`]. These are in
9525 addition to the existing [`wrapping_add`], [`wrapping_sub`], and
9526 [`wrapping_mul`] methods, and alternatives to the [`Wrapping`]
9527 type.. It is illegal for the default arithmetic operations in Rust
9528 to overflow; the desire to wrap must be explicit.
9529 * The `{:#?}` formatting specifier [displays the alternate,
9530 pretty-printed][debugfmt] form of the `Debug` formatter. This
9531 feature was actually introduced prior to 1.0 with little
9533 * [`fmt::Formatter`] implements [`fmt::Write`], a `fmt`-specific trait
9534 for writing data to formatted strings, similar to [`io::Write`].
9535 * [`fmt::Formatter`] adds 'debug builder' methods, [`debug_struct`],
9536 [`debug_tuple`], [`debug_list`], [`debug_set`], [`debug_map`]. These
9537 are used by code generators to emit implementations of [`Debug`].
9538 * `str` has new [`to_uppercase`][strup] and [`to_lowercase`][strlow]
9539 methods that convert case, following Unicode case mapping.
9540 * It is now easier to handle poisoned locks. The [`PoisonError`]
9541 type, returned by failing lock operations, exposes `into_inner`,
9542 `get_ref`, and `get_mut`, which all give access to the inner lock
9543 guard, and allow the poisoned lock to continue to operate. The
9544 `is_poisoned` method of [`RwLock`] and [`Mutex`] can poll for a
9545 poisoned lock without attempting to take the lock.
9546 * On Unix the [`FromRawFd`] trait is implemented for [`Stdio`], and
9547 [`AsRawFd`] for [`ChildStdin`], [`ChildStdout`], [`ChildStderr`].
9548 On Windows the `FromRawHandle` trait is implemented for `Stdio`,
9549 and `AsRawHandle` for `ChildStdin`, `ChildStdout`,
9551 * [`io::ErrorKind`] has a new variant, `InvalidData`, which indicates
9557 * `rustc` employs smarter heuristics for guessing at [typos].
9558 * `rustc` emits more efficient code for [no-op conversions between
9559 unsafe pointers][nop].
9560 * Fat pointers are now [passed in pairs of immediate arguments][fat],
9561 resulting in faster compile times and smaller code.
9563 [`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
9564 [extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
9565 [`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html
9566 [`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html
9567 [`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
9568 [`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
9569 [`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
9570 [`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
9571 [`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
9572 [`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
9573 [`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
9574 [`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
9575 [`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
9576 [`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
9577 [`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
9578 [`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
9579 [`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
9580 [`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
9581 [`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
9582 [`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html
9583 [`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
9584 [`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
9585 [`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
9586 [`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
9587 [`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
9588 [`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
9589 [strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
9590 [strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
9591 [`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
9592 [`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
9593 [`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
9594 [`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
9595 [`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
9596 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
9597 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
9598 [`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
9599 [`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
9600 [`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
9601 [`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
9602 [`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
9603 [debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
9604 [`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
9605 [`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
9606 [align]: https://github.com/rust-lang/rust/pull/25646
9607 [`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
9608 [typos]: https://github.com/rust-lang/rust/pull/26087
9609 [nop]: https://github.com/rust-lang/rust/pull/26336
9610 [fat]: https://github.com/rust-lang/rust/pull/26411
9611 [dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
9612 [parcodegen]: https://github.com/rust-lang/rust/pull/26018
9613 [packed]: https://github.com/rust-lang/rust/pull/25541
9614 [ad]: https://github.com/rust-lang/rust/pull/27382
9615 [win]: https://github.com/rust-lang/rust/pull/25350
9617 Version 1.1.0 (2015-06-25)
9618 =========================
9620 * ~850 changes, numerous bugfixes
9625 * The [`std::fs` module has been expanded][fs] to expand the set of
9626 functionality exposed:
9627 * `DirEntry` now supports optimizations like `file_type` and `metadata` which
9628 don't incur a syscall on some platforms.
9629 * A `symlink_metadata` function has been added.
9630 * The `fs::Metadata` structure now lowers to its OS counterpart, providing
9631 access to all underlying information.
9632 * The compiler now contains extended explanations of many errors. When an error
9633 with an explanation occurs the compiler suggests using the `--explain` flag
9634 to read the explanation. Error explanations are also [available online][err-index].
9635 * Thanks to multiple [improvements][sk] to [type checking][pre], as
9636 well as other work, the time to bootstrap the compiler decreased by
9642 * The [`str::split_whitespace`] method splits a string on unicode
9643 whitespace boundaries.
9644 * On both Windows and Unix, new extension traits provide conversion of
9645 I/O types to and from the underlying system handles. On Unix, these
9646 traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
9647 and `AsRawHandle`. These are implemented for `File`, `TcpStream`,
9648 `TcpListener`, and `UpdSocket`. Further implementations for
9649 `std::process` will be stabilized later.
9650 * On Unix, [`std::os::unix::symlink`] creates symlinks. On
9651 Windows, symlinks can be created with
9652 `std::os::windows::symlink_dir` and
9653 `std::os::windows::symlink_file`.
9654 * The `mpsc::Receiver` type can now be converted into an iterator with
9655 `into_iter` on the [`IntoIterator`] trait.
9656 * `Ipv4Addr` can be created from `u32` with the `From<u32>`
9657 implementation of the [`From`] trait.
9658 * The `Debug` implementation for `RangeFull` [creates output that is
9659 more consistent with other implementations][rf].
9660 * [`Debug` is implemented for `File`][file].
9661 * The `Default` implementation for `Arc` [no longer requires `Sync +
9663 * [The `Iterator` methods `count`, `nth`, and `last` have been
9664 overridden for slices to have *O*(1) performance instead of *O*(*n*)][si].
9665 * Incorrect handling of paths on Windows has been improved in both the
9666 compiler and the standard library.
9667 * [`AtomicPtr` gained a `Default` implementation][ap].
9668 * In accordance with Rust's policy on arithmetic overflow `abs` now
9669 [panics on overflow when debug assertions are enabled][abs].
9670 * The [`Cloned`] iterator, which was accidentally left unstable for
9671 1.0 [has been stabilized][c].
9672 * The [`Incoming`] iterator, which iterates over incoming TCP
9673 connections, and which was accidentally unnamable in 1.0, [is now
9674 properly exported][inc].
9675 * [`BinaryHeap`] no longer corrupts itself [when functions called by
9676 `sift_up` or `sift_down` panic][bh].
9677 * The [`split_off`] method of `LinkedList` [no longer corrupts
9678 the list in certain scenarios][ll].
9683 * Type checking performance [has improved notably][sk] with
9684 [multiple improvements][pre].
9685 * The compiler [suggests code changes][ch] for more errors.
9686 * rustc and it's build system have experimental support for [building
9687 toolchains against MUSL][m] instead of glibc on Linux.
9688 * The compiler defines the `target_env` cfg value, which is used for
9689 distinguishing toolchains that are otherwise for the same
9690 platform. Presently this is set to `gnu` for common GNU Linux
9691 targets and for MinGW targets, and `musl` for MUSL Linux targets.
9692 * The [`cargo rustc`][crc] command invokes a build with custom flags
9694 * [Android executables are always position independent][pie].
9695 * [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
9696 with `Drop`][24935].
9698 [`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
9699 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
9700 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
9701 [`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
9702 [`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
9703 [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html
9704 [rf]: https://github.com/rust-lang/rust/pull/24491
9705 [err-index]: https://doc.rust-lang.org/error-index.html
9706 [sk]: https://github.com/rust-lang/rust/pull/24615
9707 [pre]: https://github.com/rust-lang/rust/pull/25323
9708 [file]: https://github.com/rust-lang/rust/pull/24598
9709 [ch]: https://github.com/rust-lang/rust/pull/24683
9710 [arc]: https://github.com/rust-lang/rust/pull/24695
9711 [si]: https://github.com/rust-lang/rust/pull/24701
9712 [ap]: https://github.com/rust-lang/rust/pull/24834
9713 [m]: https://github.com/rust-lang/rust/pull/24777
9714 [fs]: https://github.com/rust-lang/rfcs/blob/master/text/1044-io-fs-2.1.md
9715 [crc]: https://github.com/rust-lang/cargo/pull/1568
9716 [pie]: https://github.com/rust-lang/rust/pull/24953
9717 [abs]: https://github.com/rust-lang/rust/pull/25441
9718 [c]: https://github.com/rust-lang/rust/pull/25496
9719 [`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
9720 [`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
9721 [inc]: https://github.com/rust-lang/rust/pull/25522
9722 [bh]: https://github.com/rust-lang/rust/pull/25856
9723 [`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
9724 [ll]: https://github.com/rust-lang/rust/pull/26022
9725 [`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
9726 [24935]: https://github.com/rust-lang/rust/pull/24935
9728 Version 1.0.0 (2015-05-15)
9729 ========================
9731 * ~1500 changes, numerous bugfixes
9736 * The vast majority of the standard library is now `#[stable]`. It is
9737 no longer possible to use unstable features with a stable build of
9739 * Many popular crates on [crates.io] now work on the stable release
9741 * Arithmetic on basic integer types now [checks for overflow in debug
9747 * Several [restrictions have been added to trait coherence][coh] in
9748 order to make it easier for upstream authors to change traits
9749 without breaking downstream code.
9750 * Digits of binary and octal literals are [lexed more eagerly][lex] to
9751 improve error messages and macro behavior. For example, `0b1234` is
9752 now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
9753 * Trait bounds [are always invariant][inv], eliminating the need for
9754 the `PhantomFn` and `MarkerTrait` lang items, which have been
9756 * ["-" is no longer a valid character in crate names][cr], the `extern crate
9757 "foo" as bar` syntax has been replaced with `extern crate foo as
9758 bar`, and Cargo now automatically translates "-" in *package* names
9759 to underscore for the crate name.
9760 * [Lifetime shadowing is an error][lt].
9761 * [`Send` no longer implies `'static`][send-rfc].
9762 * [UFCS now supports trait-less associated paths][moar-ufcs] like
9763 `MyType::default()`.
9764 * Primitive types [now have inherent methods][prim-inherent],
9765 obviating the need for extension traits like `SliceExt`.
9766 * Methods with `Self: Sized` in their `where` clause are [considered
9767 object-safe][self-sized], allowing many extension traits like
9768 `IteratorExt` to be merged into the traits they extended.
9769 * You can now [refer to associated types][assoc-where] whose
9770 corresponding trait bounds appear only in a `where` clause.
9771 * The final bits of [OIBIT landed][oibit-final], meaning that traits
9772 like `Send` and `Sync` are now library-defined.
9773 * A [Reflect trait][reflect] was introduced, which means that
9774 downcasting via the `Any` trait is effectively limited to concrete
9775 types. This helps retain the potentially-important "parametricity"
9776 property: generic code cannot behave differently for different type
9777 arguments except in minor ways.
9778 * The `unsafe_destructor` feature is now deprecated in favor of the
9779 [new `dropck`][rfc769]. This change is a major reduction in unsafe
9785 * The `thread_local` module [has been renamed to `std::thread`][th].
9786 * The methods of `IteratorExt` [have been moved to the `Iterator`
9787 trait itself][23300].
9788 * Several traits that implement Rust's conventions for type
9789 conversions, `AsMut`, `AsRef`, `From`, and `Into` have been
9790 [centralized in the `std::convert` module][con].
9791 * The `FromError` trait [was removed in favor of `From`][fe].
9792 * The basic sleep function [has moved to
9793 `std::thread::sleep_ms`][slp].
9794 * The `splitn` function now takes an `n` parameter that represents the
9795 number of items yielded by the returned iterator [instead of the
9796 number of 'splits'][spl].
9797 * [On Unix, all file descriptors are `CLOEXEC` by default][clo].
9798 * [Derived implementations of `PartialOrd` now order enums according
9799 to their explicitly-assigned discriminants][po].
9800 * [Methods for searching strings are generic over `Pattern`s][pat],
9801 implemented presently by `&char`, `&str`, `FnMut(char) -> bool` and
9803 * [In method resolution, object methods are resolved before inherent
9805 * [`String::from_str` has been deprecated in favor of the `From` impl,
9806 `String::from`][24517].
9807 * [`io::Error` implements `Sync`][ios].
9808 * [The `words` method on `&str` has been replaced with
9809 `split_whitespace`][sw], to avoid answering the tricky question, 'what is
9811 * The new path and IO modules are complete and `#[stable]`. This
9812 was the major library focus for this cycle.
9813 * The path API was [revised][path-normalize] to normalize `.`,
9814 adjusting the tradeoffs in favor of the most common usage.
9815 * A large number of remaining APIs in `std` were also stabilized
9816 during this cycle; about 75% of the non-deprecated API surface
9818 * The new [string pattern API][string-pattern] landed, which makes
9819 the string slice API much more internally consistent and flexible.
9820 * A new set of [generic conversion traits][conversion] replaced
9821 many existing ad hoc traits.
9822 * Generic numeric traits were [completely removed][num-traits]. This
9823 was made possible thanks to inherent methods for primitive types,
9824 and the removal gives maximal flexibility for designing a numeric
9825 hierarchy in the future.
9826 * The `Fn` traits are now related via [inheritance][fn-inherit]
9827 and provide ergonomic [blanket implementations][fn-blanket].
9828 * The `Index` and `IndexMut` traits were changed to
9829 [take the index by value][index-value], enabling code like
9830 `hash_map["string"]` to work.
9831 * `Copy` now [inherits][copy-clone] from `Clone`, meaning that all
9832 `Copy` data is known to be `Clone` as well.
9837 * Many errors now have extended explanations that can be accessed with
9838 the `--explain` flag to `rustc`.
9839 * Many new examples have been added to the standard library
9841 * rustdoc has received a number of improvements focused on completion
9843 * Metadata was tuned, shrinking binaries [by 27%][metadata-shrink].
9844 * Much headway was made on ecosystem-wide CI, making it possible
9845 to [compare builds for breakage][ci-compare].
9848 [crates.io]: http://crates.io
9849 [clo]: https://github.com/rust-lang/rust/pull/24034
9850 [coh]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
9851 [con]: https://github.com/rust-lang/rust/pull/23875
9852 [cr]: https://github.com/rust-lang/rust/pull/23419
9853 [fe]: https://github.com/rust-lang/rust/pull/23879
9854 [23300]: https://github.com/rust-lang/rust/pull/23300
9855 [inv]: https://github.com/rust-lang/rust/pull/23938
9856 [ios]: https://github.com/rust-lang/rust/pull/24133
9857 [lex]: https://github.com/rust-lang/rfcs/blob/master/text/0879-small-base-lexing.md
9858 [lt]: https://github.com/rust-lang/rust/pull/24057
9859 [meth]: https://github.com/rust-lang/rust/pull/24056
9860 [pat]: https://github.com/rust-lang/rfcs/blob/master/text/0528-string-patterns.md
9861 [po]: https://github.com/rust-lang/rust/pull/24270
9862 [24517]: https://github.com/rust-lang/rust/pull/24517
9863 [slp]: https://github.com/rust-lang/rust/pull/23949
9864 [spl]: https://github.com/rust-lang/rfcs/blob/master/text/0979-align-splitn-with-other-languages.md
9865 [sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md
9866 [th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md
9867 [send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md
9868 [moar-ufcs]: https://github.com/rust-lang/rust/pull/22172
9869 [prim-inherent]: https://github.com/rust-lang/rust/pull/23104
9870 [overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md
9871 [metadata-shrink]: https://github.com/rust-lang/rust/pull/22971
9872 [self-sized]: https://github.com/rust-lang/rust/pull/22301
9873 [assoc-where]: https://github.com/rust-lang/rust/pull/22512
9874 [string-pattern]: https://github.com/rust-lang/rust/pull/22466
9875 [oibit-final]: https://github.com/rust-lang/rust/pull/21689
9876 [reflect]: https://github.com/rust-lang/rust/pull/23712
9877 [conversion]: https://github.com/rust-lang/rfcs/pull/529
9878 [num-traits]: https://github.com/rust-lang/rust/pull/23549
9879 [index-value]: https://github.com/rust-lang/rust/pull/23601
9880 [rfc769]: https://github.com/rust-lang/rfcs/pull/769
9881 [ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee
9882 [fn-inherit]: https://github.com/rust-lang/rust/pull/23282
9883 [fn-blanket]: https://github.com/rust-lang/rust/pull/23895
9884 [copy-clone]: https://github.com/rust-lang/rust/pull/23860
9885 [path-normalize]: https://github.com/rust-lang/rust/pull/23229
9888 Version 1.0.0-alpha.2 (2015-02-20)
9889 =====================================
9891 * ~1300 changes, numerous bugfixes
9895 * The various I/O modules were [overhauled][io-rfc] to reduce
9896 unnecessary abstractions and provide better interoperation with
9897 the underlying platform. The old `io` module remains temporarily
9899 * The standard library now [participates in feature gating][feat],
9900 so use of unstable libraries now requires a `#![feature(...)]`
9901 attribute. The impact of this change is [described on the
9902 forum][feat-forum]. [RFC][feat-rfc].
9906 * `for` loops [now operate on the `IntoIterator` trait][into],
9907 which eliminates the need to call `.iter()`, etc. to iterate
9908 over collections. There are some new subtleties to remember
9909 though regarding what sort of iterators various types yield, in
9910 particular that `for foo in bar { }` yields values from a move
9911 iterator, destroying the original collection. [RFC][into-rfc].
9912 * Objects now have [default lifetime bounds][obj], so you don't
9913 have to write `Box<Trait+'static>` when you don't care about
9914 storing references. [RFC][obj-rfc].
9915 * In types that implement `Drop`, [lifetimes must outlive the
9916 value][drop]. This will soon make it possible to safely
9917 implement `Drop` for types where `#[unsafe_destructor]` is now
9918 required. Read the [gorgeous RFC][drop-rfc] for details.
9919 * The fully qualified <T as Trait>::X syntax lets you set the Self
9920 type for a trait method or associated type. [RFC][ufcs-rfc].
9921 * References to types that implement `Deref<U>` now [automatically
9922 coerce to references][deref] to the dereferenced type `U`,
9923 e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This
9924 should eliminate many unsightly uses of `&*`, as when converting
9925 from references to vectors into references to
9926 slices. [RFC][deref-rfc].
9927 * The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`,
9928 `|:|`) is obsolete and closure kind is inferred from context.
9929 * [`Self` is a keyword][Self].
9933 * The `Show` and `String` formatting traits [have been
9934 renamed][fmt] to `Debug` and `Display` to more clearly reflect
9935 their related purposes. Automatically getting a string
9936 conversion to use with `format!("{:?}", something_to_debug)` is
9937 now written `#[derive(Debug)]`.
9938 * Abstract [OS-specific string types][osstr], `std::ff::{OsString,
9939 OsStr}`, provide strings in platform-specific encodings for easier
9940 interop with system APIs. [RFC][osstr-rfc].
9941 * The `boxed::into_raw` and `Box::from_raw` functions [convert
9942 between `Box<T>` and `*mut T`][boxraw], a common pattern for
9943 creating raw pointers.
9947 * Certain long error messages of the form 'expected foo found bar'
9948 are now [split neatly across multiple
9949 lines][multiline]. Examples in the PR.
9950 * On Unix Rust can be [uninstalled][un] by running
9951 `/usr/local/lib/rustlib/uninstall.sh`.
9952 * The `#[rustc_on_unimplemented]` attribute, requiring the
9953 'on_unimplemented' feature, lets rustc [display custom error
9954 messages when a trait is expected to be implemented for a type
9959 * Rust is tested against a [LALR grammar][lalr], which parses
9960 almost all the Rust files that rustc does.
9962 [boxraw]: https://github.com/rust-lang/rust/pull/21318
9963 [close]: https://github.com/rust-lang/rust/pull/21843
9964 [deref]: https://github.com/rust-lang/rust/pull/21351
9965 [deref-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md
9966 [drop]: https://github.com/rust-lang/rust/pull/21972
9967 [drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
9968 [feat]: https://github.com/rust-lang/rust/pull/21248
9969 [feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
9970 [feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
9971 [fmt]: https://github.com/rust-lang/rust/pull/21457
9972 [into]: https://github.com/rust-lang/rust/pull/20790
9973 [into-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable
9974 [io-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
9975 [lalr]: https://github.com/rust-lang/rust/pull/21452
9976 [multiline]: https://github.com/rust-lang/rust/pull/19870
9977 [obj]: https://github.com/rust-lang/rust/pull/22230
9978 [obj-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
9979 [onun]: https://github.com/rust-lang/rust/pull/20889
9980 [osstr]: https://github.com/rust-lang/rust/pull/21488
9981 [osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
9982 [Self]: https://github.com/rust-lang/rust/pull/22158
9983 [ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
9984 [un]: https://github.com/rust-lang/rust/pull/22256
9987 Version 1.0.0-alpha (2015-01-09)
9988 ==================================
9990 * ~2400 changes, numerous bugfixes
9994 * The language itself is considered feature complete for 1.0,
9995 though there will be many usability improvements and bugfixes
9996 before the final release.
9997 * Nearly 50% of the public API surface of the standard library has
9998 been declared 'stable'. Those interfaces are unlikely to change
10000 * The long-running debate over integer types has been
10001 [settled][ints]: Rust will ship with types named `isize` and
10002 `usize`, rather than `int` and `uint`, for pointer-sized
10003 integers. Guidelines will be rolled out during the alpha cycle.
10004 * Most crates that are not `std` have been moved out of the Rust
10005 distribution into the Cargo ecosystem so they can evolve
10006 separately and don't need to be stabilized as quickly, including
10007 'time', 'getopts', 'num', 'regex', and 'term'.
10008 * Documentation continues to be expanded with more API coverage, more
10009 examples, and more in-depth explanations. The guides have been
10010 consolidated into [The Rust Programming Language][trpl].
10011 * "[Rust By Example][rbe]" is now maintained by the Rust team.
10012 * All official Rust binary installers now come with [Cargo], the
10013 Rust package manager.
10017 * Closures have been [completely redesigned][unboxed] to be
10018 implemented in terms of traits, can now be used as generic type
10019 bounds and thus monomorphized and inlined, or via an opaque
10020 pointer (boxed) as in the old system. The new system is often
10021 referred to as 'unboxed' closures.
10022 * Traits now support [associated types][assoc], allowing families
10023 of related types to be defined together and used generically in
10025 * Enum variants are [namespaced by their type names][enum].
10026 * [`where` clauses][where] provide a more versatile and attractive
10027 syntax for specifying generic bounds, though the previous syntax
10029 * Rust again picks a [fallback][fb] (either i32 or f64) for uninferred
10031 * Rust [no longer has a runtime][rt] of any description, and only
10032 supports OS threads, not green threads.
10033 * At long last, Rust has been overhauled for 'dynamically-sized
10034 types' ([DST]), which integrates 'fat pointers' (object types,
10035 arrays, and `str`) more deeply into the type system, making it
10037 * Rust now has a general [range syntax][range], `i..j`, `i..`, and
10038 `..j` that produce range types and which, when combined with the
10039 `Index` operator and multidispatch, leads to a convenient slice
10040 notation, `[i..j]`.
10041 * The new range syntax revealed an ambiguity in the fixed-length
10042 array syntax, so now fixed length arrays [are written `[T;
10044 * The `Copy` trait is no longer implemented automatically. Unsafe
10045 pointers no longer implement `Sync` and `Send` so types
10046 containing them don't automatically either. `Sync` and `Send`
10047 are now 'unsafe traits' so one can "forcibly" implement them via
10048 `unsafe impl` if a type confirms to the requirements for them
10049 even though the internals do not (e.g. structs containing unsafe
10050 pointers like `Arc`). These changes are intended to prevent some
10051 footguns and are collectively known as [opt-in built-in
10052 traits][oibit] (though `Sync` and `Send` will soon become pure
10053 library types unknown to the compiler).
10054 * Operator traits now take their operands [by value][ops], and
10055 comparison traits can use multidispatch to compare one type
10056 against multiple other types, allowing e.g. `String` to be
10057 compared with `&str`.
10058 * `if let` and `while let` are no longer feature-gated.
10059 * Rust has adopted a more [uniform syntax for escaping unicode
10060 characters][unicode].
10061 * `macro_rules!` [has been declared stable][mac]. Though it is a
10062 flawed system it is sufficiently popular that it must be usable
10063 for 1.0. Effort has gone into [future-proofing][mac-future] it
10064 in ways that will allow other macro systems to be developed in
10065 parallel, and won't otherwise impact the evolution of the
10067 * The prelude has been [pared back significantly][prelude] such
10068 that it is the minimum necessary to support the most pervasive
10069 code patterns, and through [generalized where clauses][where]
10070 many of the prelude extension traits have been consolidated.
10071 * Rust's rudimentary reflection [has been removed][refl], as it
10072 incurred too much code generation for little benefit.
10073 * [Struct variants][structvars] are no longer feature-gated.
10074 * Trait bounds can be [polymorphic over lifetimes][hrtb]. Also
10075 known as 'higher-ranked trait bounds', this crucially allows
10076 unboxed closures to work.
10077 * Macros invocations surrounded by parens or square brackets and
10078 not terminated by a semicolon are [parsed as
10079 expressions][macros], which makes expressions like `vec![1i32,
10080 2, 3].len()` work as expected.
10081 * Trait objects now implement their traits automatically, and
10082 traits that can be coerced to objects now must be [object
10084 * Automatically deriving traits is now done with `#[derive(...)]`
10085 not `#[deriving(...)]` for [consistency with other naming
10086 conventions][derive].
10087 * Importing the containing module or enum at the same time as
10088 items or variants they contain is [now done with `self` instead
10089 of `mod`][self], as in use `foo::{self, bar}`
10090 * Glob imports are no longer feature-gated.
10091 * The `box` operator and `box` patterns have been feature-gated
10092 pending a redesign. For now unique boxes should be allocated
10093 like other containers, with `Box::new`.
10097 * A [series][coll1] of [efforts][coll2] to establish
10098 [conventions][coll3] for collections types has resulted in API
10099 improvements throughout the standard library.
10100 * New [APIs for error handling][err] provide ergonomic interop
10101 between error types, and [new conventions][err-conv] describe
10102 more clearly the recommended error handling strategies in Rust.
10103 * The `fail!` macro has been renamed to [`panic!`][panic] so that
10104 it is easier to discuss failure in the context of error handling
10105 without making clarifications as to whether you are referring to
10106 the 'fail' macro or failure more generally.
10107 * On Linux, `OsRng` prefers the new, more reliable `getrandom`
10108 syscall when available.
10109 * The 'serialize' crate has been renamed 'rustc-serialize' and
10110 moved out of the distribution to Cargo. Although it is widely
10111 used now, it is expected to be superseded in the near future.
10112 * The `Show` formatter, typically implemented with
10113 `#[derive(Show)]` is [now requested with the `{:?}`
10114 specifier][show] and is intended for use by all types, for uses
10115 such as `println!` debugging. The new `String` formatter must be
10116 implemented by hand, uses the `{}` specifier, and is intended
10117 for full-fidelity conversions of things that can logically be
10118 represented as strings.
10122 * [Flexible target specification][flex] allows rustc's code
10123 generation to be configured to support otherwise-unsupported
10125 * Rust comes with rust-gdb and rust-lldb scripts that launch their
10126 respective debuggers with Rust-appropriate pretty-printing.
10127 * The Windows installation of Rust is distributed with the
10128 MinGW components currently required to link binaries on that
10133 * Nullable enum optimizations have been extended to more types so
10134 that e.g. `Option<Vec<T>>` and `Option<String>` take up no more
10135 space than the inner types themselves.
10136 * Work has begun on supporting AArch64.
10138 [Cargo]: https://crates.io
10139 [unboxed]: http://smallcultfollowing.com/babysteps/blog/2014/11/26/purging-proc/
10140 [enum]: https://github.com/rust-lang/rfcs/blob/master/text/0390-enum-namespacing.md
10141 [flex]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md
10142 [err]: https://github.com/rust-lang/rfcs/blob/master/text/0201-error-chaining.md
10143 [err-conv]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md
10144 [rt]: https://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md
10145 [mac]: https://github.com/rust-lang/rfcs/blob/master/text/0453-macro-reform.md
10146 [mac-future]: https://github.com/rust-lang/rfcs/pull/550
10147 [DST]: http://smallcultfollowing.com/babysteps/blog/2014/01/05/dst-take-5/
10148 [coll1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md
10149 [coll2]: https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
10150 [coll3]: https://github.com/rust-lang/rfcs/blob/master/text/0216-collection-views.md
10151 [ops]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md
10152 [prelude]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
10153 [where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md
10154 [refl]: https://github.com/rust-lang/rfcs/blob/master/text/0379-remove-reflection.md
10155 [panic]: https://github.com/rust-lang/rfcs/blob/master/text/0221-panic.md
10156 [structvars]: https://github.com/rust-lang/rfcs/blob/master/text/0418-struct-variants.md
10157 [hrtb]: https://github.com/rust-lang/rfcs/blob/master/text/0387-higher-ranked-trait-bounds.md
10158 [unicode]: https://github.com/rust-lang/rfcs/blob/master/text/0446-es6-unicode-escapes.md
10159 [oibit]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md
10160 [macros]: https://github.com/rust-lang/rfcs/blob/master/text/0378-expr-macros.md
10161 [range]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md#indexing-and-slicing
10162 [arrays]: https://github.com/rust-lang/rfcs/blob/master/text/0520-new-array-repeat-syntax.md
10163 [show]: https://github.com/rust-lang/rfcs/blob/master/text/0504-show-stabilization.md
10164 [derive]: https://github.com/rust-lang/rfcs/blob/master/text/0534-deriving2derive.md
10165 [self]: https://github.com/rust-lang/rfcs/blob/master/text/0532-self-in-use.md
10166 [fb]: https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md
10167 [objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
10168 [assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
10169 [ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
10170 [trpl]: https://doc.rust-lang.org/book/index.html
10171 [rbe]: http://rustbyexample.com/
10174 Version 0.12.0 (2014-10-09)
10175 =============================
10177 * ~1900 changes, numerous bugfixes
10181 * The introductory documentation (now called The Rust Guide) has
10182 been completely rewritten, as have a number of supplementary
10184 * Rust's package manager, Cargo, continues to improve and is
10185 sometimes considered to be quite awesome.
10186 * Many API's in `std` have been reviewed and updated for
10187 consistency with the in-development Rust coding
10188 guidelines. The standard library documentation tracks
10189 stabilization progress.
10190 * Minor libraries have been moved out-of-tree to the rust-lang org
10191 on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can
10192 be installed with Cargo.
10193 * Lifetime elision allows lifetime annotations to be left off of
10194 function declarations in many common scenarios.
10195 * Rust now works on 64-bit Windows.
10198 * Indexing can be overloaded with the `Index` and `IndexMut`
10200 * The `if let` construct takes a branch only if the `let` pattern
10201 matches, currently behind the 'if_let' feature gate.
10202 * 'where clauses', a more flexible syntax for specifying trait
10203 bounds that is more aesthetic, have been added for traits and
10204 free functions. Where clauses will in the future make it
10205 possible to constrain associated types, which would be
10206 impossible with the existing syntax.
10207 * A new slicing syntax (e.g. `[0..4]`) has been introduced behind
10208 the 'slicing_syntax' feature gate, and can be overloaded with
10209 the `Slice` or `SliceMut` traits.
10210 * The syntax for matching of sub-slices has been changed to use a
10211 postfix `..` instead of prefix (.e.g. `[a, b, c..]`), for
10212 consistency with other uses of `..` and to future-proof
10213 potential additional uses of the syntax.
10214 * The syntax for matching inclusive ranges in patterns has changed
10215 from `0..3` to `0...4` to be consistent with the exclusive range
10216 syntax for slicing.
10217 * Matching of sub-slices in non-tail positions (e.g. `[a.., b,
10218 c]`) has been put behind the 'advanced_slice_patterns' feature
10219 gate and may be removed in the future.
10220 * Components of tuples and tuple structs can be extracted using
10221 the `value.0` syntax, currently behind the `tuple_indexing`
10223 * The `#[crate_id]` attribute is no longer supported; versioning
10224 is handled by the package manager.
10225 * Renaming crate imports are now written `extern crate foo as bar`
10226 instead of `extern crate bar = foo`.
10227 * Renaming use statements are now written `use foo as bar` instead
10228 of `use bar = foo`.
10229 * `let` and `match` bindings and argument names in macros are now
10231 * The new, more efficient, closure types ('unboxed closures') have
10232 been added under a feature gate, 'unboxed_closures'. These will
10233 soon replace the existing closure types, once higher-ranked
10234 trait lifetimes are added to the language.
10235 * `move` has been added as a keyword, for indicating closures
10236 that capture by value.
10237 * Mutation and assignment is no longer allowed in pattern guards.
10238 * Generic structs and enums can now have trait bounds.
10239 * The `Share` trait is now called `Sync` to free up the term
10240 'shared' to refer to 'shared reference' (the default reference
10242 * Dynamically-sized types have been mostly implemented,
10243 unifying the behavior of fat-pointer types with the rest of the
10245 * As part of dynamically-sized types, the `Sized` trait has been
10246 introduced, which qualifying types implement by default, and
10247 which type parameters expect by default. To specify that a type
10248 parameter does not need to be sized, write `<Sized? T>`. Most
10249 types are `Sized`, notable exceptions being unsized arrays
10250 (`[T]`) and trait types.
10251 * Closures can return `!`, as in `|| -> !` or `proc() -> !`.
10252 * Lifetime bounds can now be applied to type parameters and object
10254 * The old, reference counted GC type, `Gc<T>` which was once
10255 denoted by the `@` sigil, has finally been removed. GC will be
10256 revisited in the future.
10259 * Library documentation has been improved for a number of modules.
10260 * Bit-vectors, collections::bitv has been modernized.
10261 * The url crate is deprecated in favor of
10262 http://github.com/servo/rust-url, which can be installed with
10264 * Most I/O stream types can be cloned and subsequently closed from
10265 a different thread.
10266 * A `std::time::Duration` type has been added for use in I/O
10267 methods that rely on timers, as well as in the 'time' crate's
10268 `Timespec` arithmetic.
10269 * The runtime I/O abstraction layer that enabled the green thread
10270 scheduler to do non-thread-blocking I/O has been removed, along
10271 with the libuv-based implementation employed by the green thread
10272 scheduler. This will greatly simplify the future I/O work.
10273 * `collections::btree` has been rewritten to have a more
10274 idiomatic and efficient design.
10277 * rustdoc output now indicates the stability levels of API's.
10278 * The `--crate-name` flag can specify the name of the crate
10279 being compiled, like `#[crate_name]`.
10280 * The `-C metadata` specifies additional metadata to hash into
10281 symbol names, and `-C extra-filename` specifies additional
10282 information to put into the output filename, for use by the
10283 package manager for versioning.
10284 * debug info generation has continued to improve and should be
10285 more reliable under both gdb and lldb.
10286 * rustc has experimental support for compiling in parallel
10287 using the `-C codegen-units` flag.
10288 * rustc no longer encodes rpath information into binaries by
10292 * Stack usage has been optimized with LLVM lifetime annotations.
10293 * Official Rust binaries on Linux are more compatible with older
10294 kernels and distributions, built on CentOS 5.10.
10297 Version 0.11.0 (2014-07-02)
10298 ==========================
10300 * ~1700 changes, numerous bugfixes
10303 * ~[T] has been removed from the language. This type is superseded by
10305 * ~str has been removed from the language. This type is superseded by
10307 * ~T has been removed from the language. This type is superseded by the
10309 * @T has been removed from the language. This type is superseded by the
10310 standard library's std::gc::Gc<T> type.
10311 * Struct fields are now all private by default.
10312 * Vector indices and shift amounts are both required to be a `uint`
10313 instead of any integral type.
10314 * Byte character, byte string, and raw byte string literals are now all
10315 supported by prefixing the normal literal with a `b`.
10316 * Multiple ABIs are no longer allowed in an ABI string
10317 * The syntax for lifetimes on closures/procedures has been tweaked
10318 slightly: `<'a>|A, B|: 'b + K -> T`
10319 * Floating point modulus has been removed from the language; however it
10320 is still provided by a library implementation.
10321 * Private enum variants are now disallowed.
10322 * The `priv` keyword has been removed from the language.
10323 * A closure can no longer be invoked through a &-pointer.
10324 * The `use foo, bar, baz;` syntax has been removed from the language.
10325 * The transmute intrinsic no longer works on type parameters.
10326 * Statics now allow blocks/items in their definition.
10327 * Trait bounds are separated from objects with + instead of : now.
10328 * Objects can no longer be read while they are mutably borrowed.
10329 * The address of a static is now marked as insignificant unless the
10330 #[inline(never)] attribute is placed it.
10331 * The #[unsafe_destructor] attribute is now behind a feature gate.
10332 * Struct literals are no longer allowed in ambiguous positions such as
10333 if, while, match, and for..in.
10334 * Declaration of lang items and intrinsics are now feature-gated by
10336 * Integral literals no longer default to `int`, and floating point
10337 literals no longer default to `f64`. Literals must be suffixed with an
10338 appropriate type if inference cannot determine the type of the
10340 * The Box<T> type is no longer implicitly borrowed to &mut T.
10341 * Procedures are now required to not capture borrowed references.
10344 * The standard library is now a "facade" over a number of underlying
10345 libraries. This means that development on the standard library should
10346 be speedier due to smaller crates, as well as a clearer line between
10348 * A new library, libcore, lives under the standard library's facade
10349 which is Rust's "0-assumption" library, suitable for embedded and
10350 kernel development for example.
10351 * A regex crate has been added to the standard distribution. This crate
10352 includes statically compiled regular expressions.
10353 * The unwrap/unwrap_err methods on Result require a Show bound for
10354 better error messages.
10355 * The return types of the std::comm primitives have been centralized
10356 around the Result type.
10357 * A number of I/O primitives have gained the ability to time out their
10359 * A number of I/O primitives have gained the ability to close their
10360 reading/writing halves to cancel pending operations.
10361 * Reverse iterator methods have been removed in favor of `rev()` on
10362 their forward-iteration counterparts.
10363 * A bitflags! macro has been added to enable easy interop with C and
10364 management of bit flags.
10365 * A debug_assert! macro is now provided which is disabled when
10366 `--cfg ndebug` is passed to the compiler.
10367 * A graphviz crate has been added for creating .dot files.
10368 * The std::cast module has been migrated into std::mem.
10369 * The std::local_data api has been migrated from freestanding functions
10370 to being based on methods.
10371 * The Pod trait has been renamed to Copy.
10372 * jemalloc has been added as the default allocator for types.
10373 * The API for allocating memory has been changed to use proper alignment
10374 and sized deallocation
10375 * Connecting a TcpStream or binding a TcpListener is now based on a
10376 string address and a u16 port. This allows connecting to a hostname as
10378 * The Reader trait now contains a core method, read_at_least(), which
10379 correctly handles many repeated 0-length reads.
10380 * The process-spawning API is now centered around a builder-style
10382 * The :? printing qualifier has been moved from the standard library to
10383 an external libdebug crate.
10384 * Eq/Ord have been renamed to PartialEq/PartialOrd. TotalEq/TotalOrd
10385 have been renamed to Eq/Ord.
10386 * The select/plural methods have been removed from format!. The escapes
10387 for { and } have also changed from \{ and \} to {{ and }},
10389 * The TaskBuilder API has been re-worked to be a true builder, and
10390 extension traits for spawning native/green tasks have been added.
10393 * All breaking changes to the language or libraries now have their
10394 commit message annotated with `[breaking-change]` to allow for easy
10395 discovery of breaking changes.
10396 * The compiler will now try to suggest how to annotate lifetimes if a
10397 lifetime-related error occurs.
10398 * Debug info continues to be improved greatly with general bug fixes and
10399 better support for situations like link time optimization (LTO).
10400 * Usage of syntax extensions when cross-compiling has been fixed.
10401 * Functionality equivalent to GCC & Clang's -ffunction-sections,
10402 -fdata-sections and --gc-sections has been enabled by default
10403 * The compiler is now stricter about where it will load module files
10404 from when a module is declared via `mod foo;`.
10405 * The #[phase(syntax)] attribute has been renamed to #[phase(plugin)].
10406 Syntax extensions are now discovered via a "plugin registrar" type
10407 which will be extended in the future to other various plugins.
10408 * Lints have been restructured to allow for dynamically loadable lints.
10409 * A number of rustdoc improvements:
10410 * The HTML output has been visually redesigned.
10411 * Markdown is now powered by hoedown instead of sundown.
10412 * Searching heuristics have been greatly improved.
10413 * The search index has been reduced in size by a great amount.
10414 * Cross-crate documentation via `pub use` has been greatly improved.
10415 * Primitive types are now hyperlinked and documented.
10416 * Documentation has been moved from static.rust-lang.org/doc to
10418 * A new sandbox, play.rust-lang.org, is available for running and
10419 sharing rust code examples on-line.
10420 * Unused attributes are now more robustly warned about.
10421 * The dead_code lint now warns about unused struct fields.
10422 * Cross-compiling to iOS is now supported.
10423 * Cross-compiling to mipsel is now supported.
10424 * Stability attributes are now inherited by default and no longer apply
10425 to intra-crate usage, only inter-crate usage.
10426 * Error message related to non-exhaustive match expressions have been
10430 Version 0.10 (2014-04-03)
10431 =========================
10433 * ~1500 changes, numerous bugfixes
10436 * A new RFC process is now in place for modifying the language.
10437 * Patterns with `@`-pointers have been removed from the language.
10438 * Patterns with unique vectors (`~[T]`) have been removed from the
10440 * Patterns with unique strings (`~str`) have been removed from the
10442 * `@str` has been removed from the language.
10443 * `@[T]` has been removed from the language.
10444 * `@self` has been removed from the language.
10445 * `@Trait` has been removed from the language.
10446 * Headers on `~` allocations which contain `@` boxes inside the type for
10447 reference counting have been removed.
10448 * The semantics around the lifetimes of temporary expressions have changed,
10449 see #3511 and #11585 for more information.
10450 * Cross-crate syntax extensions are now possible, but feature gated. See
10451 #11151 for more information. This includes both `macro_rules!` macros as
10452 well as syntax extensions such as `format!`.
10453 * New lint modes have been added, and older ones have been turned on to be
10455 * Unnecessary parentheses
10456 * Uppercase statics
10458 * Uppercase variables
10459 * Publicly visible private types
10460 * `#[deriving]` with raw pointers
10461 * Unsafe functions can no longer be coerced to closures.
10462 * Various obscure macros such as `log_syntax!` are now behind feature gates.
10463 * The `#[simd]` attribute is now behind a feature gate.
10464 * Visibility is no longer allowed on `extern crate` statements, and
10465 unnecessary visibility (`priv`) is no longer allowed on `use` statements.
10466 * Trailing commas are now allowed in argument lists and tuple patterns.
10467 * The `do` keyword has been removed, it is now a reserved keyword.
10468 * Default type parameters have been implemented, but are feature gated.
10469 * Borrowed variables through captures in closures are now considered soundly.
10470 * `extern mod` is now `extern crate`
10471 * The `Freeze` trait has been removed.
10472 * The `Share` trait has been added for types that can be shared among
10474 * Labels in macros are now hygienic.
10475 * Expression/statement macro invocations can be delimited with `{}` now.
10476 * Treatment of types allowed in `static mut` locations has been tweaked.
10477 * The `*` and `.` operators are now overloadable through the `Deref` and
10479 * `~Trait` and `proc` no longer have `Send` bounds by default.
10480 * Partial type hints are now supported with the `_` type marker.
10481 * An `Unsafe` type was introduced for interior mutability. It is now
10482 considered undefined to transmute from `&T` to `&mut T` without using the
10484 * The #[linkage] attribute was implemented for extern statics/functions.
10485 * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
10486 * `Pod` was renamed to `Copy`.
10489 * The `libextra` library has been removed. It has now been decomposed into
10490 component libraries with smaller and more focused nuggets of
10491 functionality. The full list of libraries can be found on the
10492 documentation index page.
10493 * std: `std::condition` has been removed. All I/O errors are now propagated
10494 through the `Result` type. In order to assist with error handling, a
10495 `try!` macro for unwrapping errors with an early return and a lint for
10496 unused results has been added. See #12039 for more information.
10497 * std: The `vec` module has been renamed to `slice`.
10498 * std: A new vector type, `Vec<T>`, has been added in preparation for DST.
10499 This will become the only growable vector in the future.
10500 * std: `std::io` now has more public re-exports. Types such as `BufferedReader`
10501 are now found at `std::io::BufferedReader` instead of
10502 `std::io::buffered::BufferedReader`.
10503 * std: `print` and `println` are no longer in the prelude, the `print!` and
10504 `println!` macros are intended to be used instead.
10505 * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer
10506 attempts to statically prevent cycles.
10507 * std: The standard distribution is adopting the policy of pushing failure
10508 to the user rather than failing in libraries. Many functions (such as
10509 `slice::last()`) now return `Option<T>` instead of `T` + failing.
10510 * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new
10511 deriving mode: `#[deriving(Show)]`.
10512 * std: `ToStr` is now implemented for all types implementing `Show`.
10513 * std: The formatting trait methods now take `&self` instead of `&T`
10514 * std: The `invert()` method on iterators has been renamed to `rev()`
10515 * std: `std::num` has seen a reduction in the genericity of its traits,
10516 consolidating functionality into a few core traits.
10517 * std: Backtraces are now printed on task failure if the environment
10518 variable `RUST_BACKTRACE` is present.
10519 * std: Naming conventions for iterators have been standardized. More details
10520 can be found on the wiki's style guide.
10521 * std: `eof()` has been removed from the `Reader` trait. Specific types may
10522 still implement the function.
10523 * std: Networking types are now cloneable to allow simultaneous reads/writes.
10524 * std: `assert_approx_eq!` has been removed
10525 * std: The `e` and `E` formatting specifiers for floats have been added to
10526 print them in exponential notation.
10527 * std: The `Times` trait has been removed
10528 * std: Indications of variance and opting out of builtin bounds is done
10529 through marker types in `std::kinds::marker` now
10530 * std: `hash` has been rewritten, `IterBytes` has been removed, and
10531 `#[deriving(Hash)]` is now possible.
10532 * std: `SharedChan` has been removed, `Sender` is now cloneable.
10533 * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`.
10534 * std: `Chan::new` is now `channel()`.
10535 * std: A new synchronous channel type has been implemented.
10536 * std: A `select!` macro is now provided for selecting over `Receiver`s.
10537 * std: `hashmap` and `trie` have been moved to `libcollections`
10538 * std: `run` has been rolled into `io::process`
10539 * std: `assert_eq!` now uses `{}` instead of `{:?}`
10540 * std: The equality and comparison traits have seen some reorganization.
10541 * std: `rand` has moved to `librand`.
10542 * std: `to_{lower,upper}case` has been implemented for `char`.
10543 * std: Logging has been moved to `liblog`.
10544 * collections: `HashMap` has been rewritten for higher performance and less
10546 * native: The default runtime is now `libnative`. If `libgreen` is desired,
10547 it can be booted manually. The runtime guide has more information and
10549 * native: All I/O functionality except signals has been implemented.
10550 * green: Task spawning with `libgreen` has been optimized with stack caching
10551 and various trimming of code.
10552 * green: Tasks spawned by `libgreen` now have an unmapped guard page.
10553 * sync: The `extra::sync` module has been updated to modern rust (and moved
10554 to the `sync` library), tweaking and improving various interfaces while
10555 dropping redundant functionality.
10556 * sync: A new `Barrier` type has been added to the `sync` library.
10557 * sync: An efficient mutex for native and green tasks has been implemented.
10558 * serialize: The `base64` module has seen some improvement. It treats
10559 newlines better, has non-string error values, and has seen general
10561 * fourcc: A `fourcc!` macro was introduced
10562 * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a
10563 hexadecimal literal.
10566 * `rustpkg` has been deprecated and removed from the main repository. Its
10567 replacement, `cargo`, is under development.
10568 * Nightly builds of rust are now available
10569 * The memory usage of rustc has been improved many times throughout this
10571 * The build process supports disabling rpath support for the rustc binary
10573 * Code generation has improved in some cases, giving more information to the
10574 LLVM optimization passes to enable more extensive optimizations.
10575 * Debuginfo compatibility with lldb on OSX has been restored.
10576 * The master branch is now gated on an android bot, making building for
10577 android much more reliable.
10578 * Output flags have been centralized into one `--emit` flag.
10579 * Crate type flags have been centralized into one `--crate-type` flag.
10580 * Codegen flags have been consolidated behind a `-C` flag.
10581 * Linking against outdated crates now has improved error messages.
10582 * Error messages with lifetimes will often suggest how to annotate the
10583 function to fix the error.
10584 * Many more types are documented in the standard library, and new guides
10586 * Many `rustdoc` improvements:
10587 * code blocks are syntax highlighted.
10588 * render standalone markdown files.
10589 * the --test flag tests all code blocks by default.
10590 * exported macros are displayed.
10591 * re-exported types have their documentation inlined at the location of the
10593 * search works across crates that have been rendered to the same output
10597 Version 0.9 (2014-01-09)
10598 ==========================
10600 * ~1800 changes, numerous bugfixes
10603 * The `float` type has been removed. Use `f32` or `f64` instead.
10604 * A new facility for enabling experimental features (feature gating) has
10605 been added, using the crate-level `#[feature(foo)]` attribute.
10606 * Managed boxes (@) are now behind a feature gate
10607 (`#[feature(managed_boxes)]`) in preparation for future removal. Use the
10608 standard library's `Gc` or `Rc` types instead.
10609 * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
10610 * Jumping back to the top of a loop is now done with `continue` instead of
10612 * Strings can no longer be mutated through index assignment.
10613 * Raw strings can be created via the basic `r"foo"` syntax or with matched
10614 hash delimiters, as in `r###"foo"###`.
10615 * `~fn` is now written `proc (args) -> retval { ... }` and may only be
10617 * The `&fn` type is now written `|args| -> ret` to match the literal form.
10618 * `@fn`s have been removed.
10619 * `do` only works with procs in order to make it obvious what the cost
10621 * Single-element tuple-like structs can no longer be dereferenced to
10622 obtain the inner value. A more comprehensive solution for overloading
10623 the dereference operator will be provided in the future.
10624 * The `#[link(...)]` attribute has been replaced with
10625 `#[crate_id = "name#vers"]`.
10626 * Empty `impl`s must be terminated with empty braces and may not be
10627 terminated with a semicolon.
10628 * Keywords are no longer allowed as lifetime names; the `self` lifetime
10629 no longer has any special meaning.
10630 * The old `fmt!` string formatting macro has been removed.
10631 * `printf!` and `printfln!` (old-style formatting) removed in favor of
10632 `print!` and `println!`.
10633 * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
10634 * The `extern mod foo (name = "bar")` syntax has been removed. Use
10635 `extern mod foo = "bar"` instead.
10636 * New reserved keywords: `alignof`, `offsetof`, `sizeof`.
10637 * Macros can have attributes.
10638 * Macros can expand to items with attributes.
10639 * Macros can expand to multiple items.
10640 * The `asm!` macro is feature-gated (`#[feature(asm)]`).
10641 * Comments may be nested.
10642 * Values automatically coerce to trait objects they implement, without
10644 * Enum discriminants are no longer an entire word but as small as needed to
10645 contain all the variants. The `repr` attribute can be used to override
10646 the discriminant size, as in `#[repr(int)]` for integer-sized, and
10647 `#[repr(C)]` to match C enums.
10648 * Non-string literals are not allowed in attributes (they never worked).
10649 * The FFI now supports variadic functions.
10650 * Octal numeric literals, as in `0o7777`.
10651 * The `concat!` syntax extension performs compile-time string concatenation.
10652 * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
10653 removed as Rust no longer uses segmented stacks.
10654 * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
10655 * Ignoring all fields of an enum variant or tuple-struct is done with `..`,
10656 not `*`; ignoring remaining fields of a struct is also done with `..`,
10657 not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
10658 * `rustc` supports the "win64" calling convention via `extern "win64"`.
10659 * `rustc` supports the "system" calling convention, which defaults to the
10660 preferred convention for the target platform, "stdcall" on 32-bit Windows,
10662 * The `type_overflow` lint (default: warn) checks literals for overflow.
10663 * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
10664 * The `attribute_usage` lint (default: warn) warns about unknown
10666 * The `unknown_features` lint (default: warn) warns about unknown
10668 * The `dead_code` lint (default: warn) checks for dead code.
10669 * Rust libraries can be linked statically to one another
10670 * `#[link_args]` is behind the `link_args` feature gate.
10671 * Native libraries are now linked with `#[link(name = "foo")]`
10672 * Native libraries can be statically linked to a rust crate
10673 (`#[link(name = "foo", kind = "static")]`).
10674 * Native OS X frameworks are now officially supported
10675 (`#[link(name = "foo", kind = "framework")]`).
10676 * The `#[thread_local]` attribute creates thread-local (not task-local)
10677 variables. Currently behind the `thread_local` feature gate.
10678 * The `return` keyword may be used in closures.
10679 * Types that can be copied via a memcpy implement the `Pod` kind.
10680 * The `cfg` attribute can now be used on struct fields and enum variants.
10683 * std: The `option` and `result` API's have been overhauled to make them
10684 simpler, more consistent, and more composable.
10685 * std: The entire `std::io` module has been replaced with one that is
10686 more comprehensive and that properly interfaces with the underlying
10687 scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
10689 * std: `io::util` contains a number of useful implementations of
10690 `Reader` and `Writer`, including `NullReader`, `NullWriter`,
10691 `ZeroReader`, `TeeReader`.
10692 * std: The reference counted pointer type `extra::rc` moved into std.
10693 * std: The `Gc` type in the `gc` module will replace `@` (it is currently
10694 just a wrapper around it).
10695 * std: The `Either` type has been removed.
10696 * std: `fmt::Default` can be implemented for any type to provide default
10697 formatting to the `format!` macro, as in `format!("{}", myfoo)`.
10698 * std: The `rand` API continues to be tweaked.
10699 * std: The `rust_begin_unwind` function, useful for inserting breakpoints
10700 on failure in gdb, is now named `rust_fail`.
10701 * std: The `each_key` and `each_value` methods on `HashMap` have been
10702 replaced by the `keys` and `values` iterators.
10703 * std: Functions dealing with type size and alignment have moved from the
10704 `sys` module to the `mem` module.
10705 * std: The `path` module was written and API changed.
10706 * std: `str::from_utf8` has been changed to cast instead of allocate.
10707 * std: `starts_with` and `ends_with` methods added to vectors via the
10708 `ImmutableEqVector` trait, which is in the prelude.
10709 * std: Vectors can be indexed with the `get_opt` method, which returns `None`
10710 if the index is out of bounds.
10711 * std: Task failure no longer propagates between tasks, as the model was
10712 complex, expensive, and incompatible with thread-based tasks.
10713 * std: The `Any` type can be used for dynamic typing.
10714 * std: `~Any` can be passed to the `fail!` macro and retrieved via
10716 * std: Methods that produce iterators generally do not have an `_iter`
10718 * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
10719 roots (mutable fields, etc.). Use instead of e.g. `@mut`.
10720 * std: `util::ignore` renamed to `prelude::drop`.
10721 * std: Slices have `sort` and `sort_by` methods via the `MutableVector`
10723 * std: `vec::raw` has seen a lot of cleanup and API changes.
10724 * std: The standard library no longer includes any C++ code, and very
10725 minimal C, eliminating the dependency on libstdc++.
10726 * std: Runtime scheduling and I/O functionality has been factored out into
10727 extensible interfaces and is now implemented by two different crates:
10728 libnative, for native threading and I/O; and libgreen, for green threading
10729 and I/O. This paves the way for using the standard library in more limited
10730 embedded environments.
10731 * std: The `comm` module has been rewritten to be much faster, have a
10732 simpler, more consistent API, and to work for both native and green
10734 * std: All libuv dependencies have been moved into the rustuv crate.
10735 * native: New implementations of runtime scheduling on top of OS threads.
10736 * native: New native implementations of TCP, UDP, file I/O, process spawning,
10738 * green: The green thread scheduler and message passing types are almost
10739 entirely lock-free.
10740 * extra: The `flatpipes` module had bitrotted and was removed.
10741 * extra: All crypto functions have been removed and Rust now has a policy of
10742 not reimplementing crypto in the standard library. In the future crypto
10743 will be provided by external crates with bindings to established libraries.
10744 * extra: `c_vec` has been modernized.
10745 * extra: The `sort` module has been removed. Use the `sort` method on
10749 * The `rust` and `rusti` commands have been removed, due to lack of
10751 * `rustdoc` was completely rewritten.
10752 * `rustdoc` can test code examples in documentation.
10753 * `rustpkg` can test packages with the argument, 'test'.
10754 * `rustpkg` supports arbitrary dependencies, including C libraries.
10755 * `rustc`'s support for generating debug info is improved again.
10756 * `rustc` has better error reporting for unbalanced delimiters.
10757 * `rustc`'s JIT support was removed due to bitrot.
10758 * Executables and static libraries can be built with LTO (-Z lto)
10759 * `rustc` adds a `--dep-info` flag for communicating dependencies to
10763 Version 0.8 (2013-09-26)
10764 ============================
10766 * ~2200 changes, numerous bugfixes
10769 * The `for` loop syntax has changed to work with the `Iterator` trait.
10770 * At long last, unwinding works on Windows.
10771 * Default methods are ready for use.
10772 * Many trait inheritance bugs fixed.
10773 * Owned and borrowed trait objects work more reliably.
10774 * `copy` is no longer a keyword. It has been replaced by the `Clone` trait.
10775 * rustc can omit emission of code for the `debug!` macro if it is passed
10777 * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look
10778 for foo.rs, then foo/mod.rs, and will generate an error when both are
10780 * Strings no longer contain trailing nulls. The new `std::c_str` module
10781 provides new mechanisms for converting to C strings.
10782 * The type of foreign functions is now `extern "C" fn` instead of `*u8'.
10783 * The FFI has been overhauled such that foreign functions are called directly,
10784 instead of through a stack-switching wrapper.
10785 * Calling a foreign function must be done through a Rust function with the
10786 `#[fixed_stack_segment]` attribute.
10787 * The `externfn!` macro can be used to declare both a foreign function and
10788 a `#[fixed_stack_segment]` wrapper at once.
10789 * `pub` and `priv` modifiers on `extern` blocks are no longer parsed.
10790 * `unsafe` is no longer allowed on extern fns - they are all unsafe.
10791 * `priv` is disallowed everywhere except for struct fields and enum variants.
10792 * `&T` (besides `&'static T`) is no longer allowed in `@T`.
10793 * `ref` bindings in irrefutable patterns work correctly now.
10794 * `char` is now prevented from containing invalid code points.
10795 * Casting to `bool` is no longer allowed.
10796 * `\0` is now accepted as an escape in chars and strings.
10797 * `yield` is a reserved keyword.
10798 * `typeof` is a reserved keyword.
10799 * Crates may be imported by URL with `extern mod foo = "url";`.
10800 * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }`
10801 * Static vectors can be initialized with repeating elements,
10802 e.g. `static foo: [u8, .. 100]: [0, .. 100];`.
10803 * Static structs can be initialized with functional record update,
10804 e.g. `static foo: Foo = Foo { a: 5, .. bar };`.
10805 * `cfg!` can be used to conditionally execute code based on the crate
10806 configuration, similarly to `#[cfg(...)]`.
10807 * The `unnecessary_qualification` lint detects unneeded module
10808 prefixes (default: allow).
10809 * Arithmetic operations have been implemented on the SIMD types in
10810 `std::unstable::simd`.
10811 * Exchange allocation headers were removed, reducing memory usage.
10812 * `format!` implements a completely new, extensible, and higher-performance
10813 string formatting system. It will replace `fmt!`.
10814 * `print!` and `println!` write formatted strings (using the `format!`
10815 extension) to stdout.
10816 * `write!` and `writeln!` write formatted strings (using the `format!`
10817 extension) to the new Writers in `std::rt::io`.
10818 * The library section in which a function or static is placed may
10819 be specified with `#[link_section = "..."]`.
10820 * The `proto!` syntax extension for defining bounded message protocols
10822 * `macro_rules!` is hygienic for `let` declarations.
10823 * The `#[export_name]` attribute specifies the name of a symbol.
10824 * `unreachable!` can be used to indicate unreachable code, and fails
10828 * std: Transitioned to the new runtime, written in Rust.
10829 * std: Added an experimental I/O library, `rt::io`, based on the new
10831 * std: A new generic `range` function was added to the prelude, replacing
10832 `uint::range` and friends.
10833 * std: `range_rev` no longer exists. Since range is an iterator it can be
10834 reversed with `range(lo, hi).invert()`.
10835 * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default`
10836 renamed to `unwrap_or`.
10837 * std: The `iterator` module was renamed to `iter`.
10838 * std: Integral types now support the `checked_add`, `checked_sub`, and
10839 `checked_mul` operations for detecting overflow.
10840 * std: Many methods in `str`, `vec`, `option, `result` were renamed for
10842 * std: Methods are standardizing on conventions for casting methods:
10843 `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary
10845 * std: The `CString` type in `c_str` provides new ways to convert to and
10847 * std: `DoubleEndedIterator` can yield elements in two directions.
10848 * std: The `mut_split` method on vectors partitions an `&mut [T]` into
10850 * std: `str::from_bytes` renamed to `str::from_utf8`.
10851 * std: `pop_opt` and `shift_opt` methods added to vectors.
10852 * std: The task-local data interface no longer uses @, and keys are
10853 no longer function pointers.
10854 * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`.
10855 * std: Added `SharedPort` to `comm`.
10856 * std: `Eq` has a default method for `ne`; only `eq` is required
10857 in implementations.
10858 * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt`
10859 is required in implementations.
10860 * std: `is_utf8` performance is improved, impacting many string functions.
10861 * std: `os::MemoryMap` provides cross-platform mmap.
10862 * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that
10863 are not 'in-bounds' are considered undefined.
10864 * std: Many freestanding functions in `vec` removed in favor of methods.
10865 * std: Many freestanding functions on scalar types removed in favor of
10867 * std: Many options to task builders were removed since they don't make
10868 sense in the new scheduler design.
10869 * std: More containers implement `FromIterator` so can be created by the
10871 * std: More complete atomic types in `unstable::atomics`.
10872 * std: `comm::PortSet` removed.
10873 * std: Mutating methods in the `Set` and `Map` traits have been moved into
10874 the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
10875 `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
10876 default implementations.
10877 * std: Various `from_str` functions were removed in favor of a generic
10878 `from_str` which is available in the prelude.
10879 * std: `util::unreachable` removed in favor of the `unreachable!` macro.
10880 * extra: `dlist`, the doubly-linked list was modernized.
10881 * extra: Added a `hex` module with `ToHex` and `FromHex` traits.
10882 * extra: Added `glob` module, replacing `std::os::glob`.
10883 * extra: `rope` was removed.
10884 * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`.
10885 * extra: `net`, and `timer` were removed. The experimental replacements
10886 are `std::rt::io::net` and `std::rt::io::timer`.
10887 * extra: Iterators implemented for `SmallIntMap`.
10888 * extra: Iterators implemented for `Bitv` and `BitvSet`.
10889 * extra: `SmallIntSet` removed. Use `BitvSet`.
10890 * extra: Performance of JSON parsing greatly improved.
10891 * extra: `semver` updated to SemVer 2.0.0.
10892 * extra: `term` handles more terminals correctly.
10893 * extra: `dbg` module removed.
10894 * extra: `par` module removed.
10895 * extra: `future` was cleaned up, with some method renames.
10896 * extra: Most free functions in `getopts` were converted to methods.
10899 * rustc's debug info generation (`-Z debug-info`) is greatly improved.
10900 * rustc accepts `--target-cpu` to compile to a specific CPU architecture,
10901 similarly to gcc's `--march` flag.
10902 * rustc's performance compiling small crates is much better.
10903 * rustpkg has received many improvements.
10904 * rustpkg supports git tags as package IDs.
10905 * rustpkg builds into target-specific directories so it can be used for
10907 * The number of concurrent test tasks is controlled by the environment
10908 variable RUST_TEST_TASKS.
10909 * The test harness can now report metrics for benchmarks.
10910 * All tools have man pages.
10911 * Programs compiled with `--test` now support the `-h` and `--help` flags.
10912 * The runtime uses jemalloc for allocations.
10913 * Segmented stacks are temporarily disabled as part of the transition to
10914 the new runtime. Stack overflows are possible!
10915 * A new documentation backend, rustdoc_ng, is available for use. It is
10916 still invoked through the normal `rustdoc` command.
10919 Version 0.7 (2013-07-03)
10920 =======================
10922 * ~2000 changes, numerous bugfixes
10925 * `impl`s no longer accept a visibility qualifier. Put them on methods
10927 * The borrow checker has been rewritten with flow-sensitivity, fixing
10928 many bugs and inconveniences.
10929 * The `self` parameter no longer implicitly means `&'self self`,
10930 and can be explicitly marked with a lifetime.
10931 * Overloadable compound operators (`+=`, etc.) have been temporarily
10932 removed due to bugs.
10933 * The `for` loop protocol now requires `for`-iterators to return `bool`
10934 so they compose better.
10935 * The `Durable` trait is replaced with the `'static` bounds.
10936 * Trait default methods work more often.
10937 * Structs with the `#[packed]` attribute have byte alignment and
10938 no padding between fields.
10939 * Type parameters bound by `Copy` must now be copied explicitly with
10940 the `copy` keyword.
10941 * It is now illegal to move out of a dereferenced unsafe pointer.
10942 * `Option<~T>` is now represented as a nullable pointer.
10943 * `@mut` does dynamic borrow checks correctly.
10944 * The `main` function is only detected at the topmost level of the crate.
10945 The `#[main]` attribute is still valid anywhere.
10946 * Struct fields may no longer be mutable. Use inherited mutability.
10947 * The `#[no_send]` attribute makes a type that would otherwise be
10949 * The `#[no_freeze]` attribute makes a type that would otherwise be
10951 * Unbounded recursion will abort the process after reaching the limit
10952 specified by the `RUST_MAX_STACK` environment variable (default: 1GB).
10953 * The `vecs_implicitly_copyable` lint mode has been removed. Vectors
10954 are never implicitly copyable.
10955 * `#[static_assert]` makes compile-time assertions about static bools.
10956 * At long last, 'argument modes' no longer exist.
10957 * The rarely used `use mod` statement no longer exists.
10959 * Syntax extensions
10960 * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
10962 * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
10963 `Rand`, `Zero` and `ToStr` can all be automatically derived with
10964 `#[deriving(...)]`.
10965 * The `bytes!` macro returns a vector of bytes for string, u8, char,
10966 and unsuffixed integer literals.
10969 * The `core` crate was renamed to `std`.
10970 * The `std` crate was renamed to `extra`.
10971 * More and improved documentation.
10972 * std: `iterator` module for external iterator objects.
10973 * Many old-style (internal, higher-order function) iterators replaced by
10974 implementations of `Iterator`.
10975 * std: Many old internal vector and string iterators,
10976 incl. `any`, `all`. removed.
10977 * std: The `finalize` method of `Drop` renamed to `drop`.
10978 * std: The `drop` method now takes `&mut self` instead of `&self`.
10979 * std: The prelude no longer re-exports any modules, only types and traits.
10980 * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
10981 `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
10982 * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,
10983 `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`.
10984 * std: Tuple traits and accessors defined for up to 12-tuples, e.g.
10985 `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
10986 * std: Many types implement `Clone`.
10987 * std: `path` type renamed to `Path`.
10988 * std: `mut` module and `Mut` type removed.
10989 * std: Many standalone functions removed in favor of methods and iterators
10990 in `vec`, `str`. In the future methods will also work as functions.
10991 * std: `reinterpret_cast` removed. Use `transmute`.
10992 * std: ascii string handling in `std::ascii`.
10993 * std: `Rand` is implemented for ~/@.
10994 * std: `run` module for spawning processes overhauled.
10995 * std: Various atomic types added to `unstable::atomic`.
10996 * std: Various types implement `Zero`.
10997 * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`.
10998 * std: Borrowed pointer functions moved from `ptr` to `borrow`.
10999 * std: Added `os::mkdir_recursive`.
11000 * std: Added `os::glob` function performs filesystems globs.
11001 * std: `FuzzyEq` renamed to `ApproxEq`.
11002 * std: `Map` now defines `pop` and `swap` methods.
11003 * std: `Cell` constructors converted to static methods.
11004 * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
11005 * extra: `flate` module moved from `std` to `extra`.
11006 * extra: `fileinput` module for iterating over a series of files.
11007 * extra: `Complex` number type and `complex` module.
11008 * extra: `Rational` number type and `rational` module.
11009 * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
11010 * extra: `term` uses terminfo now, is more correct.
11011 * extra: `arc` functions converted to methods.
11012 * extra: Implementation of fixed output size variations of SHA-2.
11015 * `unused_variables` lint mode for unused variables (default: warn).
11016 * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
11018 * `unused_mut` lint mode for identifying unused `mut` qualifiers
11020 * `dead_assignment` lint mode for unread variables (default: warn).
11021 * `unnecessary_allocation` lint mode detects some heap allocations that are
11022 immediately borrowed so could be written without allocating (default: warn).
11023 * `missing_doc` lint mode (default: allow).
11024 * `unreachable_code` lint mode (default: warn).
11025 * The `rusti` command has been rewritten and a number of bugs addressed.
11026 * rustc outputs in color on more terminals.
11027 * rustc accepts a `--link-args` flag to pass arguments to the linker.
11028 * rustc accepts a `-Z print-link-args` flag for debugging linkage.
11029 * Compiling with `-g` will make the binary record information about
11030 dynamic borrowcheck failures for debugging.
11031 * rustdoc has a nicer stylesheet.
11032 * Various improvements to rustdoc.
11033 * Improvements to rustpkg (see the detailed release notes).
11036 Version 0.6 (2013-04-03)
11037 ========================
11039 * ~2100 changes, numerous bugfixes
11042 * The self type parameter in traits is now spelled `Self`
11043 * The `self` parameter in trait and impl methods must now be explicitly
11044 named (for example: `fn f(&self) { }`). Implicit self is deprecated.
11045 * Static methods no longer require the `static` keyword and instead
11046 are distinguished by the lack of a `self` parameter
11047 * Replaced the `Durable` trait with the `'static` lifetime
11048 * The old closure type syntax with the trailing sigil has been
11049 removed in favor of the more consistent leading sigil
11050 * `super` is a keyword, and may be prefixed to paths
11051 * Trait bounds are separated with `+` instead of whitespace
11052 * Traits are implemented with `impl Trait for Type`
11053 instead of `impl Type: Trait`
11054 * Lifetime syntax is now `&'l foo` instead of `&l/foo`
11055 * The `export` keyword has finally been removed
11056 * The `move` keyword has been removed (see "Semantic changes")
11057 * The interior mutability qualifier on vectors, `[mut T]`, has been
11058 removed. Use `&mut [T]`, etc.
11059 * `mut` is no longer valid in `~mut T`. Use inherited mutability
11060 * `fail` is no longer a keyword. Use `fail!()`
11061 * `assert` is no longer a keyword. Use `assert!()`
11062 * `log` is no longer a keyword. use `debug!`, etc.
11063 * 1-tuples may be represented as `(T,)`
11064 * Struct fields may no longer be `mut`. Use inherited mutability,
11065 `@mut T`, `core::mut` or `core::cell`
11066 * `extern mod { ... }` is no longer valid syntax for foreign
11067 function modules. Use extern blocks: `extern { ... }`
11068 * Newtype enums removed. Use tuple-structs.
11069 * Trait implementations no longer support visibility modifiers
11070 * Pattern matching over vectors improved and expanded
11071 * `const` renamed to `static` to correspond to lifetime name,
11072 and make room for future `static mut` unsafe mutable globals.
11073 * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
11074 * `Clone` implementations can be automatically generated with
11075 `#[deriving(Clone)]`
11076 * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
11077 instead of `foo as Bar`.
11078 * Fixed length vector types are now written as `[int, .. 3]`
11079 instead of `[int * 3]`.
11080 * Fixed length vector types can express the length as a constant
11081 expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`)
11084 * Types with owned pointers or custom destructors move by default,
11085 eliminating the `move` keyword
11086 * All foreign functions are considered unsafe
11087 * &mut is now unaliasable
11088 * Writes to borrowed @mut pointers are prevented dynamically
11090 * The name of the main function can be customized using #[main]
11091 * The default type of an inferred closure is &fn instead of @fn
11092 * `use` statements may no longer be "chained" - they cannot import
11093 identifiers imported by previous `use` statements
11094 * `use` statements are crate relative, importing from the "top"
11095 of the crate by default. Paths may be prefixed with `super::`
11096 or `self::` to change the search behavior.
11097 * Method visibility is inherited from the implementation declaration
11098 * Structural records have been removed
11099 * Many more types can be used in static items, including enums
11100 'static-lifetime pointers and vectors
11101 * Pattern matching over vectors improved and expanded
11102 * Typechecking of closure types has been overhauled to
11103 improve inference and eliminate unsoundness
11104 * Macros leave scope at the end of modules, unless that module is
11105 tagged with #[macro_escape]
11108 * Added big integers to `std::bigint`
11109 * Removed `core::oldcomm` module
11110 * Added pipe-based `core::comm` module
11111 * Numeric traits have been reorganized under `core::num`
11112 * `vec::slice` finally returns a slice
11113 * `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
11114 * Containers reorganized around traits in `core::container`
11115 * `core::dvec` removed, `~[T]` is a drop-in replacement
11116 * `core::send_map` renamed to `core::hashmap`
11117 * `std::map` removed; replaced with `core::hashmap`
11118 * `std::treemap` reimplemented as an owned balanced tree
11119 * `std::deque` and `std::smallintmap` reimplemented as owned containers
11120 * `core::trie` added as a fast ordered map for integer keys
11121 * Set types added to `core::hashmap`, `core::trie` and `std::treemap`
11122 * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
11123 overload the comparison operators, whereas `TotalOrd` is used
11124 by certain container types
11127 * Replaced the 'cargo' package manager with 'rustpkg'
11128 * Added all-purpose 'rust' tool
11129 * `rustc --test` now supports benchmarks with the `#[bench]` attribute
11130 * rustc now *attempts* to offer spelling suggestions
11131 * Improved support for ARM and Android
11132 * Preliminary MIPS backend
11133 * Improved foreign function ABI implementation for x86, x86_64
11134 * Various memory usage improvements
11135 * Rust code may be embedded in foreign code under limited circumstances
11136 * Inline assembler supported by new asm!() syntax extension.
11139 Version 0.5 (2012-12-21)
11140 ===========================
11142 * ~900 changes, numerous bugfixes
11145 * Removed `<-` move operator
11146 * Completed the transition from the `#fmt` extension syntax to `fmt!`
11147 * Removed old fixed length vector syntax - `[T]/N`
11148 * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc.
11149 * Macros may now expand to items and statements
11150 * `a.b()` is always parsed as a method call, never as a field projection
11151 * `Eq` and `IterBytes` implementations can be automatically generated
11152 with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively
11153 * Removed the special crate language for `.rc` files
11154 * Function arguments may consist of any irrefutable pattern
11157 * `&` and `~` pointers may point to objects
11158 * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums.
11159 * Enum variants may be structs
11160 * Destructors can be added to all nominal types with the Drop trait
11161 * Structs and nullary enum variants may be constants
11162 * Values that cannot be implicitly copied are now automatically moved
11163 without writing `move` explicitly
11164 * `&T` may now be coerced to `*T`
11165 * Coercions happen in `let` statements as well as function calls
11166 * `use` statements now take crate-relative paths
11167 * The module and type namespaces have been merged so that static
11168 method names can be resolved under the trait in which they are
11171 * Improved support for language features
11172 * Trait inheritance works in many scenarios
11173 * More support for explicit self arguments in methods - `self`, `&self`
11174 `@self`, and `~self` all generally work as expected
11175 * Static methods work in more situations
11176 * Experimental: Traits may declare default methods for the implementations
11180 * New condition handling system in `core::condition`
11181 * Timsort added to `std::sort`
11182 * New priority queue, `std::priority_queue`
11183 * Pipes for serializable types, `std::flatpipes'
11184 * Serialization overhauled to be trait-based
11185 * Expanded `getopts` definitions
11186 * Moved futures to `std`
11187 * More functions are pure now
11188 * `core::comm` renamed to `oldcomm`. Still deprecated
11189 * `rustdoc` and `cargo` are libraries now
11192 * Added a preliminary REPL, `rusti`
11193 * License changed from MIT to dual MIT/APL2
11196 Version 0.4 (2012-10-15)
11197 ==========================
11199 * ~2000 changes, numerous bugfixes
11202 * All keywords are now strict and may not be used as identifiers anywhere
11203 * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send',
11204 'of', 'with', 'to', 'class'.
11205 * Classes are replaced with simpler structs
11206 * Explicit method self types
11207 * `ret` became `return` and `alt` became `match`
11208 * `import` is now `use`; `use is now `extern mod`
11209 * `extern mod { ... }` is now `extern { ... }`
11210 * `use mod` is the recommended way to import modules
11211 * `pub` and `priv` replace deprecated export lists
11212 * The syntax of `match` pattern arms now uses fat arrow (=>)
11213 * `main` no longer accepts an args vector; use `os::args` instead
11216 * Trait implementations are now coherent, ala Haskell typeclasses
11217 * Trait methods may be static
11218 * Argument modes are deprecated
11219 * Borrowed pointers are much more mature and recommended for use
11220 * Strings and vectors in the static region are stored in constant memory
11221 * Typestate was removed
11222 * Resolution rewritten to be more reliable
11223 * Support for 'dual-mode' data structures (freezing and thawing)
11226 * Most binary operators can now be overloaded via the traits in
11228 * `std::net::url` for representing URLs
11229 * Sendable hash maps in `core::send_map`
11230 * `core::task' gained a (currently unsafe) task-local storage API
11233 * An efficient new intertask communication primitive called the pipe,
11234 along with a number of higher-level channel types, in `core::pipes`
11235 * `std::arc`, an atomically reference counted, immutable, shared memory
11237 * `std::sync`, various exotic synchronization tools based on arcs and pipes
11238 * Futures are now based on pipes and sendable
11239 * More robust linked task failure
11240 * Improved task builder API
11243 * Improved error reporting
11244 * Preliminary JIT support
11245 * Preliminary work on precise GC
11246 * Extensive architectural improvements to rustc
11247 * Begun a transition away from buggy C++-based reflection (shape) code to
11248 Rust-based (visitor) code
11249 * All hash functions and tables converted to secure, randomized SipHash
11252 Version 0.3 (2012-07-12)
11253 ========================
11255 * ~1900 changes, numerous bugfixes
11257 * New coding conveniences
11258 * Integer-literal suffix inference
11259 * Per-item control over warnings, errors
11260 * #[cfg(windows)] and #[cfg(unix)] attributes
11261 * Documentation comments
11262 * More compact closure syntax
11263 * 'do' expressions for treating higher-order functions as
11265 * *-patterns (wildcard extended to all constructor fields)
11268 * Name resolution pass and exhaustiveness checker rewritten
11269 * Region pointers and borrow checking supersede alias
11271 * Init-ness checking is now provided by a region-based liveness
11272 pass instead of the typestate pass; same for last-use analysis
11273 * Extensive work on region pointers
11275 * Experimental new language features
11276 * Slices and fixed-size, interior-allocated vectors
11277 * #!-comments for lang versioning, shell execution
11278 * Destructors and iface implementation for classes;
11279 type-parameterized classes and class methods
11280 * 'const' type kind for types that can be used to implement
11281 shared-memory concurrency patterns
11285 * Removal of various obsolete features
11286 * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind',
11287 'crust', 'native' (now 'extern'), 'cont' (now 'again')
11289 * Constructs: do-while loops ('do' repurposed), fn binding,
11290 resources (replaced by destructors)
11292 * Compiler reorganization
11293 * Syntax-layer of compiler split into separate crate
11294 * Clang (from LLVM project) integrated into build
11295 * Typechecker split into sub-modules
11298 * New time functions
11299 * Extension methods for many built-in types
11300 * Arc: atomic-refcount read-only / exclusive-use shared cells
11301 * Par: parallel map and search routines
11302 * Extensive work on libuv interface
11303 * Much vector code moved to libraries
11304 * Syntax extensions: #line, #col, #file, #mod, #stringify,
11305 #include, #include_str, #include_bin
11307 * Tool improvements
11308 * Cargo automatically resolves dependencies
11311 Version 0.2 (2012-03-29)
11312 =========================
11314 * >1500 changes, numerous bugfixes
11316 * New docs and doc tooling
11318 * New port: FreeBSD x86_64
11320 * Compilation model enhancements
11321 * Generics now specialized, multiply instantiated
11322 * Functions now inlined across separate crates
11324 * Scheduling, stack and threading fixes
11325 * Noticeably improved message-passing performance
11326 * Explicit schedulers
11330 * Experimental new language features
11331 * Operator overloading
11335 * Various language extensions
11336 * C-callback function types: 'crust fn ...'
11337 * Infinite-loop construct: 'loop { ... }'
11338 * Shorten 'mutable' to 'mut'
11339 * Required mutable-local qualifier: 'let mut ...'
11340 * Basic glob-exporting: 'export foo::*;'
11341 * Alt now exhaustive, 'alt check' for runtime-checked
11342 * Block-function form of 'for' loop, with 'break' and 'ret'.
11345 * AST quasi-quote syntax extension
11346 * Revived libuv interface
11347 * New modules: core::{future, iter}, std::arena
11348 * Merged per-platform std::{os*, fs*} to core::{libc, os}
11349 * Extensive cleanup, regularization in libstd, libcore
11352 Version 0.1 (2012-01-20)
11353 ===============================
11355 * Most language features work, including:
11356 * Unique pointers, unique closures, move semantics
11357 * Interface-constrained generics
11358 * Static interface dispatch
11360 * Multithread task scheduling
11361 * Typestate predicates
11362 * Failure unwinding, destructors
11363 * Pattern matching and destructuring assignment
11364 * Lightweight block-lambda syntax
11365 * Preliminary macro-by-example
11367 * Compiler works with the following configurations:
11368 * Linux: x86 and x86_64 hosts and targets
11369 * macOS: x86 and x86_64 hosts and targets
11370 * Windows: x86 hosts and targets
11372 * Cross compilation / multi-target configuration supported.
11374 * Preliminary API-documentation and package-management tools included.
11378 * Documentation is incomplete.
11380 * Performance is below intended target.
11382 * Standard library APIs are subject to extensive change, reorganization.
11384 * Language-level versioning is not yet operational - future code will
11385 break unexpectedly.