]>
Commit | Line | Data |
---|---|---|
cc61c64b XL |
1 | Version 1.18.0 (2017-06-08) |
2 | =========================== | |
3 | ||
4 | Language | |
5 | -------- | |
6 | ||
7 | - [Stabilize pub(restricted)][40556] `pub` can now accept a module path to | |
8 | make the item visible to just that module tree. Also accepts the keyword | |
9 | `crate` to make something public to the whole crate but not users of the | |
10 | library. Example: `pub(crate) mod utils;`. [RFC 1422]. | |
11 | - [Stabilize `#![windows_subsystem]` attribute][40870] conservative exposure of the | |
12 | `/SUBSYSTEM` linker flag on Windows platforms. [RFC 1665]. | |
13 | - [Refactor of trait object type parsing][40043] Now `ty` in macros can accept | |
14 | types like `Write + Send`, trailing `+` are now supported in trait objects, | |
15 | and better error reporting for trait objects starting with `?Sized`. | |
16 | - [0e+10 is now a valid floating point literal][40589] | |
17 | - [Now warns if you bind a lifetime parameter to 'static][40734] | |
18 | - [Tuples, Enum variant fields, and structs with no `repr` attribute or with | |
19 | `#[repr(Rust)]` are reordered to minimize padding and produce a smaller | |
20 | representation in some cases.][40377] | |
21 | ||
22 | Compiler | |
23 | -------- | |
24 | ||
25 | - [rustc can now emit mir with `--emit mir`][39891] | |
26 | - [Improved LLVM IR for trivial functions][40367] | |
27 | - [Added explanation for E0090(Wrong number of lifetimes are supplied)][40723] | |
28 | - [rustc compilation is now 15%-20% faster][41469] Thanks to optimisation | |
29 | opportunities found through profiling | |
30 | - [Improved backtrace formatting when panicking][38165] | |
31 | ||
32 | Libraries | |
33 | --------- | |
34 | ||
35 | - [Specialized `Vec::from_iter` being passed `vec::IntoIter`][40731] if the | |
36 | iterator hasn't been advanced the original `Vec` is reassembled with no actual | |
37 | iteration or reallocation. | |
38 | - [Simplified HashMap Bucket interface][40561] provides performance | |
39 | improvements for iterating and cloning. | |
40 | - [Specialize Vec::from_elem to use calloc][40409] | |
41 | - [Fixed Race condition in fs::create_dir_all][39799] | |
42 | - [No longer caching stdio on Windows][40516] | |
43 | - [Optimized insertion sort in slice][40807] insertion sort in some cases | |
44 | 2.50%~ faster and in one case now 12.50% faster. | |
45 | - [Optimized `AtomicBool::fetch_nand`][41143] | |
46 | ||
47 | Stabilized APIs | |
48 | --------------- | |
49 | ||
50 | - [`Child::try_wait`] | |
51 | - [`HashMap::retain`] | |
52 | - [`HashSet::retain`] | |
53 | - [`PeekMut::pop`] | |
54 | - [`TcpStream::peek`] | |
55 | - [`UdpSocket::peek`] | |
56 | - [`UdpSocket::peek_from`] | |
57 | ||
58 | Cargo | |
59 | ----- | |
60 | ||
61 | - [Added partial Pijul support][cargo/3842] Pijul is a version control system in Rust. | |
62 | You can now create new cargo projects with Pijul using `cargo new --vcs pijul` | |
63 | - [Now always emits build script warnings for crates that fail to build][cargo/3847] | |
64 | - [Added Android build support][cargo/3885] | |
65 | - [Added `--bins` and `--tests` flags][cargo/3901] now you can build all programs | |
66 | of a certain type, for example `cargo build --bins` will build all | |
67 | binaries. | |
68 | - [Added support for haiku][cargo/3952] | |
69 | ||
70 | Misc | |
71 | ---- | |
72 | ||
73 | - [rustdoc can now use pulldown-cmark with the `--enable-commonmark` flag][40338] | |
74 | - [Added rust-winbg script for better debugging on Windows][39983] | |
75 | - [Rust now uses the official cross compiler for NetBSD][40612] | |
76 | - [rustdoc now accepts `#` at the start of files][40828] | |
77 | - [Fixed jemalloc support for musl][41168] | |
78 | ||
79 | Compatibility Notes | |
80 | ------------------- | |
81 | ||
82 | - [Changes to how the `0` flag works in format!][40241] Padding zeroes are now | |
83 | always placed after the sign if it exists and before the digits. With the `#` | |
84 | flag the zeroes are placed after the prefix and before the digits. | |
85 | - [Due to the struct field optimisation][40377], using `transmute` on structs | |
86 | that have no `repr` attribute or `#[repr(Rust)]` will no longer work. This has | |
87 | always been undefined behavior, but is now more likely to break in practice. | |
88 | - [The refactor of trait object type parsing][40043] fixed a bug where `+` was | |
89 | receiving the wrong priority parsing things like `&for<'a> Tr<'a> + Send` as | |
90 | `&(for<'a> Tr<'a> + Send)` instead of `(&for<'a> Tr<'a>) + Send` | |
91 | - [Overlapping inherent `impl`s are now a hard error][40728] | |
92 | - [`PartialOrd` and `Ord` must agree on the ordering.][41270] | |
93 | - [`rustc main.rs -o out --emit=asm,llvm-ir`][41085] Now will output | |
94 | `out.asm` and `out.ll` instead of only one of the filetypes. | |
95 | - [ calling a function that returns `Self` will no longer work][41805] when | |
96 | the size of `Self` cannot be statically determined. | |
97 | - [rustc now builds with a "pthreads" flavour of MinGW for Windows GNU][40805] | |
98 | this has caused a few regressions namely: | |
99 | ||
100 | - Changed the link order of local static/dynamic libraries (respecting the | |
101 | order on given rather than having the compiler reorder). | |
102 | - Changed how MinGW is linked, native code linked to dynamic libraries | |
103 | may require manually linking to the gcc support library (for the native | |
104 | code itself) | |
105 | ||
106 | [38165]: https://github.com/rust-lang/rust/pull/38165 | |
107 | [39799]: https://github.com/rust-lang/rust/pull/39799 | |
108 | [39891]: https://github.com/rust-lang/rust/pull/39891 | |
109 | [39983]: https://github.com/rust-lang/rust/pull/39983 | |
110 | [40043]: https://github.com/rust-lang/rust/pull/40043 | |
111 | [40241]: https://github.com/rust-lang/rust/pull/40241 | |
112 | [40338]: https://github.com/rust-lang/rust/pull/40338 | |
113 | [40367]: https://github.com/rust-lang/rust/pull/40367 | |
114 | [40377]: https://github.com/rust-lang/rust/pull/40377 | |
115 | [40409]: https://github.com/rust-lang/rust/pull/40409 | |
116 | [40516]: https://github.com/rust-lang/rust/pull/40516 | |
117 | [40556]: https://github.com/rust-lang/rust/pull/40556 | |
118 | [40561]: https://github.com/rust-lang/rust/pull/40561 | |
119 | [40589]: https://github.com/rust-lang/rust/pull/40589 | |
120 | [40612]: https://github.com/rust-lang/rust/pull/40612 | |
121 | [40723]: https://github.com/rust-lang/rust/pull/40723 | |
122 | [40728]: https://github.com/rust-lang/rust/pull/40728 | |
123 | [40731]: https://github.com/rust-lang/rust/pull/40731 | |
124 | [40734]: https://github.com/rust-lang/rust/pull/40734 | |
125 | [40805]: https://github.com/rust-lang/rust/pull/40805 | |
126 | [40807]: https://github.com/rust-lang/rust/pull/40807 | |
127 | [40828]: https://github.com/rust-lang/rust/pull/40828 | |
128 | [40870]: https://github.com/rust-lang/rust/pull/40870 | |
129 | [41085]: https://github.com/rust-lang/rust/pull/41085 | |
130 | [41143]: https://github.com/rust-lang/rust/pull/41143 | |
131 | [41168]: https://github.com/rust-lang/rust/pull/41168 | |
132 | [41270]: https://github.com/rust-lang/rust/issues/41270 | |
133 | [41469]: https://github.com/rust-lang/rust/pull/41469 | |
134 | [41805]: https://github.com/rust-lang/rust/issues/41805 | |
135 | [RFC 1422]: https://github.com/rust-lang/rfcs/blob/master/text/1422-pub-restricted.md | |
136 | [RFC 1665]: https://github.com/rust-lang/rfcs/blob/master/text/1665-windows-subsystem.md | |
137 | [`Child::try_wait`]: https://doc.rust-lang.org/std/process/struct.Child.html#method.try_wait | |
138 | [`HashMap::retain`]: https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.retain | |
139 | [`HashSet::retain`]: https://doc.rust-lang.org/std/collections/struct.HashSet.html#method.retain | |
140 | [`PeekMut::pop`]: https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html#method.pop | |
141 | [`TcpStream::peek`]: https://doc.rust-lang.org/std/net/struct.TcpStream.html#method.peek | |
142 | [`UdpSocket::peek_from`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek_from | |
143 | [`UdpSocket::peek`]: https://doc.rust-lang.org/std/net/struct.UdpSocket.html#method.peek | |
144 | [cargo/3842]: https://github.com/rust-lang/cargo/pull/3842 | |
145 | [cargo/3847]: https://github.com/rust-lang/cargo/pull/3847 | |
146 | [cargo/3885]: https://github.com/rust-lang/cargo/pull/3885 | |
147 | [cargo/3901]: https://github.com/rust-lang/cargo/pull/3901 | |
148 | [cargo/3952]: https://github.com/rust-lang/cargo/pull/3952 | |
149 | ||
150 | ||
151 | Version 1.17.0 (2017-04-27) | |
152 | =========================== | |
153 | ||
154 | Language | |
155 | -------- | |
156 | ||
157 | * [The lifetime of statics and consts defaults to `'static`][39265]. [RFC 1623] | |
158 | * [Fields of structs may be initialized without duplicating the field/variable | |
159 | names][39761]. [RFC 1682] | |
160 | * [`Self` may be included in the `where` clause of `impls`][38864]. [RFC 1647] | |
161 | * [When coercing to an unsized type lifetimes must be equal][40319]. That is, | |
162 | there is no subtyping between `T` and `U` when `T: Unsize<U>`. For example, | |
163 | coercing `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to | |
164 | `'b`. Soundness fix. | |
165 | * [Values passed to the indexing operator, `[]`, automatically coerce][40166] | |
166 | * [Static variables may contain references to other statics][40027] | |
167 | ||
168 | Compiler | |
169 | -------- | |
170 | ||
171 | * [Exit quickly on only `--emit dep-info`][40336] | |
172 | * [Make `-C relocation-model` more correctly determine whether the linker | |
173 | creates a position-independent executable][40245] | |
174 | * [Add `-C overflow-checks` to directly control whether integer overflow | |
175 | panics][40037] | |
176 | * [The rustc type checker now checks items on demand instead of in a single | |
177 | in-order pass][40008]. This is mostly an internal refactoring in support of | |
178 | future work, including incremental type checking, but also resolves [RFC | |
179 | 1647], allowing `Self` to appear in `impl` `where` clauses. | |
180 | * [Optimize vtable loads][39995] | |
181 | * [Turn off vectorization for Emscripten targets][39990] | |
182 | * [Provide suggestions for unknown macros imported with `use`][39953] | |
183 | * [Fix ICEs in path resolution][39939] | |
184 | * [Strip exception handling code on Emscripten when `panic=abort`][39193] | |
185 | * [Add clearer error message using `&str + &str`][39116] | |
186 | ||
187 | Stabilized APIs | |
188 | --------------- | |
189 | ||
190 | * [`Arc::into_raw`] | |
191 | * [`Arc::from_raw`] | |
192 | * [`Arc::ptr_eq`] | |
193 | * [`Rc::into_raw`] | |
194 | * [`Rc::from_raw`] | |
195 | * [`Rc::ptr_eq`] | |
196 | * [`Ordering::then`] | |
197 | * [`Ordering::then_with`] | |
198 | * [`BTreeMap::range`] | |
199 | * [`BTreeMap::range_mut`] | |
200 | * [`collections::Bound`] | |
201 | * [`process::abort`] | |
202 | * [`ptr::read_unaligned`] | |
203 | * [`ptr::write_unaligned`] | |
204 | * [`Result::expect_err`] | |
205 | * [`Cell::swap`] | |
206 | * [`Cell::replace`] | |
207 | * [`Cell::into_inner`] | |
208 | * [`Cell::take`] | |
209 | ||
210 | Libraries | |
211 | --------- | |
212 | ||
213 | * [`BTreeMap` and `BTreeSet` can iterate over ranges][27787] | |
214 | * [`Cell` can store non-`Copy` types][39793]. [RFC 1651] | |
215 | * [`String` implements `FromIterator<&char>`][40028] | |
216 | * `Box` [implements][40009] a number of new conversions: | |
217 | `From<Box<str>> for String`, | |
218 | `From<Box<[T]>> for Vec<T>`, | |
219 | `From<Box<CStr>> for CString`, | |
220 | `From<Box<OsStr>> for OsString`, | |
221 | `From<Box<Path>> for PathBuf`, | |
222 | `Into<Box<str>> for String`, | |
223 | `Into<Box<[T]>> for Vec<T>`, | |
224 | `Into<Box<CStr>> for CString`, | |
225 | `Into<Box<OsStr>> for OsString`, | |
226 | `Into<Box<Path>> for PathBuf`, | |
227 | `Default for Box<str>`, | |
228 | `Default for Box<CStr>`, | |
229 | `Default for Box<OsStr>`, | |
230 | `From<&CStr> for Box<CStr>`, | |
231 | `From<&OsStr> for Box<OsStr>`, | |
232 | `From<&Path> for Box<Path>` | |
233 | * [`ffi::FromBytesWithNulError` implements `Error` and `Display`][39960] | |
234 | * [Specialize `PartialOrd<A> for [A] where A: Ord`][39642] | |
235 | * [Slightly optimize `slice::sort`][39538] | |
236 | * [Add `ToString` trait specialization for `Cow<'a, str>` and `String`][39440] | |
237 | * [`Box<[T]>` implements `From<&[T]> where T: Copy`, | |
238 | `Box<str>` implements `From<&str>`][39438] | |
239 | * [`IpAddr` implements `From` for various arrays. `SocketAddr` implements | |
240 | `From<(I, u16)> where I: Into<IpAddr>`][39372] | |
241 | * [`format!` estimates the needed capacity before writing a string][39356] | |
242 | * [Support unprivileged symlink creation in Windows][38921] | |
243 | * [`PathBuf` implements `Default`][38764] | |
244 | * [Implement `PartialEq<[A]>` for `VecDeque<A>`][38661] | |
245 | * [`HashMap` resizes adaptively][38368] to guard against DOS attacks | |
246 | and poor hash functions. | |
247 | ||
248 | Cargo | |
249 | ----- | |
250 | ||
251 | * [Add `cargo check --all`][cargo/3731] | |
252 | * [Add an option to ignore SSL revocation checking][cargo/3699] | |
253 | * [Add `cargo run --package`][cargo/3691] | |
254 | * [Add `required_features`][cargo/3667] | |
255 | * [Assume `build.rs` is a build script][cargo/3664] | |
256 | * [Find workspace via `workspace_root` link in containing member][cargo/3562] | |
257 | ||
258 | Misc | |
259 | ---- | |
260 | ||
261 | * [Documentation is rendered with mdbook instead of the obsolete, in-tree | |
262 | `rustbook`][39633] | |
263 | * [The "Unstable Book" documents nightly-only features][ubook] | |
264 | * [Improve the style of the sidebar in rustdoc output][40265] | |
265 | * [Configure build correctly on 64-bit CPU's with the armhf ABI][40261] | |
266 | * [Fix MSP430 breakage due to `i128`][40257] | |
267 | * [Preliminary Solaris/SPARCv9 support][39903] | |
268 | * [`rustc` is linked statically on Windows MSVC targets][39837], allowing it to | |
269 | run without installing the MSVC runtime. | |
270 | * [`rustdoc --test` includes file names in test names][39788] | |
271 | * This release includes builds of `std` for `sparc64-unknown-linux-gnu`, | |
272 | `aarch64-unknown-linux-fuchsia`, and `x86_64-unknown-linux-fuchsia`. | |
273 | * [Initial support for `aarch64-unknown-freebsd`][39491] | |
274 | * [Initial support for `i686-unknown-netbsd`][39426] | |
275 | * [This release no longer includes the old makefile build system][39431]. Rust | |
276 | is built with a custom build system, written in Rust, and with Cargo. | |
277 | * [Add Debug implementations for libcollection structs][39002] | |
278 | * [`TypeId` implements `PartialOrd` and `Ord`][38981] | |
279 | * [`--test-threads=0` produces an error][38945] | |
280 | * [`rustup` installs documentation by default][40526] | |
281 | * [The Rust source includes NatVis visualizations][39843]. These can be used by | |
282 | WinDbg and Visual Studio to improve the debugging experience. | |
283 | ||
284 | Compatibility Notes | |
285 | ------------------- | |
286 | ||
287 | * [Rust 1.17 does not correctly detect the MSVC 2017 linker][38584]. As a | |
288 | workaround, either use MSVC 2015 or run vcvars.bat. | |
289 | * [When coercing to an unsized type lifetimes must be equal][40319]. That is, | |
290 | disallow subtyping between `T` and `U` when `T: Unsize<U>`, e.g. coercing | |
291 | `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to `'b`. Soundness | |
292 | fix. | |
293 | * [`format!` and `Display::to_string` panic if an underlying formatting | |
294 | implementation returns an error][40117]. Previously the error was silently | |
295 | ignored. It is incorrect for `write_fmt` to return an error when writing | |
296 | to a string. | |
297 | * [In-tree crates are verified to be unstable][39851]. Previously, some minor | |
298 | crates were marked stable and could be accessed from the stable toolchain. | |
299 | * [Rust git source no longer includes vendored crates][39728]. Those that need | |
300 | to build with vendored crates should build from release tarballs. | |
301 | * [Fix inert attributes from `proc_macro_derives`][39572] | |
302 | * [During crate resolution, rustc prefers a crate in the sysroot if two crates | |
303 | are otherwise identical][39518]. Unlikely to be encountered outside the Rust | |
304 | build system. | |
305 | * [Fixed bugs around how type inference interacts with dead-code][39485]. The | |
306 | existing code generally ignores the type of dead-code unless a type-hint is | |
307 | provided; this can cause surprising inference interactions particularly around | |
308 | defaulting. The new code uniformly ignores the result type of dead-code. | |
309 | * [Tuple-struct constructors with private fields are no longer visible][38932] | |
310 | * [Lifetime parameters that do not appear in the arguments are now considered | |
311 | early-bound][38897], resolving a soundness bug (#[32330]). The | |
312 | `hr_lifetime_in_assoc_type` future-compatibility lint has been in effect since | |
313 | April of 2016. | |
314 | * [rustdoc: fix doctests with non-feature crate attributes][38161] | |
315 | * [Make transmuting from fn item types to pointer-sized types a hard | |
316 | error][34198] | |
317 | ||
318 | [27787]: https://github.com/rust-lang/rust/issues/27787 | |
319 | [32330]: https://github.com/rust-lang/rust/issues/32330 | |
320 | [34198]: https://github.com/rust-lang/rust/pull/34198 | |
321 | [38161]: https://github.com/rust-lang/rust/pull/38161 | |
322 | [38368]: https://github.com/rust-lang/rust/pull/38368 | |
323 | [38584]: https://github.com/rust-lang/rust/issues/38584 | |
324 | [38661]: https://github.com/rust-lang/rust/pull/38661 | |
325 | [38764]: https://github.com/rust-lang/rust/pull/38764 | |
326 | [38864]: https://github.com/rust-lang/rust/issues/38864 | |
327 | [38897]: https://github.com/rust-lang/rust/pull/38897 | |
328 | [38921]: https://github.com/rust-lang/rust/pull/38921 | |
329 | [38932]: https://github.com/rust-lang/rust/pull/38932 | |
330 | [38945]: https://github.com/rust-lang/rust/pull/38945 | |
331 | [38981]: https://github.com/rust-lang/rust/pull/38981 | |
332 | [39002]: https://github.com/rust-lang/rust/pull/39002 | |
333 | [39116]: https://github.com/rust-lang/rust/pull/39116 | |
334 | [39193]: https://github.com/rust-lang/rust/pull/39193 | |
335 | [39265]: https://github.com/rust-lang/rust/pull/39265 | |
336 | [39356]: https://github.com/rust-lang/rust/pull/39356 | |
337 | [39372]: https://github.com/rust-lang/rust/pull/39372 | |
338 | [39426]: https://github.com/rust-lang/rust/pull/39426 | |
339 | [39431]: https://github.com/rust-lang/rust/pull/39431 | |
340 | [39438]: https://github.com/rust-lang/rust/pull/39438 | |
341 | [39440]: https://github.com/rust-lang/rust/pull/39440 | |
342 | [39485]: https://github.com/rust-lang/rust/pull/39485 | |
343 | [39491]: https://github.com/rust-lang/rust/pull/39491 | |
344 | [39518]: https://github.com/rust-lang/rust/pull/39518 | |
345 | [39538]: https://github.com/rust-lang/rust/pull/39538 | |
346 | [39572]: https://github.com/rust-lang/rust/pull/39572 | |
347 | [39633]: https://github.com/rust-lang/rust/pull/39633 | |
348 | [39642]: https://github.com/rust-lang/rust/pull/39642 | |
349 | [39728]: https://github.com/rust-lang/rust/pull/39728 | |
350 | [39761]: https://github.com/rust-lang/rust/pull/39761 | |
351 | [39788]: https://github.com/rust-lang/rust/pull/39788 | |
352 | [39793]: https://github.com/rust-lang/rust/pull/39793 | |
353 | [39837]: https://github.com/rust-lang/rust/pull/39837 | |
354 | [39843]: https://github.com/rust-lang/rust/pull/39843 | |
355 | [39851]: https://github.com/rust-lang/rust/pull/39851 | |
356 | [39903]: https://github.com/rust-lang/rust/pull/39903 | |
357 | [39939]: https://github.com/rust-lang/rust/pull/39939 | |
358 | [39953]: https://github.com/rust-lang/rust/pull/39953 | |
359 | [39960]: https://github.com/rust-lang/rust/pull/39960 | |
360 | [39990]: https://github.com/rust-lang/rust/pull/39990 | |
361 | [39995]: https://github.com/rust-lang/rust/pull/39995 | |
362 | [40008]: https://github.com/rust-lang/rust/pull/40008 | |
363 | [40009]: https://github.com/rust-lang/rust/pull/40009 | |
364 | [40027]: https://github.com/rust-lang/rust/pull/40027 | |
365 | [40028]: https://github.com/rust-lang/rust/pull/40028 | |
366 | [40037]: https://github.com/rust-lang/rust/pull/40037 | |
367 | [40117]: https://github.com/rust-lang/rust/pull/40117 | |
368 | [40166]: https://github.com/rust-lang/rust/pull/40166 | |
369 | [40245]: https://github.com/rust-lang/rust/pull/40245 | |
370 | [40257]: https://github.com/rust-lang/rust/pull/40257 | |
371 | [40261]: https://github.com/rust-lang/rust/pull/40261 | |
372 | [40265]: https://github.com/rust-lang/rust/pull/40265 | |
373 | [40319]: https://github.com/rust-lang/rust/pull/40319 | |
374 | [40336]: https://github.com/rust-lang/rust/pull/40336 | |
375 | [40526]: https://github.com/rust-lang/rust/pull/40526 | |
376 | [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md | |
377 | [RFC 1647]: https://github.com/rust-lang/rfcs/blob/master/text/1647-allow-self-in-where-clauses.md | |
378 | [RFC 1651]: https://github.com/rust-lang/rfcs/blob/master/text/1651-movecell.md | |
379 | [RFC 1682]: https://github.com/rust-lang/rfcs/blob/master/text/1682-field-init-shorthand.md | |
380 | [`Arc::from_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.from_raw | |
381 | [`Arc::into_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.into_raw | |
382 | [`Arc::ptr_eq`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.ptr_eq | |
383 | [`BTreeMap::range_mut`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range_mut | |
384 | [`BTreeMap::range`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range | |
385 | [`Cell::into_inner`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.into_inner | |
386 | [`Cell::replace`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.replace | |
387 | [`Cell::swap`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.swap | |
388 | [`Cell::take`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.take | |
389 | [`Ordering::then_with`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then_with | |
390 | [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then | |
391 | [`Rc::from_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.from_raw | |
392 | [`Rc::into_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.into_raw | |
393 | [`Rc::ptr_eq`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.ptr_eq | |
394 | [`Result::expect_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.expect_err | |
395 | [`collections::Bound`]: https://doc.rust-lang.org/std/collections/enum.Bound.html | |
396 | [`process::abort`]: https://doc.rust-lang.org/std/process/fn.abort.html | |
397 | [`ptr::read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html | |
398 | [`ptr::write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html | |
399 | [cargo/3562]: https://github.com/rust-lang/cargo/pull/3562 | |
400 | [cargo/3664]: https://github.com/rust-lang/cargo/pull/3664 | |
401 | [cargo/3667]: https://github.com/rust-lang/cargo/pull/3667 | |
402 | [cargo/3691]: https://github.com/rust-lang/cargo/pull/3691 | |
403 | [cargo/3699]: https://github.com/rust-lang/cargo/pull/3699 | |
404 | [cargo/3731]: https://github.com/rust-lang/cargo/pull/3731 | |
405 | [mdbook]: https://crates.io/crates/mdbook | |
406 | [ubook]: https://doc.rust-lang.org/unstable-book/ | |
407 | ||
408 | ||
32a655c1 SL |
409 | Version 1.16.0 (2017-03-16) |
410 | =========================== | |
411 | ||
412 | Language | |
413 | -------- | |
414 | ||
32a655c1 SL |
415 | * [The compiler's `dead_code` lint now accounts for type aliases][38051]. |
416 | * [Uninhabitable enums (those without any variants) no longer permit wildcard | |
417 | match patterns][38069] | |
418 | * [Clean up semantics of `self` in an import list][38313] | |
419 | * [`Self` may appear in `impl` headers][38920] | |
420 | * [`Self` may appear in struct expressions][39282] | |
421 | ||
422 | Compiler | |
423 | -------- | |
424 | ||
425 | * [`rustc` now supports `--emit=metadata`, which causes rustc to emit | |
426 | a `.rmeta` file containing only crate metadata][38571]. This can be | |
427 | used by tools like the Rust Language Service to perform | |
428 | metadata-only builds. | |
429 | * [Levenshtein based typo suggestions now work in most places, while | |
430 | previously they worked only for fields and sometimes for local | |
431 | variables][38927]. Together with the overhaul of "no | |
432 | resolution"/"unexpected resolution" errors (#[38154]) they result in | |
433 | large and systematic improvement in resolution diagnostics. | |
434 | * [Fix `transmute::<T, U>` where `T` requires a bigger alignment than | |
435 | `U`][38670] | |
436 | * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798] | |
437 | * [`rustc` no longer attempts to provide "consider using an explicit | |
438 | lifetime" suggestions][37057]. They were inaccurate. | |
439 | ||
440 | Stabilized APIs | |
441 | --------------- | |
442 | ||
443 | * [`VecDeque::truncate`] | |
444 | * [`VecDeque::resize`] | |
445 | * [`String::insert_str`] | |
446 | * [`Duration::checked_add`] | |
447 | * [`Duration::checked_sub`] | |
448 | * [`Duration::checked_div`] | |
449 | * [`Duration::checked_mul`] | |
450 | * [`str::replacen`] | |
451 | * [`str::repeat`] | |
452 | * [`SocketAddr::is_ipv4`] | |
453 | * [`SocketAddr::is_ipv6`] | |
454 | * [`IpAddr::is_ipv4`] | |
455 | * [`IpAddr::is_ipv6`] | |
456 | * [`Vec::dedup_by`] | |
457 | * [`Vec::dedup_by_key`] | |
458 | * [`Result::unwrap_or_default`] | |
459 | * [`<*const T>::wrapping_offset`] | |
460 | * [`<*mut T>::wrapping_offset`] | |
461 | * `CommandExt::creation_flags` | |
462 | * [`File::set_permissions`] | |
463 | * [`String::split_off`] | |
464 | ||
465 | Libraries | |
466 | --------- | |
467 | ||
468 | * [`[T]::binary_search` and `[T]::binary_search_by_key` now take | |
469 | their argument by `Borrow` parameter][37761] | |
470 | * [All public types in std implement `Debug`][38006] | |
471 | * [`IpAddr` implements `From<Ipv4Addr>` and `From<Ipv6Addr>`][38327] | |
472 | * [`Ipv6Addr` implements `From<[u16; 8]>`][38131] | |
473 | * [Ctrl-Z returns from `Stdin.read()` when reading from the console on | |
474 | Windows][38274] | |
475 | * [std: Fix partial writes in `LineWriter`][38062] | |
476 | * [std: Clamp max read/write sizes on Unix][38062] | |
477 | * [Use more specific panic message for `&str` slicing errors][38066] | |
478 | * [`TcpListener::set_only_v6` is deprecated][38304]. This | |
479 | functionality cannot be achieved in std currently. | |
480 | * [`writeln!`, like `println!`, now accepts a form with no string | |
481 | or formatting arguments, to just print a newline][38469] | |
482 | * [Implement `iter::Sum` and `iter::Product` for `Result`][38580] | |
483 | * [Reduce the size of static data in `std_unicode::tables`][38781] | |
484 | * [`char::EscapeDebug`, `EscapeDefault`, `EscapeUnicode`, | |
485 | `CaseMappingIter`, `ToLowercase`, `ToUppercase`, implement | |
486 | `Display`][38909] | |
487 | * [`Duration` implements `Sum`][38712] | |
488 | * [`String` implements `ToSocketAddrs`][39048] | |
489 | ||
490 | Cargo | |
491 | ----- | |
492 | ||
493 | * [The `cargo check` command does a type check of a project without | |
494 | building it][cargo/3296] | |
495 | * [crates.io will display CI badges from Travis and AppVeyor, if | |
496 | specified in Cargo.toml][cargo/3546] | |
497 | * [crates.io will display categories listed in Cargo.toml][cargo/3301] | |
498 | * [Compilation profiles accept integer values for `debug`, in addition | |
499 | to `true` and `false`. These are passed to `rustc` as the value to | |
500 | `-C debuginfo`][cargo/3534] | |
501 | * [Implement `cargo --version --verbose`][cargo/3604] | |
502 | * [All builds now output 'dep-info' build dependencies compatible with | |
503 | make and ninja][cargo/3557] | |
504 | * [Build all workspace members with `build --all`][cargo/3511] | |
505 | * [Document all workspace members with `doc --all`][cargo/3515] | |
506 | * [Path deps outside workspace are not members][cargo/3443] | |
507 | ||
508 | Misc | |
509 | ---- | |
510 | ||
511 | * [`rustdoc` has a `--sysroot` argument that, like `rustc`, specifies | |
512 | the path to the Rust implementation][38589] | |
513 | * [The `armv7-linux-androideabi` target no longer enables NEON | |
514 | extensions, per Google's ABI guide][38413] | |
515 | * [The stock standard library can be compiled for Redox OS][38401] | |
516 | * [Rust has initial SPARC support][38726]. Tier 3. No builds | |
517 | available. | |
518 | * [Rust has experimental support for Nvidia PTX][38559]. Tier 3. No | |
519 | builds available. | |
520 | * [Fix backtraces on i686-pc-windows-gnu by disabling FPO][39379] | |
521 | ||
522 | Compatibility Notes | |
523 | ------------------- | |
524 | ||
525 | * [Uninhabitable enums (those without any variants) no longer permit wildcard | |
526 | match patterns][38069] | |
527 | * In this release, references to uninhabited types can not be | |
528 | pattern-matched. This was accidentally allowed in 1.15. | |
529 | * [The compiler's `dead_code` lint now accounts for type aliases][38051]. | |
530 | * [Ctrl-Z returns from `Stdin.read()` when reading from the console on | |
531 | Windows][38274] | |
532 | * [Clean up semantics of `self` in an import list][38313] | |
533 | ||
534 | [37057]: https://github.com/rust-lang/rust/pull/37057 | |
535 | [37761]: https://github.com/rust-lang/rust/pull/37761 | |
536 | [38006]: https://github.com/rust-lang/rust/pull/38006 | |
537 | [38051]: https://github.com/rust-lang/rust/pull/38051 | |
538 | [38062]: https://github.com/rust-lang/rust/pull/38062 | |
539 | [38062]: https://github.com/rust-lang/rust/pull/38622 | |
540 | [38066]: https://github.com/rust-lang/rust/pull/38066 | |
541 | [38069]: https://github.com/rust-lang/rust/pull/38069 | |
542 | [38131]: https://github.com/rust-lang/rust/pull/38131 | |
543 | [38154]: https://github.com/rust-lang/rust/pull/38154 | |
544 | [38274]: https://github.com/rust-lang/rust/pull/38274 | |
545 | [38304]: https://github.com/rust-lang/rust/pull/38304 | |
546 | [38313]: https://github.com/rust-lang/rust/pull/38313 | |
547 | [38314]: https://github.com/rust-lang/rust/pull/38314 | |
548 | [38327]: https://github.com/rust-lang/rust/pull/38327 | |
549 | [38401]: https://github.com/rust-lang/rust/pull/38401 | |
550 | [38413]: https://github.com/rust-lang/rust/pull/38413 | |
551 | [38469]: https://github.com/rust-lang/rust/pull/38469 | |
552 | [38559]: https://github.com/rust-lang/rust/pull/38559 | |
553 | [38571]: https://github.com/rust-lang/rust/pull/38571 | |
554 | [38580]: https://github.com/rust-lang/rust/pull/38580 | |
555 | [38589]: https://github.com/rust-lang/rust/pull/38589 | |
556 | [38670]: https://github.com/rust-lang/rust/pull/38670 | |
557 | [38712]: https://github.com/rust-lang/rust/pull/38712 | |
558 | [38726]: https://github.com/rust-lang/rust/pull/38726 | |
559 | [38781]: https://github.com/rust-lang/rust/pull/38781 | |
560 | [38798]: https://github.com/rust-lang/rust/pull/38798 | |
561 | [38909]: https://github.com/rust-lang/rust/pull/38909 | |
562 | [38920]: https://github.com/rust-lang/rust/pull/38920 | |
563 | [38927]: https://github.com/rust-lang/rust/pull/38927 | |
564 | [39048]: https://github.com/rust-lang/rust/pull/39048 | |
565 | [39282]: https://github.com/rust-lang/rust/pull/39282 | |
566 | [39379]: https://github.com/rust-lang/rust/pull/39379 | |
567 | [`<*const T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset | |
568 | [`<*mut T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset | |
569 | [`Duration::checked_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_add | |
570 | [`Duration::checked_div`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_div | |
571 | [`Duration::checked_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_mul | |
572 | [`Duration::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_sub | |
573 | [`File::set_permissions`]: https://doc.rust-lang.org/std/fs/struct.File.html#method.set_permissions | |
574 | [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv4 | |
575 | [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv6 | |
576 | [`Result::unwrap_or_default`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.unwrap_or_default | |
577 | [`SocketAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv4 | |
578 | [`SocketAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv6 | |
579 | [`String::insert_str`]: https://doc.rust-lang.org/std/string/struct.String.html#method.insert_str | |
580 | [`String::split_off`]: https://doc.rust-lang.org/std/string/struct.String.html#method.split_off | |
581 | [`Vec::dedup_by_key`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by_key | |
582 | [`Vec::dedup_by`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by | |
583 | [`VecDeque::resize`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.resize | |
584 | [`VecDeque::truncate`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.truncate | |
585 | [`str::repeat`]: https://doc.rust-lang.org/std/primitive.str.html#method.repeat | |
586 | [`str::replacen`]: https://doc.rust-lang.org/std/primitive.str.html#method.replacen | |
587 | [cargo/3296]: https://github.com/rust-lang/cargo/pull/3296 | |
588 | [cargo/3301]: https://github.com/rust-lang/cargo/pull/3301 | |
589 | [cargo/3443]: https://github.com/rust-lang/cargo/pull/3443 | |
590 | [cargo/3511]: https://github.com/rust-lang/cargo/pull/3511 | |
591 | [cargo/3515]: https://github.com/rust-lang/cargo/pull/3515 | |
592 | [cargo/3534]: https://github.com/rust-lang/cargo/pull/3534 | |
593 | [cargo/3546]: https://github.com/rust-lang/cargo/pull/3546 | |
594 | [cargo/3557]: https://github.com/rust-lang/cargo/pull/3557 | |
595 | [cargo/3604]: https://github.com/rust-lang/cargo/pull/3604 | |
596 | [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md | |
597 | ||
598 | ||
e81b0574 SL |
599 | Version 1.15.1 (2017-02-09) |
600 | =========================== | |
601 | ||
602 | * [Fix IntoIter::as_mut_slice's signature][39466] | |
603 | * [Compile compiler builtins with `-fPIC` on 32-bit platforms][39523] | |
604 | ||
605 | [39466]: https://github.com/rust-lang/rust/pull/39466 | |
606 | [39523]: https://github.com/rust-lang/rust/pull/39523 | |
607 | ||
608 | ||
476ff2be SL |
609 | Version 1.15.0 (2017-02-02) |
610 | =========================== | |
611 | ||
612 | Language | |
613 | -------- | |
614 | ||
615 | * Basic procedural macros allowing custom `#[derive]`, aka "macros 1.1", are | |
616 | stable. This allows popular code-generating crates like Serde and Diesel to | |
617 | work ergonomically. [RFC 1681]. | |
618 | * [Tuple structs may be empty. Unary and empty tuple structs may be instantiated | |
619 | with curly braces][36868]. Part of [RFC 1506]. | |
620 | * [A number of minor changes to name resolution have been activated][37127]. | |
621 | They add up to more consistent semantics, allowing for future evolution of | |
622 | Rust macros. Specified in [RFC 1560], see its section on ["changes"] for | |
623 | details of what is different. The breaking changes here have been transitioned | |
624 | through the [`legacy_imports`] lint since 1.14, with no known regressions. | |
625 | * [In `macro_rules`, `path` fragments can now be parsed as type parameter | |
626 | bounds][38279] | |
627 | * [`?Sized` can be used in `where` clauses][37791] | |
628 | * [There is now a limit on the size of monomorphized types and it can be | |
629 | modified with the `#![type_size_limit]` crate attribute, similarly to | |
630 | the `#![recursion_limit]` attribute][37789] | |
631 | ||
632 | Compiler | |
633 | -------- | |
634 | ||
635 | * [On Windows, the compiler will apply dllimport attributes when linking to | |
636 | extern functions][37973]. Additional attributes and flags can control which | |
637 | library kind is linked and its name. [RFC 1717]. | |
638 | * [Rust-ABI symbols are no longer exported from cdylibs][38117] | |
639 | * [The `--test` flag works with procedural macro crates][38107] | |
640 | * [Fix `extern "aapcs" fn` ABI][37814] | |
641 | * [The `-C no-stack-check` flag is deprecated][37636]. It does nothing. | |
642 | * [The `format!` expander recognizes incorrect `printf` and shell-style | |
643 | formatting directives and suggests the correct format][37613]. | |
644 | * [Only report one error for all unused imports in an import list][37456] | |
645 | ||
646 | Compiler Performance | |
647 | -------------------- | |
648 | ||
649 | * [Avoid unnecessary `mk_ty` calls in `Ty::super_fold_with`][37705] | |
650 | * [Avoid more unnecessary `mk_ty` calls in `Ty::super_fold_with`][37979] | |
651 | * [Don't clone in `UnificationTable::probe`][37848] | |
652 | * [Remove `scope_auxiliary` to cut RSS by 10%][37764] | |
653 | * [Use small vectors in type walker][37760] | |
654 | * [Macro expansion performance was improved][37701] | |
655 | * [Change `HirVec<P<T>>` to `HirVec<T>` in `hir::Expr`][37642] | |
656 | * [Replace FNV with a faster hash function][37229] | |
657 | ||
658 | Stabilized APIs | |
659 | --------------- | |
660 | ||
661 | * [`std::iter::Iterator::min_by`] | |
662 | * [`std::iter::Iterator::max_by`] | |
663 | * [`std::os::*::fs::FileExt`] | |
664 | * [`std::sync::atomic::Atomic*::get_mut`] | |
665 | * [`std::sync::atomic::Atomic*::into_inner`] | |
666 | * [`std::vec::IntoIter::as_slice`] | |
667 | * [`std::vec::IntoIter::as_mut_slice`] | |
668 | * [`std::sync::mpsc::Receiver::try_iter`] | |
669 | * [`std::os::unix::process::CommandExt::before_exec`] | |
670 | * [`std::rc::Rc::strong_count`] | |
671 | * [`std::rc::Rc::weak_count`] | |
672 | * [`std::sync::Arc::strong_count`] | |
673 | * [`std::sync::Arc::weak_count`] | |
674 | * [`std::char::encode_utf8`] | |
675 | * [`std::char::encode_utf16`] | |
676 | * [`std::cell::Ref::clone`] | |
677 | * [`std::io::Take::into_inner`] | |
678 | ||
679 | Libraries | |
680 | --------- | |
681 | ||
682 | * [The standard sorting algorithm has been rewritten for dramatic performance | |
683 | improvements][38192]. It is a hybrid merge sort, drawing influences from | |
684 | Timsort. Previously it was a naive merge sort. | |
685 | * [`Iterator::nth` no longer has a `Sized` bound][38134] | |
686 | * [`Extend<&T>` is specialized for `Vec` where `T: Copy`][38182] to improve | |
687 | performance. | |
688 | * [`chars().count()` is much faster][37888] and so are [`chars().last()` | |
689 | and `char_indices().last()`][37882] | |
690 | * [Fix ARM Objective-C ABI in `std::env::args`][38146] | |
691 | * [Chinese characters display correctly in `fmt::Debug`][37855] | |
692 | * [Derive `Default` for `Duration`][37699] | |
693 | * [Support creation of anonymous pipes on WinXP/2k][37677] | |
694 | * [`mpsc::RecvTimeoutError` implements `Error`][37527] | |
695 | * [Don't pass overlapped handles to processes][38835] | |
696 | ||
697 | Cargo | |
698 | ----- | |
699 | ||
700 | * [In this release, Cargo build scripts no longer have access to the `OUT_DIR` | |
701 | environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They | |
702 | should instead check the variable at runtime with `std::env`. That the value | |
703 | was set at build time was a bug, and incorrect when cross-compiling. This | |
704 | change is known to cause breakage. | |
705 | * [Add `--all` flag to `cargo test`][cargo/3221] | |
706 | * [Compile statically against the MSVC CRT][cargo/3363] | |
707 | * [Mix feature flags into fingerprint/metadata shorthash][cargo/3102] | |
708 | * [Link OpenSSL statically on OSX][cargo/3311] | |
709 | * [Apply new fingerprinting to build dir outputs][cargo/3310] | |
710 | * [Test for bad path overrides with summaries][cargo/3336] | |
711 | * [Require `cargo install --vers` to take a semver version][cargo/3338] | |
712 | * [Fix retrying crate downloads for network errors][cargo/3348] | |
713 | * [Implement string lookup for `build.rustflags` config key][cargo/3356] | |
714 | * [Emit more info on --message-format=json][cargo/3319] | |
715 | * [Assume `build.rs` in the same directory as `Cargo.toml` is a build script][cargo/3361] | |
716 | * [Don't ignore errors in workspace manifest][cargo/3409] | |
717 | * [Fix `--message-format JSON` when rustc emits non-JSON warnings][cargo/3410] | |
718 | ||
719 | Tooling | |
720 | ------- | |
721 | ||
722 | * [Test runners (binaries built with `--test`) now support a `--list` argument | |
723 | that lists the tests it contains][38185] | |
724 | * [Test runners now support a `--exact` argument that makes the test filter | |
725 | match exactly, instead of matching only a substring of the test name][38181] | |
726 | * [rustdoc supports a `--playground-url` flag][37763] | |
727 | * [rustdoc provides more details about `#[should_panic]` errors][37749] | |
728 | ||
729 | Misc | |
730 | ---- | |
731 | ||
732 | * [The Rust build system is now written in Rust][37817]. The Makefiles may | |
733 | continue to be used in this release by passing `--disable-rustbuild` to the | |
734 | configure script, but they will be deleted soon. Note that the new build | |
735 | system uses a different on-disk layout that will likely affect any scripts | |
736 | building Rust. | |
737 | * [Rust supports i686-unknown-openbsd][38086]. Tier 3 support. No testing or | |
738 | releases. | |
739 | * [Rust supports the MSP430][37627]. Tier 3 support. No testing or releases. | |
740 | * [Rust supports the ARMv5TE architecture][37615]. Tier 3 support. No testing or | |
741 | releases. | |
742 | ||
743 | Compatibility Notes | |
744 | ------------------- | |
745 | ||
746 | * [A number of minor changes to name resolution have been activated][37127]. | |
747 | They add up to more consistent semantics, allowing for future evolution of | |
748 | Rust macros. Specified in [RFC 1560], see its section on ["changes"] for | |
749 | details of what is different. The breaking changes here have been transitioned | |
750 | through the [`legacy_imports`] lint since 1.14, with no known regressions. | |
751 | * [In this release, Cargo build scripts no longer have access to the `OUT_DIR` | |
752 | environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They | |
753 | should instead check the variable at runtime with `std::env`. That the value | |
754 | was set at build time was a bug, and incorrect when cross-compiling. This | |
755 | change is known to cause breakage. | |
756 | * [Higher-ranked lifetimes are no longer allowed to appear _only_ in associated | |
757 | types][33685]. The [`hr_lifetime_in_assoc_type` lint] has been a warning since | |
758 | 1.10 and is now an error by default. It will become a hard error in the near | |
759 | future. | |
760 | * [The semantics relating modules to file system directories are changing in | |
761 | minor ways][37602]. This is captured in the new `legacy_directory_ownership` | |
762 | lint, which is a warning in this release, and will become a hard error in the | |
763 | future. | |
764 | * [Rust-ABI symbols are no longer exported from cdylibs][38117] | |
765 | * [Once `Peekable` peeks a `None` it will return that `None` without re-querying | |
766 | the underlying iterator][37834] | |
767 | ||
768 | ["changes"]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md#changes-to-name-resolution-rules | |
769 | [33685]: https://github.com/rust-lang/rust/issues/33685 | |
770 | [36868]: https://github.com/rust-lang/rust/pull/36868 | |
771 | [37127]: https://github.com/rust-lang/rust/pull/37127 | |
772 | [37229]: https://github.com/rust-lang/rust/pull/37229 | |
773 | [37456]: https://github.com/rust-lang/rust/pull/37456 | |
774 | [37527]: https://github.com/rust-lang/rust/pull/37527 | |
775 | [37602]: https://github.com/rust-lang/rust/pull/37602 | |
776 | [37613]: https://github.com/rust-lang/rust/pull/37613 | |
777 | [37615]: https://github.com/rust-lang/rust/pull/37615 | |
778 | [37636]: https://github.com/rust-lang/rust/pull/37636 | |
32a655c1 | 779 | [37627]: https://github.com/rust-lang/rust/pull/37627 |
476ff2be SL |
780 | [37642]: https://github.com/rust-lang/rust/pull/37642 |
781 | [37677]: https://github.com/rust-lang/rust/pull/37677 | |
782 | [37699]: https://github.com/rust-lang/rust/pull/37699 | |
783 | [37701]: https://github.com/rust-lang/rust/pull/37701 | |
784 | [37705]: https://github.com/rust-lang/rust/pull/37705 | |
785 | [37749]: https://github.com/rust-lang/rust/pull/37749 | |
786 | [37760]: https://github.com/rust-lang/rust/pull/37760 | |
787 | [37763]: https://github.com/rust-lang/rust/pull/37763 | |
788 | [37764]: https://github.com/rust-lang/rust/pull/37764 | |
789 | [37789]: https://github.com/rust-lang/rust/pull/37789 | |
790 | [37791]: https://github.com/rust-lang/rust/pull/37791 | |
791 | [37814]: https://github.com/rust-lang/rust/pull/37814 | |
792 | [37817]: https://github.com/rust-lang/rust/pull/37817 | |
793 | [37834]: https://github.com/rust-lang/rust/pull/37834 | |
794 | [37848]: https://github.com/rust-lang/rust/pull/37848 | |
795 | [37855]: https://github.com/rust-lang/rust/pull/37855 | |
796 | [37882]: https://github.com/rust-lang/rust/pull/37882 | |
797 | [37888]: https://github.com/rust-lang/rust/pull/37888 | |
798 | [37973]: https://github.com/rust-lang/rust/pull/37973 | |
799 | [37979]: https://github.com/rust-lang/rust/pull/37979 | |
800 | [38086]: https://github.com/rust-lang/rust/pull/38086 | |
801 | [38107]: https://github.com/rust-lang/rust/pull/38107 | |
802 | [38117]: https://github.com/rust-lang/rust/pull/38117 | |
803 | [38134]: https://github.com/rust-lang/rust/pull/38134 | |
804 | [38146]: https://github.com/rust-lang/rust/pull/38146 | |
805 | [38181]: https://github.com/rust-lang/rust/pull/38181 | |
806 | [38182]: https://github.com/rust-lang/rust/pull/38182 | |
807 | [38185]: https://github.com/rust-lang/rust/pull/38185 | |
808 | [38192]: https://github.com/rust-lang/rust/pull/38192 | |
809 | [38279]: https://github.com/rust-lang/rust/pull/38279 | |
810 | [38835]: https://github.com/rust-lang/rust/pull/38835 | |
811 | [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md | |
812 | [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md | |
813 | [RFC 1560]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md | |
814 | [RFC 1681]: https://github.com/rust-lang/rfcs/blob/master/text/1681-macros-1.1.md | |
815 | [RFC 1717]: https://github.com/rust-lang/rfcs/blob/master/text/1717-dllimport.md | |
816 | [`hr_lifetime_in_assoc_type` lint]: https://github.com/rust-lang/rust/issues/33685 | |
817 | [`legacy_imports`]: https://github.com/rust-lang/rust/pull/38271 | |
818 | [cargo/3102]: https://github.com/rust-lang/cargo/pull/3102 | |
819 | [cargo/3221]: https://github.com/rust-lang/cargo/pull/3221 | |
820 | [cargo/3310]: https://github.com/rust-lang/cargo/pull/3310 | |
821 | [cargo/3311]: https://github.com/rust-lang/cargo/pull/3311 | |
822 | [cargo/3319]: https://github.com/rust-lang/cargo/pull/3319 | |
823 | [cargo/3336]: https://github.com/rust-lang/cargo/pull/3336 | |
824 | [cargo/3338]: https://github.com/rust-lang/cargo/pull/3338 | |
825 | [cargo/3348]: https://github.com/rust-lang/cargo/pull/3348 | |
826 | [cargo/3356]: https://github.com/rust-lang/cargo/pull/3356 | |
827 | [cargo/3361]: https://github.com/rust-lang/cargo/pull/3361 | |
828 | [cargo/3363]: https://github.com/rust-lang/cargo/pull/3363 | |
829 | [cargo/3368]: https://github.com/rust-lang/cargo/issues/3368 | |
830 | [cargo/3409]: https://github.com/rust-lang/cargo/pull/3409 | |
831 | [cargo/3410]: https://github.com/rust-lang/cargo/pull/3410 | |
832 | [`std::iter::Iterator::min_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.min_by | |
833 | [`std::iter::Iterator::max_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.max_by | |
834 | [`std::os::*::fs::FileExt`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html | |
835 | [`std::sync::atomic::Atomic*::get_mut`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.get_mut | |
836 | [`std::sync::atomic::Atomic*::into_inner`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.into_inner | |
837 | [`std::vec::IntoIter::as_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_slice | |
838 | [`std::vec::IntoIter::as_mut_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_mut_slice | |
839 | [`std::sync::mpsc::Receiver::try_iter`]: https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_iter | |
840 | [`std::os::unix::process::CommandExt::before_exec`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.before_exec | |
841 | [`std::rc::Rc::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.strong_count | |
842 | [`std::rc::Rc::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.weak_count | |
843 | [`std::sync::Arc::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.strong_count | |
844 | [`std::sync::Arc::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.weak_count | |
845 | [`std::char::encode_utf8`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf8 | |
846 | [`std::char::encode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf16 | |
847 | [`std::cell::Ref::clone`]: https://doc.rust-lang.org/std/cell/struct.Ref.html#method.clone | |
848 | [`std::io::Take::into_inner`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.into_inner | |
849 | ||
850 | ||
851 | Version 1.14.0 (2016-12-22) | |
852 | =========================== | |
853 | ||
854 | Language | |
855 | -------- | |
856 | ||
857 | * [`..` matches multiple tuple fields in enum variants, structs | |
858 | and tuples][36843]. [RFC 1492]. | |
859 | * [Safe `fn` items can be coerced to `unsafe fn` pointers][37389] | |
860 | * [`use *` and `use ::*` both glob-import from the crate root][37367] | |
861 | * [It's now possible to call a `Vec<Box<Fn()>>` without explicit | |
862 | dereferencing][36822] | |
863 | ||
864 | Compiler | |
865 | -------- | |
866 | ||
867 | * [Mark enums with non-zero discriminant as non-zero][37224] | |
868 | * [Lower-case `static mut` names are linted like other | |
869 | statics and consts][37162] | |
870 | * [Fix ICE on some macros in const integer positions | |
871 | (e.g. `[u8; m!()]`)][36819] | |
872 | * [Improve error message and snippet for "did you mean `x`"][36798] | |
873 | * [Add a panic-strategy field to the target specification][36794] | |
874 | * [Include LLVM version in `--version --verbose`][37200] | |
875 | ||
876 | Compile-time Optimizations | |
877 | -------------------------- | |
878 | ||
879 | * [Improve macro expansion performance][37569] | |
880 | * [Shrink `Expr_::ExprInlineAsm`][37445] | |
881 | * [Replace all uses of SHA-256 with BLAKE2b][37439] | |
882 | * [Reduce the number of bytes hashed by `IchHasher`][37427] | |
883 | * [Avoid more allocations when compiling html5ever][37373] | |
884 | * [Use `SmallVector` in `CombineFields::instantiate`][37322] | |
885 | * [Avoid some allocations in the macro parser][37318] | |
886 | * [Use a faster deflate setting][37298] | |
887 | * [Add `ArrayVec` and `AccumulateVec` to reduce heap allocations | |
888 | during interning of slices][37270] | |
889 | * [Optimize `write_metadata`][37267] | |
890 | * [Don't process obligation forest cycles when stalled][37231] | |
891 | * [Avoid many `CrateConfig` clones][37161] | |
892 | * [Optimize `Substs::super_fold_with`][37108] | |
893 | * [Optimize `ObligationForest`'s `NodeState` handling][36993] | |
894 | * [Speed up `plug_leaks`][36917] | |
895 | ||
896 | Libraries | |
897 | --------- | |
898 | ||
899 | * [`println!()`, with no arguments, prints newline][36825]. | |
900 | Previously, an empty string was required to achieve the same. | |
901 | * [`Wrapping` impls standard binary and unary operators, as well as | |
902 | the `Sum` and `Product` iterators][37356] | |
903 | * [Implement `From<Cow<str>> for String` and `From<Cow<[T]>> for | |
904 | Vec<T>`][37326] | |
905 | * [Improve `fold` performance for `chain`, `cloned`, `map`, and | |
906 | `VecDeque` iterators][37315] | |
907 | * [Improve `SipHasher` performance on small values][37312] | |
908 | * [Add Iterator trait TrustedLen to enable better FromIterator / | |
909 | Extend][37306] | |
910 | * [Expand `.zip()` specialization to `.map()` and `.cloned()`][37230] | |
911 | * [`ReadDir` implements `Debug`][37221] | |
912 | * [Implement `RefUnwindSafe` for atomic types][37178] | |
913 | * [Specialize `Vec::extend` to `Vec::extend_from_slice`][37094] | |
914 | * [Avoid allocations in `Decoder::read_str`][37064] | |
915 | * [`io::Error` implements `From<io::ErrorKind>`][37037] | |
916 | * [Impl `Debug` for raw pointers to unsized data][36880] | |
917 | * [Don't reuse `HashMap` random seeds][37470] | |
918 | * [The internal memory layout of `HashMap` is more cache-friendly, for | |
919 | significant improvements in some operations][36692] | |
920 | * [`HashMap` uses less memory on 32-bit architectures][36595] | |
921 | * [Impl `Add<{str, Cow<str>}>` for `Cow<str>`][36430] | |
922 | ||
923 | Cargo | |
924 | ----- | |
925 | ||
926 | * [Expose rustc cfg values to build scripts][cargo/3243] | |
927 | * [Allow cargo to work with read-only `CARGO_HOME`][cargo/3259] | |
928 | * [Fix passing --features when testing multiple packages][cargo/3280] | |
929 | * [Use a single profile set per workspace][cargo/3249] | |
930 | * [Load `replace` sections from lock files][cargo/3220] | |
931 | * [Ignore `panic` configuration for test/bench profiles][cargo/3175] | |
932 | ||
933 | Tooling | |
934 | ------- | |
935 | ||
936 | * [rustup is the recommended Rust installation method][1.14rustup] | |
937 | * This release includes host (rustc) builds for Linux on MIPS, PowerPC, and | |
938 | S390x. These are [tier 2] platforms and may have major defects. Follow the | |
939 | instructions on the website to install, or add the targets to an existing | |
940 | installation with `rustup target add`. The new target triples are: | |
941 | - `mips-unknown-linux-gnu` | |
942 | - `mipsel-unknown-linux-gnu` | |
943 | - `mips64-unknown-linux-gnuabi64` | |
944 | - `mips64el-unknown-linux-gnuabi64 ` | |
945 | - `powerpc-unknown-linux-gnu` | |
946 | - `powerpc64-unknown-linux-gnu` | |
947 | - `powerpc64le-unknown-linux-gnu` | |
948 | - `s390x-unknown-linux-gnu ` | |
949 | * This release includes target (std) builds for ARM Linux running MUSL | |
950 | libc. These are [tier 2] platforms and may have major defects. Add the | |
951 | following triples to an existing rustup installation with `rustup target add`: | |
952 | - `arm-unknown-linux-musleabi` | |
953 | - `arm-unknown-linux-musleabihf` | |
954 | - `armv7-unknown-linux-musleabihf` | |
955 | * This release includes [experimental support for WebAssembly][1.14wasm], via | |
956 | the `wasm32-unknown-emscripten` target. This target is known to have major | |
957 | defects. Please test, report, and fix. | |
958 | * rustup no longer installs documentation by default. Run `rustup | |
959 | component add rust-docs` to install. | |
960 | * [Fix line stepping in debugger][37310] | |
961 | * [Enable line number debuginfo in releases][37280] | |
962 | ||
963 | Misc | |
964 | ---- | |
965 | ||
966 | * [Disable jemalloc on aarch64/powerpc/mips][37392] | |
967 | * [Add support for Fuchsia OS][37313] | |
968 | * [Detect local-rebuild by only MAJOR.MINOR version][37273] | |
969 | ||
970 | Compatibility Notes | |
971 | ------------------- | |
972 | ||
973 | * [A number of forward-compatibility lints used by the compiler | |
974 | to gradually introduce language changes have been converted | |
975 | to deny by default][36894]: | |
976 | - ["use of inaccessible extern crate erroneously allowed"][36886] | |
977 | - ["type parameter default erroneously allowed in invalid location"][36887] | |
978 | - ["detects super or self keywords at the beginning of global path"][36888] | |
979 | - ["two overlapping inherent impls define an item with the same name | |
980 | were erroneously allowed"][36889] | |
981 | - ["floating-point constants cannot be used in patterns"][36890] | |
982 | - ["constants of struct or enum type can only be used in a pattern if | |
983 | the struct or enum has `#[derive(PartialEq, Eq)]`"][36891] | |
984 | - ["lifetimes or labels named `'_` were erroneously allowed"][36892] | |
985 | * [Prohibit patterns in trait methods without bodies][37378] | |
986 | * [The atomic `Ordering` enum may not be matched exhaustively][37351] | |
987 | * [Future-proofing `#[no_link]` breaks some obscure cases][37247] | |
988 | * [The `$crate` macro variable is accepted in fewer locations][37213] | |
989 | * [Impls specifying extra region requirements beyond the trait | |
990 | they implement are rejected][37167] | |
991 | * [Enums may not be unsized][37111]. Unsized enums are intended to | |
992 | work but never have. For now they are forbidden. | |
993 | * [Enforce the shadowing restrictions from RFC 1560 for today's macros][36767] | |
994 | ||
995 | [tier 2]: https://forge.rust-lang.org/platform-support.html | |
996 | [1.14rustup]: https://internals.rust-lang.org/t/beta-testing-rustup-rs/3316/204 | |
997 | [1.14wasm]: https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten/7627 | |
998 | [36430]: https://github.com/rust-lang/rust/pull/36430 | |
999 | [36595]: https://github.com/rust-lang/rust/pull/36595 | |
1000 | [36595]: https://github.com/rust-lang/rust/pull/36595 | |
1001 | [36692]: https://github.com/rust-lang/rust/pull/36692 | |
1002 | [36767]: https://github.com/rust-lang/rust/pull/36767 | |
1003 | [36794]: https://github.com/rust-lang/rust/pull/36794 | |
1004 | [36798]: https://github.com/rust-lang/rust/pull/36798 | |
1005 | [36819]: https://github.com/rust-lang/rust/pull/36819 | |
1006 | [36822]: https://github.com/rust-lang/rust/pull/36822 | |
1007 | [36825]: https://github.com/rust-lang/rust/pull/36825 | |
1008 | [36843]: https://github.com/rust-lang/rust/pull/36843 | |
1009 | [36880]: https://github.com/rust-lang/rust/pull/36880 | |
1010 | [36886]: https://github.com/rust-lang/rust/issues/36886 | |
1011 | [36887]: https://github.com/rust-lang/rust/issues/36887 | |
1012 | [36888]: https://github.com/rust-lang/rust/issues/36888 | |
1013 | [36889]: https://github.com/rust-lang/rust/issues/36889 | |
1014 | [36890]: https://github.com/rust-lang/rust/issues/36890 | |
1015 | [36891]: https://github.com/rust-lang/rust/issues/36891 | |
1016 | [36892]: https://github.com/rust-lang/rust/issues/36892 | |
1017 | [36894]: https://github.com/rust-lang/rust/pull/36894 | |
1018 | [36917]: https://github.com/rust-lang/rust/pull/36917 | |
1019 | [36993]: https://github.com/rust-lang/rust/pull/36993 | |
1020 | [37037]: https://github.com/rust-lang/rust/pull/37037 | |
1021 | [37064]: https://github.com/rust-lang/rust/pull/37064 | |
1022 | [37094]: https://github.com/rust-lang/rust/pull/37094 | |
1023 | [37108]: https://github.com/rust-lang/rust/pull/37108 | |
1024 | [37111]: https://github.com/rust-lang/rust/pull/37111 | |
1025 | [37161]: https://github.com/rust-lang/rust/pull/37161 | |
1026 | [37162]: https://github.com/rust-lang/rust/pull/37162 | |
1027 | [37167]: https://github.com/rust-lang/rust/pull/37167 | |
1028 | [37178]: https://github.com/rust-lang/rust/pull/37178 | |
1029 | [37200]: https://github.com/rust-lang/rust/pull/37200 | |
1030 | [37213]: https://github.com/rust-lang/rust/pull/37213 | |
1031 | [37221]: https://github.com/rust-lang/rust/pull/37221 | |
1032 | [37224]: https://github.com/rust-lang/rust/pull/37224 | |
1033 | [37230]: https://github.com/rust-lang/rust/pull/37230 | |
1034 | [37231]: https://github.com/rust-lang/rust/pull/37231 | |
1035 | [37247]: https://github.com/rust-lang/rust/pull/37247 | |
1036 | [37267]: https://github.com/rust-lang/rust/pull/37267 | |
1037 | [37270]: https://github.com/rust-lang/rust/pull/37270 | |
1038 | [37273]: https://github.com/rust-lang/rust/pull/37273 | |
1039 | [37280]: https://github.com/rust-lang/rust/pull/37280 | |
1040 | [37298]: https://github.com/rust-lang/rust/pull/37298 | |
1041 | [37306]: https://github.com/rust-lang/rust/pull/37306 | |
1042 | [37310]: https://github.com/rust-lang/rust/pull/37310 | |
1043 | [37312]: https://github.com/rust-lang/rust/pull/37312 | |
1044 | [37313]: https://github.com/rust-lang/rust/pull/37313 | |
1045 | [37315]: https://github.com/rust-lang/rust/pull/37315 | |
1046 | [37318]: https://github.com/rust-lang/rust/pull/37318 | |
1047 | [37322]: https://github.com/rust-lang/rust/pull/37322 | |
1048 | [37326]: https://github.com/rust-lang/rust/pull/37326 | |
1049 | [37351]: https://github.com/rust-lang/rust/pull/37351 | |
1050 | [37356]: https://github.com/rust-lang/rust/pull/37356 | |
1051 | [37367]: https://github.com/rust-lang/rust/pull/37367 | |
1052 | [37373]: https://github.com/rust-lang/rust/pull/37373 | |
1053 | [37378]: https://github.com/rust-lang/rust/pull/37378 | |
1054 | [37389]: https://github.com/rust-lang/rust/pull/37389 | |
1055 | [37392]: https://github.com/rust-lang/rust/pull/37392 | |
1056 | [37427]: https://github.com/rust-lang/rust/pull/37427 | |
1057 | [37439]: https://github.com/rust-lang/rust/pull/37439 | |
1058 | [37445]: https://github.com/rust-lang/rust/pull/37445 | |
1059 | [37470]: https://github.com/rust-lang/rust/pull/37470 | |
1060 | [37569]: https://github.com/rust-lang/rust/pull/37569 | |
1061 | [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md | |
1062 | [cargo/3175]: https://github.com/rust-lang/cargo/pull/3175 | |
1063 | [cargo/3220]: https://github.com/rust-lang/cargo/pull/3220 | |
1064 | [cargo/3243]: https://github.com/rust-lang/cargo/pull/3243 | |
1065 | [cargo/3249]: https://github.com/rust-lang/cargo/pull/3249 | |
1066 | [cargo/3259]: https://github.com/rust-lang/cargo/pull/3259 | |
1067 | [cargo/3280]: https://github.com/rust-lang/cargo/pull/3280 | |
1068 | ||
1069 | ||
1070 | Version 1.13.0 (2016-11-10) | |
1071 | =========================== | |
1072 | ||
1073 | Language | |
1074 | -------- | |
1075 | ||
1076 | * [Stabilize the `?` operator][36995]. `?` is a simple way to propagate | |
1077 | errors, like the `try!` macro, described in [RFC 0243]. | |
1078 | * [Stabilize macros in type position][36014]. Described in [RFC 873]. | |
1079 | * [Stabilize attributes on statements][36995]. Described in [RFC 0016]. | |
1080 | * [Fix `#[derive]` for empty tuple structs/variants][35728] | |
1081 | * [Fix lifetime rules for 'if' conditions][36029] | |
1082 | * [Avoid loading and parsing unconfigured non-inline modules][36482] | |
1083 | ||
1084 | Compiler | |
1085 | -------- | |
1086 | ||
1087 | * [Add the `-C link-arg` argument][36574] | |
1088 | * [Remove the old AST-based backend from rustc_trans][35764] | |
1089 | * [Don't enable NEON by default on armv7 Linux][35814] | |
1090 | * [Fix debug line number info for macro expansions][35238] | |
1091 | * [Do not emit "class method" debuginfo for types that are not | |
1092 | DICompositeType][36008] | |
1093 | * [Warn about multiple conflicting #[repr] hints][34623] | |
1094 | * [When sizing DST, don't double-count nested struct prefixes][36351] | |
1095 | * [Default RUST_MIN_STACK to 16MiB for now][36505] | |
1096 | * [Improve rlib metadata format][36551]. Reduces rlib size significantly. | |
1097 | * [Reject macros with empty repetitions to avoid infinite loop][36721] | |
1098 | * [Expand macros without recursing to avoid stack overflows][36214] | |
1099 | ||
1100 | Diagnostics | |
1101 | ----------- | |
1102 | ||
1103 | * [Replace macro backtraces with labeled local uses][35702] | |
1104 | * [Improve error message for missplaced doc comments][33922] | |
1105 | * [Buffer unix and lock windows to prevent message interleaving][35975] | |
1106 | * [Update lifetime errors to specifically note temporaries][36171] | |
1107 | * [Special case a few colors for Windows][36178] | |
1108 | * [Suggest `use self` when such an import resolves][36289] | |
1109 | * [Be more specific when type parameter shadows primitive type][36338] | |
1110 | * Many minor improvements | |
1111 | ||
1112 | Compile-time Optimizations | |
1113 | -------------------------- | |
1114 | ||
1115 | * [Compute and cache HIR hashes at beginning][35854] | |
1116 | * [Don't hash types in loan paths][36004] | |
1117 | * [Cache projections in trans][35761] | |
1118 | * [Optimize the parser's last token handling][36527] | |
1119 | * [Only instantiate #[inline] functions in codegen units referencing | |
1120 | them][36524]. This leads to big improvements in cases where crates export | |
1121 | define many inline functions without using them directly. | |
1122 | * [Lazily allocate TypedArena's first chunk][36592] | |
1123 | * [Don't allocate during default HashSet creation][36734] | |
1124 | ||
1125 | Stabilized APIs | |
1126 | --------------- | |
1127 | ||
1128 | * [`checked_abs`] | |
1129 | * [`wrapping_abs`] | |
1130 | * [`overflowing_abs`] | |
1131 | * [`RefCell::try_borrow`] | |
1132 | * [`RefCell::try_borrow_mut`] | |
1133 | ||
1134 | Libraries | |
1135 | --------- | |
1136 | ||
1137 | * [Add `assert_ne!` and `debug_assert_ne!`][35074] | |
1138 | * [Make `vec_deque::Drain`, `hash_map::Drain`, and `hash_set::Drain` | |
1139 | covariant][35354] | |
1140 | * [Implement `AsRef<[T]>` for `std::slice::Iter`][35559] | |
1141 | * [Implement `Debug` for `std::vec::IntoIter`][35707] | |
1142 | * [`CString`: avoid excessive growth just to 0-terminate][35871] | |
1143 | * [Implement `CoerceUnsized` for `{Cell, RefCell, UnsafeCell}`][35627] | |
1144 | * [Use arc4rand on FreeBSD][35884] | |
1145 | * [memrchr: Correct aligned offset computation][35969] | |
1146 | * [Improve Demangling of Rust Symbols][36059] | |
1147 | * [Use monotonic time in condition variables][35048] | |
1148 | * [Implement `Debug` for `std::path::{Components,Iter}`][36101] | |
1149 | * [Implement conversion traits for `char`][35755] | |
1150 | * [Fix illegal instruction caused by overflow in channel cloning][36104] | |
1151 | * [Zero first byte of CString on drop][36264] | |
1152 | * [Inherit overflow checks for sum and product][36372] | |
1153 | * [Add missing Eq implementations][36423] | |
1154 | * [Implement `Debug` for `DirEntry`][36631] | |
1155 | * [When `getaddrinfo` returns `EAI_SYSTEM` retrieve actual error from | |
1156 | `errno`][36754] | |
1157 | * [`SipHasher`] is deprecated. Use [`DefaultHasher`]. | |
1158 | * [Implement more traits for `std::io::ErrorKind`][35911] | |
1159 | * [Optimize BinaryHeap bounds checking][36072] | |
1160 | * [Work around pointer aliasing issue in `Vec::extend_from_slice`, | |
1161 | `extend_with_element`][36355] | |
1162 | * [Fix overflow checking in unsigned pow()][34942] | |
1163 | ||
1164 | Cargo | |
1165 | ----- | |
1166 | ||
1167 | * This release includes security fixes to both curl and OpenSSL. | |
1168 | * [Fix transitive doctests when panic=abort][cargo/3021] | |
1169 | * [Add --all-features flag to cargo][cargo/3038] | |
1170 | * [Reject path-based dependencies in `cargo package`][cargo/3060] | |
1171 | * [Don't parse the home directory more than once][cargo/3078] | |
1172 | * [Don't try to generate Cargo.lock on empty workspaces][cargo/3092] | |
1173 | * [Update OpenSSL to 1.0.2j][cargo/3121] | |
1174 | * [Add license and license_file to cargo metadata output][cargo/3110] | |
1175 | * [Make crates-io registry URL optional in config; ignore all changes to | |
1176 | source.crates-io][cargo/3089] | |
1177 | * [Don't download dependencies from other platforms][cargo/3123] | |
1178 | * [Build transitive dev-dependencies when needed][cargo/3125] | |
1179 | * [Add support for per-target rustflags in .cargo/config][cargo/3157] | |
1180 | * [Avoid updating registry when adding existing deps][cargo/3144] | |
1181 | * [Warn about path overrides that won't work][cargo/3136] | |
1182 | * [Use workspaces during `cargo install`][cargo/3146] | |
1183 | * [Leak mspdbsrv.exe processes on Windows][cargo/3162] | |
1184 | * [Add --message-format flag][cargo/3000] | |
1185 | * [Pass target environment for rustdoc][cargo/3205] | |
1186 | * [Use `CommandExt::exec` for `cargo run` on Unix][cargo/2818] | |
1187 | * [Update curl and curl-sys][cargo/3241] | |
1188 | * [Call rustdoc test with the correct cfg flags of a package][cargo/3242] | |
1189 | ||
1190 | Tooling | |
1191 | ------- | |
1192 | ||
1193 | * [rustdoc: Add the `--sysroot` argument][36586] | |
1194 | * [rustdoc: Fix a couple of issues with the search results][35655] | |
1195 | * [rustdoc: remove the `!` from macro URLs and titles][35234] | |
1196 | * [gdb: Fix pretty-printing special-cased Rust types][35585] | |
1197 | * [rustdoc: Filter more incorrect methods inherited through Deref][36266] | |
1198 | ||
1199 | Misc | |
1200 | ---- | |
1201 | ||
1202 | * [Remove unmaintained style guide][35124] | |
1203 | * [Add s390x support][36369] | |
1204 | * [Initial work at Haiku OS support][36727] | |
1205 | * [Add mips-uclibc targets][35734] | |
1206 | * [Crate-ify compiler-rt into compiler-builtins][35021] | |
1207 | * [Add rustc version info (git hash + date) to dist tarball][36213] | |
1208 | * Many documentation improvements | |
1209 | ||
1210 | Compatibility Notes | |
1211 | ------------------- | |
1212 | ||
1213 | * [`SipHasher`] is deprecated. Use [`DefaultHasher`]. | |
1214 | * [Deny (by default) transmuting from fn item types to pointer-sized | |
1215 | types][34923]. Continuing the long transition to zero-sized fn items, | |
1216 | per [RFC 401]. | |
1217 | * [Fix `#[derive]` for empty tuple structs/variants][35728]. | |
1218 | Part of [RFC 1506]. | |
1219 | * [Issue deprecation warnings for safe accesses to extern statics][36173] | |
1220 | * [Fix lifetime rules for 'if' conditions][36029]. | |
1221 | * [Inherit overflow checks for sum and product][36372]. | |
1222 | * [Forbid user-defined macros named "macro_rules"][36730]. | |
1223 | ||
1224 | [33922]: https://github.com/rust-lang/rust/pull/33922 | |
1225 | [34623]: https://github.com/rust-lang/rust/pull/34623 | |
1226 | [34923]: https://github.com/rust-lang/rust/pull/34923 | |
1227 | [34942]: https://github.com/rust-lang/rust/pull/34942 | |
1228 | [34982]: https://github.com/rust-lang/rust/pull/34982 | |
1229 | [35021]: https://github.com/rust-lang/rust/pull/35021 | |
1230 | [35048]: https://github.com/rust-lang/rust/pull/35048 | |
1231 | [35074]: https://github.com/rust-lang/rust/pull/35074 | |
1232 | [35124]: https://github.com/rust-lang/rust/pull/35124 | |
1233 | [35234]: https://github.com/rust-lang/rust/pull/35234 | |
1234 | [35238]: https://github.com/rust-lang/rust/pull/35238 | |
1235 | [35354]: https://github.com/rust-lang/rust/pull/35354 | |
1236 | [35559]: https://github.com/rust-lang/rust/pull/35559 | |
1237 | [35585]: https://github.com/rust-lang/rust/pull/35585 | |
1238 | [35627]: https://github.com/rust-lang/rust/pull/35627 | |
1239 | [35655]: https://github.com/rust-lang/rust/pull/35655 | |
1240 | [35702]: https://github.com/rust-lang/rust/pull/35702 | |
1241 | [35707]: https://github.com/rust-lang/rust/pull/35707 | |
1242 | [35728]: https://github.com/rust-lang/rust/pull/35728 | |
1243 | [35734]: https://github.com/rust-lang/rust/pull/35734 | |
1244 | [35755]: https://github.com/rust-lang/rust/pull/35755 | |
1245 | [35761]: https://github.com/rust-lang/rust/pull/35761 | |
1246 | [35764]: https://github.com/rust-lang/rust/pull/35764 | |
1247 | [35814]: https://github.com/rust-lang/rust/pull/35814 | |
1248 | [35854]: https://github.com/rust-lang/rust/pull/35854 | |
1249 | [35871]: https://github.com/rust-lang/rust/pull/35871 | |
1250 | [35884]: https://github.com/rust-lang/rust/pull/35884 | |
1251 | [35911]: https://github.com/rust-lang/rust/pull/35911 | |
1252 | [35969]: https://github.com/rust-lang/rust/pull/35969 | |
1253 | [35975]: https://github.com/rust-lang/rust/pull/35975 | |
1254 | [36004]: https://github.com/rust-lang/rust/pull/36004 | |
1255 | [36008]: https://github.com/rust-lang/rust/pull/36008 | |
1256 | [36014]: https://github.com/rust-lang/rust/pull/36014 | |
1257 | [36029]: https://github.com/rust-lang/rust/pull/36029 | |
1258 | [36059]: https://github.com/rust-lang/rust/pull/36059 | |
1259 | [36072]: https://github.com/rust-lang/rust/pull/36072 | |
1260 | [36101]: https://github.com/rust-lang/rust/pull/36101 | |
1261 | [36104]: https://github.com/rust-lang/rust/pull/36104 | |
1262 | [36171]: https://github.com/rust-lang/rust/pull/36171 | |
1263 | [36173]: https://github.com/rust-lang/rust/pull/36173 | |
1264 | [36178]: https://github.com/rust-lang/rust/pull/36178 | |
1265 | [36213]: https://github.com/rust-lang/rust/pull/36213 | |
1266 | [36214]: https://github.com/rust-lang/rust/pull/36214 | |
1267 | [36264]: https://github.com/rust-lang/rust/pull/36264 | |
1268 | [36266]: https://github.com/rust-lang/rust/pull/36266 | |
1269 | [36289]: https://github.com/rust-lang/rust/pull/36289 | |
1270 | [36338]: https://github.com/rust-lang/rust/pull/36338 | |
1271 | [36351]: https://github.com/rust-lang/rust/pull/36351 | |
1272 | [36355]: https://github.com/rust-lang/rust/pull/36355 | |
1273 | [36369]: https://github.com/rust-lang/rust/pull/36369 | |
1274 | [36372]: https://github.com/rust-lang/rust/pull/36372 | |
1275 | [36423]: https://github.com/rust-lang/rust/pull/36423 | |
1276 | [36482]: https://github.com/rust-lang/rust/pull/36482 | |
1277 | [36505]: https://github.com/rust-lang/rust/pull/36505 | |
1278 | [36524]: https://github.com/rust-lang/rust/pull/36524 | |
1279 | [36527]: https://github.com/rust-lang/rust/pull/36527 | |
1280 | [36551]: https://github.com/rust-lang/rust/pull/36551 | |
1281 | [36574]: https://github.com/rust-lang/rust/pull/36574 | |
1282 | [36586]: https://github.com/rust-lang/rust/pull/36586 | |
1283 | [36592]: https://github.com/rust-lang/rust/pull/36592 | |
1284 | [36631]: https://github.com/rust-lang/rust/pull/36631 | |
1285 | [36639]: https://github.com/rust-lang/rust/pull/36639 | |
1286 | [36721]: https://github.com/rust-lang/rust/pull/36721 | |
1287 | [36727]: https://github.com/rust-lang/rust/pull/36727 | |
1288 | [36730]: https://github.com/rust-lang/rust/pull/36730 | |
1289 | [36734]: https://github.com/rust-lang/rust/pull/36734 | |
1290 | [36754]: https://github.com/rust-lang/rust/pull/36754 | |
1291 | [36995]: https://github.com/rust-lang/rust/pull/36995 | |
1292 | [RFC 0016]: https://github.com/rust-lang/rfcs/blob/master/text/0016-more-attributes.md | |
1293 | [RFC 0243]: https://github.com/rust-lang/rfcs/blob/master/text/0243-trait-based-exception-handling.md | |
1294 | [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md | |
1295 | [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md | |
1296 | [RFC 873]: https://github.com/rust-lang/rfcs/blob/master/text/0873-type-macros.md | |
1297 | [cargo/2818]: https://github.com/rust-lang/cargo/pull/2818 | |
1298 | [cargo/3000]: https://github.com/rust-lang/cargo/pull/3000 | |
1299 | [cargo/3021]: https://github.com/rust-lang/cargo/pull/3021 | |
1300 | [cargo/3038]: https://github.com/rust-lang/cargo/pull/3038 | |
1301 | [cargo/3060]: https://github.com/rust-lang/cargo/pull/3060 | |
1302 | [cargo/3078]: https://github.com/rust-lang/cargo/pull/3078 | |
1303 | [cargo/3089]: https://github.com/rust-lang/cargo/pull/3089 | |
1304 | [cargo/3092]: https://github.com/rust-lang/cargo/pull/3092 | |
1305 | [cargo/3110]: https://github.com/rust-lang/cargo/pull/3110 | |
1306 | [cargo/3121]: https://github.com/rust-lang/cargo/pull/3121 | |
1307 | [cargo/3123]: https://github.com/rust-lang/cargo/pull/3123 | |
1308 | [cargo/3125]: https://github.com/rust-lang/cargo/pull/3125 | |
1309 | [cargo/3136]: https://github.com/rust-lang/cargo/pull/3136 | |
1310 | [cargo/3144]: https://github.com/rust-lang/cargo/pull/3144 | |
1311 | [cargo/3146]: https://github.com/rust-lang/cargo/pull/3146 | |
1312 | [cargo/3157]: https://github.com/rust-lang/cargo/pull/3157 | |
1313 | [cargo/3162]: https://github.com/rust-lang/cargo/pull/3162 | |
1314 | [cargo/3205]: https://github.com/rust-lang/cargo/pull/3205 | |
1315 | [cargo/3241]: https://github.com/rust-lang/cargo/pull/3241 | |
1316 | [cargo/3242]: https://github.com/rust-lang/cargo/pull/3242 | |
1317 | [rustup]: https://www.rustup.rs | |
1318 | [`checked_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.checked_abs | |
1319 | [`wrapping_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_abs | |
1320 | [`overflowing_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.overflowing_abs | |
1321 | [`RefCell::try_borrow`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow | |
1322 | [`RefCell::try_borrow_mut`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_mut | |
1323 | [`SipHasher`]: https://doc.rust-lang.org/std/hash/struct.SipHasher.html | |
1324 | [`DefaultHasher`]: https://doc.rust-lang.org/std/collections/hash_map/struct.DefaultHasher.html | |
1325 | ||
1326 | ||
9e0c209e SL |
1327 | Version 1.12.1 (2016-10-20) |
1328 | =========================== | |
1329 | ||
1330 | Regression Fixes | |
1331 | ---------------- | |
1332 | ||
1333 | * [ICE: 'rustc' panicked at 'assertion failed: concrete_substs.is_normalized_for_trans()' #36381][36381] | |
1334 | * [Confusion with double negation and booleans][36856] | |
1335 | * [rustc 1.12.0 fails with SIGSEGV in release mode (syn crate 0.8.0)][36875] | |
1336 | * [Rustc 1.12.0 Windows build of `ethcore` crate fails with LLVM error][36924] | |
1337 | * [1.12.0: High memory usage when linking in release mode with debug info][36926] | |
1338 | * [Corrupted memory after updated to 1.12][36936] | |
1339 | * ["Let NullaryConstructor = something;" causes internal compiler error: "tried to overwrite interned AdtDef"][37026] | |
1340 | * [Fix ICE: inject bitcast if types mismatch for invokes/calls/stores][37112] | |
1341 | * [debuginfo: Handle spread_arg case in MIR-trans in a more stable way.][37153] | |
1342 | ||
1343 | [36381]: https://github.com/rust-lang/rust/issues/36381 | |
1344 | [36856]: https://github.com/rust-lang/rust/issues/36856 | |
1345 | [36875]: https://github.com/rust-lang/rust/issues/36875 | |
1346 | [36924]: https://github.com/rust-lang/rust/issues/36924 | |
1347 | [36926]: https://github.com/rust-lang/rust/issues/36926 | |
1348 | [36936]: https://github.com/rust-lang/rust/issues/36936 | |
1349 | [37026]: https://github.com/rust-lang/rust/issues/37026 | |
1350 | [37112]: https://github.com/rust-lang/rust/issues/37112 | |
1351 | [37153]: https://github.com/rust-lang/rust/issues/37153 | |
1352 | ||
1353 | ||
5bcae85e SL |
1354 | Version 1.12.0 (2016-09-29) |
1355 | =========================== | |
1356 | ||
1357 | Highlights | |
1358 | ---------- | |
1359 | ||
1360 | * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)] | |
1361 | (https://github.com/rust-lang/rust/pull/34096). | |
1362 | This translation pass is far simpler than the previous AST->LLVM pass, and | |
1363 | creates opportunities to perform new optimizations directly on the MIR. It | |
1364 | was previously described [on the Rust blog] | |
1365 | (https://blog.rust-lang.org/2016/04/19/MIR.html). | |
1366 | * [`rustc` presents a new, more readable error format, along with | |
1367 | machine-readable JSON error output for use by IDEs] | |
1368 | (https://github.com/rust-lang/rust/pull/35401). | |
1369 | Most common editors supporting Rust have been updated to work with it. It was | |
1370 | previously described [on the Rust blog] | |
1371 | (https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html). | |
1372 | ||
1373 | Compiler | |
1374 | -------- | |
1375 | ||
1376 | * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)] | |
1377 | (https://github.com/rust-lang/rust/pull/34096). | |
1378 | This translation pass is far simpler than the previous AST->LLVM pass, and | |
1379 | creates opportunities to perform new optimizations directly on the MIR. It | |
1380 | was previously described [on the Rust blog] | |
1381 | (https://blog.rust-lang.org/2016/04/19/MIR.html). | |
1382 | * [Print the Rust target name, not the LLVM target name, with | |
9e0c209e | 1383 | `--print target-list`] |
5bcae85e SL |
1384 | (https://github.com/rust-lang/rust/pull/35489) |
1385 | * [The computation of `TypeId` is correct in some cases where it was previously | |
1386 | producing inconsistent results] | |
1387 | (https://github.com/rust-lang/rust/pull/35267) | |
1388 | * [The `mips-unknown-linux-gnu` target uses hardware floating point by default] | |
1389 | (https://github.com/rust-lang/rust/pull/34910) | |
1390 | * [The `rustc` arguments, `--print target-cpus`, `--print target-features`, | |
1391 | `--print relocation-models`, and `--print code-models` print the available | |
1392 | options to the `-C target-cpu`, `-C target-feature`, `-C relocation-model` and | |
1393 | `-C code-model` code generation arguments] | |
1394 | (https://github.com/rust-lang/rust/pull/34845) | |
1395 | * [`rustc` supports three new MUSL targets on ARM: `arm-unknown-linux-musleabi`, | |
1396 | `arm-unknown-linux-musleabihf`, and `armv7-unknown-linux-musleabihf`] | |
1397 | (https://github.com/rust-lang/rust/pull/35060). | |
1398 | These targets produce statically-linked binaries. There are no binary release | |
1399 | builds yet though. | |
1400 | ||
1401 | Diagnostics | |
1402 | ----------- | |
1403 | ||
1404 | * [`rustc` presents a new, more readable error format, along with | |
1405 | machine-readable JSON error output for use by IDEs] | |
1406 | (https://github.com/rust-lang/rust/pull/35401). | |
1407 | Most common editors supporting Rust have been updated to work with it. It was | |
1408 | previously described [on the Rust blog] | |
1409 | (https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html). | |
c30ab7b3 | 1410 | * [In error descriptions, references are now described in plain English, |
5bcae85e SL |
1411 | instead of as "&-ptr"] |
1412 | (https://github.com/rust-lang/rust/pull/35611) | |
1413 | * [In error type descriptions, unknown numeric types are named `{integer}` or | |
1414 | `{float}` instead of `_`] | |
1415 | (https://github.com/rust-lang/rust/pull/35080) | |
1416 | * [`rustc` emits a clearer error when inner attributes follow a doc comment] | |
1417 | (https://github.com/rust-lang/rust/pull/34676) | |
1418 | ||
1419 | Language | |
1420 | -------- | |
1421 | ||
1422 | * [`macro_rules!` invocations can be made within `macro_rules!` invocations] | |
1423 | (https://github.com/rust-lang/rust/pull/34925) | |
1424 | * [`macro_rules!` meta-variables are hygienic] | |
1425 | (https://github.com/rust-lang/rust/pull/35453) | |
1426 | * [`macro_rules!` `tt` matchers can be reparsed correctly, making them much more | |
1427 | useful] | |
1428 | (https://github.com/rust-lang/rust/pull/34908) | |
1429 | * [`macro_rules!` `stmt` matchers correctly consume the entire contents when | |
9e0c209e | 1430 | inside non-braces invocations] |
5bcae85e SL |
1431 | (https://github.com/rust-lang/rust/pull/34886) |
1432 | * [Semicolons are properly required as statement delimeters inside | |
1433 | `macro_rules!` invocations] | |
1434 | (https://github.com/rust-lang/rust/pull/34660) | |
1435 | * [`cfg_attr` works on `path` attributes] | |
1436 | (https://github.com/rust-lang/rust/pull/34546) | |
1437 | ||
1438 | Stabilized APIs | |
1439 | --------------- | |
1440 | ||
1441 | * [`Cell::as_ptr`] | |
1442 | (https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr) | |
1443 | * [`RefCell::as_ptr`] | |
1444 | (https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.as_ptr) | |
1445 | * [`IpAddr::is_unspecified`] | |
1446 | (https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_unspecified) | |
1447 | * [`IpAddr::is_loopback`] | |
1448 | (https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_loopback) | |
1449 | * [`IpAddr::is_multicast`] | |
1450 | (https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_multicast) | |
1451 | * [`Ipv4Addr::is_unspecified`] | |
1452 | (https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified) | |
1453 | * [`Ipv6Addr::octets`] | |
1454 | (https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets) | |
1455 | * [`LinkedList::contains`] | |
1456 | (https://doc.rust-lang.org/std/collections/linked_list/struct.LinkedList.html#method.contains) | |
1457 | * [`VecDeque::contains`] | |
1458 | (https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.contains) | |
1459 | * [`ExitStatusExt::from_raw`] | |
1460 | (https://doc.rust-lang.org/std/os/unix/process/trait.ExitStatusExt.html#tymethod.from_raw). | |
1461 | Both on Unix and Windows. | |
1462 | * [`Receiver::recv_timeout`] | |
1463 | (https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.recv_timeout) | |
1464 | * [`RecvTimeoutError`] | |
1465 | (https://doc.rust-lang.org/std/sync/mpsc/enum.RecvTimeoutError.html) | |
1466 | * [`BinaryHeap::peek_mut`] | |
1467 | (https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.peek_mut) | |
1468 | * [`PeekMut`] | |
1469 | (https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html) | |
1470 | * [`iter::Product`] | |
1471 | (https://doc.rust-lang.org/std/iter/trait.Product.html) | |
1472 | * [`iter::Sum`] | |
1473 | (https://doc.rust-lang.org/std/iter/trait.Sum.html) | |
1474 | * [`OccupiedEntry::remove_entry`] | |
1475 | (https://doc.rust-lang.org/std/collections/btree_map/struct.OccupiedEntry.html#method.remove_entry) | |
1476 | * [`VacantEntry::into_key`] | |
1477 | (https://doc.rust-lang.org/std/collections/btree_map/struct.VacantEntry.html#method.into_key) | |
1478 | ||
1479 | Libraries | |
1480 | --------- | |
1481 | ||
1482 | * [The `format!` macro and friends now allow a single argument to be formatted | |
1483 | in multiple styles] | |
1484 | (https://github.com/rust-lang/rust/pull/33642) | |
1485 | * [The lifetime bounds on `[T]::binary_search_by` and | |
1486 | `[T]::binary_search_by_key` have been adjusted to be more flexible] | |
1487 | (https://github.com/rust-lang/rust/pull/34762) | |
1488 | * [`Option` implements `From` for its contained type] | |
1489 | (https://github.com/rust-lang/rust/pull/34828) | |
1490 | * [`Cell`, `RefCell` and `UnsafeCell` implement `From` for their contained type] | |
1491 | (https://github.com/rust-lang/rust/pull/35392) | |
1492 | * [`RwLock` panics if the reader count overflows] | |
1493 | (https://github.com/rust-lang/rust/pull/35378) | |
1494 | * [`vec_deque::Drain`, `hash_map::Drain` and `hash_set::Drain` are covariant] | |
1495 | (https://github.com/rust-lang/rust/pull/35354) | |
1496 | * [`vec::Drain` and `binary_heap::Drain` are covariant] | |
1497 | (https://github.com/rust-lang/rust/pull/34951) | |
1498 | * [`Cow<str>` implements `FromIterator` for `char`, `&str` and `String`] | |
1499 | (https://github.com/rust-lang/rust/pull/35064) | |
1500 | * [Sockets on Linux are correctly closed in subprocesses via `SOCK_CLOEXEC`] | |
1501 | (https://github.com/rust-lang/rust/pull/34946) | |
1502 | * [`hash_map::Entry`, `hash_map::VacantEntry` and `hash_map::OccupiedEntry` | |
1503 | implement `Debug`] | |
c30ab7b3 | 1504 | (https://github.com/rust-lang/rust/pull/34937) |
5bcae85e SL |
1505 | * [`btree_map::Entry`, `btree_map::VacantEntry` and `btree_map::OccupiedEntry` |
1506 | implement `Debug`] | |
1507 | (https://github.com/rust-lang/rust/pull/34885) | |
1508 | * [`String` implements `AddAssign`] | |
1509 | (https://github.com/rust-lang/rust/pull/34890) | |
1510 | * [Variadic `extern fn` pointers implement the `Clone`, `PartialEq`, `Eq`, | |
1511 | `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and `fmt::Debug` traits] | |
1512 | (https://github.com/rust-lang/rust/pull/34879) | |
1513 | * [`FileType` implements `Debug`] | |
1514 | (https://github.com/rust-lang/rust/pull/34757) | |
1515 | * [References to `Mutex` and `RwLock` are unwind-safe] | |
1516 | (https://github.com/rust-lang/rust/pull/34756) | |
1517 | * [`mpsc::sync_channel` `Receiver`s return any available message before | |
1518 | reporting a disconnect] | |
1519 | (https://github.com/rust-lang/rust/pull/34731) | |
1520 | * [Unicode definitions have been updated to 9.0] | |
1521 | (https://github.com/rust-lang/rust/pull/34599) | |
1522 | * [`env` iterators implement `DoubleEndedIterator`] | |
1523 | (https://github.com/rust-lang/rust/pull/33312) | |
1524 | ||
1525 | Cargo | |
1526 | ----- | |
1527 | ||
1528 | * [Support local mirrors of registries] | |
1529 | (https://github.com/rust-lang/cargo/pull/2857) | |
1530 | * [Add support for command aliases] | |
1531 | (https://github.com/rust-lang/cargo/pull/2679) | |
1532 | * [Allow `opt-level="s"` / `opt-level="z"` in profile overrides] | |
1533 | (https://github.com/rust-lang/cargo/pull/3007) | |
1534 | * [Make `cargo doc --open --target` work as expected] | |
1535 | (https://github.com/rust-lang/cargo/pull/2988) | |
1536 | * [Speed up noop registry updates] | |
1537 | (https://github.com/rust-lang/cargo/pull/2974) | |
1538 | * [Update OpenSSL] | |
1539 | (https://github.com/rust-lang/cargo/pull/2971) | |
1540 | * [Fix `--panic=abort` with plugins] | |
1541 | (https://github.com/rust-lang/cargo/pull/2954) | |
1542 | * [Always pass `-C metadata` to the compiler] | |
1543 | (https://github.com/rust-lang/cargo/pull/2946) | |
1544 | * [Fix depending on git repos with workspaces] | |
1545 | (https://github.com/rust-lang/cargo/pull/2938) | |
1546 | * [Add a `--lib` flag to `cargo new`] | |
1547 | (https://github.com/rust-lang/cargo/pull/2921) | |
1548 | * [Add `http.cainfo` for custom certs] | |
1549 | (https://github.com/rust-lang/cargo/pull/2917) | |
1550 | * [Indicate the compilation profile after compiling] | |
1551 | (https://github.com/rust-lang/cargo/pull/2909) | |
1552 | * [Allow enabling features for dependencies with `--features`] | |
1553 | (https://github.com/rust-lang/cargo/pull/2876) | |
1554 | * [Add `--jobs` flag to `cargo package`] | |
1555 | (https://github.com/rust-lang/cargo/pull/2867) | |
1556 | * [Add `--dry-run` to `cargo publish`] | |
1557 | (https://github.com/rust-lang/cargo/pull/2849) | |
1558 | * [Add support for `RUSTDOCFLAGS`] | |
1559 | (https://github.com/rust-lang/cargo/pull/2794) | |
1560 | ||
1561 | Performance | |
1562 | ----------- | |
1563 | ||
5bcae85e SL |
1564 | * [`panic::catch_unwind` is more optimized] |
1565 | (https://github.com/rust-lang/rust/pull/35444) | |
1566 | * [`panic::catch_unwind` no longer accesses thread-local storage on entry] | |
1567 | (https://github.com/rust-lang/rust/pull/34866) | |
1568 | ||
1569 | Tooling | |
1570 | ------- | |
1571 | ||
1572 | * [Test binaries now support a `--test-threads` argument to specify the number | |
1573 | of threads used to run tests, and which acts the same as the | |
1574 | `RUST_TEST_THREADS` environment variable] | |
32a655c1 | 1575 | (https://github.com/rust-lang/rust/pull/35414) |
5bcae85e SL |
1576 | * [The test runner now emits a warning when tests run over 60 seconds] |
1577 | (https://github.com/rust-lang/rust/pull/35405) | |
1578 | * [rustdoc: Fix methods in search results] | |
1579 | (https://github.com/rust-lang/rust/pull/34752) | |
1580 | * [`rust-lldb` warns about unsupported versions of LLDB] | |
1581 | (https://github.com/rust-lang/rust/pull/34646) | |
1582 | * [Rust releases now come with source packages that can be installed by rustup | |
1583 | via `rustup component add rust-src`] | |
1584 | (https://github.com/rust-lang/rust/pull/34366). | |
1585 | The resulting source code can be used by tools and IDES, located in the | |
1586 | sysroot under `lib/rustlib/src`. | |
1587 | ||
1588 | Misc | |
1589 | ---- | |
1590 | ||
1591 | * [The compiler can now be built against LLVM 3.9] | |
1592 | (https://github.com/rust-lang/rust/pull/35594) | |
1593 | * Many minor improvements to the documentation. | |
1594 | * [The Rust exception handling "personality" routine is now written in Rust] | |
1595 | (https://github.com/rust-lang/rust/pull/34832) | |
1596 | ||
1597 | Compatibility Notes | |
1598 | ------------------- | |
1599 | ||
1600 | * [When printing Windows `OsStr`s, unpaired surrogate codepoints are escaped | |
1601 | with the lowercase format instead of the uppercase] | |
1602 | (https://github.com/rust-lang/rust/pull/35084) | |
1603 | * [When formatting strings, if "precision" is specified, the "fill", | |
1604 | "align" and "width" specifiers are no longer ignored] | |
1605 | (https://github.com/rust-lang/rust/pull/34544) | |
1606 | * [The `Debug` impl for strings no longer escapes all non-ASCII characters] | |
1607 | (https://github.com/rust-lang/rust/pull/34485) | |
1608 | ||
1609 | ||
1610 | Version 1.11.0 (2016-08-18) | |
1611 | =========================== | |
1612 | ||
1613 | Language | |
1614 | -------- | |
1615 | ||
1616 | * [`cfg_attr` works on `path` attributes] | |
1617 | (https://github.com/rust-lang/rust/pull/34546) | |
1618 | * [Support nested `cfg_attr` attributes] | |
1619 | (https://github.com/rust-lang/rust/pull/34216) | |
1620 | * [Allow statement-generating braced macro invocations at the end of blocks] | |
1621 | (https://github.com/rust-lang/rust/pull/34436) | |
1622 | * [Macros can be expanded inside of trait definitions] | |
1623 | (https://github.com/rust-lang/rust/pull/34213) | |
1624 | * [`#[macro_use]` works properly when it is itself expanded from a macro] | |
1625 | (https://github.com/rust-lang/rust/pull/34032) | |
1626 | ||
1627 | Stabilized APIs | |
1628 | --------------- | |
1629 | ||
1630 | * [`BinaryHeap::append`] | |
1631 | (https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.append) | |
1632 | * [`BTreeMap::append`] | |
1633 | (https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.append) | |
1634 | * [`BTreeMap::split_off`] | |
1635 | (https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.split_off) | |
1636 | * [`BTreeSet::append`] | |
1637 | (https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.append) | |
1638 | * [`BTreeSet::split_off`] | |
1639 | (https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.split_off) | |
1640 | * [`f32::to_degrees`] | |
1641 | (https://doc.rust-lang.org/std/primitive.f32.html#method.to_degrees) | |
1642 | (in libcore - previously stabilized in libstd) | |
1643 | * [`f32::to_radians`] | |
1644 | (https://doc.rust-lang.org/std/primitive.f32.html#method.to_radians) | |
1645 | (in libcore - previously stabilized in libstd) | |
1646 | * [`f64::to_degrees`] | |
1647 | (https://doc.rust-lang.org/std/primitive.f64.html#method.to_degrees) | |
1648 | (in libcore - previously stabilized in libstd) | |
1649 | * [`f64::to_radians`] | |
1650 | (https://doc.rust-lang.org/std/primitive.f64.html#method.to_radians) | |
1651 | (in libcore - previously stabilized in libstd) | |
1652 | * [`Iterator::sum`] | |
1653 | (https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum) | |
1654 | * [`Iterator::product`] | |
1655 | (https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum) | |
1656 | * [`Cell::get_mut`] | |
1657 | (https://doc.rust-lang.org/std/cell/struct.Cell.html#method.get_mut) | |
1658 | * [`RefCell::get_mut`] | |
1659 | (https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.get_mut) | |
1660 | ||
1661 | Libraries | |
1662 | --------- | |
1663 | ||
1664 | * [The `thread_local!` macro supports multiple definitions in a single | |
1665 | invocation, and can apply attributes] | |
1666 | (https://github.com/rust-lang/rust/pull/34077) | |
1667 | * [`Cow` implements `Default`] | |
1668 | (https://github.com/rust-lang/rust/pull/34305) | |
1669 | * [`Wrapping` implements binary, octal, lower-hex and upper-hex | |
1670 | `Display` formatting] | |
1671 | (https://github.com/rust-lang/rust/pull/34190) | |
1672 | * [The range types implement `Hash`] | |
1673 | (https://github.com/rust-lang/rust/pull/34180) | |
1674 | * [`lookup_host` ignores unknown address types] | |
1675 | (https://github.com/rust-lang/rust/pull/34067) | |
1676 | * [`assert_eq!` accepts a custom error message, like `assert!` does] | |
1677 | (https://github.com/rust-lang/rust/pull/33976) | |
1678 | * [The main thread is now called "main" instead of "<main>"] | |
1679 | (https://github.com/rust-lang/rust/pull/33803) | |
1680 | ||
1681 | Cargo | |
1682 | ----- | |
1683 | ||
1684 | * [Disallow specifying features of transitive deps] | |
1685 | (https://github.com/rust-lang/cargo/pull/2821) | |
1686 | * [Add color support for Windows consoles] | |
1687 | (https://github.com/rust-lang/cargo/pull/2804) | |
1688 | * [Fix `harness = false` on `[lib]` sections] | |
1689 | (https://github.com/rust-lang/cargo/pull/2795) | |
1690 | * [Don't panic when `links` contains a '.'] | |
1691 | (https://github.com/rust-lang/cargo/pull/2787) | |
1692 | * [Build scripts can emit warnings] | |
1693 | (https://github.com/rust-lang/cargo/pull/2630), | |
1694 | and `-vv` prints warnings for all crates. | |
1695 | * [Ignore file locks on OS X NFS mounts] | |
1696 | (https://github.com/rust-lang/cargo/pull/2720) | |
1697 | * [Don't warn about `package.metadata` keys] | |
1698 | (https://github.com/rust-lang/cargo/pull/2668). | |
1699 | This provides room for expansion by arbitrary tools. | |
1700 | * [Add support for cdylib crate types] | |
1701 | (https://github.com/rust-lang/cargo/pull/2741) | |
1702 | * [Prevent publishing crates when files are dirty] | |
1703 | (https://github.com/rust-lang/cargo/pull/2781) | |
1704 | * [Don't fetch all crates on clean] | |
1705 | (https://github.com/rust-lang/cargo/pull/2704) | |
1706 | * [Propagate --color option to rustc] | |
1707 | (https://github.com/rust-lang/cargo/pull/2779) | |
1708 | * [Fix `cargo doc --open` on Windows] | |
1709 | (https://github.com/rust-lang/cargo/pull/2780) | |
1710 | * [Improve autocompletion] | |
1711 | (https://github.com/rust-lang/cargo/pull/2772) | |
1712 | * [Configure colors of stderr as well as stdout] | |
1713 | (https://github.com/rust-lang/cargo/pull/2739) | |
1714 | ||
1715 | Performance | |
1716 | ----------- | |
1717 | ||
1718 | * [Caching projections speeds up type check dramatically for some | |
1719 | workloads] | |
1720 | (https://github.com/rust-lang/rust/pull/33816) | |
1721 | * [The default `HashMap` hasher is SipHash 1-3 instead of SipHash 2-4] | |
1722 | (https://github.com/rust-lang/rust/pull/33940) | |
1723 | This hasher is faster, but is believed to provide sufficient | |
1724 | protection from collision attacks. | |
1725 | * [Comparison of `Ipv4Addr` is 10x faster] | |
1726 | (https://github.com/rust-lang/rust/pull/33891) | |
1727 | ||
1728 | Rustdoc | |
1729 | ------- | |
1730 | ||
1731 | * [Fix empty implementation section on some module pages] | |
1732 | (https://github.com/rust-lang/rust/pull/34536) | |
1733 | * [Fix inlined renamed reexports in import lists] | |
1734 | (https://github.com/rust-lang/rust/pull/34479) | |
1735 | * [Fix search result layout for enum variants and struct fields] | |
1736 | (https://github.com/rust-lang/rust/pull/34477) | |
1737 | * [Fix issues with source links to external crates] | |
1738 | (https://github.com/rust-lang/rust/pull/34387) | |
1739 | * [Fix redirect pages for renamed reexports] | |
1740 | (https://github.com/rust-lang/rust/pull/34245) | |
1741 | ||
1742 | Tooling | |
1743 | ------- | |
1744 | ||
1745 | * [rustc is better at finding the MSVC toolchain] | |
1746 | (https://github.com/rust-lang/rust/pull/34492) | |
1747 | * [When emitting debug info, rustc emits frame pointers for closures, | |
1748 | shims and glue, as it does for all other functions] | |
1749 | (https://github.com/rust-lang/rust/pull/33909) | |
1750 | * [rust-lldb warns about unsupported versions of LLDB] | |
1751 | (https://github.com/rust-lang/rust/pull/34646) | |
1752 | * Many more errors have been given error codes and extended | |
1753 | explanations | |
1754 | * API documentation continues to be improved, with many new examples | |
1755 | ||
1756 | Misc | |
1757 | ---- | |
1758 | ||
1759 | * [rustc no longer hangs when dependencies recursively re-export | |
1760 | submodules] | |
1761 | (https://github.com/rust-lang/rust/pull/34542) | |
1762 | * [rustc requires LLVM 3.7+] | |
1763 | (https://github.com/rust-lang/rust/pull/34104) | |
1764 | * [The 'How Safe and Unsafe Interact' chapter of The Rustonomicon was | |
1765 | rewritten] | |
1766 | (https://github.com/rust-lang/rust/pull/33895) | |
1767 | * [rustc support 16-bit pointer sizes] | |
1768 | (https://github.com/rust-lang/rust/pull/33460). | |
1769 | No targets use this yet, but it works toward AVR support. | |
1770 | ||
1771 | Compatibility Notes | |
1772 | ------------------- | |
1773 | ||
1774 | * [`const`s and `static`s may not have unsized types] | |
1775 | (https://github.com/rust-lang/rust/pull/34443) | |
1776 | * [The new follow-set rules that place restrictions on `macro_rules!` | |
1777 | in order to ensure syntax forward-compatibility have been enabled] | |
1778 | (https://github.com/rust-lang/rust/pull/33982) | |
1779 | This was an [ammendment to RFC 550] | |
1780 | (https://github.com/rust-lang/rfcs/pull/1384), | |
1781 | and has been a warning since 1.10. | |
1782 | * [`cfg` attribute process has been refactored to fix various bugs] | |
1783 | (https://github.com/rust-lang/rust/pull/33706). | |
1784 | This causes breakage in some corner cases. | |
1785 | ||
1786 | ||
a7813a04 XL |
1787 | Version 1.10.0 (2016-07-07) |
1788 | =========================== | |
1789 | ||
1790 | Language | |
1791 | -------- | |
1792 | ||
1793 | * [Allow `concat_idents!` in type positions as well as in expression | |
1794 | positions] | |
1795 | (https://github.com/rust-lang/rust/pull/33735). | |
1796 | * [`Copy` types are required to have a trivial implementation of `Clone`] | |
1797 | (https://github.com/rust-lang/rust/pull/33420). | |
1798 | [RFC 1521](https://github.com/rust-lang/rfcs/blob/master/text/1521-copy-clone-semantics.md). | |
1799 | * [Single-variant enums support the `#[repr(..)]` attribute] | |
1800 | (https://github.com/rust-lang/rust/pull/33355). | |
1801 | * [Fix `#[derive(RustcEncodable)]` in the presence of other `encode` methods] | |
1802 | (https://github.com/rust-lang/rust/pull/32908). | |
1803 | * [`panic!` can be converted to a runtime abort with the | |
1804 | `-C panic=abort` flag] | |
1805 | (https://github.com/rust-lang/rust/pull/32900). | |
1806 | [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md). | |
1807 | * [Add a new crate type, 'cdylib'] | |
1808 | (https://github.com/rust-lang/rust/pull/33553). | |
1809 | cdylibs are dynamic libraries suitable for loading by non-Rust hosts. | |
1810 | [RFC 1510](https://github.com/rust-lang/rfcs/blob/master/text/1510-rdylib.md). | |
1811 | Note that Cargo does not yet directly support cdylibs. | |
1812 | ||
1813 | Stabilized APIs | |
1814 | --------------- | |
1815 | ||
1816 | * `os::windows::fs::OpenOptionsExt::access_mode` | |
1817 | * `os::windows::fs::OpenOptionsExt::share_mode` | |
1818 | * `os::windows::fs::OpenOptionsExt::custom_flags` | |
1819 | * `os::windows::fs::OpenOptionsExt::attributes` | |
1820 | * `os::windows::fs::OpenOptionsExt::security_qos_flags` | |
1821 | * `os::unix::fs::OpenOptionsExt::custom_flags` | |
1822 | * [`sync::Weak::new`] | |
1823 | (http://doc.rust-lang.org/alloc/arc/struct.Weak.html#method.new) | |
1824 | * `Default for sync::Weak` | |
1825 | * [`panic::set_hook`] | |
1826 | (http://doc.rust-lang.org/std/panic/fn.set_hook.html) | |
1827 | * [`panic::take_hook`] | |
1828 | (http://doc.rust-lang.org/std/panic/fn.take_hook.html) | |
1829 | * [`panic::PanicInfo`] | |
1830 | (http://doc.rust-lang.org/std/panic/struct.PanicInfo.html) | |
1831 | * [`panic::PanicInfo::payload`] | |
1832 | (http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.payload) | |
1833 | * [`panic::PanicInfo::location`] | |
1834 | (http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.location) | |
1835 | * [`panic::Location`] | |
1836 | (http://doc.rust-lang.org/std/panic/struct.Location.html) | |
1837 | * [`panic::Location::file`] | |
1838 | (http://doc.rust-lang.org/std/panic/struct.Location.html#method.file) | |
1839 | * [`panic::Location::line`] | |
1840 | (http://doc.rust-lang.org/std/panic/struct.Location.html#method.line) | |
1841 | * [`ffi::CStr::from_bytes_with_nul`] | |
1842 | (http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul) | |
1843 | * [`ffi::CStr::from_bytes_with_nul_unchecked`] | |
1844 | (http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked) | |
1845 | * [`ffi::FromBytesWithNulError`] | |
1846 | (http://doc.rust-lang.org/std/ffi/struct.FromBytesWithNulError.html) | |
1847 | * [`fs::Metadata::modified`] | |
1848 | (http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.modified) | |
1849 | * [`fs::Metadata::accessed`] | |
1850 | (http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.accessed) | |
1851 | * [`fs::Metadata::created`] | |
1852 | (http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.created) | |
1853 | * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange` | |
1854 | * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak` | |
1855 | * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key` | |
1856 | * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}` | |
1857 | * [`SocketAddr::is_unnamed`] | |
1858 | (http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.is_unnamed) | |
1859 | * [`SocketAddr::as_pathname`] | |
1860 | (http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.as_pathname) | |
1861 | * [`UnixStream::connect`] | |
1862 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.connect) | |
1863 | * [`UnixStream::pair`] | |
1864 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.pair) | |
1865 | * [`UnixStream::try_clone`] | |
1866 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.try_clone) | |
1867 | * [`UnixStream::local_addr`] | |
1868 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.local_addr) | |
1869 | * [`UnixStream::peer_addr`] | |
1870 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.peer_addr) | |
1871 | * [`UnixStream::set_read_timeout`] | |
1872 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout) | |
1873 | * [`UnixStream::set_write_timeout`] | |
1874 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout) | |
1875 | * [`UnixStream::read_timeout`] | |
1876 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout) | |
1877 | * [`UnixStream::write_timeout`] | |
1878 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout) | |
1879 | * [`UnixStream::set_nonblocking`] | |
1880 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.set_nonblocking) | |
1881 | * [`UnixStream::take_error`] | |
1882 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.take_error) | |
1883 | * [`UnixStream::shutdown`] | |
1884 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.shutdown) | |
1885 | * Read/Write/RawFd impls for `UnixStream` | |
1886 | * [`UnixListener::bind`] | |
1887 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.bind) | |
1888 | * [`UnixListener::accept`] | |
1889 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.accept) | |
1890 | * [`UnixListener::try_clone`] | |
1891 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.try_clone) | |
1892 | * [`UnixListener::local_addr`] | |
1893 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.local_addr) | |
1894 | * [`UnixListener::set_nonblocking`] | |
1895 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.set_nonblocking) | |
1896 | * [`UnixListener::take_error`] | |
1897 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.take_error) | |
1898 | * [`UnixListener::incoming`] | |
1899 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.incoming) | |
1900 | * RawFd impls for `UnixListener` | |
1901 | * [`UnixDatagram::bind`] | |
1902 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.bind) | |
1903 | * [`UnixDatagram::unbound`] | |
1904 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.unbound) | |
1905 | * [`UnixDatagram::pair`] | |
1906 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.pair) | |
1907 | * [`UnixDatagram::connect`] | |
1908 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.connect) | |
1909 | * [`UnixDatagram::try_clone`] | |
1910 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.try_clone) | |
1911 | * [`UnixDatagram::local_addr`] | |
1912 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.local_addr) | |
1913 | * [`UnixDatagram::peer_addr`] | |
1914 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.peer_addr) | |
1915 | * [`UnixDatagram::recv_from`] | |
1916 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv_from) | |
1917 | * [`UnixDatagram::recv`] | |
1918 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv) | |
1919 | * [`UnixDatagram::send_to`] | |
1920 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send_to) | |
1921 | * [`UnixDatagram::send`] | |
1922 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send) | |
1923 | * [`UnixDatagram::set_read_timeout`] | |
1924 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_read_timeout) | |
1925 | * [`UnixDatagram::set_write_timeout`] | |
1926 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_write_timeout) | |
1927 | * [`UnixDatagram::read_timeout`] | |
1928 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.read_timeout) | |
1929 | * [`UnixDatagram::write_timeout`] | |
1930 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.write_timeout) | |
1931 | * [`UnixDatagram::set_nonblocking`] | |
1932 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_nonblocking) | |
1933 | * [`UnixDatagram::take_error`] | |
1934 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.take_error) | |
1935 | * [`UnixDatagram::shutdown`] | |
1936 | (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.shutdown) | |
1937 | * RawFd impls for `UnixDatagram` | |
1938 | * `{BTree,Hash}Map::values_mut` | |
1939 | * [`<[_]>::binary_search_by_key`] | |
1940 | (http://doc.rust-lang.org/beta/std/primitive.slice.html#method.binary_search_by_key) | |
1941 | ||
1942 | Libraries | |
1943 | --------- | |
1944 | ||
1945 | * [The `abs_sub` method of floats is deprecated] | |
1946 | (https://github.com/rust-lang/rust/pull/33664). | |
1947 | The semantics of this minor method are subtle and probably not what | |
1948 | most people want. | |
1949 | * [Add implementation of Ord for Cell<T> and RefCell<T> where T: Ord] | |
1950 | (https://github.com/rust-lang/rust/pull/33306). | |
1951 | * [On Linux, if `HashMap`s can't be initialized with `getrandom` they | |
1952 | will fall back to `/dev/urandom` temporarily to avoid blocking | |
1953 | during early boot] | |
1954 | (https://github.com/rust-lang/rust/pull/33086). | |
1955 | * [Implemented negation for wrapping numerals] | |
1956 | (https://github.com/rust-lang/rust/pull/33067). | |
1957 | * [Implement `Clone` for `binary_heap::IntoIter`] | |
1958 | (https://github.com/rust-lang/rust/pull/33050). | |
1959 | * [Implement `Display` and `Hash` for `std::num::Wrapping`] | |
1960 | (https://github.com/rust-lang/rust/pull/33023). | |
5bcae85e | 1961 | * [Add `Default` implementation for `&CStr`, `CString`] |
a7813a04 XL |
1962 | (https://github.com/rust-lang/rust/pull/32990). |
1963 | * [Implement `From<Vec<T>>` and `Into<Vec<T>>` for `VecDeque<T>`] | |
1964 | (https://github.com/rust-lang/rust/pull/32866). | |
1965 | * [Implement `Default` for `UnsafeCell`, `fmt::Error`, `Condvar`, | |
1966 | `Mutex`, `RwLock`] | |
1967 | (https://github.com/rust-lang/rust/pull/32785). | |
1968 | ||
1969 | Cargo | |
1970 | ----- | |
1971 | * [Cargo.toml supports the `profile.*.panic` option] | |
1972 | (https://github.com/rust-lang/cargo/pull/2687). | |
1973 | This controls the runtime behavior of the `panic!` macro | |
1974 | and can be either "unwind" (the default), or "abort". | |
1975 | [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md). | |
1976 | * [Don't throw away errors with `-p` arguments] | |
1977 | (https://github.com/rust-lang/cargo/pull/2723). | |
1978 | * [Report status to stderr instead of stdout] | |
1979 | (https://github.com/rust-lang/cargo/pull/2693). | |
1980 | * [Build scripts are passed a `CARGO_MANIFEST_LINKS` environment | |
1981 | variable that corresponds to the `links` field of the manifest] | |
1982 | (https://github.com/rust-lang/cargo/pull/2710). | |
1983 | * [Ban keywords from crate names] | |
1984 | (https://github.com/rust-lang/cargo/pull/2707). | |
1985 | * [Canonicalize `CARGO_HOME` on Windows] | |
1986 | (https://github.com/rust-lang/cargo/pull/2604). | |
1987 | * [Retry network requests] | |
1988 | (https://github.com/rust-lang/cargo/pull/2396). | |
1989 | By default they are retried twice, which can be customized with the | |
1990 | `net.retry` value in `.cargo/config`. | |
1991 | * [Don't print extra error info for failing subcommands] | |
1992 | (https://github.com/rust-lang/cargo/pull/2674). | |
1993 | * [Add `--force` flag to `cargo install`] | |
1994 | (https://github.com/rust-lang/cargo/pull/2405). | |
1995 | * [Don't use `flock` on NFS mounts] | |
1996 | (https://github.com/rust-lang/cargo/pull/2623). | |
1997 | * [Prefer building `cargo install` artifacts in temporary directories] | |
1998 | (https://github.com/rust-lang/cargo/pull/2610). | |
1999 | Makes it possible to install multiple crates in parallel. | |
2000 | * [Add `cargo test --doc`] | |
2001 | (https://github.com/rust-lang/cargo/pull/2578). | |
2002 | * [Add `cargo --explain`] | |
2003 | (https://github.com/rust-lang/cargo/pull/2551). | |
2004 | * [Don't print warnings when `-q` is passed] | |
2005 | (https://github.com/rust-lang/cargo/pull/2576). | |
2006 | * [Add `cargo doc --lib` and `--bin`] | |
2007 | (https://github.com/rust-lang/cargo/pull/2577). | |
2008 | * [Don't require build script output to be UTF-8] | |
2009 | (https://github.com/rust-lang/cargo/pull/2560). | |
2010 | * [Correctly attempt multiple git usernames] | |
2011 | (https://github.com/rust-lang/cargo/pull/2584). | |
2012 | ||
2013 | Performance | |
2014 | ----------- | |
2015 | ||
2016 | * [rustc memory usage was reduced by refactoring the context used for | |
2017 | type checking] | |
2018 | (https://github.com/rust-lang/rust/pull/33425). | |
2019 | * [Speed up creation of `HashMap`s by caching the random keys used | |
2020 | to initialize the hash state] | |
2021 | (https://github.com/rust-lang/rust/pull/33318). | |
2022 | * [The `find` implementation for `Chain` iterators is 2x faster] | |
2023 | (https://github.com/rust-lang/rust/pull/33289). | |
2024 | * [Trait selection optimizations speed up type checking by 15%] | |
2025 | (https://github.com/rust-lang/rust/pull/33138). | |
2026 | * [Efficient trie lookup for boolean Unicode properties] | |
2027 | (https://github.com/rust-lang/rust/pull/33098). | |
2028 | 10x faster than the previous lookup tables. | |
2029 | * [Special case `#[derive(Copy, Clone)]` to avoid bloat] | |
2030 | (https://github.com/rust-lang/rust/pull/31414). | |
2031 | ||
2032 | Usability | |
2033 | --------- | |
2034 | ||
2035 | * Many incremental improvements to documentation and rustdoc. | |
2036 | * [rustdoc: List blanket trait impls] | |
2037 | (https://github.com/rust-lang/rust/pull/33514). | |
2038 | * [rustdoc: Clean up ABI rendering] | |
2039 | (https://github.com/rust-lang/rust/pull/33151). | |
2040 | * [Indexing with the wrong type produces a more informative error] | |
2041 | (https://github.com/rust-lang/rust/pull/33401). | |
2042 | * [Improve diagnostics for constants being used in irrefutable patterns] | |
2043 | (https://github.com/rust-lang/rust/pull/33406). | |
2044 | * [When many method candidates are in scope limit the suggestions to 10] | |
2045 | (https://github.com/rust-lang/rust/pull/33338). | |
2046 | * [Remove confusing suggestion when calling a `fn` type] | |
2047 | (https://github.com/rust-lang/rust/pull/33325). | |
2048 | * [Do not suggest changing `&mut self` to `&mut mut self`] | |
2049 | (https://github.com/rust-lang/rust/pull/33319). | |
2050 | ||
2051 | Misc | |
2052 | ---- | |
2053 | ||
2054 | * [Update i686-linux-android features to match Android ABI] | |
2055 | (https://github.com/rust-lang/rust/pull/33651). | |
2056 | * [Update aarch64-linux-android features to match Android ABI] | |
2057 | (https://github.com/rust-lang/rust/pull/33500). | |
2058 | * [`std` no longer prints backtraces on platforms where the running | |
2059 | module must be loaded with `env::current_exe`, which can't be relied | |
2060 | on](https://github.com/rust-lang/rust/pull/33554). | |
2061 | * This release includes std binaries for the i586-unknown-linux-gnu, | |
2062 | i686-unknown-linux-musl, and armv7-linux-androideabi targets. The | |
2063 | i586 target is for old x86 hardware without SSE2, and the armv7 | |
2064 | target is for Android running on modern ARM architectures. | |
2065 | * [The `rust-gdb` and `rust-lldb` scripts are distributed on all | |
2066 | Unix platforms](https://github.com/rust-lang/rust/pull/32835). | |
2067 | * [On Unix the runtime aborts by calling `libc::abort` instead of | |
2068 | generating an illegal instruction] | |
2069 | (https://github.com/rust-lang/rust/pull/31457). | |
2070 | * [Rust is now bootstrapped from the previous release of Rust, | |
2071 | instead of a snapshot from an arbitrary commit] | |
2072 | (https://github.com/rust-lang/rust/pull/32942). | |
2073 | ||
2074 | Compatibility Notes | |
2075 | ------------------- | |
2076 | ||
2077 | * [`AtomicBool` is now bool-sized, not word-sized] | |
2078 | (https://github.com/rust-lang/rust/pull/33579). | |
2079 | * [`target_env` for Linux ARM targets is just `gnu`, not | |
2080 | `gnueabihf`, `gnueabi`, etc] | |
2081 | (https://github.com/rust-lang/rust/pull/33403). | |
2082 | * [Consistently panic on overflow in `Duration::new`] | |
2083 | (https://github.com/rust-lang/rust/pull/33072). | |
2084 | * [Change `String::truncate` to panic less] | |
2085 | (https://github.com/rust-lang/rust/pull/32977). | |
2086 | * [Add `:block` to the follow set for `:ty` and `:path`] | |
2087 | (https://github.com/rust-lang/rust/pull/32945). | |
2088 | Affects how macros are parsed. | |
2089 | * [Fix macro hygiene bug] | |
2090 | (https://github.com/rust-lang/rust/pull/32923). | |
2091 | * [Feature-gated attributes on macro-generated macro invocations are | |
2092 | now rejected] | |
2093 | (https://github.com/rust-lang/rust/pull/32791). | |
2094 | * [Suppress fallback and ambiguity errors during type inference] | |
2095 | (https://github.com/rust-lang/rust/pull/32258). | |
2096 | This caused some minor changes to type inference. | |
2097 | ||
2098 | ||
54a0048b SL |
2099 | Version 1.9.0 (2016-05-26) |
2100 | ========================== | |
2101 | ||
2102 | Language | |
2103 | -------- | |
2104 | ||
2105 | * The `#[deprecated]` attribute when applied to an API will generate | |
2106 | warnings when used. The warnings may be suppressed with | |
2107 | `#[allow(deprecated)]`. [RFC 1270]. | |
2108 | * [`fn` item types are zero sized, and each `fn` names a unique | |
2109 | type][1.9fn]. This will break code that transmutes `fn`s, so calling | |
2110 | `transmute` on a `fn` type will generate a warning for a few cycles, | |
2111 | then will be converted to an error. | |
2112 | * [Field and method resolution understand visibility, so private | |
2113 | fields and methods cannot prevent the proper use of public fields | |
2114 | and methods][1.9fv]. | |
2115 | * [The parser considers unicode codepoints in the | |
2116 | `PATTERN_WHITE_SPACE` category to be whitespace][1.9ws]. | |
2117 | ||
2118 | Stabilized APIs | |
2119 | --------------- | |
2120 | ||
2121 | * [`std::panic`] | |
2122 | * [`std::panic::catch_unwind`][] (renamed from `recover`) | |
2123 | * [`std::panic::resume_unwind`][] (renamed from `propagate`) | |
2124 | * [`std::panic::AssertUnwindSafe`][] (renamed from `AssertRecoverSafe`) | |
2125 | * [`std::panic::UnwindSafe`][] (renamed from `RecoverSafe`) | |
2126 | * [`str::is_char_boundary`] | |
2127 | * [`<*const T>::as_ref`] | |
2128 | * [`<*mut T>::as_ref`] | |
2129 | * [`<*mut T>::as_mut`] | |
2130 | * [`AsciiExt::make_ascii_uppercase`] | |
2131 | * [`AsciiExt::make_ascii_lowercase`] | |
2132 | * [`char::decode_utf16`] | |
2133 | * [`char::DecodeUtf16`] | |
2134 | * [`char::DecodeUtf16Error`] | |
2135 | * [`char::DecodeUtf16Error::unpaired_surrogate`] | |
2136 | * [`BTreeSet::take`] | |
2137 | * [`BTreeSet::replace`] | |
2138 | * [`BTreeSet::get`] | |
2139 | * [`HashSet::take`] | |
2140 | * [`HashSet::replace`] | |
2141 | * [`HashSet::get`] | |
2142 | * [`OsString::with_capacity`] | |
2143 | * [`OsString::clear`] | |
2144 | * [`OsString::capacity`] | |
2145 | * [`OsString::reserve`] | |
2146 | * [`OsString::reserve_exact`] | |
2147 | * [`OsStr::is_empty`] | |
2148 | * [`OsStr::len`] | |
2149 | * [`std::os::unix::thread`] | |
2150 | * [`RawPthread`] | |
2151 | * [`JoinHandleExt`] | |
2152 | * [`JoinHandleExt::as_pthread_t`] | |
2153 | * [`JoinHandleExt::into_pthread_t`] | |
2154 | * [`HashSet::hasher`] | |
2155 | * [`HashMap::hasher`] | |
2156 | * [`CommandExt::exec`] | |
2157 | * [`File::try_clone`] | |
2158 | * [`SocketAddr::set_ip`] | |
2159 | * [`SocketAddr::set_port`] | |
2160 | * [`SocketAddrV4::set_ip`] | |
2161 | * [`SocketAddrV4::set_port`] | |
2162 | * [`SocketAddrV6::set_ip`] | |
2163 | * [`SocketAddrV6::set_port`] | |
2164 | * [`SocketAddrV6::set_flowinfo`] | |
2165 | * [`SocketAddrV6::set_scope_id`] | |
2166 | * [`slice::copy_from_slice`] | |
2167 | * [`ptr::read_volatile`] | |
2168 | * [`ptr::write_volatile`] | |
2169 | * [`OpenOptions::create_new`] | |
2170 | * [`TcpStream::set_nodelay`] | |
2171 | * [`TcpStream::nodelay`] | |
2172 | * [`TcpStream::set_ttl`] | |
2173 | * [`TcpStream::ttl`] | |
2174 | * [`TcpStream::set_only_v6`] | |
2175 | * [`TcpStream::only_v6`] | |
2176 | * [`TcpStream::take_error`] | |
2177 | * [`TcpStream::set_nonblocking`] | |
2178 | * [`TcpListener::set_ttl`] | |
2179 | * [`TcpListener::ttl`] | |
2180 | * [`TcpListener::set_only_v6`] | |
2181 | * [`TcpListener::only_v6`] | |
2182 | * [`TcpListener::take_error`] | |
2183 | * [`TcpListener::set_nonblocking`] | |
2184 | * [`UdpSocket::set_broadcast`] | |
2185 | * [`UdpSocket::broadcast`] | |
2186 | * [`UdpSocket::set_multicast_loop_v4`] | |
2187 | * [`UdpSocket::multicast_loop_v4`] | |
2188 | * [`UdpSocket::set_multicast_ttl_v4`] | |
2189 | * [`UdpSocket::multicast_ttl_v4`] | |
2190 | * [`UdpSocket::set_multicast_loop_v6`] | |
2191 | * [`UdpSocket::multicast_loop_v6`] | |
2192 | * [`UdpSocket::set_multicast_ttl_v6`] | |
2193 | * [`UdpSocket::multicast_ttl_v6`] | |
2194 | * [`UdpSocket::set_ttl`] | |
2195 | * [`UdpSocket::ttl`] | |
2196 | * [`UdpSocket::set_only_v6`] | |
2197 | * [`UdpSocket::only_v6`] | |
2198 | * [`UdpSocket::join_multicast_v4`] | |
2199 | * [`UdpSocket::join_multicast_v6`] | |
2200 | * [`UdpSocket::leave_multicast_v4`] | |
2201 | * [`UdpSocket::leave_multicast_v6`] | |
2202 | * [`UdpSocket::take_error`] | |
2203 | * [`UdpSocket::connect`] | |
2204 | * [`UdpSocket::send`] | |
2205 | * [`UdpSocket::recv`] | |
2206 | * [`UdpSocket::set_nonblocking`] | |
2207 | ||
2208 | Libraries | |
2209 | --------- | |
2210 | ||
2211 | * [`std::sync::Once` is poisoned if its initialization function | |
2212 | fails][1.9o]. | |
2213 | * [`cell::Ref` and `cell::RefMut` can contain unsized types][1.9cu]. | |
2214 | * [Most types implement `fmt::Debug`][1.9db]. | |
2215 | * [The default buffer size used by `BufReader` and `BufWriter` was | |
2216 | reduced to 8K, from 64K][1.9bf]. This is in line with the buffer size | |
2217 | used by other languages. | |
2218 | * [`Instant`, `SystemTime` and `Duration` implement `+=` and `-=`. | |
2219 | `Duration` additionally implements `*=` and `/=`][1.9ta]. | |
2220 | * [`Skip` is a `DoubleEndedIterator`][1.9sk]. | |
2221 | * [`From<[u8; 4]>` is implemented for `Ipv4Addr`][1.9fi]. | |
2222 | * [`Chain` implements `BufRead`][1.9ch]. | |
2223 | * [`HashMap`, `HashSet` and iterators are covariant][1.9hc]. | |
2224 | ||
2225 | Cargo | |
2226 | ----- | |
2227 | ||
2228 | * [Cargo can now run concurrently][1.9cc]. | |
2229 | * [Top-level overrides allow specific revisions of crates to be | |
2230 | overridden through the entire crate graph][1.9ct]. This is intended | |
2231 | to make upgrades easier for large projects, by allowing crates to be | |
2232 | forked temporarily until they've been upgraded and republished. | |
2233 | * [Cargo exports a `CARGO_PKG_AUTHORS` environment variable][1.9cp]. | |
2234 | * [Cargo will pass the contents of the `RUSTFLAGS` variable to `rustc` | |
2235 | on the commandline][1.9cf]. `rustc` arguments can also be specified | |
2236 | in the `build.rustflags` configuration key. | |
2237 | ||
2238 | Performance | |
2239 | ----------- | |
2240 | ||
c30ab7b3 | 2241 | * [The time complexity of comparing variables for equivalence during type |
a7813a04 XL |
2242 | unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads |
2243 | to major compilation time improvement in some scenarios. | |
54a0048b SL |
2244 | * [`ToString` is specialized for `str`, giving it the same performance |
2245 | as `to_owned`][1.9ts]. | |
2246 | * [Spawning processes with `Command::output` no longer creates extra | |
2247 | threads][1.9sp]. | |
2248 | * [`#[derive(PartialEq)]` and `#[derive(PartialOrd)]` emit less code | |
2249 | for C-like enums][1.9cl]. | |
2250 | ||
2251 | Misc | |
2252 | ---- | |
2253 | ||
2254 | * [Passing the `--quiet` flag to a test runner will produce | |
2255 | much-abbreviated output][1.9q]. | |
2256 | * The Rust Project now publishes std binaries for the | |
2257 | `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`, and | |
2258 | `i586-pc-windows-msvc` targets. | |
2259 | ||
2260 | Compatibility Notes | |
2261 | ------------------- | |
2262 | ||
2263 | * [`std::sync::Once` is poisoned if its initialization function | |
2264 | fails][1.9o]. | |
2265 | * [It is illegal to define methods with the same name in overlapping | |
2266 | inherent `impl` blocks][1.9sn]. | |
2267 | * [`fn` item types are zero sized, and each `fn` names a unique | |
2268 | type][1.9fn]. This will break code that transmutes `fn`s, so calling | |
2269 | `transmute` on a `fn` type will generate a warning for a few cycles, | |
2270 | then will be converted to an error. | |
2271 | * [Improvements to const evaluation may trigger new errors when integer | |
2272 | literals are out of range][1.9ce]. | |
2273 | ||
2274 | ||
2275 | [1.9bf]: https://github.com/rust-lang/rust/pull/32695 | |
2276 | [1.9cc]: https://github.com/rust-lang/cargo/pull/2486 | |
2277 | [1.9ce]: https://github.com/rust-lang/rust/pull/30587 | |
2278 | [1.9cf]: https://github.com/rust-lang/cargo/pull/2241 | |
2279 | [1.9ch]: https://github.com/rust-lang/rust/pull/32541 | |
2280 | [1.9cl]: https://github.com/rust-lang/rust/pull/31977 | |
2281 | [1.9cp]: https://github.com/rust-lang/cargo/pull/2465 | |
2282 | [1.9ct]: https://github.com/rust-lang/cargo/pull/2385 | |
2283 | [1.9cu]: https://github.com/rust-lang/rust/pull/32652 | |
2284 | [1.9db]: https://github.com/rust-lang/rust/pull/32054 | |
2285 | [1.9fi]: https://github.com/rust-lang/rust/pull/32050 | |
2286 | [1.9fn]: https://github.com/rust-lang/rust/pull/31710 | |
2287 | [1.9fv]: https://github.com/rust-lang/rust/pull/31938 | |
2288 | [1.9hc]: https://github.com/rust-lang/rust/pull/32635 | |
2289 | [1.9o]: https://github.com/rust-lang/rust/pull/32325 | |
2290 | [1.9q]: https://github.com/rust-lang/rust/pull/31887 | |
2291 | [1.9sk]: https://github.com/rust-lang/rust/pull/31700 | |
2292 | [1.9sn]: https://github.com/rust-lang/rust/pull/31925 | |
2293 | [1.9sp]: https://github.com/rust-lang/rust/pull/31618 | |
2294 | [1.9ta]: https://github.com/rust-lang/rust/pull/32448 | |
2295 | [1.9ts]: https://github.com/rust-lang/rust/pull/32586 | |
2296 | [1.9tu]: https://github.com/rust-lang/rust/pull/32062 | |
2297 | [1.9ws]: https://github.com/rust-lang/rust/pull/29734 | |
2298 | [RFC 1270]: https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md | |
2299 | [`<*const T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref | |
2300 | [`<*mut T>::as_mut`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_mut | |
2301 | [`<*mut T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref | |
2302 | [`slice::copy_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.copy_from_slice | |
2303 | [`AsciiExt::make_ascii_lowercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase | |
2304 | [`AsciiExt::make_ascii_uppercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase | |
2305 | [`BTreeSet::get`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.get | |
2306 | [`BTreeSet::replace`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.replace | |
2307 | [`BTreeSet::take`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.take | |
2308 | [`CommandExt::exec`]: http://doc.rust-lang.org/nightly/std/os/unix/process/trait.CommandExt.html#tymethod.exec | |
2309 | [`File::try_clone`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.try_clone | |
2310 | [`HashMap::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.hasher | |
2311 | [`HashSet::get`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.get | |
2312 | [`HashSet::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.hasher | |
2313 | [`HashSet::replace`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.replace | |
2314 | [`HashSet::take`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.take | |
2315 | [`JoinHandleExt::as_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.as_pthread_t | |
2316 | [`JoinHandleExt::into_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.into_pthread_t | |
2317 | [`JoinHandleExt`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html | |
2318 | [`OpenOptions::create_new`]: http://doc.rust-lang.org/nightly/std/fs/struct.OpenOptions.html#method.create_new | |
2319 | [`OsStr::is_empty`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.is_empty | |
2320 | [`OsStr::len`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.len | |
2321 | [`OsString::capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.capacity | |
2322 | [`OsString::clear`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.clear | |
2323 | [`OsString::reserve_exact`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve_exact | |
2324 | [`OsString::reserve`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve | |
2325 | [`OsString::with_capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.with_capacity | |
2326 | [`RawPthread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/type.RawPthread.html | |
2327 | [`SocketAddr::set_ip`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_ip | |
2328 | [`SocketAddr::set_port`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_port | |
2329 | [`SocketAddrV4::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_ip | |
2330 | [`SocketAddrV4::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_port | |
2331 | [`SocketAddrV6::set_flowinfo`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_flowinfo | |
2332 | [`SocketAddrV6::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_ip | |
2333 | [`SocketAddrV6::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_port | |
2334 | [`SocketAddrV6::set_scope_id`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_scope_id | |
2335 | [`TcpListener::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6 | |
2336 | [`TcpListener::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking | |
2337 | [`TcpListener::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6 | |
2338 | [`TcpListener::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl | |
2339 | [`TcpListener::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error | |
2340 | [`TcpListener::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl | |
2341 | [`TcpStream::nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.nodelay | |
2342 | [`TcpStream::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6 | |
2343 | [`TcpStream::set_nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nodelay | |
2344 | [`TcpStream::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking | |
2345 | [`TcpStream::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6 | |
2346 | [`TcpStream::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl | |
2347 | [`TcpStream::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error | |
2348 | [`TcpStream::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl | |
2349 | [`UdpSocket::broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.broadcast | |
2350 | [`UdpSocket::connect`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.connect | |
2351 | [`UdpSocket::join_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v4 | |
2352 | [`UdpSocket::join_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v6 | |
2353 | [`UdpSocket::leave_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v4 | |
2354 | [`UdpSocket::leave_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v6 | |
2355 | [`UdpSocket::multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v4 | |
2356 | [`UdpSocket::multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v6 | |
2357 | [`UdpSocket::multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v4 | |
2358 | [`UdpSocket::multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v6 | |
2359 | [`UdpSocket::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.only_v6 | |
2360 | [`UdpSocket::recv`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.recv | |
2361 | [`UdpSocket::send`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.send | |
2362 | [`UdpSocket::set_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_broadcast | |
2363 | [`UdpSocket::set_multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v4 | |
2364 | [`UdpSocket::set_multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v6 | |
2365 | [`UdpSocket::set_multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v4 | |
2366 | [`UdpSocket::set_multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v6 | |
2367 | [`UdpSocket::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_nonblocking | |
2368 | [`UdpSocket::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_only_v6 | |
2369 | [`UdpSocket::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_ttl | |
2370 | [`UdpSocket::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.take_error | |
2371 | [`UdpSocket::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.ttl | |
2372 | [`char::DecodeUtf16Error::unpaired_surrogate`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html#method.unpaired_surrogate | |
2373 | [`char::DecodeUtf16Error`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html | |
2374 | [`char::DecodeUtf16`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16.html | |
2375 | [`char::decode_utf16`]: http://doc.rust-lang.org/nightly/std/char/fn.decode_utf16.html | |
2376 | [`ptr::read_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.read_volatile.html | |
2377 | [`ptr::write_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.write_volatile.html | |
2378 | [`std::os::unix::thread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/index.html | |
2379 | [`std::panic::AssertUnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/struct.AssertUnwindSafe.html | |
2380 | [`std::panic::UnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html | |
2381 | [`std::panic::catch_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.catch_unwind.html | |
2382 | [`std::panic::resume_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.resume_unwind.html | |
2383 | [`std::panic`]: http://doc.rust-lang.org/nightly/std/panic/index.html | |
2384 | [`str::is_char_boundary`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary | |
2385 | ||
2386 | ||
7453a54e SL |
2387 | Version 1.8.0 (2016-04-14) |
2388 | ========================== | |
2389 | ||
2390 | Language | |
2391 | -------- | |
2392 | ||
2393 | * Rust supports overloading of compound assignment statements like | |
2394 | `+=` by implementing the [`AddAssign`], [`SubAssign`], | |
2395 | [`MulAssign`], [`DivAssign`], [`RemAssign`], [`BitAndAssign`], | |
2396 | [`BitOrAssign`], [`BitXorAssign`], [`ShlAssign`], or [`ShrAssign`] | |
2397 | traits. [RFC 953]. | |
2398 | * Empty structs can be defined with braces, as in `struct Foo { }`, in | |
2399 | addition to the non-braced form, `struct Foo;`. [RFC 218]. | |
2400 | ||
2401 | Libraries | |
2402 | --------- | |
2403 | ||
2404 | * Stabilized APIs: | |
2405 | * [`str::encode_utf16`][] (renamed from `utf16_units`) | |
2406 | * [`str::EncodeUtf16`][] (renamed from `Utf16Units`) | |
2407 | * [`Ref::map`] | |
2408 | * [`RefMut::map`] | |
2409 | * [`ptr::drop_in_place`] | |
2410 | * [`time::Instant`] | |
2411 | * [`time::SystemTime`] | |
2412 | * [`Instant::now`] | |
2413 | * [`Instant::duration_since`][] (renamed from `duration_from_earlier`) | |
2414 | * [`Instant::elapsed`] | |
2415 | * [`SystemTime::now`] | |
2416 | * [`SystemTime::duration_since`][] (renamed from `duration_from_earlier`) | |
2417 | * [`SystemTime::elapsed`] | |
2418 | * Various `Add`/`Sub` impls for `Time` and `SystemTime` | |
2419 | * [`SystemTimeError`] | |
2420 | * [`SystemTimeError::duration`] | |
2421 | * Various impls for `SystemTimeError` | |
2422 | * [`UNIX_EPOCH`] | |
2423 | * [`AddAssign`], [`SubAssign`], [`MulAssign`], [`DivAssign`], | |
2424 | [`RemAssign`], [`BitAndAssign`], [`BitOrAssign`], | |
2425 | [`BitXorAssign`], [`ShlAssign`], [`ShrAssign`]. | |
2426 | * [The `write!` and `writeln!` macros correctly emit errors if any of | |
2427 | their arguments can't be formatted][1.8w]. | |
2428 | * [Various I/O functions support large files on 32-bit Linux][1.8l]. | |
2429 | * [The Unix-specific `raw` modules, which contain a number of | |
2430 | redefined C types are deprecated][1.8r], including `os::raw::unix`, | |
2431 | `os::raw::macos`, and `os::raw::linux`. These modules defined types | |
2432 | such as `ino_t` and `dev_t`. The inconsistency of these definitions | |
2433 | across platforms was making it difficult to implement `std` | |
2434 | correctly. Those that need these definitions should use the `libc` | |
2435 | crate. [RFC 1415]. | |
2436 | * The Unix-specific `MetadataExt` traits, including | |
2437 | `os::unix::fs::MetadataExt`, which expose values such as inode | |
2438 | numbers [no longer return platform-specific types][1.8r], but | |
2439 | instead return widened integers. [RFC 1415]. | |
2440 | * [`btree_set::{IntoIter, Iter, Range}` are covariant][1.8cv]. | |
2441 | * [Atomic loads and stores are not volatile][1.8a]. | |
2442 | * [All types in `sync::mpsc` implement `fmt::Debug`][1.8mp]. | |
2443 | ||
2444 | Performance | |
2445 | ----------- | |
2446 | ||
2447 | * [Inlining hash functions lead to a 3% compile-time improvement in | |
2448 | some workloads][1.8h]. | |
2449 | * When using jemalloc, its symbols are [unprefixed so that it | |
2450 | overrides the libc malloc implementation][1.8h]. This means that for | |
2451 | rustc, LLVM is now using jemalloc, which results in a 6% | |
2452 | compile-time improvement on a specific workload. | |
2453 | * [Avoid quadratic growth in function size due to cleanups][1.8cu]. | |
2454 | ||
2455 | Misc | |
2456 | ---- | |
2457 | ||
2458 | * [32-bit MSVC builds finally implement unwinding][1.8ms]. | |
2459 | i686-pc-windows-msvc is now considered a tier-1 platform. | |
2460 | * [The `--print targets` flag prints a list of supported targets][1.8t]. | |
2461 | * [The `--print cfg` flag prints the `cfg`s defined for the current | |
2462 | target][1.8cf]. | |
2463 | * [`rustc` can be built with an new Cargo-based build system, written | |
2464 | in Rust][1.8b]. It will eventually replace Rust's Makefile-based | |
2465 | build system. To enable it configure with `configure --rustbuild`. | |
2466 | * [Errors for non-exhaustive `match` patterns now list up to 3 missing | |
2467 | variants while also indicating the total number of missing variants | |
2468 | if more than 3][1.8m]. | |
2469 | * [Executable stacks are disabled on Linux and BSD][1.8nx]. | |
2470 | * The Rust Project now publishes binary releases of the standard | |
2471 | library for a number of tier-2 targets: | |
2472 | `armv7-unknown-linux-gnueabihf`, `powerpc-unknown-linux-gnu`, | |
2473 | `powerpc64-unknown-linux-gnu`, `powerpc64le-unknown-linux-gnu` | |
2474 | `x86_64-rumprun-netbsd`. These can be installed with | |
2475 | tools such as [multirust][1.8mr]. | |
2476 | ||
2477 | Cargo | |
2478 | ----- | |
2479 | ||
2480 | * [`cargo init` creates a new Cargo project in the current | |
2481 | directory][1.8ci]. It is otherwise like `cargo new`. | |
2482 | * [Cargo has configuration keys for `-v` and | |
2483 | `--color`][1.8cc]. `verbose` and `color`, respectively, go in the | |
2484 | `[term]` section of `.cargo/config`. | |
2485 | * [Configuration keys that evaluate to strings or integers can be set | |
2486 | via environment variables][1.8ce]. For example the `build.jobs` key | |
2487 | can be set via `CARGO_BUILD_JOBS`. Environment variables take | |
2488 | precedence over config files. | |
2489 | * [Target-specific dependencies support Rust `cfg` syntax for | |
2490 | describing targets][1.8cfg] so that dependencies for multiple | |
2491 | targets can be specified together. [RFC 1361]. | |
2492 | * [The environment variables `CARGO_TARGET_ROOT`, `RUSTC`, and | |
2493 | `RUSTDOC` take precedence over the `build.target-dir`, | |
2494 | `build.rustc`, and `build.rustdoc` configuration values][1.8cv]. | |
2495 | * [The child process tree is killed on Windows when Cargo is | |
2496 | killed][1.8ck]. | |
2497 | * [The `build.target` configuration value sets the target platform, | |
2498 | like `--target`][1.8ct]. | |
2499 | ||
2500 | Compatibility Notes | |
2501 | ------------------- | |
2502 | ||
2503 | * [Unstable compiler flags have been further restricted][1.8u]. Since | |
2504 | 1.0 `-Z` flags have been considered unstable, and other flags that | |
2505 | were considered unstable additionally required passing `-Z | |
2506 | unstable-options` to access. Unlike unstable language and library | |
2507 | features though, these options have been accessible on the stable | |
2508 | release channel. Going forward, *new unstable flags will not be | |
2509 | available on the stable release channel*, and old unstable flags | |
2510 | will warn about their usage. In the future, all unstable flags will | |
2511 | be unavailable on the stable release channel. | |
2512 | * [It is no longer possible to `match` on empty enum variants using | |
2513 | the `Variant(..)` syntax][1.8v]. This has been a warning since 1.6. | |
2514 | * The Unix-specific `MetadataExt` traits, including | |
2515 | `os::unix::fs::MetadataExt`, which expose values such as inode | |
2516 | numbers [no longer return platform-specific types][1.8r], but | |
2517 | instead return widened integers. [RFC 1415]. | |
2518 | * [Modules sourced from the filesystem cannot appear within arbitrary | |
a7813a04 | 2519 | blocks, but only within other modules][1.8mf]. |
7453a54e SL |
2520 | * [`--cfg` compiler flags are parsed strictly as identifiers][1.8c]. |
2521 | * On Unix, [stack overflow triggers a runtime abort instead of a | |
2522 | SIGSEGV][1.8so]. | |
2523 | * [`Command::spawn` and its equivalents return an error if any of | |
2524 | its command-line arguments contain interior `NUL`s][1.8n]. | |
2525 | * [Tuple and unit enum variants from other crates are in the type | |
2526 | namespace][1.8tn]. | |
2527 | * [On Windows `rustc` emits `.lib` files for the `staticlib` library | |
2528 | type instead of `.a` files][1.8st]. Additionally, for the MSVC | |
2529 | toolchain, `rustc` emits import libraries named `foo.dll.lib` | |
2530 | instead of `foo.lib`. | |
2531 | ||
2532 | ||
2533 | [1.8a]: https://github.com/rust-lang/rust/pull/30962 | |
2534 | [1.8b]: https://github.com/rust-lang/rust/pull/31123 | |
2535 | [1.8c]: https://github.com/rust-lang/rust/pull/31530 | |
2536 | [1.8cc]: https://github.com/rust-lang/cargo/pull/2397 | |
2537 | [1.8ce]: https://github.com/rust-lang/cargo/pull/2398 | |
2538 | [1.8cf]: https://github.com/rust-lang/rust/pull/31278 | |
2539 | [1.8cfg]: https://github.com/rust-lang/cargo/pull/2328 | |
2540 | [1.8ci]: https://github.com/rust-lang/cargo/pull/2081 | |
2541 | [1.8ck]: https://github.com/rust-lang/cargo/pull/2370 | |
2542 | [1.8ct]: https://github.com/rust-lang/cargo/pull/2335 | |
2543 | [1.8cu]: https://github.com/rust-lang/rust/pull/31390 | |
2544 | [1.8cv]: https://github.com/rust-lang/cargo/issues/2365 | |
2545 | [1.8cv]: https://github.com/rust-lang/rust/pull/30998 | |
2546 | [1.8h]: https://github.com/rust-lang/rust/pull/31460 | |
2547 | [1.8l]: https://github.com/rust-lang/rust/pull/31668 | |
2548 | [1.8m]: https://github.com/rust-lang/rust/pull/31020 | |
a7813a04 | 2549 | [1.8mf]: https://github.com/rust-lang/rust/pull/31534 |
7453a54e SL |
2550 | [1.8mp]: https://github.com/rust-lang/rust/pull/30894 |
2551 | [1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901 | |
2552 | [1.8ms]: https://github.com/rust-lang/rust/pull/30448 | |
2553 | [1.8n]: https://github.com/rust-lang/rust/pull/31056 | |
2554 | [1.8nx]: https://github.com/rust-lang/rust/pull/30859 | |
2555 | [1.8r]: https://github.com/rust-lang/rust/pull/31551 | |
2556 | [1.8so]: https://github.com/rust-lang/rust/pull/31333 | |
2557 | [1.8st]: https://github.com/rust-lang/rust/pull/29520 | |
2558 | [1.8t]: https://github.com/rust-lang/rust/pull/31358 | |
2559 | [1.8tn]: https://github.com/rust-lang/rust/pull/30882 | |
2560 | [1.8u]: https://github.com/rust-lang/rust/pull/31793 | |
2561 | [1.8v]: https://github.com/rust-lang/rust/pull/31757 | |
2562 | [1.8w]: https://github.com/rust-lang/rust/pull/31904 | |
2563 | [RFC 1361]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md | |
2564 | [RFC 1415]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md | |
2565 | [RFC 218]: https://github.com/rust-lang/rfcs/blob/master/text/0218-empty-struct-with-braces.md | |
2566 | [RFC 953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md | |
2567 | [`AddAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.AddAssign.html | |
2568 | [`BitAndAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitAndAssign.html | |
2569 | [`BitOrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitOrAssign.html | |
2570 | [`BitXorAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitXorAssign.html | |
2571 | [`DivAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.DivAssign.html | |
2572 | [`Instant::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.duration_since | |
2573 | [`Instant::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.elapsed | |
2574 | [`Instant::now`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.now | |
2575 | [`MulAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.MulAssign.html | |
2576 | [`Ref::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.Ref.html#method.map | |
2577 | [`RefMut::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map | |
2578 | [`RemAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.RemAssign.html | |
2579 | [`ShlAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShlAssign.html | |
2580 | [`ShrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShrAssign.html | |
2581 | [`SubAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.SubAssign.html | |
2582 | [`SystemTime::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.duration_since | |
2583 | [`SystemTime::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.elapsed | |
2584 | [`SystemTime::now`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.now | |
2585 | [`SystemTimeError::duration`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html#method.duration | |
2586 | [`SystemTimeError`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html | |
2587 | [`UNIX_EPOCH`]: http://doc.rust-lang.org/nightly/std/time/constant.UNIX_EPOCH.html | |
2588 | [`ptr::drop_in_place`]: http://doc.rust-lang.org/nightly/std/ptr/fn.drop_in_place.html | |
2589 | [`str::EncodeUtf16`]: http://doc.rust-lang.org/nightly/std/str/struct.EncodeUtf16.html | |
2590 | [`str::encode_utf16`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16 | |
2591 | [`time::Instant`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html | |
2592 | [`time::SystemTime`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html | |
2593 | ||
2594 | ||
9cc50fc6 SL |
2595 | Version 1.7.0 (2016-03-03) |
2596 | ========================== | |
2597 | ||
2598 | Libraries | |
2599 | --------- | |
2600 | ||
2601 | * Stabilized APIs | |
2602 | * `Path` | |
2603 | * [`Path::strip_prefix`][] (renamed from relative_from) | |
2604 | * [`path::StripPrefixError`][] (new error type returned from strip_prefix) | |
2605 | * `Ipv4Addr` | |
2606 | * [`Ipv4Addr::is_loopback`] | |
2607 | * [`Ipv4Addr::is_private`] | |
2608 | * [`Ipv4Addr::is_link_local`] | |
2609 | * [`Ipv4Addr::is_multicast`] | |
2610 | * [`Ipv4Addr::is_broadcast`] | |
2611 | * [`Ipv4Addr::is_documentation`] | |
2612 | * `Ipv6Addr` | |
2613 | * [`Ipv6Addr::is_unspecified`] | |
2614 | * [`Ipv6Addr::is_loopback`] | |
2615 | * [`Ipv6Addr::is_multicast`] | |
2616 | * `Vec` | |
2617 | * [`Vec::as_slice`] | |
2618 | * [`Vec::as_mut_slice`] | |
2619 | * `String` | |
2620 | * [`String::as_str`] | |
2621 | * [`String::as_mut_str`] | |
2622 | * Slices | |
2623 | * `<[T]>::`[`clone_from_slice`], which now requires the two slices to | |
2624 | be the same length | |
2625 | * `<[T]>::`[`sort_by_key`] | |
2626 | * checked, saturated, and overflowing operations | |
2627 | * [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`] | |
2628 | * [`i32::saturating_mul`] | |
2629 | * [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`] | |
2630 | * [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`] | |
2631 | * [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`] | |
2632 | * [`u32::saturating_mul`] | |
2633 | * [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`] | |
2634 | * [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`] | |
2635 | * and checked, saturated, and overflowing operations for other primitive types | |
2636 | * FFI | |
2637 | * [`ffi::IntoStringError`] | |
2638 | * [`CString::into_string`] | |
2639 | * [`CString::into_bytes`] | |
2640 | * [`CString::into_bytes_with_nul`] | |
2641 | * `From<CString> for Vec<u8>` | |
2642 | * `IntoStringError` | |
2643 | * [`IntoStringError::into_cstring`] | |
2644 | * [`IntoStringError::utf8_error`] | |
2645 | * `Error for IntoStringError` | |
54a0048b SL |
2646 | * Hashing |
2647 | * [`std::hash::BuildHasher`] | |
2648 | * [`BuildHasher::Hasher`] | |
2649 | * [`BuildHasher::build_hasher`] | |
2650 | * [`std::hash::BuildHasherDefault`] | |
2651 | * [`HashMap::with_hasher`] | |
2652 | * [`HashMap::with_capacity_and_hasher`] | |
2653 | * [`HashSet::with_hasher`] | |
2654 | * [`HashSet::with_capacity_and_hasher`] | |
2655 | * [`std::collections::hash_map::RandomState`] | |
2656 | * [`RandomState::new`] | |
9cc50fc6 SL |
2657 | * [Validating UTF-8 is faster by a factor of between 7 and 14x for |
2658 | ASCII input][1.7utf8]. This means that creating `String`s and `str`s | |
2659 | from bytes is faster. | |
2660 | * [The performance of `LineWriter` (and thus `io::stdout`) was | |
2661 | improved by using `memchr` to search for newlines][1.7m]. | |
2662 | * [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The | |
2663 | `f64` variants were stabilized previously. | |
2664 | * [`BTreeMap` was rewritten to use less memory and improve the performance | |
2665 | of insertion and iteration, the latter by as much as 5x][1.7bm]. | |
2666 | * [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are | |
2667 | covariant over their contained type][1.7bt]. | |
2668 | * [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant | |
2669 | over their contained type][1.7ll]. | |
2670 | * [`str::replace` now accepts a `Pattern`][1.7rp], like other string | |
2671 | searching methods. | |
2672 | * [`Any` is implemented for unsized types][1.7a]. | |
2673 | * [`Hash` is implemented for `Duration`][1.7h]. | |
2674 | ||
2675 | Misc | |
2676 | ---- | |
2677 | ||
2678 | * [When running tests with `--test`, rustdoc will pass `--cfg` | |
2679 | arguments to the compiler][1.7dt]. | |
2680 | * [The compiler is built with RPATH information by default][1.7rpa]. | |
2681 | This means that it will be possible to run `rustc` when installed in | |
2682 | unusual configurations without configuring the dynamic linker search | |
2683 | path explicitly. | |
2684 | * [`rustc` passes `--enable-new-dtags` to GNU ld][1.7dta]. This makes | |
2685 | any RPATH entries (emitted with `-C rpath`) *not* take precedence | |
2686 | over `LD_LIBRARY_PATH`. | |
2687 | ||
2688 | Cargo | |
2689 | ----- | |
2690 | ||
2691 | * [`cargo rustc` accepts a `--profile` flag that runs `rustc` under | |
2692 | any of the compilation profiles, 'dev', 'bench', or 'test'][1.7cp]. | |
2693 | * [The `rerun-if-changed` build script directive no longer causes the | |
2694 | build script to incorrectly run twice in certain scenarios][1.7rr]. | |
2695 | ||
2696 | Compatibility Notes | |
2697 | ------------------- | |
2698 | ||
54a0048b SL |
2699 | * Soundness fixes to the interactions between associated types and |
2700 | lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for | |
2701 | code that violates the new rules. This is a significant change that | |
2702 | is known to break existing code, so it has emitted warnings for the | |
2703 | new error cases since 1.4 to give crate authors time to adapt. The | |
2704 | details of what is changing are subtle; read the RFC for more. | |
9cc50fc6 SL |
2705 | * [Several bugs in the compiler's visibility calculations were |
2706 | fixed][1.7v]. Since this was found to break significant amounts of | |
2707 | code, the new errors will be emitted as warnings for several release | |
2708 | cycles, under the `private_in_public` lint. | |
2709 | * Defaulted type parameters were accidentally accepted in positions | |
2710 | that were not intended. In this release, [defaulted type parameters | |
2711 | appearing outside of type definitions will generate a | |
2712 | warning][1.7d], which will become an error in future releases. | |
54a0048b SL |
2713 | * [Parsing "." as a float results in an error instead of 0][1.7p]. |
2714 | That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`. | |
9cc50fc6 SL |
2715 | * [Borrows of closure parameters may not outlive the closure][1.7bc]. |
2716 | ||
2717 | [1.7a]: https://github.com/rust-lang/rust/pull/30928 | |
2718 | [1.7bc]: https://github.com/rust-lang/rust/pull/30341 | |
2719 | [1.7bm]: https://github.com/rust-lang/rust/pull/30426 | |
2720 | [1.7bt]: https://github.com/rust-lang/rust/pull/30998 | |
2721 | [1.7cp]: https://github.com/rust-lang/cargo/pull/2224 | |
2722 | [1.7d]: https://github.com/rust-lang/rust/pull/30724 | |
2723 | [1.7dt]: https://github.com/rust-lang/rust/pull/30372 | |
2724 | [1.7dta]: https://github.com/rust-lang/rust/pull/30394 | |
2725 | [1.7f]: https://github.com/rust-lang/rust/pull/30672 | |
2726 | [1.7h]: https://github.com/rust-lang/rust/pull/30818 | |
2727 | [1.7ll]: https://github.com/rust-lang/rust/pull/30663 | |
2728 | [1.7m]: https://github.com/rust-lang/rust/pull/30381 | |
2729 | [1.7p]: https://github.com/rust-lang/rust/pull/30681 | |
2730 | [1.7rp]: https://github.com/rust-lang/rust/pull/29498 | |
2731 | [1.7rpa]: https://github.com/rust-lang/rust/pull/30353 | |
2732 | [1.7rr]: https://github.com/rust-lang/cargo/pull/2279 | |
2733 | [1.7sf]: https://github.com/rust-lang/rust/pull/30389 | |
2734 | [1.7utf8]: https://github.com/rust-lang/rust/pull/30740 | |
2735 | [1.7v]: https://github.com/rust-lang/rust/pull/29973 | |
2736 | [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md | |
54a0048b SL |
2737 | [`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html |
2738 | [`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher | |
9cc50fc6 SL |
2739 | [`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul |
2740 | [`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes | |
2741 | [`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string | |
54a0048b SL |
2742 | [`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher |
2743 | [`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher | |
2744 | [`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher | |
2745 | [`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher | |
9cc50fc6 SL |
2746 | [`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring |
2747 | [`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error | |
2748 | [`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast | |
2749 | [`Ipv4Addr::is_documentation`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_documentation | |
2750 | [`Ipv4Addr::is_link_local`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_link_local | |
2751 | [`Ipv4Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_loopback | |
2752 | [`Ipv4Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_multicast | |
2753 | [`Ipv4Addr::is_private`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_private | |
2754 | [`Ipv6Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_loopback | |
2755 | [`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast | |
2756 | [`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified | |
2757 | [`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix | |
54a0048b | 2758 | [`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new |
9cc50fc6 SL |
2759 | [`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str |
2760 | [`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str | |
2761 | [`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice | |
2762 | [`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice | |
54a0048b | 2763 | [`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice |
9cc50fc6 SL |
2764 | [`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html |
2765 | [`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg | |
2766 | [`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem | |
2767 | [`i32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shl | |
2768 | [`i32::checked_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shr | |
2769 | [`i32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_add | |
2770 | [`i32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_div | |
2771 | [`i32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_mul | |
2772 | [`i32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_neg | |
2773 | [`i32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_rem | |
2774 | [`i32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shl | |
2775 | [`i32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shr | |
2776 | [`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub | |
2777 | [`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul | |
2778 | [`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html | |
54a0048b SL |
2779 | [`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key |
2780 | [`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html | |
2781 | [`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html | |
2782 | [`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html | |
9cc50fc6 SL |
2783 | [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg |
2784 | [`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem | |
54a0048b | 2785 | [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg |
9cc50fc6 SL |
2786 | [`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl |
2787 | [`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add | |
2788 | [`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div | |
2789 | [`u32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_mul | |
2790 | [`u32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_neg | |
2791 | [`u32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_rem | |
2792 | [`u32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shl | |
2793 | [`u32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shr | |
2794 | [`u32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_sub | |
2795 | [`u32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.saturating_mul | |
2796 | ||
2797 | ||
92a42be0 SL |
2798 | Version 1.6.0 (2016-01-21) |
2799 | ========================== | |
2800 | ||
2801 | Language | |
2802 | -------- | |
2803 | ||
2804 | * The `#![no_std]` attribute causes a crate to not be linked to the | |
2805 | standard library, but only the [core library][1.6co], as described | |
2806 | in [RFC 1184]. The core library defines common types and traits but | |
2807 | has no platform dependencies whatsoever, and is the basis for Rust | |
2808 | software in environments that cannot support a full port of the | |
2809 | standard library, such as operating systems. Most of the core | |
2810 | library is now stable. | |
2811 | ||
2812 | Libraries | |
2813 | --------- | |
2814 | ||
2815 | * Stabilized APIs: | |
9cc50fc6 SL |
2816 | [`Read::read_exact`], |
2817 | [`ErrorKind::UnexpectedEof`][] (renamed from `UnexpectedEOF`), | |
2818 | [`fs::DirBuilder`], [`fs::DirBuilder::new`], | |
92a42be0 SL |
2819 | [`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`], |
2820 | [`os::unix::fs::DirBuilderExt`], | |
2821 | [`os::unix::fs::DirBuilderExt::mode`], [`vec::Drain`], | |
2822 | [`vec::Vec::drain`], [`string::Drain`], [`string::String::drain`], | |
2823 | [`vec_deque::Drain`], [`vec_deque::VecDeque::drain`], | |
2824 | [`collections::hash_map::Drain`], | |
2825 | [`collections::hash_map::HashMap::drain`], | |
2826 | [`collections::hash_set::Drain`], | |
2827 | [`collections::hash_set::HashSet::drain`], | |
2828 | [`collections::binary_heap::Drain`], | |
2829 | [`collections::binary_heap::BinaryHeap::drain`], | |
9cc50fc6 | 2830 | [`Vec::extend_from_slice`][] (renamed from `push_all`), |
92a42be0 | 2831 | [`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`], |
9cc50fc6 SL |
2832 | [`RwLock::into_inner`], |
2833 | [`Iterator::min_by_key`][] (renamed from `min_by`), | |
2834 | [`Iterator::max_by_key`][] (renamed from `max_by`). | |
92a42be0 SL |
2835 | * The [core library][1.6co] is stable, as are most of its APIs. |
2836 | * [The `assert_eq!` macro supports arguments that don't implement | |
2837 | `Sized`][1.6ae], such as arrays. In this way it behaves more like | |
2838 | `assert!`. | |
2839 | * Several timer functions that take duration in milliseconds [are | |
2840 | deprecated in favor of those that take `Duration`][1.6ms]. These | |
2841 | include `Condvar::wait_timeout_ms`, `thread::sleep_ms`, and | |
9cc50fc6 | 2842 | `thread::park_timeout_ms`. |
92a42be0 SL |
2843 | * The algorithm by which `Vec` reserves additional elements was |
2844 | [tweaked to not allocate excessive space][1.6a] while still growing | |
2845 | exponentially. | |
2846 | * `From` conversions are [implemented from integers to floats][1.6f] | |
2847 | in cases where the conversion is lossless. Thus they are not | |
2848 | implemented for 32-bit ints to `f32`, nor for 64-bit ints to `f32` | |
2849 | or `f64`. They are also not implemented for `isize` and `usize` | |
2850 | because the implementations would be platform-specific. `From` is | |
2851 | also implemented from `f32` to `f64`. | |
2852 | * `From<&Path>` and `From<PathBuf>` are implemented for `Cow<Path>`. | |
2853 | * `From<T>` is implemented for `Box<T>`, `Rc<T>` and `Arc<T>`. | |
2854 | * `IntoIterator` is implemented for `&PathBuf` and `&Path`. | |
2855 | * [`BinaryHeap` was refactored][1.6bh] for modest performance | |
2856 | improvements. | |
2857 | * Sorting slices that are already sorted [is 50% faster in some | |
2858 | cases][1.6s]. | |
2859 | ||
2860 | Cargo | |
2861 | ----- | |
2862 | ||
2863 | * Cargo will look in `$CARGO_HOME/bin` for subcommands [by default][1.6c]. | |
2864 | * Cargo build scripts can specify their dependencies by emitting the | |
2865 | [`rerun-if-changed`][1.6rr] key. | |
2866 | * crates.io will reject publication of crates with dependencies that | |
2867 | have a wildcard version constraint. Crates with wildcard | |
2868 | dependencies were seen to cause a variety of problems, as described | |
9cc50fc6 SL |
2869 | in [RFC 1241]. Since 1.5 publication of such crates has emitted a |
2870 | warning. | |
92a42be0 SL |
2871 | * `cargo clean` [accepts a `--release` flag][1.6cc] to clean the |
2872 | release folder. A variety of artifacts that Cargo failed to clean | |
2873 | are now correctly deleted. | |
2874 | ||
2875 | Misc | |
2876 | ---- | |
2877 | ||
2878 | * The `unreachable_code` lint [warns when a function call's argument | |
2879 | diverges][1.6dv]. | |
2880 | * The parser indicates [failures that may be caused by | |
2881 | confusingly-similar Unicode characters][1.6uc] | |
2882 | * Certain macro errors [are reported at definition time][1.6m], not | |
2883 | expansion. | |
2884 | ||
2885 | Compatibility Notes | |
2886 | ------------------- | |
2887 | ||
2888 | * The compiler no longer makes use of the [`RUST_PATH`][1.6rp] | |
2889 | environment variable when locating crates. This was a pre-cargo | |
2890 | feature for integrating with the package manager that was | |
2891 | accidentally never removed. | |
2892 | * [A number of bugs were fixed in the privacy checker][1.6p] that | |
2893 | could cause previously-accepted code to break. | |
2894 | * [Modules and unit/tuple structs may not share the same name][1.6ts]. | |
9cc50fc6 SL |
2895 | * [Bugs in pattern matching unit structs were fixed][1.6us]. The tuple |
2896 | struct pattern syntax (`Foo(..)`) can no longer be used to match | |
2897 | unit structs. This is a warning now, but will become an error in | |
2898 | future releases. Patterns that share the same name as a const are | |
2899 | now an error. | |
92a42be0 SL |
2900 | * A bug was fixed that causes [rustc not to apply default type |
2901 | parameters][1.6xc] when resolving certain method implementations of | |
2902 | traits defined in other crates. | |
2903 | ||
2904 | [1.6a]: https://github.com/rust-lang/rust/pull/29454 | |
2905 | [1.6ae]: https://github.com/rust-lang/rust/pull/29770 | |
2906 | [1.6bh]: https://github.com/rust-lang/rust/pull/29811 | |
2907 | [1.6c]: https://github.com/rust-lang/cargo/pull/2192 | |
2908 | [1.6cc]: https://github.com/rust-lang/cargo/pull/2131 | |
2909 | [1.6co]: http://doc.rust-lang.org/beta/core/index.html | |
2910 | [1.6dv]: https://github.com/rust-lang/rust/pull/30000 | |
2911 | [1.6f]: https://github.com/rust-lang/rust/pull/29129 | |
2912 | [1.6m]: https://github.com/rust-lang/rust/pull/29828 | |
2913 | [1.6ms]: https://github.com/rust-lang/rust/pull/29604 | |
2914 | [1.6p]: https://github.com/rust-lang/rust/pull/29726 | |
2915 | [1.6rp]: https://github.com/rust-lang/rust/pull/30034 | |
2916 | [1.6rr]: https://github.com/rust-lang/cargo/pull/2134 | |
2917 | [1.6s]: https://github.com/rust-lang/rust/pull/29675 | |
2918 | [1.6ts]: https://github.com/rust-lang/rust/issues/21546 | |
2919 | [1.6uc]: https://github.com/rust-lang/rust/pull/29837 | |
2920 | [1.6us]: https://github.com/rust-lang/rust/pull/29383 | |
2921 | [1.6xc]: https://github.com/rust-lang/rust/issues/30123 | |
2922 | [RFC 1184]: https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md | |
2923 | [RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md | |
2924 | [`ErrorKind::UnexpectedEof`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html#variant.UnexpectedEof | |
2925 | [`Iterator::max_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.max_by_key | |
2926 | [`Iterator::min_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.min_by_key | |
2927 | [`Mutex::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.get_mut | |
2928 | [`Mutex::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.into_inner | |
2929 | [`Read::read_exact`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact | |
2930 | [`RwLock::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.get_mut | |
2931 | [`RwLock::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.into_inner | |
2932 | [`Vec::extend_from_slice`]: http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html#method.extend_from_slice | |
2933 | [`collections::binary_heap::BinaryHeap::drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.BinaryHeap.html#method.drain | |
2934 | [`collections::binary_heap::Drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.Drain.html | |
2935 | [`collections::hash_map::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.Drain.html | |
2936 | [`collections::hash_map::HashMap::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.HashMap.html#method.drain | |
2937 | [`collections::hash_set::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.Drain.html | |
2938 | [`collections::hash_set::HashSet::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.HashSet.html#method.drain | |
2939 | [`fs::DirBuilder::create`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.create | |
2940 | [`fs::DirBuilder::new`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.new | |
2941 | [`fs::DirBuilder::recursive`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.recursive | |
2942 | [`fs::DirBuilder`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html | |
2943 | [`os::unix::fs::DirBuilderExt::mode`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode | |
2944 | [`os::unix::fs::DirBuilderExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html | |
2945 | [`string::Drain`]: http://doc.rust-lang.org/nightly/std/string/struct.Drain.html | |
2946 | [`string::String::drain`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.drain | |
2947 | [`vec::Drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Drain.html | |
2948 | [`vec::Vec::drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain | |
2949 | [`vec_deque::Drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.Drain.html | |
2950 | [`vec_deque::VecDeque::drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.VecDeque.html#method.drain | |
2951 | ||
2952 | ||
b039eaaf SL |
2953 | Version 1.5.0 (2015-12-10) |
2954 | ========================== | |
2955 | ||
2956 | * ~700 changes, numerous bugfixes | |
2957 | ||
2958 | Highlights | |
2959 | ---------- | |
2960 | ||
2961 | * Stabilized APIs: | |
2962 | [`BinaryHeap::from`], [`BinaryHeap::into_sorted_vec`], | |
2963 | [`BinaryHeap::into_vec`], [`Condvar::wait_timeout`], | |
2964 | [`FileTypeExt::is_block_device`], [`FileTypeExt::is_char_device`], | |
2965 | [`FileTypeExt::is_fifo`], [`FileTypeExt::is_socket`], | |
2966 | [`FileTypeExt`], [`Formatter::alternate`], [`Formatter::fill`], | |
2967 | [`Formatter::precision`], [`Formatter::sign_aware_zero_pad`], | |
2968 | [`Formatter::sign_minus`], [`Formatter::sign_plus`], | |
2969 | [`Formatter::width`], [`Iterator::cmp`], [`Iterator::eq`], | |
2970 | [`Iterator::ge`], [`Iterator::gt`], [`Iterator::le`], | |
2971 | [`Iterator::lt`], [`Iterator::ne`], [`Iterator::partial_cmp`], | |
2972 | [`Path::canonicalize`], [`Path::exists`], [`Path::is_dir`], | |
2973 | [`Path::is_file`], [`Path::metadata`], [`Path::read_dir`], | |
2974 | [`Path::read_link`], [`Path::symlink_metadata`], | |
2975 | [`Utf8Error::valid_up_to`], [`Vec::resize`], | |
2976 | [`VecDeque::as_mut_slices`], [`VecDeque::as_slices`], | |
2977 | [`VecDeque::insert`], [`VecDeque::shrink_to_fit`], | |
2978 | [`VecDeque::swap_remove_back`], [`VecDeque::swap_remove_front`], | |
2979 | [`slice::split_first_mut`], [`slice::split_first`], | |
2980 | [`slice::split_last_mut`], [`slice::split_last`], | |
2981 | [`char::from_u32_unchecked`], [`fs::canonicalize`], | |
2982 | [`str::MatchIndices`], [`str::RMatchIndices`], | |
2983 | [`str::match_indices`], [`str::rmatch_indices`], | |
2984 | [`str::slice_mut_unchecked`], [`string::ParseError`]. | |
2985 | * Rust applications hosted on crates.io can be installed locally to | |
2986 | `~/.cargo/bin` with the [`cargo install`] command. Among other | |
2987 | things this makes it easier to augment Cargo with new subcommands: | |
2988 | when a binary named e.g. `cargo-foo` is found in `$PATH` it can be | |
2989 | invoked as `cargo foo`. | |
2990 | * Crates with wildcard (`*`) dependencies will [emit warnings when | |
2991 | published][1.5w]. In 1.6 it will no longer be possible to publish | |
2992 | crates with wildcard dependencies. | |
2993 | ||
2994 | Breaking Changes | |
2995 | ---------------- | |
2996 | ||
2997 | * The rules determining when a particular lifetime must outlive | |
2998 | a particular value (known as '[dropck]') have been [modified | |
2999 | to not rely on parametricity][1.5p]. | |
3000 | * [Implementations of `AsRef` and `AsMut` were added to `Box`, `Rc`, | |
3001 | and `Arc`][1.5a]. Because these smart pointer types implement | |
3002 | `Deref`, this causes breakage in cases where the interior type | |
3003 | contains methods of the same name. | |
3004 | * [Correct a bug in Rc/Arc][1.5c] that caused [dropck] to be unaware | |
3005 | that they could drop their content. Soundness fix. | |
3006 | * All method invocations are [properly checked][1.5wf1] for | |
3007 | [well-formedness][1.5wf2]. Soundness fix. | |
3008 | * Traits whose supertraits contain `Self` are [not object | |
3009 | safe][1.5o]. Soundness fix. | |
3010 | * Target specifications support a [`no_default_libraries`][1.5nd] | |
3011 | setting that controls whether `-nodefaultlibs` is passed to the | |
3012 | linker, and in turn the `is_like_windows` setting no longer affects | |
3013 | the `-nodefaultlibs` flag. | |
3014 | * `#[derive(Show)]`, long-deprecated, [has been removed][1.5ds]. | |
3015 | * The `#[inline]` and `#[repr]` attributes [can only appear | |
3016 | in valid locations][1.5at]. | |
3017 | * Native libraries linked from the local crate are [passed to | |
3018 | the linker before native libraries from upstream crates][1.5nl]. | |
3019 | * Two rarely-used attributes, `#[no_debug]` and | |
3020 | `#[omit_gdb_pretty_printer_section]` [are feature gated][1.5fg]. | |
3021 | * Negation of unsigned integers, which has been a warning for | |
3022 | several releases, [is now behind a feature gate and will | |
3023 | generate errors][1.5nu]. | |
3024 | * The parser accidentally accepted visibility modifiers on | |
3025 | enum variants, a bug [which has been fixed][1.5ev]. | |
3026 | * [A bug was fixed that allowed `use` statements to import unstable | |
3027 | features][1.5use]. | |
3028 | ||
3029 | Language | |
3030 | -------- | |
3031 | ||
3032 | * When evaluating expressions at compile-time that are not | |
3033 | compile-time constants (const-evaluating expressions in non-const | |
3034 | contexts), incorrect code such as overlong bitshifts and arithmetic | |
3035 | overflow will [generate a warning instead of an error][1.5ce], | |
3036 | delaying the error until runtime. This will allow the | |
3037 | const-evaluator to be expanded in the future backwards-compatibly. | |
3038 | * The `improper_ctypes` lint [no longer warns about using `isize` and | |
3039 | `usize` in FFI][1.5ict]. | |
3040 | ||
3041 | Libraries | |
3042 | --------- | |
3043 | ||
3044 | * `Arc<T>` and `Rc<T>` are [covariant with respect to `T` instead of | |
3045 | invariant][1.5c]. | |
3046 | * `Default` is [implemented for mutable slices][1.5d]. | |
3047 | * `FromStr` is [implemented for `SockAddrV4` and `SockAddrV6`][1.5s]. | |
3048 | * There are now `From` conversions [between floating point | |
3049 | types][1.5f] where the conversions are lossless. | |
3050 | * Thera are now `From` conversions [between integer types][1.5i] where | |
3051 | the conversions are lossless. | |
3052 | * [`fs::Metadata` implements `Clone`][1.5fs]. | |
3053 | * The `parse` method [accepts a leading "+" when parsing | |
3054 | integers][1.5pi]. | |
3055 | * [`AsMut` is implemented for `Vec`][1.5am]. | |
3056 | * The `clone_from` implementations for `String` and `BinaryHeap` [have | |
3057 | been optimized][1.5cf] and no longer rely on the default impl. | |
3058 | * The `extern "Rust"`, `extern "C"`, `unsafe extern "Rust"` and | |
3059 | `unsafe extern "C"` function types now [implement `Clone`, | |
3060 | `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and | |
3061 | `fmt::Debug` for up to 12 arguments][1.5fp]. | |
3062 | * [Dropping `Vec`s is much faster in unoptimized builds when the | |
3063 | element types don't implement `Drop`][1.5dv]. | |
3064 | * A bug that caused in incorrect behavior when [combining `VecDeque` | |
3065 | with zero-sized types][1.5vdz] was resolved. | |
3066 | * [`PartialOrd` for slices is faster][1.5po]. | |
3067 | ||
3068 | Miscellaneous | |
3069 | ------------- | |
3070 | ||
3071 | * [Crate metadata size was reduced by 20%][1.5md]. | |
3072 | * [Improvements to code generation reduced the size of libcore by 3.3 | |
3073 | MB and rustc's memory usage by 18MB][1.5m]. | |
3074 | * [Improvements to deref translation increased performance in | |
3075 | unoptimized builds][1.5dr]. | |
3076 | * Various errors in trait resolution [are deduplicated to only be | |
3077 | reported once][1.5te]. | |
3078 | * Rust has preliminary [support for rumprun kernels][1.5rr]. | |
3079 | * Rust has preliminary [support for NetBSD on amd64][1.5na]. | |
3080 | ||
3081 | [1.5use]: https://github.com/rust-lang/rust/pull/28364 | |
3082 | [1.5po]: https://github.com/rust-lang/rust/pull/28436 | |
3083 | [1.5ev]: https://github.com/rust-lang/rust/pull/28442 | |
3084 | [1.5nu]: https://github.com/rust-lang/rust/pull/28468 | |
3085 | [1.5dr]: https://github.com/rust-lang/rust/pull/28491 | |
3086 | [1.5vdz]: https://github.com/rust-lang/rust/pull/28494 | |
3087 | [1.5md]: https://github.com/rust-lang/rust/pull/28521 | |
3088 | [1.5fg]: https://github.com/rust-lang/rust/pull/28522 | |
3089 | [1.5dv]: https://github.com/rust-lang/rust/pull/28531 | |
3090 | [1.5na]: https://github.com/rust-lang/rust/pull/28543 | |
3091 | [1.5fp]: https://github.com/rust-lang/rust/pull/28560 | |
3092 | [1.5rr]: https://github.com/rust-lang/rust/pull/28593 | |
3093 | [1.5cf]: https://github.com/rust-lang/rust/pull/28602 | |
3094 | [1.5nl]: https://github.com/rust-lang/rust/pull/28605 | |
3095 | [1.5te]: https://github.com/rust-lang/rust/pull/28645 | |
3096 | [1.5at]: https://github.com/rust-lang/rust/pull/28650 | |
3097 | [1.5am]: https://github.com/rust-lang/rust/pull/28663 | |
3098 | [1.5m]: https://github.com/rust-lang/rust/pull/28778 | |
3099 | [1.5ict]: https://github.com/rust-lang/rust/pull/28779 | |
3100 | [1.5a]: https://github.com/rust-lang/rust/pull/28811 | |
3101 | [1.5pi]: https://github.com/rust-lang/rust/pull/28826 | |
3102 | [1.5ce]: https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md | |
3103 | [1.5p]: https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md | |
3104 | [1.5i]: https://github.com/rust-lang/rust/pull/28921 | |
3105 | [1.5fs]: https://github.com/rust-lang/rust/pull/29021 | |
3106 | [1.5f]: https://github.com/rust-lang/rust/pull/29129 | |
3107 | [1.5ds]: https://github.com/rust-lang/rust/pull/29148 | |
3108 | [1.5s]: https://github.com/rust-lang/rust/pull/29190 | |
3109 | [1.5d]: https://github.com/rust-lang/rust/pull/29245 | |
3110 | [1.5o]: https://github.com/rust-lang/rust/pull/29259 | |
3111 | [1.5nd]: https://github.com/rust-lang/rust/pull/28578 | |
3112 | [1.5wf2]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md | |
3113 | [1.5wf1]: https://github.com/rust-lang/rust/pull/28669 | |
3114 | [dropck]: https://doc.rust-lang.org/nightly/nomicon/dropck.html | |
3115 | [1.5c]: https://github.com/rust-lang/rust/pull/29110 | |
3116 | [1.5w]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md | |
3117 | [`cargo install`]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md | |
3118 | [`BinaryHeap::from`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html#method.from | |
3119 | [`BinaryHeap::into_sorted_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_sorted_vec | |
3120 | [`BinaryHeap::into_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_vec | |
3121 | [`Condvar::wait_timeout`]: http://doc.rust-lang.org/nightly/std/sync/struct.Condvar.html#method.wait_timeout | |
3122 | [`FileTypeExt::is_block_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_block_device | |
3123 | [`FileTypeExt::is_char_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_char_device | |
3124 | [`FileTypeExt::is_fifo`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_fifo | |
3125 | [`FileTypeExt::is_socket`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_socket | |
3126 | [`FileTypeExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html | |
3127 | [`Formatter::alternate`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.alternate | |
3128 | [`Formatter::fill`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.fill | |
3129 | [`Formatter::precision`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.precision | |
3130 | [`Formatter::sign_aware_zero_pad`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_aware_zero_pad | |
3131 | [`Formatter::sign_minus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_minus | |
3132 | [`Formatter::sign_plus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_plus | |
3133 | [`Formatter::width`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.width | |
3134 | [`Iterator::cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cmp | |
3135 | [`Iterator::eq`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.eq | |
3136 | [`Iterator::ge`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ge | |
3137 | [`Iterator::gt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.gt | |
3138 | [`Iterator::le`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.le | |
3139 | [`Iterator::lt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.lt | |
3140 | [`Iterator::ne`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ne | |
3141 | [`Iterator::partial_cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.partial_cmp | |
3142 | [`Path::canonicalize`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.canonicalize | |
3143 | [`Path::exists`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.exists | |
3144 | [`Path::is_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_dir | |
3145 | [`Path::is_file`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_file | |
3146 | [`Path::metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.metadata | |
3147 | [`Path::read_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_dir | |
3148 | [`Path::read_link`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_link | |
3149 | [`Path::symlink_metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.symlink_metadata | |
3150 | [`Utf8Error::valid_up_to`]: http://doc.rust-lang.org/nightly/core/str/struct.Utf8Error.html#method.valid_up_to | |
3151 | [`Vec::resize`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.resize | |
3152 | [`VecDeque::as_mut_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_mut_slices | |
3153 | [`VecDeque::as_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_slices | |
3154 | [`VecDeque::insert`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.insert | |
3155 | [`VecDeque::shrink_to_fit`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.shrink_to_fit | |
3156 | [`VecDeque::swap_remove_back`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_back | |
3157 | [`VecDeque::swap_remove_front`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_front | |
3158 | [`slice::split_first_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first_mut | |
3159 | [`slice::split_first`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first | |
3160 | [`slice::split_last_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last_mut | |
3161 | [`slice::split_last`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last | |
3162 | [`char::from_u32_unchecked`]: http://doc.rust-lang.org/nightly/std/char/fn.from_u32_unchecked.html | |
3163 | [`fs::canonicalize`]: http://doc.rust-lang.org/nightly/std/fs/fn.canonicalize.html | |
3164 | [`str::MatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.MatchIndices.html | |
3165 | [`str::RMatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.RMatchIndices.html | |
3166 | [`str::match_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices | |
3167 | [`str::rmatch_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices | |
3168 | [`str::slice_mut_unchecked`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked | |
3169 | [`string::ParseError`]: http://doc.rust-lang.org/nightly/std/string/enum.ParseError.html | |
3170 | ||
3171 | Version 1.4.0 (2015-10-29) | |
3172 | ========================== | |
e9174d1e SL |
3173 | |
3174 | * ~1200 changes, numerous bugfixes | |
3175 | ||
3176 | Highlights | |
3177 | ---------- | |
3178 | ||
3179 | * Windows builds targeting the 64-bit MSVC ABI and linker (instead of | |
3180 | GNU) are now supported and recommended for use. | |
3181 | ||
3182 | Breaking Changes | |
3183 | ---------------- | |
3184 | ||
3185 | * [Several changes have been made to fix type soundness and improve | |
3186 | the behavior of associated types][sound]. See [RFC 1214]. Although | |
3187 | we have mostly introduced these changes as warnings this release, to | |
3188 | become errors next release, there are still some scenarios that will | |
3189 | see immediate breakage. | |
3190 | * [The `str::lines` and `BufRead::lines` iterators treat `\r\n` as | |
3191 | line breaks in addition to `\n`][crlf]. | |
3192 | * [Loans of `'static` lifetime extend to the end of a function][stat]. | |
b039eaaf SL |
3193 | * [`str::parse` no longer introduces avoidable rounding error when |
3194 | parsing floating point numbers. Together with earlier changes to | |
3195 | float formatting/output, "round trips" like f.to_string().parse() | |
3196 | now preserve the value of f exactly. Additionally, leading plus | |
3197 | signs are now accepted][fp3]. | |
3198 | ||
e9174d1e SL |
3199 | |
3200 | Language | |
3201 | -------- | |
3202 | ||
3203 | * `use` statements that import multiple items [can now rename | |
3204 | them][i], as in `use foo::{bar as kitten, baz as puppy}`. | |
3205 | * [Binops work correctly on fat pointers][binfat]. | |
3206 | * `pub extern crate`, which does not behave as expected, [issues a | |
3207 | warning][pec] until a better solution is found. | |
3208 | ||
3209 | Libraries | |
3210 | --------- | |
3211 | ||
3212 | * [Many APIs were stabilized][stab]: `<Box<str>>::into_string`, | |
3213 | [`Arc::downgrade`], [`Arc::get_mut`], [`Arc::make_mut`], | |
3214 | [`Arc::try_unwrap`], [`Box::from_raw`], [`Box::into_raw`], [`CStr::to_str`], | |
3215 | [`CStr::to_string_lossy`], [`CString::from_raw`], [`CString::into_raw`], | |
3216 | [`IntoRawFd::into_raw_fd`], [`IntoRawFd`], | |
3217 | `IntoRawHandle::into_raw_handle`, `IntoRawHandle`, | |
3218 | `IntoRawSocket::into_raw_socket`, `IntoRawSocket`, [`Rc::downgrade`], | |
3219 | [`Rc::get_mut`], [`Rc::make_mut`], [`Rc::try_unwrap`], [`Result::expect`], | |
3220 | [`String::into_boxed_str`], [`TcpStream::read_timeout`], | |
3221 | [`TcpStream::set_read_timeout`], [`TcpStream::set_write_timeout`], | |
3222 | [`TcpStream::write_timeout`], [`UdpSocket::read_timeout`], | |
3223 | [`UdpSocket::set_read_timeout`], [`UdpSocket::set_write_timeout`], | |
3224 | [`UdpSocket::write_timeout`], `Vec::append`, `Vec::split_off`, | |
3225 | [`VecDeque::append`], [`VecDeque::retain`], [`VecDeque::split_off`], | |
3226 | [`rc::Weak::upgrade`], [`rc::Weak`], [`slice::Iter::as_slice`], | |
3227 | [`slice::IterMut::into_slice`], [`str::CharIndices::as_str`], | |
3228 | [`str::Chars::as_str`], [`str::split_at_mut`], [`str::split_at`], | |
3229 | [`sync::Weak::upgrade`], [`sync::Weak`], [`thread::park_timeout`], | |
3230 | [`thread::sleep`]. | |
3231 | * [Some APIs were deprecated][dep]: `BTreeMap::with_b`, | |
3232 | `BTreeSet::with_b`, `Option::as_mut_slice`, `Option::as_slice`, | |
3233 | `Result::as_mut_slice`, `Result::as_slice`, `f32::from_str_radix`, | |
3234 | `f64::from_str_radix`. | |
3235 | * [Reverse-searching strings is faster with the 'two-way' | |
3236 | algorithm][s]. | |
3237 | * [`std::io::copy` allows `?Sized` arguments][cc]. | |
3238 | * The `Windows`, `Chunks`, and `ChunksMut` iterators over slices all | |
3239 | [override `count`, `nth` and `last` with an O(1) | |
3240 | implementation][it]. | |
3241 | * [`Default` is implemented for arrays up to `[T; 32]`][d]. | |
3242 | * [`IntoRawFd` has been added to the Unix-specific prelude, | |
3243 | `IntoRawSocket` and `IntoRawHandle` to the Windows-specific | |
3244 | prelude][pr]. | |
3245 | * [`Extend<String>` and `FromIterator<String` are both implemented for | |
3246 | `String`][es]. | |
b039eaaf SL |
3247 | * [`IntoIterator` is implemented for references to `Option` and |
3248 | `Result`][into2]. | |
e9174d1e | 3249 | * [`HashMap` and `HashSet` implement `Extend<&T>` where `T: |
b039eaaf SL |
3250 | Copy`][ext] as part of [RFC 839]. This will cause type inferance |
3251 | breakage in rare situations. | |
e9174d1e SL |
3252 | * [`BinaryHeap` implements `Debug`][bh2]. |
3253 | * [`Borrow` and `BorrowMut` are implemented for fixed-size | |
3254 | arrays][bm]. | |
b039eaaf | 3255 | * [`extern fn`s with the "Rust" and "C" ABIs implement common |
e9174d1e SL |
3256 | traits including `Eq`, `Ord`, `Debug`, `Hash`][fp]. |
3257 | * [String comparison is faster][faststr]. | |
b039eaaf SL |
3258 | * `&mut T` where `T: std::fmt::Write` [also implements |
3259 | `std::fmt::Write`][mutw]. | |
3260 | * [A stable regression in `VecDeque::push_back` and other | |
3261 | capicity-altering methods that caused panics for zero-sized types | |
3262 | was fixed][vd]. | |
e9174d1e SL |
3263 | * [Function pointers implement traits for up to 12 parameters][fp2]. |
3264 | ||
3265 | Miscellaneous | |
3266 | ------------- | |
3267 | ||
3268 | * The compiler [no longer uses the 'morestack' feature to prevent | |
3269 | stack overflow][mm]. Instead it uses guard pages and stack | |
3270 | probes (though stack probes are not yet implemented on any platform | |
3271 | but Windows). | |
3272 | * [The compiler matches traits faster when projections are involved][p]. | |
3273 | * The 'improper_ctypes' lint [no longer warns about use of `isize` and | |
3274 | `usize`][ffi]. | |
3275 | * [Cargo now displays useful information about what its doing during | |
3276 | `cargo update`][cu]. | |
3277 | ||
3278 | [`Arc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.downgrade | |
3279 | [`Arc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.make_mut | |
3280 | [`Arc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.get_mut | |
3281 | [`Arc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.try_unwrap | |
3282 | [`Box::from_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.from_raw | |
3283 | [`Box::into_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.into_raw | |
3284 | [`CStr::to_str`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_str | |
3285 | [`CStr::to_string_lossy`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_string_lossy | |
3286 | [`CString::from_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.from_raw | |
3287 | [`CString::into_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_raw | |
3288 | [`IntoRawFd::into_raw_fd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html#tymethod.into_raw_fd | |
3289 | [`IntoRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html | |
3290 | [`Rc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.downgrade | |
3291 | [`Rc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.get_mut | |
3292 | [`Rc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.make_mut | |
3293 | [`Rc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.try_unwrap | |
3294 | [`Result::expect`]: http://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.expect | |
3295 | [`String::into_boxed_str`]: http://doc.rust-lang.org/nightly/collections/string/struct.String.html#method.into_boxed_str | |
3296 | [`TcpStream::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout | |
3297 | [`TcpStream::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout | |
3298 | [`TcpStream::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout | |
3299 | [`TcpStream::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout | |
3300 | [`UdpSocket::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout | |
3301 | [`UdpSocket::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout | |
3302 | [`UdpSocket::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout | |
3303 | [`UdpSocket::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout | |
3304 | [`VecDeque::append`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.append | |
3305 | [`VecDeque::retain`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.retain | |
3306 | [`VecDeque::split_off`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.split_off | |
3307 | [`rc::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html#method.upgrade | |
3308 | [`rc::Weak`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html | |
3309 | [`slice::Iter::as_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#method.as_slice | |
3310 | [`slice::IterMut::into_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.IterMut.html#method.into_slice | |
3311 | [`str::CharIndices::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.CharIndices.html#method.as_str | |
3312 | [`str::Chars::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.Chars.html#method.as_str | |
3313 | [`str::split_at_mut`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut | |
3314 | [`str::split_at`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at | |
3315 | [`sync::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html#method.upgrade | |
3316 | [`sync::Weak`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html | |
3317 | [`thread::park_timeout`]: http://doc.rust-lang.org/nightly/std/thread/fn.park_timeout.html | |
3318 | [`thread::sleep`]: http://doc.rust-lang.org/nightly/std/thread/fn.sleep.html | |
3319 | [bh2]: https://github.com/rust-lang/rust/pull/28156 | |
3320 | [binfat]: https://github.com/rust-lang/rust/pull/28270 | |
3321 | [bm]: https://github.com/rust-lang/rust/pull/28197 | |
3322 | [cc]: https://github.com/rust-lang/rust/pull/27531 | |
3323 | [crlf]: https://github.com/rust-lang/rust/pull/28034 | |
3324 | [cu]: https://github.com/rust-lang/cargo/pull/1931 | |
3325 | [d]: https://github.com/rust-lang/rust/pull/27825 | |
3326 | [dep]: https://github.com/rust-lang/rust/pull/28339 | |
3327 | [es]: https://github.com/rust-lang/rust/pull/27956 | |
3328 | [ext]: https://github.com/rust-lang/rust/pull/28094 | |
3329 | [faststr]: https://github.com/rust-lang/rust/pull/28338 | |
3330 | [ffi]: https://github.com/rust-lang/rust/pull/28779 | |
3331 | [fp]: https://github.com/rust-lang/rust/pull/28268 | |
3332 | [fp2]: https://github.com/rust-lang/rust/pull/28560 | |
b039eaaf | 3333 | [fp3]: https://github.com/rust-lang/rust/pull/27307 |
e9174d1e | 3334 | [i]: https://github.com/rust-lang/rust/pull/27451 |
b039eaaf | 3335 | [into2]: https://github.com/rust-lang/rust/pull/28039 |
e9174d1e SL |
3336 | [it]: https://github.com/rust-lang/rust/pull/27652 |
3337 | [mm]: https://github.com/rust-lang/rust/pull/27338 | |
3338 | [mutw]: https://github.com/rust-lang/rust/pull/28368 | |
3339 | [sound]: https://github.com/rust-lang/rust/pull/27641 | |
3340 | [p]: https://github.com/rust-lang/rust/pull/27866 | |
3341 | [pec]: https://github.com/rust-lang/rust/pull/28486 | |
3342 | [pr]: https://github.com/rust-lang/rust/pull/27896 | |
3343 | [RFC 839]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md | |
3344 | [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md | |
3345 | [s]: https://github.com/rust-lang/rust/pull/27474 | |
3346 | [stab]: https://github.com/rust-lang/rust/pull/28339 | |
3347 | [stat]: https://github.com/rust-lang/rust/pull/28321 | |
3348 | [vd]: https://github.com/rust-lang/rust/pull/28494 | |
3349 | ||
3350 | Version 1.3.0 (2015-09-17) | |
c1a9b12d SL |
3351 | ============================== |
3352 | ||
3353 | * ~900 changes, numerous bugfixes | |
3354 | ||
3355 | Highlights | |
3356 | ---------- | |
3357 | ||
3358 | * The [new object lifetime defaults][nold] have been [turned | |
3359 | on][nold2] after a cycle of warnings about the change. Now types | |
3360 | like `&'a Box<Trait>` (or `&'a Rc<Trait>`, etc) will change from | |
3361 | being interpreted as `&'a Box<Trait+'a>` to `&'a | |
3362 | Box<Trait+'static>`. | |
3363 | * [The Rustonomicon][nom] is a new book in the official documentation | |
3364 | that dives into writing unsafe Rust. | |
3365 | * The [`Duration`] API, [has been stabilized][ds]. This basic unit of | |
3366 | timekeeping is employed by other std APIs, as well as out-of-tree | |
3367 | time crates. | |
3368 | ||
3369 | Breaking Changes | |
3370 | ---------------- | |
3371 | ||
3372 | * The [new object lifetime defaults][nold] have been [turned | |
3373 | on][nold2] after a cycle of warnings about the change. | |
3374 | * There is a known [regression][lr] in how object lifetime elision is | |
3375 | interpreted, the proper solution for which is undetermined. | |
3376 | * The `#[prelude_import]` attribute, an internal implementation | |
3377 | detail, was accidentally stabilized previously. [It has been put | |
3378 | behind the `prelude_import` feature gate][pi]. This change is | |
3379 | believed to break no existing code. | |
3380 | * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is | |
3381 | [more sane for dynamically sized types][dst3]. Code that relied on | |
3382 | the previous behavior is thought to be broken. | |
3383 | * The `dropck` rules, which checks that destructors can't access | |
3384 | destroyed values, [have been updated][dropck] to match the | |
3385 | [RFC][dropckrfc]. This fixes some soundness holes, and as such will | |
3386 | cause some previously-compiling code to no longer build. | |
3387 | ||
3388 | Language | |
3389 | -------- | |
3390 | ||
3391 | * The [new object lifetime defaults][nold] have been [turned | |
3392 | on][nold2] after a cycle of warnings about the change. | |
3393 | * Semicolons may [now follow types and paths in | |
3394 | macros](https://github.com/rust-lang/rust/pull/27000). | |
3395 | * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is | |
3396 | [more sane for dynamically sized types][dst3]. Code that relied on | |
3397 | the previous behavior is not known to exist, and suspected to be | |
3398 | broken. | |
3399 | * `'static` variables [may now be recursive][st]. | |
3400 | * `ref` bindings choose between [`Deref`] and [`DerefMut`] | |
3401 | implementations correctly. | |
3402 | * The `dropck` rules, which checks that destructors can't access | |
3403 | destroyed values, [have been updated][dropck] to match the | |
3404 | [RFC][dropckrfc]. | |
3405 | ||
3406 | Libraries | |
3407 | --------- | |
3408 | ||
3409 | * The [`Duration`] API, [has been stabilized][ds], as well as the | |
3410 | `std::time` module, which presently contains only `Duration`. | |
3411 | * `Box<str>` and `Box<[T]>` both implement `Clone`. | |
3412 | * The owned C string, [`CString`], implements [`Borrow`] and the | |
3413 | borrowed C string, [`CStr`], implements [`ToOwned`]. The two of | |
3414 | these allow C strings to be borrowed and cloned in generic code. | |
3415 | * [`CStr`] implements [`Debug`]. | |
3416 | * [`AtomicPtr`] implements [`Debug`]. | |
3417 | * [`Error`] trait objects [can be downcast to their concrete types][e] | |
3418 | in many common configurations, using the [`is`], [`downcast`], | |
3419 | [`downcast_ref`] and [`downcast_mut`] methods, similarly to the | |
3420 | [`Any`] trait. | |
3421 | * Searching for substrings now [employs the two-way algorithm][search] | |
3422 | instead of doing a naive search. This gives major speedups to a | |
3423 | number of methods, including [`contains`][sc], [`find`][sf], | |
3424 | [`rfind`][srf], [`split`][ss]. [`starts_with`][ssw] and | |
3425 | [`ends_with`][sew] are also faster. | |
3426 | * The performance of `PartialEq` for slices is [much faster][ps]. | |
3427 | * The [`Hash`] trait offers the default method, [`hash_slice`], which | |
3428 | is overridden and optimized by the implementations for scalars. | |
3429 | * The [`Hasher`] trait now has a number of specialized `write_*` | |
3430 | methods for primitive types, for efficiency. | |
3431 | * The I/O-specific error type, [`std::io::Error`][ie], gained a set of | |
3432 | methods for accessing the 'inner error', if any: [`get_ref`][iegr], | |
3433 | [`get_mut`][iegm], [`into_inner`][ieii]. As well, the implementation | |
3434 | of [`std::error::Error::cause`][iec] also delegates to the inner | |
3435 | error. | |
3436 | * [`process::Child`][pc] gained the [`id`] method, which returns a | |
3437 | `u32` representing the platform-specific process identifier. | |
3438 | * The [`connect`] method on slices is deprecated, replaced by the new | |
3439 | [`join`] method (note that both of these are on the *unstable* | |
3440 | [`SliceConcatExt`] trait, but through the magic of the prelude are | |
3441 | available to stable code anyway). | |
3442 | * The [`Div`] operator is implemented for [`Wrapping`] types. | |
3443 | * [`DerefMut` is implemented for `String`][dms]. | |
3444 | * Performance of SipHash (the default hasher for `HashMap`) is | |
3445 | [better for long data][sh]. | |
3446 | * [`AtomicPtr`] implements [`Send`]. | |
3447 | * The [`read_to_end`] implementations for [`Stdin`] and [`File`] | |
3448 | are now [specialized to use uninitalized buffers for increased | |
3449 | performance][rte]. | |
3450 | * Lifetime parameters of foreign functions [are now resolved | |
3451 | properly][f]. | |
3452 | ||
3453 | Misc | |
3454 | ---- | |
3455 | ||
3456 | * Rust can now, with some coercion, [produce programs that run on | |
3457 | Windows XP][xp], though XP is not considered a supported platform. | |
3458 | * Porting Rust on Windows from the GNU toolchain to MSVC continues | |
3459 | ([1][win1], [2][win2], [3][win3], [4][win4]). It is still not | |
3460 | recommended for use in 1.3, though should be fully-functional | |
3461 | in the [64-bit 1.4 beta][b14]. | |
3462 | * On Fedora-based systems installation will [properly configure the | |
3463 | dynamic linker][fl]. | |
3464 | * The compiler gained many new extended error descriptions, which can | |
3465 | be accessed with the `--explain` flag. | |
3466 | * The `dropck` pass, which checks that destructors can't access | |
3467 | destroyed values, [has been rewritten][dropck]. This fixes some | |
3468 | soundness holes, and as such will cause some previously-compiling | |
3469 | code to no longer build. | |
3470 | * `rustc` now uses [LLVM to write archive files where possible][ar]. | |
3471 | Eventually this will eliminate the compiler's dependency on the ar | |
3472 | utility. | |
3473 | * Rust has [preliminary support for i686 FreeBSD][fb] (it has long | |
3474 | supported FreeBSD on x86_64). | |
3475 | * The [`unused_mut`][lum], [`unconditional_recursion`][lur], | |
3476 | [`improper_ctypes`][lic], and [`negate_unsigned`][lnu] lints are | |
3477 | more strict. | |
3478 | * If landing pads are disabled (with `-Z no-landing-pads`), [`panic!` | |
3479 | will kill the process instead of leaking][nlp]. | |
3480 | ||
3481 | [`Any`]: http://doc.rust-lang.org/nightly/std/any/trait.Any.html | |
3482 | [`AtomicPtr`]: http://doc.rust-lang.org/nightly/std/sync/atomic/struct.AtomicPtr.html | |
3483 | [`Borrow`]: http://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html | |
3484 | [`CStr`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html | |
3485 | [`CString`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html | |
3486 | [`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html | |
3487 | [`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html | |
3488 | [`Deref`]: http://doc.rust-lang.org/nightly/std/ops/trait.Deref.html | |
3489 | [`Div`]: http://doc.rust-lang.org/nightly/std/ops/trait.Div.html | |
3490 | [`Duration`]: http://doc.rust-lang.org/nightly/std/time/struct.Duration.html | |
3491 | [`Error`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html | |
3492 | [`File`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html | |
3493 | [`Hash`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html | |
e9174d1e | 3494 | [`Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html |
c1a9b12d SL |
3495 | [`Send`]: http://doc.rust-lang.org/nightly/std/marker/trait.Send.html |
3496 | [`SliceConcatExt`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html | |
3497 | [`Stdin`]: http://doc.rust-lang.org/nightly/std/io/struct.Stdin.html | |
3498 | [`ToOwned`]: http://doc.rust-lang.org/nightly/std/borrow/trait.ToOwned.html | |
3499 | [`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html | |
3500 | [`connect`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.connect | |
3501 | [`downcast_mut`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_mut | |
3502 | [`downcast_ref`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_ref | |
3503 | [`downcast`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast | |
3504 | [`hash_slice`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice | |
3505 | [`id`]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html#method.id | |
3506 | [`is`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.is | |
3507 | [`join`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.join | |
3508 | [`read_to_end`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end | |
3509 | [ar]: https://github.com/rust-lang/rust/pull/26926 | |
3510 | [b14]: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi | |
3511 | [dms]: https://github.com/rust-lang/rust/pull/26241 | |
3512 | [dropck]: https://github.com/rust-lang/rust/pull/27261 | |
3513 | [dropckrfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md | |
3514 | [ds]: https://github.com/rust-lang/rust/pull/26818 | |
3515 | [dst1]: http://doc.rust-lang.org/nightly/std/mem/fn.size_of_val.html | |
3516 | [dst2]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of_val.html | |
3517 | [dst3]: https://github.com/rust-lang/rust/pull/27351 | |
3518 | [e]: https://github.com/rust-lang/rust/pull/24793 | |
3519 | [f]: https://github.com/rust-lang/rust/pull/26588 | |
3520 | [fb]: https://github.com/rust-lang/rust/pull/26959 | |
3521 | [fl]: https://github.com/rust-lang/rust-installer/pull/41 | |
3522 | [hs]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice | |
3523 | [ie]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html | |
3524 | [iec]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.cause | |
3525 | [iegm]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_mut | |
3526 | [iegr]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_ref | |
3527 | [ieii]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.into_inner | |
3528 | [lic]: https://github.com/rust-lang/rust/pull/26583 | |
3529 | [lnu]: https://github.com/rust-lang/rust/pull/27026 | |
3530 | [lr]: https://github.com/rust-lang/rust/issues/27248 | |
3531 | [lum]: https://github.com/rust-lang/rust/pull/26378 | |
3532 | [lur]: https://github.com/rust-lang/rust/pull/26783 | |
3533 | [nlp]: https://github.com/rust-lang/rust/pull/27176 | |
3534 | [nold2]: https://github.com/rust-lang/rust/pull/27045 | |
3535 | [nold]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md | |
3536 | [nom]: http://doc.rust-lang.org/nightly/nomicon/ | |
3537 | [pc]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html | |
3538 | [pi]: https://github.com/rust-lang/rust/pull/26699 | |
3539 | [ps]: https://github.com/rust-lang/rust/pull/26884 | |
3540 | [rte]: https://github.com/rust-lang/rust/pull/26950 | |
3541 | [sc]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.contains | |
3542 | [search]: https://github.com/rust-lang/rust/pull/26327 | |
3543 | [sew]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.ends_with | |
3544 | [sf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.find | |
3545 | [sh]: https://github.com/rust-lang/rust/pull/27280 | |
3546 | [srf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rfind | |
3547 | [ss]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split | |
3548 | [ssw]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.starts_with | |
3549 | [st]: https://github.com/rust-lang/rust/pull/26630 | |
3550 | [win1]: https://github.com/rust-lang/rust/pull/26569 | |
3551 | [win2]: https://github.com/rust-lang/rust/pull/26741 | |
3552 | [win3]: https://github.com/rust-lang/rust/pull/26741 | |
3553 | [win4]: https://github.com/rust-lang/rust/pull/27210 | |
3554 | [xp]: https://github.com/rust-lang/rust/pull/26569 | |
3555 | ||
e9174d1e SL |
3556 | Version 1.2.0 (2015-08-07) |
3557 | ========================== | |
62682a34 SL |
3558 | |
3559 | * ~1200 changes, numerous bugfixes | |
3560 | ||
3561 | Highlights | |
3562 | ---------- | |
3563 | ||
3564 | * [Dynamically-sized-type coercions][dst] allow smart pointer types | |
3565 | like `Rc` to contain types without a fixed size, arrays and trait | |
3566 | objects, finally enabling use of `Rc<[T]>` and completing the | |
3567 | implementation of DST. | |
3568 | * [Parallel codegen][parcodegen] is now working again, which can | |
3569 | substantially speed up large builds in debug mode; It also gets | |
3570 | another ~33% speedup when bootstrapping on a 4 core machine (using 8 | |
3571 | jobs). It's not enabled by default, but will be "in the near | |
3572 | future". It can be activated with the `-C codegen-units=N` flag to | |
3573 | `rustc`. | |
3574 | * This is the first release with [experimental support for linking | |
3575 | with the MSVC linker and lib C on Windows (instead of using the GNU | |
3576 | variants via MinGW)][win]. It is yet recommended only for the most | |
3577 | intrepid Rusticians. | |
3578 | * Benchmark compilations are showing a 30% improvement in | |
3579 | bootstrapping over 1.1. | |
3580 | ||
3581 | Breaking Changes | |
3582 | ---------------- | |
3583 | ||
3584 | * The [`to_uppercase`] and [`to_lowercase`] methods on `char` now do | |
3585 | unicode case mapping, which is a previously-planned change in | |
3586 | behavior and considered a bugfix. | |
3587 | * [`mem::align_of`] now specifies [the *minimum alignment* for | |
3588 | T][align], which is usually the alignment programs are interested | |
3589 | in, and the same value reported by clang's | |
3590 | `alignof`. [`mem::min_align_of`] is deprecated. This is not known to | |
3591 | break real code. | |
3592 | * [The `#[packed]` attribute is no longer silently accepted by the | |
3593 | compiler][packed]. This attribute did nothing and code that | |
3594 | mentioned it likely did not work as intended. | |
3595 | * Associated type defaults are [now behind the | |
3596 | `associated_type_defaults` feature gate][ad]. In 1.1 associated type | |
3597 | defaults *did not work*, but could be mentioned syntactically. As | |
3598 | such this breakage has minimal impact. | |
3599 | ||
3600 | Language | |
3601 | -------- | |
3602 | ||
3603 | * Patterns with `ref mut` now correctly invoke [`DerefMut`] when | |
3604 | matching against dereferencable values. | |
3605 | ||
3606 | Libraries | |
3607 | --------- | |
3608 | ||
3609 | * The [`Extend`] trait, which grows a collection from an iterator, is | |
3610 | implemented over iterators of references, for `String`, `Vec`, | |
3611 | `LinkedList`, `VecDeque`, `EnumSet`, `BinaryHeap`, `VecMap`, | |
3612 | `BTreeSet` and `BTreeMap`. [RFC][extend-rfc]. | |
3613 | * The [`iter::once`] function returns an iterator that yields a single | |
3614 | element, and [`iter::empty`] returns an iterator that yields no | |
3615 | elements. | |
3616 | * The [`matches`] and [`rmatches`] methods on `str` return iterators | |
3617 | over substring matches. | |
3618 | * [`Cell`] and [`RefCell`] both implement `Eq`. | |
3619 | * A number of methods for wrapping arithmetic are added to the | |
3620 | integral types, [`wrapping_div`], [`wrapping_rem`], | |
3621 | [`wrapping_neg`], [`wrapping_shl`], [`wrapping_shr`]. These are in | |
3622 | addition to the existing [`wrapping_add`], [`wrapping_sub`], and | |
3623 | [`wrapping_mul`] methods, and alternatives to the [`Wrapping`] | |
3624 | type.. It is illegal for the default arithmetic operations in Rust | |
3625 | to overflow; the desire to wrap must be explicit. | |
3626 | * The `{:#?}` formatting specifier [displays the alternate, | |
3627 | pretty-printed][debugfmt] form of the `Debug` formatter. This | |
3628 | feature was actually introduced prior to 1.0 with little | |
3629 | fanfare. | |
3630 | * [`fmt::Formatter`] implements [`fmt::Write`], a `fmt`-specific trait | |
3631 | for writing data to formatted strings, similar to [`io::Write`]. | |
3632 | * [`fmt::Formatter`] adds 'debug builder' methods, [`debug_struct`], | |
3633 | [`debug_tuple`], [`debug_list`], [`debug_set`], [`debug_map`]. These | |
3634 | are used by code generators to emit implementations of [`Debug`]. | |
3635 | * `str` has new [`to_uppercase`][strup] and [`to_lowercase`][strlow] | |
3636 | methods that convert case, following Unicode case mapping. | |
3637 | * It is now easier to handle poisoned locks. The [`PoisonError`] | |
3638 | type, returned by failing lock operations, exposes `into_inner`, | |
3639 | `get_ref`, and `get_mut`, which all give access to the inner lock | |
3640 | guard, and allow the poisoned lock to continue to operate. The | |
3641 | `is_poisoned` method of [`RwLock`] and [`Mutex`] can poll for a | |
3642 | poisoned lock without attempting to take the lock. | |
3643 | * On Unix the [`FromRawFd`] trait is implemented for [`Stdio`], and | |
3644 | [`AsRawFd`] for [`ChildStdin`], [`ChildStdout`], [`ChildStderr`]. | |
3645 | On Windows the `FromRawHandle` trait is implemented for `Stdio`, | |
3646 | and `AsRawHandle` for `ChildStdin`, `ChildStdout`, | |
3647 | `ChildStderr`. | |
3648 | * [`io::ErrorKind`] has a new variant, `InvalidData`, which indicates | |
3649 | malformed input. | |
3650 | ||
3651 | Misc | |
3652 | ---- | |
3653 | ||
3654 | * `rustc` employs smarter heuristics for guessing at [typos]. | |
3655 | * `rustc` emits more efficient code for [no-op conversions between | |
3656 | unsafe pointers][nop]. | |
3657 | * Fat pointers are now [passed in pairs of immediate arguments][fat], | |
3658 | resulting in faster compile times and smaller code. | |
3659 | ||
e9174d1e | 3660 | [`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html |
62682a34 | 3661 | [extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md |
e9174d1e SL |
3662 | [`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html |
3663 | [`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html | |
3664 | [`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches | |
3665 | [`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches | |
3666 | [`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html | |
3667 | [`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html | |
3668 | [`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add | |
3669 | [`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub | |
3670 | [`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul | |
3671 | [`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div | |
3672 | [`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem | |
3673 | [`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg | |
3674 | [`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl | |
3675 | [`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr | |
3676 | [`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html | |
3677 | [`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html | |
3678 | [`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html | |
3679 | [`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html | |
3680 | [`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct | |
3681 | [`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple | |
3682 | [`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list | |
3683 | [`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set | |
3684 | [`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map | |
3685 | [`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html | |
3686 | [strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase | |
3687 | [strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase | |
3688 | [`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase | |
3689 | [`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase | |
3690 | [`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html | |
3691 | [`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html | |
3692 | [`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html | |
3693 | [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html | |
3694 | [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html | |
3695 | [`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html | |
3696 | [`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html | |
3697 | [`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html | |
3698 | [`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html | |
3699 | [`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html | |
62682a34 | 3700 | [debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/ |
e9174d1e SL |
3701 | [`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html |
3702 | [`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html | |
62682a34 | 3703 | [align]: https://github.com/rust-lang/rust/pull/25646 |
e9174d1e | 3704 | [`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html |
62682a34 SL |
3705 | [typos]: https://github.com/rust-lang/rust/pull/26087 |
3706 | [nop]: https://github.com/rust-lang/rust/pull/26336 | |
3707 | [fat]: https://github.com/rust-lang/rust/pull/26411 | |
3708 | [dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md | |
3709 | [parcodegen]: https://github.com/rust-lang/rust/pull/26018 | |
3710 | [packed]: https://github.com/rust-lang/rust/pull/25541 | |
3711 | [ad]: https://github.com/rust-lang/rust/pull/27382 | |
3712 | [win]: https://github.com/rust-lang/rust/pull/25350 | |
3713 | ||
e9174d1e | 3714 | Version 1.1.0 (2015-06-25) |
d9579d0f AL |
3715 | ========================= |
3716 | ||
3717 | * ~850 changes, numerous bugfixes | |
3718 | ||
3719 | Highlights | |
3720 | ---------- | |
3721 | ||
c1a9b12d | 3722 | * The [`std::fs` module has been expanded][fs] to expand the set of |
d9579d0f AL |
3723 | functionality exposed: |
3724 | * `DirEntry` now supports optimizations like `file_type` and `metadata` which | |
3725 | don't incur a syscall on some platforms. | |
3726 | * A `symlink_metadata` function has been added. | |
3727 | * The `fs::Metadata` structure now lowers to its OS counterpart, providing | |
3728 | access to all underlying information. | |
c1a9b12d SL |
3729 | * The compiler now contains extended explanations of many errors. When an error |
3730 | with an explanation occurs the compiler suggests using the `--explain` flag | |
3731 | to read the explanation. Error explanations are also [available online][err-index]. | |
d9579d0f AL |
3732 | * Thanks to multiple [improvements][sk] to [type checking][pre], as |
3733 | well as other work, the time to bootstrap the compiler decreased by | |
3734 | 32%. | |
3735 | ||
3736 | Libraries | |
3737 | --------- | |
3738 | ||
c1a9b12d | 3739 | * The [`str::split_whitespace`] method splits a string on unicode |
d9579d0f AL |
3740 | whitespace boundaries. |
3741 | * On both Windows and Unix, new extension traits provide conversion of | |
3742 | I/O types to and from the underlying system handles. On Unix, these | |
c1a9b12d | 3743 | traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle` |
d9579d0f AL |
3744 | and `AsRawHandle`. These are implemented for `File`, `TcpStream`, |
3745 | `TcpListener`, and `UpdSocket`. Further implementations for | |
3746 | `std::process` will be stabilized later. | |
3747 | * On Unix, [`std::os::unix::symlink`] creates symlinks. On | |
3748 | Windows, symlinks can be created with | |
3749 | `std::os::windows::symlink_dir` and | |
3750 | `std::os::windows::symlink_file`. | |
3751 | * The `mpsc::Receiver` type can now be converted into an iterator with | |
3752 | `into_iter` on the [`IntoIterator`] trait. | |
3753 | * `Ipv4Addr` can be created from `u32` with the `From<u32>` | |
3754 | implementation of the [`From`] trait. | |
3755 | * The `Debug` implementation for `RangeFull` [creates output that is | |
3756 | more consistent with other implementations][rf]. | |
3757 | * [`Debug` is implemented for `File`][file]. | |
3758 | * The `Default` implementation for `Arc` [no longer requires `Sync + | |
3759 | Send`][arc]. | |
3760 | * [The `Iterator` methods `count`, `nth`, and `last` have been | |
3761 | overridden for slices to have O(1) performance instead of O(n)][si]. | |
3762 | * Incorrect handling of paths on Windows has been improved in both the | |
3763 | compiler and the standard library. | |
3764 | * [`AtomicPtr` gained a `Default` implementation][ap]. | |
3765 | * In accordance with Rust's policy on arithmetic overflow `abs` now | |
3766 | [panics on overflow when debug assertions are enabled][abs]. | |
3767 | * The [`Cloned`] iterator, which was accidentally left unstable for | |
3768 | 1.0 [has been stabilized][c]. | |
3769 | * The [`Incoming`] iterator, which iterates over incoming TCP | |
3770 | connections, and which was accidentally unnamable in 1.0, [is now | |
3771 | properly exported][inc]. | |
3772 | * [`BinaryHeap`] no longer corrupts itself [when functions called by | |
3773 | `sift_up` or `sift_down` panic][bh]. | |
3774 | * The [`split_off`] method of `LinkedList` [no longer corrupts | |
3775 | the list in certain scenarios][ll]. | |
3776 | ||
3777 | Misc | |
3778 | ---- | |
3779 | ||
3780 | * Type checking performance [has improved notably][sk] with | |
3781 | [multiple improvements][pre]. | |
3782 | * The compiler [suggests code changes][ch] for more errors. | |
3783 | * rustc and it's build system have experimental support for [building | |
3784 | toolchains against MUSL][m] instead of glibc on Linux. | |
3785 | * The compiler defines the `target_env` cfg value, which is used for | |
3786 | distinguishing toolchains that are otherwise for the same | |
3787 | platform. Presently this is set to `gnu` for common GNU Linux | |
3788 | targets and for MinGW targets, and `musl` for MUSL Linux targets. | |
3789 | * The [`cargo rustc`][crc] command invokes a build with custom flags | |
3790 | to rustc. | |
3791 | * [Android executables are always position independent][pie]. | |
3792 | * [The `drop_with_repr_extern` lint warns about mixing `repr(C)` | |
3793 | with `Drop`][drop]. | |
3794 | ||
e9174d1e SL |
3795 | [`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace |
3796 | [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html | |
3797 | [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html | |
3798 | [`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html | |
3799 | [`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html | |
3800 | [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html | |
d9579d0f | 3801 | [rf]: https://github.com/rust-lang/rust/pull/24491 |
e9174d1e | 3802 | [err-index]: https://doc.rust-lang.org/error-index.html |
d9579d0f AL |
3803 | [sk]: https://github.com/rust-lang/rust/pull/24615 |
3804 | [pre]: https://github.com/rust-lang/rust/pull/25323 | |
3805 | [file]: https://github.com/rust-lang/rust/pull/24598 | |
3806 | [ch]: https://github.com/rust-lang/rust/pull/24683 | |
3807 | [arc]: https://github.com/rust-lang/rust/pull/24695 | |
3808 | [si]: https://github.com/rust-lang/rust/pull/24701 | |
3809 | [ap]: https://github.com/rust-lang/rust/pull/24834 | |
3810 | [m]: https://github.com/rust-lang/rust/pull/24777 | |
3811 | [fs]: https://github.com/rust-lang/rfcs/blob/master/text/1044-io-fs-2.1.md | |
3812 | [crc]: https://github.com/rust-lang/cargo/pull/1568 | |
3813 | [pie]: https://github.com/rust-lang/rust/pull/24953 | |
3814 | [abs]: https://github.com/rust-lang/rust/pull/25441 | |
3815 | [c]: https://github.com/rust-lang/rust/pull/25496 | |
e9174d1e SL |
3816 | [`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html |
3817 | [`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html | |
d9579d0f AL |
3818 | [inc]: https://github.com/rust-lang/rust/pull/25522 |
3819 | [bh]: https://github.com/rust-lang/rust/pull/25856 | |
e9174d1e | 3820 | [`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html |
d9579d0f | 3821 | [ll]: https://github.com/rust-lang/rust/pull/26022 |
e9174d1e | 3822 | [`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off |
d9579d0f AL |
3823 | [drop]: https://github.com/rust-lang/rust/pull/24935 |
3824 | ||
e9174d1e | 3825 | Version 1.0.0 (2015-05-15) |
bd371182 | 3826 | ======================== |
c34b1796 | 3827 | |
bd371182 | 3828 | * ~1500 changes, numerous bugfixes |
c34b1796 | 3829 | |
bd371182 AL |
3830 | Highlights |
3831 | ---------- | |
3832 | ||
3833 | * The vast majority of the standard library is now `#[stable]`. It is | |
3834 | no longer possible to use unstable features with a stable build of | |
3835 | the compiler. | |
3836 | * Many popular crates on [crates.io] now work on the stable release | |
3837 | channel. | |
3838 | * Arithmetic on basic integer types now [checks for overflow in debug | |
3839 | builds][overflow]. | |
3840 | ||
3841 | Language | |
3842 | -------- | |
3843 | ||
3844 | * Several [restrictions have been added to trait coherence][coh] in | |
3845 | order to make it easier for upstream authors to change traits | |
62682a34 | 3846 | without breaking downstream code. |
bd371182 AL |
3847 | * Digits of binary and octal literals are [lexed more eagerly][lex] to |
3848 | improve error messages and macro behavior. For example, `0b1234` is | |
3849 | now lexed as `0b1234` instead of two tokens, `0b1` and `234`. | |
62682a34 | 3850 | * Trait bounds [are always invariant][inv], eliminating the need for |
bd371182 AL |
3851 | the `PhantomFn` and `MarkerTrait` lang items, which have been |
3852 | removed. | |
3853 | * ["-" is no longer a valid character in crate names][cr], the `extern crate | |
3854 | "foo" as bar` syntax has been replaced with `extern crate foo as | |
3855 | bar`, and Cargo now automatically translates "-" in *package* names | |
3856 | to underscore for the crate name. | |
3857 | * [Lifetime shadowing is an error][lt]. | |
3858 | * [`Send` no longer implies `'static`][send-rfc]. | |
3859 | * [UFCS now supports trait-less associated paths][moar-ufcs] like | |
3860 | `MyType::default()`. | |
3861 | * Primitive types [now have inherent methods][prim-inherent], | |
3862 | obviating the need for extension traits like `SliceExt`. | |
3863 | * Methods with `Self: Sized` in their `where` clause are [considered | |
3864 | object-safe][self-sized], allowing many extension traits like | |
3865 | `IteratorExt` to be merged into the traits they extended. | |
3866 | * You can now [refer to associated types][assoc-where] whose | |
3867 | corresponding trait bounds appear only in a `where` clause. | |
3868 | * The final bits of [OIBIT landed][oibit-final], meaning that traits | |
3869 | like `Send` and `Sync` are now library-defined. | |
3870 | * A [Reflect trait][reflect] was introduced, which means that | |
3871 | downcasting via the `Any` trait is effectively limited to concrete | |
3872 | types. This helps retain the potentially-important "parametricity" | |
3873 | property: generic code cannot behave differently for different type | |
3874 | arguments except in minor ways. | |
3875 | * The `unsafe_destructor` feature is now deprecated in favor of the | |
3876 | [new `dropck`][dropck]. This change is a major reduction in unsafe | |
3877 | code. | |
c34b1796 | 3878 | |
bd371182 AL |
3879 | Libraries |
3880 | --------- | |
c34b1796 | 3881 | |
bd371182 AL |
3882 | * The `thread_local` module [has been renamed to `std::thread`][th]. |
3883 | * The methods of `IteratorExt` [have been moved to the `Iterator` | |
3884 | trait itself][ie]. | |
3885 | * Several traits that implement Rust's conventions for type | |
3886 | conversions, `AsMut`, `AsRef`, `From`, and `Into` have been | |
3887 | [centralized in the `std::convert` module][con]. | |
3888 | * The `FromError` trait [was removed in favor of `From`][fe]. | |
3889 | * The basic sleep function [has moved to | |
3890 | `std::thread::sleep_ms`][slp]. | |
3891 | * The `splitn` function now takes an `n` parameter that represents the | |
3892 | number of items yielded by the returned iterator [instead of the | |
3893 | number of 'splits'][spl]. | |
3894 | * [On Unix, all file descriptors are `CLOEXEC` by default][clo]. | |
3895 | * [Derived implementations of `PartialOrd` now order enums according | |
3896 | to their explicitly-assigned discriminants][po]. | |
3897 | * [Methods for searching strings are generic over `Pattern`s][pat], | |
3898 | implemented presently by `&char`, `&str`, `FnMut(char) -> bool` and | |
3899 | some others. | |
3900 | * [In method resolution, object methods are resolved before inherent | |
3901 | methods][meth]. | |
3902 | * [`String::from_str` has been deprecated in favor of the `From` impl, | |
3903 | `String::from`][sf]. | |
3904 | * [`io::Error` implements `Sync`][ios]. | |
3905 | * [The `words` method on `&str` has been replaced with | |
3906 | `split_whitespace`][sw], to avoid answering the tricky question, 'what is | |
3907 | a word?' | |
3908 | * The new path and IO modules are complete and `#[stable]`. This | |
3909 | was the major library focus for this cycle. | |
3910 | * The path API was [revised][path-normalize] to normalize `.`, | |
3911 | adjusting the tradeoffs in favor of the most common usage. | |
3912 | * A large number of remaining APIs in `std` were also stabilized | |
3913 | during this cycle; about 75% of the non-deprecated API surface | |
3914 | is now stable. | |
3915 | * The new [string pattern API][string-pattern] landed, which makes | |
3916 | the string slice API much more internally consistent and flexible. | |
3917 | * A new set of [generic conversion traits][conversion] replaced | |
3918 | many existing ad hoc traits. | |
3919 | * Generic numeric traits were [completely removed][num-traits]. This | |
3920 | was made possible thanks to inherent methods for primitive types, | |
3921 | and the removal gives maximal flexibility for designing a numeric | |
3922 | hierarchy in the future. | |
3923 | * The `Fn` traits are now related via [inheritance][fn-inherit] | |
3924 | and provide ergonomic [blanket implementations][fn-blanket]. | |
3925 | * The `Index` and `IndexMut` traits were changed to | |
3926 | [take the index by value][index-value], enabling code like | |
3927 | `hash_map["string"]` to work. | |
3928 | * `Copy` now [inherits][copy-clone] from `Clone`, meaning that all | |
3929 | `Copy` data is known to be `Clone` as well. | |
3930 | ||
3931 | Misc | |
3932 | ---- | |
3933 | ||
3934 | * Many errors now have extended explanations that can be accessed with | |
3935 | the `--explain` flag to `rustc`. | |
3936 | * Many new examples have been added to the standard library | |
3937 | documentation. | |
3938 | * rustdoc has received a number of improvements focused on completion | |
3939 | and polish. | |
3940 | * Metadata was tuned, shrinking binaries [by 27%][metadata-shrink]. | |
3941 | * Much headway was made on ecosystem-wide CI, making it possible | |
3942 | to [compare builds for breakage][ci-compare]. | |
3943 | ||
3944 | ||
3945 | [crates.io]: http://crates.io | |
3946 | [clo]: https://github.com/rust-lang/rust/pull/24034 | |
3947 | [coh]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md | |
3948 | [con]: https://github.com/rust-lang/rust/pull/23875 | |
3949 | [cr]: https://github.com/rust-lang/rust/pull/23419 | |
3950 | [fe]: https://github.com/rust-lang/rust/pull/23879 | |
3951 | [ie]: https://github.com/rust-lang/rust/pull/23300 | |
3952 | [inv]: https://github.com/rust-lang/rust/pull/23938 | |
3953 | [ios]: https://github.com/rust-lang/rust/pull/24133 | |
3954 | [lex]: https://github.com/rust-lang/rfcs/blob/master/text/0879-small-base-lexing.md | |
3955 | [lt]: https://github.com/rust-lang/rust/pull/24057 | |
3956 | [meth]: https://github.com/rust-lang/rust/pull/24056 | |
3957 | [pat]: https://github.com/rust-lang/rfcs/blob/master/text/0528-string-patterns.md | |
3958 | [po]: https://github.com/rust-lang/rust/pull/24270 | |
3959 | [sf]: https://github.com/rust-lang/rust/pull/24517 | |
3960 | [slp]: https://github.com/rust-lang/rust/pull/23949 | |
3961 | [spl]: https://github.com/rust-lang/rfcs/blob/master/text/0979-align-splitn-with-other-languages.md | |
3962 | [sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md | |
3963 | [th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md | |
c34b1796 | 3964 | [send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md |
c34b1796 AL |
3965 | [moar-ufcs]: https://github.com/rust-lang/rust/pull/22172 |
3966 | [prim-inherent]: https://github.com/rust-lang/rust/pull/23104 | |
3967 | [overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md | |
3968 | [metadata-shrink]: https://github.com/rust-lang/rust/pull/22971 | |
3969 | [self-sized]: https://github.com/rust-lang/rust/pull/22301 | |
3970 | [assoc-where]: https://github.com/rust-lang/rust/pull/22512 | |
3971 | [string-pattern]: https://github.com/rust-lang/rust/pull/22466 | |
3972 | [oibit-final]: https://github.com/rust-lang/rust/pull/21689 | |
3973 | [reflect]: https://github.com/rust-lang/rust/pull/23712 | |
c34b1796 AL |
3974 | [conversion]: https://github.com/rust-lang/rfcs/pull/529 |
3975 | [num-traits]: https://github.com/rust-lang/rust/pull/23549 | |
3976 | [index-value]: https://github.com/rust-lang/rust/pull/23601 | |
3977 | [dropck]: https://github.com/rust-lang/rfcs/pull/769 | |
c34b1796 AL |
3978 | [ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee |
3979 | [fn-inherit]: https://github.com/rust-lang/rust/pull/23282 | |
3980 | [fn-blanket]: https://github.com/rust-lang/rust/pull/23895 | |
3981 | [copy-clone]: https://github.com/rust-lang/rust/pull/23860 | |
3982 | [path-normalize]: https://github.com/rust-lang/rust/pull/23229 | |
3983 | ||
bd371182 | 3984 | |
b039eaaf | 3985 | Version 1.0.0-alpha.2 (2015-02-20) |
62682a34 | 3986 | ===================================== |
85aaf69f SL |
3987 | |
3988 | * ~1300 changes, numerous bugfixes | |
3989 | ||
3990 | * Highlights | |
3991 | ||
3992 | * The various I/O modules were [overhauled][io-rfc] to reduce | |
62682a34 | 3993 | unnecessary abstractions and provide better interoperation with |
85aaf69f SL |
3994 | the underlying platform. The old `io` module remains temporarily |
3995 | at `std::old_io`. | |
62682a34 | 3996 | * The standard library now [participates in feature gating][feat], |
85aaf69f SL |
3997 | so use of unstable libraries now requires a `#![feature(...)]` |
3998 | attribute. The impact of this change is [described on the | |
3999 | forum][feat-forum]. [RFC][feat-rfc]. | |
4000 | ||
4001 | * Language | |
4002 | ||
4003 | * `for` loops [now operate on the `IntoIterator` trait][into], | |
4004 | which eliminates the need to call `.iter()`, etc. to iterate | |
4005 | over collections. There are some new subtleties to remember | |
4006 | though regarding what sort of iterators various types yield, in | |
4007 | particular that `for foo in bar { }` yields values from a move | |
4008 | iterator, destroying the original collection. [RFC][into-rfc]. | |
4009 | * Objects now have [default lifetime bounds][obj], so you don't | |
4010 | have to write `Box<Trait+'static>` when you don't care about | |
4011 | storing references. [RFC][obj-rfc]. | |
4012 | * In types that implement `Drop`, [lifetimes must outlive the | |
4013 | value][drop]. This will soon make it possible to safely | |
4014 | implement `Drop` for types where `#[unsafe_destructor]` is now | |
4015 | required. Read the [gorgeous RFC][drop-rfc] for details. | |
4016 | * The fully qualified <T as Trait>::X syntax lets you set the Self | |
4017 | type for a trait method or associated type. [RFC][ufcs-rfc]. | |
4018 | * References to types that implement `Deref<U>` now [automatically | |
4019 | coerce to references][deref] to the dereferenced type `U`, | |
4020 | e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This | |
4021 | should eliminate many unsightly uses of `&*`, as when converting | |
4022 | from references to vectors into references to | |
4023 | slices. [RFC][deref-rfc]. | |
4024 | * The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`, | |
4025 | `|:|`) is obsolete and closure kind is inferred from context. | |
4026 | * [`Self` is a keyword][Self]. | |
4027 | ||
4028 | * Libraries | |
4029 | ||
4030 | * The `Show` and `String` formatting traits [have been | |
4031 | renamed][fmt] to `Debug` and `Display` to more clearly reflect | |
4032 | their related purposes. Automatically getting a string | |
4033 | conversion to use with `format!("{:?}", something_to_debug)` is | |
4034 | now written `#[derive(Debug)]`. | |
4035 | * Abstract [OS-specific string types][osstr], `std::ff::{OsString, | |
4036 | OsStr}`, provide strings in platform-specific encodings for easier | |
4037 | interop with system APIs. [RFC][osstr-rfc]. | |
c34b1796 | 4038 | * The `boxed::into_raw` and `Box::from_raw` functions [convert |
85aaf69f SL |
4039 | between `Box<T>` and `*mut T`][boxraw], a common pattern for |
4040 | creating raw pointers. | |
4041 | ||
4042 | * Tooling | |
4043 | ||
4044 | * Certain long error messages of the form 'expected foo found bar' | |
4045 | are now [split neatly across multiple | |
4046 | lines][multiline]. Examples in the PR. | |
4047 | * On Unix Rust can be [uninstalled][un] by running | |
4048 | `/usr/local/lib/rustlib/uninstall.sh`. | |
4049 | * The `#[rustc_on_unimplemented]` attribute, requiring the | |
4050 | 'on_unimplemented' feature, lets rustc [display custom error | |
4051 | messages when a trait is expected to be implemented for a type | |
4052 | but is not][onun]. | |
4053 | ||
4054 | * Misc | |
4055 | ||
4056 | * Rust is tested against a [LALR grammar][lalr], which parses | |
4057 | almost all the Rust files that rustc does. | |
4058 | ||
4059 | [boxraw]: https://github.com/rust-lang/rust/pull/21318 | |
4060 | [close]: https://github.com/rust-lang/rust/pull/21843 | |
4061 | [deref]: https://github.com/rust-lang/rust/pull/21351 | |
4062 | [deref-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md | |
4063 | [drop]: https://github.com/rust-lang/rust/pull/21972 | |
4064 | [drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md | |
4065 | [feat]: https://github.com/rust-lang/rust/pull/21248 | |
e9174d1e | 4066 | [feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5 |
85aaf69f SL |
4067 | [feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md |
4068 | [fmt]: https://github.com/rust-lang/rust/pull/21457 | |
4069 | [into]: https://github.com/rust-lang/rust/pull/20790 | |
4070 | [into-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable | |
4071 | [io-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md | |
4072 | [lalr]: https://github.com/rust-lang/rust/pull/21452 | |
4073 | [multiline]: https://github.com/rust-lang/rust/pull/19870 | |
4074 | [obj]: https://github.com/rust-lang/rust/pull/22230 | |
4075 | [obj-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md | |
4076 | [onun]: https://github.com/rust-lang/rust/pull/20889 | |
4077 | [osstr]: https://github.com/rust-lang/rust/pull/21488 | |
4078 | [osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md | |
4079 | [Self]: https://github.com/rust-lang/rust/pull/22158 | |
85aaf69f SL |
4080 | [ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md |
4081 | [un]: https://github.com/rust-lang/rust/pull/22256 | |
4082 | ||
62682a34 | 4083 | |
b039eaaf | 4084 | Version 1.0.0-alpha (2015-01-09) |
62682a34 | 4085 | ================================== |
1a4d82fc JJ |
4086 | |
4087 | * ~2400 changes, numerous bugfixes | |
4088 | ||
4089 | * Highlights | |
4090 | ||
4091 | * The language itself is considered feature complete for 1.0, | |
4092 | though there will be many usability improvements and bugfixes | |
4093 | before the final release. | |
4094 | * Nearly 50% of the public API surface of the standard library has | |
4095 | been declared 'stable'. Those interfaces are unlikely to change | |
4096 | before 1.0. | |
4097 | * The long-running debate over integer types has been | |
4098 | [settled][ints]: Rust will ship with types named `isize` and | |
4099 | `usize`, rather than `int` and `uint`, for pointer-sized | |
4100 | integers. Guidelines will be rolled out during the alpha cycle. | |
4101 | * Most crates that are not `std` have been moved out of the Rust | |
4102 | distribution into the Cargo ecosystem so they can evolve | |
4103 | separately and don't need to be stabilized as quickly, including | |
4104 | 'time', 'getopts', 'num', 'regex', and 'term'. | |
4105 | * Documentation continues to be expanded with more API coverage, more | |
4106 | examples, and more in-depth explanations. The guides have been | |
4107 | consolidated into [The Rust Programming Language][trpl]. | |
85aaf69f | 4108 | * "[Rust By Example][rbe]" is now maintained by the Rust team. |
1a4d82fc JJ |
4109 | * All official Rust binary installers now come with [Cargo], the |
4110 | Rust package manager. | |
4111 | ||
4112 | * Language | |
4113 | ||
4114 | * Closures have been [completely redesigned][unboxed] to be | |
4115 | implemented in terms of traits, can now be used as generic type | |
4116 | bounds and thus monomorphized and inlined, or via an opaque | |
4117 | pointer (boxed) as in the old system. The new system is often | |
4118 | referred to as 'unboxed' closures. | |
4119 | * Traits now support [associated types][assoc], allowing families | |
4120 | of related types to be defined together and used generically in | |
4121 | powerful ways. | |
4122 | * Enum variants are [namespaced by their type names][enum]. | |
4123 | * [`where` clauses][where] provide a more versatile and attractive | |
4124 | syntax for specifying generic bounds, though the previous syntax | |
4125 | remains valid. | |
4126 | * Rust again picks a [fallback][fb] (either i32 or f64) for uninferred | |
4127 | numeric types. | |
4128 | * Rust [no longer has a runtime][rt] of any description, and only | |
4129 | supports OS threads, not green threads. | |
4130 | * At long last, Rust has been overhauled for 'dynamically-sized | |
4131 | types' ([DST]), which integrates 'fat pointers' (object types, | |
4132 | arrays, and `str`) more deeply into the type system, making it | |
4133 | more consistent. | |
4134 | * Rust now has a general [range syntax][range], `i..j`, `i..`, and | |
4135 | `..j` that produce range types and which, when combined with the | |
4136 | `Index` operator and multidispatch, leads to a convenient slice | |
4137 | notation, `[i..j]`. | |
4138 | * The new range syntax revealed an ambiguity in the fixed-length | |
4139 | array syntax, so now fixed length arrays [are written `[T; | |
4140 | N]`][arrays]. | |
4141 | * The `Copy` trait is no longer implemented automatically. Unsafe | |
4142 | pointers no longer implement `Sync` and `Send` so types | |
4143 | containing them don't automatically either. `Sync` and `Send` | |
4144 | are now 'unsafe traits' so one can "forcibly" implement them via | |
4145 | `unsafe impl` if a type confirms to the requirements for them | |
4146 | even though the internals do not (e.g. structs containing unsafe | |
4147 | pointers like `Arc`). These changes are intended to prevent some | |
4148 | footguns and are collectively known as [opt-in built-in | |
4149 | traits][oibit] (though `Sync` and `Send` will soon become pure | |
4150 | library types unknown to the compiler). | |
4151 | * Operator traits now take their operands [by value][ops], and | |
4152 | comparison traits can use multidispatch to compare one type | |
4153 | against multiple other types, allowing e.g. `String` to be | |
4154 | compared with `&str`. | |
4155 | * `if let` and `while let` are no longer feature-gated. | |
4156 | * Rust has adopted a more [uniform syntax for escaping unicode | |
4157 | characters][unicode]. | |
4158 | * `macro_rules!` [has been declared stable][mac]. Though it is a | |
4159 | flawed system it is sufficiently popular that it must be usable | |
4160 | for 1.0. Effort has gone into [future-proofing][mac-future] it | |
4161 | in ways that will allow other macro systems to be developed in | |
4162 | parallel, and won't otherwise impact the evolution of the | |
4163 | language. | |
4164 | * The prelude has been [pared back significantly][prelude] such | |
4165 | that it is the minimum necessary to support the most pervasive | |
4166 | code patterns, and through [generalized where clauses][where] | |
4167 | many of the prelude extension traits have been consolidated. | |
4168 | * Rust's rudimentary reflection [has been removed][refl], as it | |
4169 | incurred too much code generation for little benefit. | |
4170 | * [Struct variants][structvars] are no longer feature-gated. | |
4171 | * Trait bounds can be [polymorphic over lifetimes][hrtb]. Also | |
4172 | known as 'higher-ranked trait bounds', this crucially allows | |
4173 | unboxed closures to work. | |
4174 | * Macros invocations surrounded by parens or square brackets and | |
4175 | not terminated by a semicolon are [parsed as | |
4176 | expressions][macros], which makes expressions like `vec![1i32, | |
4177 | 2, 3].len()` work as expected. | |
4178 | * Trait objects now implement their traits automatically, and | |
4179 | traits that can be coerced to objects now must be [object | |
4180 | safe][objsafe]. | |
4181 | * Automatically deriving traits is now done with `#[derive(...)]` | |
4182 | not `#[deriving(...)]` for [consistency with other naming | |
4183 | conventions][derive]. | |
4184 | * Importing the containing module or enum at the same time as | |
4185 | items or variants they contain is [now done with `self` instead | |
4186 | of `mod`][self], as in use `foo::{self, bar}` | |
4187 | * Glob imports are no longer feature-gated. | |
4188 | * The `box` operator and `box` patterns have been feature-gated | |
4189 | pending a redesign. For now unique boxes should be allocated | |
4190 | like other containers, with `Box::new`. | |
4191 | ||
4192 | * Libraries | |
4193 | ||
4194 | * A [series][coll1] of [efforts][coll2] to establish | |
4195 | [conventions][coll3] for collections types has resulted in API | |
4196 | improvements throughout the standard library. | |
4197 | * New [APIs for error handling][err] provide ergonomic interop | |
4198 | between error types, and [new conventions][err-conv] describe | |
4199 | more clearly the recommended error handling strategies in Rust. | |
4200 | * The `fail!` macro has been renamed to [`panic!`][panic] so that | |
4201 | it is easier to discuss failure in the context of error handling | |
4202 | without making clarifications as to whether you are referring to | |
4203 | the 'fail' macro or failure more generally. | |
4204 | * On Linux, `OsRng` prefers the new, more reliable `getrandom` | |
4205 | syscall when available. | |
4206 | * The 'serialize' crate has been renamed 'rustc-serialize' and | |
4207 | moved out of the distribution to Cargo. Although it is widely | |
62682a34 | 4208 | used now, it is expected to be superseded in the near future. |
1a4d82fc JJ |
4209 | * The `Show` formatter, typically implemented with |
4210 | `#[derive(Show)]` is [now requested with the `{:?}` | |
4211 | specifier][show] and is intended for use by all types, for uses | |
4212 | such as `println!` debugging. The new `String` formatter must be | |
4213 | implemented by hand, uses the `{}` specifier, and is intended | |
4214 | for full-fidelity conversions of things that can logically be | |
4215 | represented as strings. | |
4216 | ||
4217 | * Tooling | |
4218 | ||
4219 | * [Flexible target specification][flex] allows rustc's code | |
4220 | generation to be configured to support otherwise-unsupported | |
4221 | platforms. | |
4222 | * Rust comes with rust-gdb and rust-lldb scripts that launch their | |
4223 | respective debuggers with Rust-appropriate pretty-printing. | |
32a655c1 | 4224 | * The Windows installation of Rust is distributed with the |
1a4d82fc JJ |
4225 | MinGW components currently required to link binaries on that |
4226 | platform. | |
4227 | ||
4228 | * Misc | |
4229 | ||
4230 | * Nullable enum optimizations have been extended to more types so | |
4231 | that e.g. `Option<Vec<T>>` and `Option<String>` take up no more | |
4232 | space than the inner types themselves. | |
4233 | * Work has begun on supporting AArch64. | |
4234 | ||
4235 | [Cargo]: https://crates.io | |
4236 | [unboxed]: http://smallcultfollowing.com/babysteps/blog/2014/11/26/purging-proc/ | |
4237 | [enum]: https://github.com/rust-lang/rfcs/blob/master/text/0390-enum-namespacing.md | |
4238 | [flex]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md | |
4239 | [err]: https://github.com/rust-lang/rfcs/blob/master/text/0201-error-chaining.md | |
4240 | [err-conv]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md | |
4241 | [rt]: https://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md | |
4242 | [mac]: https://github.com/rust-lang/rfcs/blob/master/text/0453-macro-reform.md | |
4243 | [mac-future]: https://github.com/rust-lang/rfcs/pull/550 | |
4244 | [DST]: http://smallcultfollowing.com/babysteps/blog/2014/01/05/dst-take-5/ | |
4245 | [coll1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md | |
4246 | [coll2]: https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md | |
4247 | [coll3]: https://github.com/rust-lang/rfcs/blob/master/text/0216-collection-views.md | |
4248 | [ops]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md | |
4249 | [prelude]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md | |
4250 | [where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md | |
4251 | [refl]: https://github.com/rust-lang/rfcs/blob/master/text/0379-remove-reflection.md | |
4252 | [panic]: https://github.com/rust-lang/rfcs/blob/master/text/0221-panic.md | |
4253 | [structvars]: https://github.com/rust-lang/rfcs/blob/master/text/0418-struct-variants.md | |
4254 | [hrtb]: https://github.com/rust-lang/rfcs/blob/master/text/0387-higher-ranked-trait-bounds.md | |
4255 | [unicode]: https://github.com/rust-lang/rfcs/blob/master/text/0446-es6-unicode-escapes.md | |
4256 | [oibit]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md | |
4257 | [macros]: https://github.com/rust-lang/rfcs/blob/master/text/0378-expr-macros.md | |
4258 | [range]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md#indexing-and-slicing | |
4259 | [arrays]: https://github.com/rust-lang/rfcs/blob/master/text/0520-new-array-repeat-syntax.md | |
4260 | [show]: https://github.com/rust-lang/rfcs/blob/master/text/0504-show-stabilization.md | |
4261 | [derive]: https://github.com/rust-lang/rfcs/blob/master/text/0534-deriving2derive.md | |
4262 | [self]: https://github.com/rust-lang/rfcs/blob/master/text/0532-self-in-use.md | |
4263 | [fb]: https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md | |
4264 | [objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md | |
4265 | [assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md | |
4266 | [ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871 | |
e9174d1e | 4267 | [trpl]: https://doc.rust-lang.org/book/index.html |
85aaf69f | 4268 | [rbe]: http://rustbyexample.com/ |
1a4d82fc | 4269 | |
62682a34 | 4270 | |
b039eaaf | 4271 | Version 0.12.0 (2014-10-09) |
62682a34 | 4272 | ============================= |
1a4d82fc JJ |
4273 | |
4274 | * ~1900 changes, numerous bugfixes | |
4275 | ||
4276 | * Highlights | |
4277 | ||
4278 | * The introductory documentation (now called The Rust Guide) has | |
4279 | been completely rewritten, as have a number of supplementary | |
4280 | guides. | |
4281 | * Rust's package manager, Cargo, continues to improve and is | |
4282 | sometimes considered to be quite awesome. | |
4283 | * Many API's in `std` have been reviewed and updated for | |
4284 | consistency with the in-development Rust coding | |
4285 | guidelines. The standard library documentation tracks | |
4286 | stabilization progress. | |
4287 | * Minor libraries have been moved out-of-tree to the rust-lang org | |
4288 | on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can | |
4289 | be installed with Cargo. | |
4290 | * Lifetime elision allows lifetime annotations to be left off of | |
4291 | function declarations in many common scenarios. | |
4292 | * Rust now works on 64-bit Windows. | |
4293 | ||
4294 | * Language | |
4295 | * Indexing can be overloaded with the `Index` and `IndexMut` | |
4296 | traits. | |
4297 | * The `if let` construct takes a branch only if the `let` pattern | |
4298 | matches, currently behind the 'if_let' feature gate. | |
4299 | * 'where clauses', a more flexible syntax for specifying trait | |
4300 | bounds that is more aesthetic, have been added for traits and | |
4301 | free functions. Where clauses will in the future make it | |
4302 | possible to constrain associated types, which would be | |
4303 | impossible with the existing syntax. | |
4304 | * A new slicing syntax (e.g. `[0..4]`) has been introduced behind | |
4305 | the 'slicing_syntax' feature gate, and can be overloaded with | |
4306 | the `Slice` or `SliceMut` traits. | |
4307 | * The syntax for matching of sub-slices has been changed to use a | |
4308 | postfix `..` instead of prefix (.e.g. `[a, b, c..]`), for | |
4309 | consistency with other uses of `..` and to future-proof | |
4310 | potential additional uses of the syntax. | |
4311 | * The syntax for matching inclusive ranges in patterns has changed | |
4312 | from `0..3` to `0...4` to be consistent with the exclusive range | |
4313 | syntax for slicing. | |
4314 | * Matching of sub-slices in non-tail positions (e.g. `[a.., b, | |
4315 | c]`) has been put behind the 'advanced_slice_patterns' feature | |
4316 | gate and may be removed in the future. | |
4317 | * Components of tuples and tuple structs can be extracted using | |
4318 | the `value.0` syntax, currently behind the `tuple_indexing` | |
4319 | feature gate. | |
4320 | * The `#[crate_id]` attribute is no longer supported; versioning | |
4321 | is handled by the package manager. | |
4322 | * Renaming crate imports are now written `extern crate foo as bar` | |
4323 | instead of `extern crate bar = foo`. | |
4324 | * Renaming use statements are now written `use foo as bar` instead | |
4325 | of `use bar = foo`. | |
4326 | * `let` and `match` bindings and argument names in macros are now | |
4327 | hygienic. | |
4328 | * The new, more efficient, closure types ('unboxed closures') have | |
4329 | been added under a feature gate, 'unboxed_closures'. These will | |
4330 | soon replace the existing closure types, once higher-ranked | |
4331 | trait lifetimes are added to the language. | |
4332 | * `move` has been added as a keyword, for indicating closures | |
4333 | that capture by value. | |
4334 | * Mutation and assignment is no longer allowed in pattern guards. | |
4335 | * Generic structs and enums can now have trait bounds. | |
4336 | * The `Share` trait is now called `Sync` to free up the term | |
4337 | 'shared' to refer to 'shared reference' (the default reference | |
4338 | type. | |
4339 | * Dynamically-sized types have been mostly implemented, | |
4340 | unifying the behavior of fat-pointer types with the rest of the | |
4341 | type system. | |
4342 | * As part of dynamically-sized types, the `Sized` trait has been | |
4343 | introduced, which qualifying types implement by default, and | |
4344 | which type parameters expect by default. To specify that a type | |
4345 | parameter does not need to be sized, write `<Sized? T>`. Most | |
4346 | types are `Sized`, notable exceptions being unsized arrays | |
4347 | (`[T]`) and trait types. | |
4348 | * Closures can return `!`, as in `|| -> !` or `proc() -> !`. | |
4349 | * Lifetime bounds can now be applied to type parameters and object | |
4350 | types. | |
4351 | * The old, reference counted GC type, `Gc<T>` which was once | |
4352 | denoted by the `@` sigil, has finally been removed. GC will be | |
4353 | revisited in the future. | |
4354 | ||
4355 | * Libraries | |
4356 | * Library documentation has been improved for a number of modules. | |
4357 | * Bit-vectors, collections::bitv has been modernized. | |
4358 | * The url crate is deprecated in favor of | |
4359 | http://github.com/servo/rust-url, which can be installed with | |
4360 | Cargo. | |
4361 | * Most I/O stream types can be cloned and subsequently closed from | |
4362 | a different thread. | |
4363 | * A `std::time::Duration` type has been added for use in I/O | |
4364 | methods that rely on timers, as well as in the 'time' crate's | |
4365 | `Timespec` arithmetic. | |
4366 | * The runtime I/O abstraction layer that enabled the green thread | |
4367 | scheduler to do non-thread-blocking I/O has been removed, along | |
4368 | with the libuv-based implementation employed by the green thread | |
4369 | scheduler. This will greatly simplify the future I/O work. | |
4370 | * `collections::btree` has been rewritten to have a more | |
4371 | idiomatic and efficient design. | |
4372 | ||
4373 | * Tooling | |
4374 | * rustdoc output now indicates the stability levels of API's. | |
4375 | * The `--crate-name` flag can specify the name of the crate | |
4376 | being compiled, like `#[crate_name]`. | |
4377 | * The `-C metadata` specifies additional metadata to hash into | |
4378 | symbol names, and `-C extra-filename` specifies additional | |
4379 | information to put into the output filename, for use by the | |
4380 | package manager for versioning. | |
4381 | * debug info generation has continued to improve and should be | |
4382 | more reliable under both gdb and lldb. | |
4383 | * rustc has experimental support for compiling in parallel | |
4384 | using the `-C codegen-units` flag. | |
4385 | * rustc no longer encodes rpath information into binaries by | |
4386 | default. | |
4387 | ||
4388 | * Misc | |
4389 | * Stack usage has been optimized with LLVM lifetime annotations. | |
4390 | * Official Rust binaries on Linux are more compatible with older | |
4391 | kernels and distributions, built on CentOS 5.10. | |
4392 | ||
62682a34 | 4393 | |
b039eaaf | 4394 | Version 0.11.0 (2014-07-02) |
62682a34 | 4395 | ========================== |
1a4d82fc JJ |
4396 | |
4397 | * ~1700 changes, numerous bugfixes | |
4398 | ||
4399 | * Language | |
4400 | * ~[T] has been removed from the language. This type is superseded by | |
4401 | the Vec<T> type. | |
4402 | * ~str has been removed from the language. This type is superseded by | |
4403 | the String type. | |
4404 | * ~T has been removed from the language. This type is superseded by the | |
4405 | Box<T> type. | |
4406 | * @T has been removed from the language. This type is superseded by the | |
4407 | standard library's std::gc::Gc<T> type. | |
4408 | * Struct fields are now all private by default. | |
4409 | * Vector indices and shift amounts are both required to be a `uint` | |
4410 | instead of any integral type. | |
4411 | * Byte character, byte string, and raw byte string literals are now all | |
4412 | supported by prefixing the normal literal with a `b`. | |
4413 | * Multiple ABIs are no longer allowed in an ABI string | |
4414 | * The syntax for lifetimes on closures/procedures has been tweaked | |
4415 | slightly: `<'a>|A, B|: 'b + K -> T` | |
4416 | * Floating point modulus has been removed from the language; however it | |
4417 | is still provided by a library implementation. | |
4418 | * Private enum variants are now disallowed. | |
4419 | * The `priv` keyword has been removed from the language. | |
4420 | * A closure can no longer be invoked through a &-pointer. | |
4421 | * The `use foo, bar, baz;` syntax has been removed from the language. | |
4422 | * The transmute intrinsic no longer works on type parameters. | |
4423 | * Statics now allow blocks/items in their definition. | |
4424 | * Trait bounds are separated from objects with + instead of : now. | |
4425 | * Objects can no longer be read while they are mutably borrowed. | |
4426 | * The address of a static is now marked as insignificant unless the | |
4427 | #[inline(never)] attribute is placed it. | |
4428 | * The #[unsafe_destructor] attribute is now behind a feature gate. | |
4429 | * Struct literals are no longer allowed in ambiguous positions such as | |
4430 | if, while, match, and for..in. | |
4431 | * Declaration of lang items and intrinsics are now feature-gated by | |
4432 | default. | |
4433 | * Integral literals no longer default to `int`, and floating point | |
4434 | literals no longer default to `f64`. Literals must be suffixed with an | |
4435 | appropriate type if inference cannot determine the type of the | |
4436 | literal. | |
4437 | * The Box<T> type is no longer implicitly borrowed to &mut T. | |
4438 | * Procedures are now required to not capture borrowed references. | |
4439 | ||
4440 | * Libraries | |
4441 | * The standard library is now a "facade" over a number of underlying | |
4442 | libraries. This means that development on the standard library should | |
4443 | be speeder due to smaller crates, as well as a clearer line between | |
4444 | all dependencies. | |
4445 | * A new library, libcore, lives under the standard library's facade | |
4446 | which is Rust's "0-assumption" library, suitable for embedded and | |
4447 | kernel development for example. | |
4448 | * A regex crate has been added to the standard distribution. This crate | |
4449 | includes statically compiled regular expressions. | |
4450 | * The unwrap/unwrap_err methods on Result require a Show bound for | |
4451 | better error messages. | |
4452 | * The return types of the std::comm primitives have been centralized | |
4453 | around the Result type. | |
4454 | * A number of I/O primitives have gained the ability to time out their | |
4455 | operations. | |
4456 | * A number of I/O primitives have gained the ability to close their | |
4457 | reading/writing halves to cancel pending operations. | |
4458 | * Reverse iterator methods have been removed in favor of `rev()` on | |
4459 | their forward-iteration counterparts. | |
4460 | * A bitflags! macro has been added to enable easy interop with C and | |
4461 | management of bit flags. | |
4462 | * A debug_assert! macro is now provided which is disabled when | |
4463 | `--cfg ndebug` is passed to the compiler. | |
4464 | * A graphviz crate has been added for creating .dot files. | |
4465 | * The std::cast module has been migrated into std::mem. | |
4466 | * The std::local_data api has been migrated from freestanding functions | |
4467 | to being based on methods. | |
4468 | * The Pod trait has been renamed to Copy. | |
4469 | * jemalloc has been added as the default allocator for types. | |
4470 | * The API for allocating memory has been changed to use proper alignment | |
4471 | and sized deallocation | |
4472 | * Connecting a TcpStream or binding a TcpListener is now based on a | |
4473 | string address and a u16 port. This allows connecting to a hostname as | |
4474 | opposed to an IP. | |
4475 | * The Reader trait now contains a core method, read_at_least(), which | |
4476 | correctly handles many repeated 0-length reads. | |
4477 | * The process-spawning API is now centered around a builder-style | |
4478 | Command struct. | |
4479 | * The :? printing qualifier has been moved from the standard library to | |
4480 | an external libdebug crate. | |
4481 | * Eq/Ord have been renamed to PartialEq/PartialOrd. TotalEq/TotalOrd | |
4482 | have been renamed to Eq/Ord. | |
4483 | * The select/plural methods have been removed from format!. The escapes | |
4484 | for { and } have also changed from \{ and \} to {{ and }}, | |
4485 | respectively. | |
4486 | * The TaskBuilder API has been re-worked to be a true builder, and | |
4487 | extension traits for spawning native/green tasks have been added. | |
4488 | ||
4489 | * Tooling | |
4490 | * All breaking changes to the language or libraries now have their | |
4491 | commit message annotated with `[breaking-change]` to allow for easy | |
4492 | discovery of breaking changes. | |
4493 | * The compiler will now try to suggest how to annotate lifetimes if a | |
4494 | lifetime-related error occurs. | |
4495 | * Debug info continues to be improved greatly with general bug fixes and | |
4496 | better support for situations like link time optimization (LTO). | |
4497 | * Usage of syntax extensions when cross-compiling has been fixed. | |
4498 | * Functionality equivalent to GCC & Clang's -ffunction-sections, | |
4499 | -fdata-sections and --gc-sections has been enabled by default | |
4500 | * The compiler is now stricter about where it will load module files | |
4501 | from when a module is declared via `mod foo;`. | |
4502 | * The #[phase(syntax)] attribute has been renamed to #[phase(plugin)]. | |
4503 | Syntax extensions are now discovered via a "plugin registrar" type | |
4504 | which will be extended in the future to other various plugins. | |
4505 | * Lints have been restructured to allow for dynamically loadable lints. | |
4506 | * A number of rustdoc improvements: | |
4507 | * The HTML output has been visually redesigned. | |
4508 | * Markdown is now powered by hoedown instead of sundown. | |
4509 | * Searching heuristics have been greatly improved. | |
4510 | * The search index has been reduced in size by a great amount. | |
4511 | * Cross-crate documentation via `pub use` has been greatly improved. | |
4512 | * Primitive types are now hyperlinked and documented. | |
4513 | * Documentation has been moved from static.rust-lang.org/doc to | |
4514 | doc.rust-lang.org | |
4515 | * A new sandbox, play.rust-lang.org, is available for running and | |
4516 | sharing rust code examples on-line. | |
4517 | * Unused attributes are now more robustly warned about. | |
4518 | * The dead_code lint now warns about unused struct fields. | |
4519 | * Cross-compiling to iOS is now supported. | |
4520 | * Cross-compiling to mipsel is now supported. | |
4521 | * Stability attributes are now inherited by default and no longer apply | |
4522 | to intra-crate usage, only inter-crate usage. | |
4523 | * Error message related to non-exhaustive match expressions have been | |
4524 | greatly improved. | |
4525 | ||
62682a34 | 4526 | |
b039eaaf | 4527 | Version 0.10 (2014-04-03) |
62682a34 | 4528 | ========================= |
1a4d82fc JJ |
4529 | |
4530 | * ~1500 changes, numerous bugfixes | |
4531 | ||
4532 | * Language | |
4533 | * A new RFC process is now in place for modifying the language. | |
4534 | * Patterns with `@`-pointers have been removed from the language. | |
4535 | * Patterns with unique vectors (`~[T]`) have been removed from the | |
4536 | language. | |
4537 | * Patterns with unique strings (`~str`) have been removed from the | |
4538 | language. | |
4539 | * `@str` has been removed from the language. | |
4540 | * `@[T]` has been removed from the language. | |
4541 | * `@self` has been removed from the language. | |
4542 | * `@Trait` has been removed from the language. | |
4543 | * Headers on `~` allocations which contain `@` boxes inside the type for | |
4544 | reference counting have been removed. | |
4545 | * The semantics around the lifetimes of temporary expressions have changed, | |
4546 | see #3511 and #11585 for more information. | |
4547 | * Cross-crate syntax extensions are now possible, but feature gated. See | |
4548 | #11151 for more information. This includes both `macro_rules!` macros as | |
4549 | well as syntax extensions such as `format!`. | |
4550 | * New lint modes have been added, and older ones have been turned on to be | |
4551 | warn-by-default. | |
4552 | * Unnecessary parentheses | |
4553 | * Uppercase statics | |
4554 | * Camel Case types | |
4555 | * Uppercase variables | |
4556 | * Publicly visible private types | |
4557 | * `#[deriving]` with raw pointers | |
4558 | * Unsafe functions can no longer be coerced to closures. | |
4559 | * Various obscure macros such as `log_syntax!` are now behind feature gates. | |
4560 | * The `#[simd]` attribute is now behind a feature gate. | |
4561 | * Visibility is no longer allowed on `extern crate` statements, and | |
4562 | unnecessary visibility (`priv`) is no longer allowed on `use` statements. | |
4563 | * Trailing commas are now allowed in argument lists and tuple patterns. | |
4564 | * The `do` keyword has been removed, it is now a reserved keyword. | |
4565 | * Default type parameters have been implemented, but are feature gated. | |
4566 | * Borrowed variables through captures in closures are now considered soundly. | |
4567 | * `extern mod` is now `extern crate` | |
4568 | * The `Freeze` trait has been removed. | |
4569 | * The `Share` trait has been added for types that can be shared among | |
4570 | threads. | |
4571 | * Labels in macros are now hygienic. | |
4572 | * Expression/statement macro invocations can be delimited with `{}` now. | |
4573 | * Treatment of types allowed in `static mut` locations has been tweaked. | |
4574 | * The `*` and `.` operators are now overloadable through the `Deref` and | |
4575 | `DerefMut` traits. | |
4576 | * `~Trait` and `proc` no longer have `Send` bounds by default. | |
4577 | * Partial type hints are now supported with the `_` type marker. | |
4578 | * An `Unsafe` type was introduced for interior mutability. It is now | |
4579 | considered undefined to transmute from `&T` to `&mut T` without using the | |
4580 | `Unsafe` type. | |
4581 | * The #[linkage] attribute was implemented for extern statics/functions. | |
4582 | * The inner attribute syntax has changed from `#[foo];` to `#![foo]`. | |
4583 | * `Pod` was renamed to `Copy`. | |
4584 | ||
4585 | * Libraries | |
4586 | * The `libextra` library has been removed. It has now been decomposed into | |
4587 | component libraries with smaller and more focused nuggets of | |
4588 | functionality. The full list of libraries can be found on the | |
4589 | documentation index page. | |
4590 | * std: `std::condition` has been removed. All I/O errors are now propagated | |
4591 | through the `Result` type. In order to assist with error handling, a | |
4592 | `try!` macro for unwrapping errors with an early return and a lint for | |
4593 | unused results has been added. See #12039 for more information. | |
4594 | * std: The `vec` module has been renamed to `slice`. | |
4595 | * std: A new vector type, `Vec<T>`, has been added in preparation for DST. | |
4596 | This will become the only growable vector in the future. | |
4597 | * std: `std::io` now has more public-reexports. Types such as `BufferedReader` | |
4598 | are now found at `std::io::BufferedReader` instead of | |
4599 | `std::io::buffered::BufferedReader`. | |
4600 | * std: `print` and `println` are no longer in the prelude, the `print!` and | |
4601 | `println!` macros are intended to be used instead. | |
4602 | * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer | |
4603 | attempts to statically prevent cycles. | |
4604 | * std: The standard distribution is adopting the policy of pushing failure | |
4605 | to the user rather than failing in libraries. Many functions (such as | |
4606 | `slice::last()`) now return `Option<T>` instead of `T` + failing. | |
4607 | * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new | |
4608 | deriving mode: `#[deriving(Show)]`. | |
4609 | * std: `ToStr` is now implemented for all types implementing `Show`. | |
4610 | * std: The formatting trait methods now take `&self` instead of `&T` | |
4611 | * std: The `invert()` method on iterators has been renamed to `rev()` | |
4612 | * std: `std::num` has seen a reduction in the genericity of its traits, | |
4613 | consolidating functionality into a few core traits. | |
4614 | * std: Backtraces are now printed on task failure if the environment | |
4615 | variable `RUST_BACKTRACE` is present. | |
4616 | * std: Naming conventions for iterators have been standardized. More details | |
4617 | can be found on the wiki's style guide. | |
4618 | * std: `eof()` has been removed from the `Reader` trait. Specific types may | |
4619 | still implement the function. | |
4620 | * std: Networking types are now cloneable to allow simultaneous reads/writes. | |
4621 | * std: `assert_approx_eq!` has been removed | |
4622 | * std: The `e` and `E` formatting specifiers for floats have been added to | |
4623 | print them in exponential notation. | |
4624 | * std: The `Times` trait has been removed | |
4625 | * std: Indications of variance and opting out of builtin bounds is done | |
4626 | through marker types in `std::kinds::marker` now | |
4627 | * std: `hash` has been rewritten, `IterBytes` has been removed, and | |
4628 | `#[deriving(Hash)]` is now possible. | |
4629 | * std: `SharedChan` has been removed, `Sender` is now cloneable. | |
4630 | * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`. | |
4631 | * std: `Chan::new` is now `channel()`. | |
4632 | * std: A new synchronous channel type has been implemented. | |
4633 | * std: A `select!` macro is now provided for selecting over `Receiver`s. | |
4634 | * std: `hashmap` and `trie` have been moved to `libcollections` | |
4635 | * std: `run` has been rolled into `io::process` | |
4636 | * std: `assert_eq!` now uses `{}` instead of `{:?}` | |
4637 | * std: The equality and comparison traits have seen some reorganization. | |
4638 | * std: `rand` has moved to `librand`. | |
4639 | * std: `to_{lower,upper}case` has been implemented for `char`. | |
4640 | * std: Logging has been moved to `liblog`. | |
4641 | * collections: `HashMap` has been rewritten for higher performance and less | |
4642 | memory usage. | |
4643 | * native: The default runtime is now `libnative`. If `libgreen` is desired, | |
4644 | it can be booted manually. The runtime guide has more information and | |
4645 | examples. | |
4646 | * native: All I/O functionality except signals has been implemented. | |
4647 | * green: Task spawning with `libgreen` has been optimized with stack caching | |
4648 | and various trimming of code. | |
4649 | * green: Tasks spawned by `libgreen` now have an unmapped guard page. | |
4650 | * sync: The `extra::sync` module has been updated to modern rust (and moved | |
4651 | to the `sync` library), tweaking and improving various interfaces while | |
4652 | dropping redundant functionality. | |
4653 | * sync: A new `Barrier` type has been added to the `sync` library. | |
4654 | * sync: An efficient mutex for native and green tasks has been implemented. | |
4655 | * serialize: The `base64` module has seen some improvement. It treats | |
4656 | newlines better, has non-string error values, and has seen general | |
4657 | cleanup. | |
4658 | * fourcc: A `fourcc!` macro was introduced | |
4659 | * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a | |
4660 | hexadecimal literal. | |
4661 | ||
4662 | * Tooling | |
4663 | * `rustpkg` has been deprecated and removed from the main repository. Its | |
4664 | replacement, `cargo`, is under development. | |
4665 | * Nightly builds of rust are now available | |
4666 | * The memory usage of rustc has been improved many times throughout this | |
4667 | release cycle. | |
4668 | * The build process supports disabling rpath support for the rustc binary | |
4669 | itself. | |
4670 | * Code generation has improved in some cases, giving more information to the | |
4671 | LLVM optimization passes to enable more extensive optimizations. | |
4672 | * Debuginfo compatibility with lldb on OSX has been restored. | |
4673 | * The master branch is now gated on an android bot, making building for | |
4674 | android much more reliable. | |
4675 | * Output flags have been centralized into one `--emit` flag. | |
4676 | * Crate type flags have been centralized into one `--crate-type` flag. | |
4677 | * Codegen flags have been consolidated behind a `-C` flag. | |
4678 | * Linking against outdated crates now has improved error messages. | |
4679 | * Error messages with lifetimes will often suggest how to annotate the | |
4680 | function to fix the error. | |
4681 | * Many more types are documented in the standard library, and new guides | |
4682 | were written. | |
4683 | * Many `rustdoc` improvements: | |
4684 | * code blocks are syntax highlighted. | |
4685 | * render standalone markdown files. | |
4686 | * the --test flag tests all code blocks by default. | |
4687 | * exported macros are displayed. | |
4688 | * reexported types have their documentation inlined at the location of the | |
4689 | first reexport. | |
4690 | * search works across crates that have been rendered to the same output | |
4691 | directory. | |
4692 | ||
62682a34 | 4693 | |
b039eaaf | 4694 | Version 0.9 (2014-01-09) |
62682a34 | 4695 | ========================== |
1a4d82fc JJ |
4696 | |
4697 | * ~1800 changes, numerous bugfixes | |
4698 | ||
4699 | * Language | |
4700 | * The `float` type has been removed. Use `f32` or `f64` instead. | |
4701 | * A new facility for enabling experimental features (feature gating) has | |
4702 | been added, using the crate-level `#[feature(foo)]` attribute. | |
4703 | * Managed boxes (@) are now behind a feature gate | |
4704 | (`#[feature(managed_boxes)]`) in preparation for future removal. Use the | |
4705 | standard library's `Gc` or `Rc` types instead. | |
4706 | * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead. | |
4707 | * Jumping back to the top of a loop is now done with `continue` instead of | |
4708 | `loop`. | |
4709 | * Strings can no longer be mutated through index assignment. | |
4710 | * Raw strings can be created via the basic `r"foo"` syntax or with matched | |
4711 | hash delimiters, as in `r###"foo"###`. | |
4712 | * `~fn` is now written `proc (args) -> retval { ... }` and may only be | |
4713 | called once. | |
4714 | * The `&fn` type is now written `|args| -> ret` to match the literal form. | |
4715 | * `@fn`s have been removed. | |
4716 | * `do` only works with procs in order to make it obvious what the cost | |
4717 | of `do` is. | |
4718 | * Single-element tuple-like structs can no longer be dereferenced to | |
4719 | obtain the inner value. A more comprehensive solution for overloading | |
4720 | the dereference operator will be provided in the future. | |
4721 | * The `#[link(...)]` attribute has been replaced with | |
4722 | `#[crate_id = "name#vers"]`. | |
4723 | * Empty `impl`s must be terminated with empty braces and may not be | |
4724 | terminated with a semicolon. | |
4725 | * Keywords are no longer allowed as lifetime names; the `self` lifetime | |
4726 | no longer has any special meaning. | |
4727 | * The old `fmt!` string formatting macro has been removed. | |
4728 | * `printf!` and `printfln!` (old-style formatting) removed in favor of | |
4729 | `print!` and `println!`. | |
4730 | * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`. | |
4731 | * The `extern mod foo (name = "bar")` syntax has been removed. Use | |
4732 | `extern mod foo = "bar"` instead. | |
4733 | * New reserved keywords: `alignof`, `offsetof`, `sizeof`. | |
4734 | * Macros can have attributes. | |
4735 | * Macros can expand to items with attributes. | |
4736 | * Macros can expand to multiple items. | |
4737 | * The `asm!` macro is feature-gated (`#[feature(asm)]`). | |
4738 | * Comments may be nested. | |
4739 | * Values automatically coerce to trait objects they implement, without | |
4740 | an explicit `as`. | |
4741 | * Enum discriminants are no longer an entire word but as small as needed to | |
4742 | contain all the variants. The `repr` attribute can be used to override | |
4743 | the discriminant size, as in `#[repr(int)]` for integer-sized, and | |
4744 | `#[repr(C)]` to match C enums. | |
4745 | * Non-string literals are not allowed in attributes (they never worked). | |
4746 | * The FFI now supports variadic functions. | |
4747 | * Octal numeric literals, as in `0o7777`. | |
4748 | * The `concat!` syntax extension performs compile-time string concatenation. | |
4749 | * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been | |
4750 | removed as Rust no longer uses segmented stacks. | |
4751 | * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`). | |
4752 | * Ignoring all fields of an enum variant or tuple-struct is done with `..`, | |
4753 | not `*`; ignoring remaining fields of a struct is also done with `..`, | |
4754 | not `_`; ignoring a slice of a vector is done with `..`, not `.._`. | |
4755 | * `rustc` supports the "win64" calling convention via `extern "win64"`. | |
4756 | * `rustc` supports the "system" calling convention, which defaults to the | |
4757 | preferred convention for the target platform, "stdcall" on 32-bit Windows, | |
4758 | "C" elsewhere. | |
4759 | * The `type_overflow` lint (default: warn) checks literals for overflow. | |
4760 | * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`. | |
4761 | * The `attribute_usage` lint (default: warn) warns about unknown | |
4762 | attributes. | |
4763 | * The `unknown_features` lint (default: warn) warns about unknown | |
4764 | feature gates. | |
4765 | * The `dead_code` lint (default: warn) checks for dead code. | |
4766 | * Rust libraries can be linked statically to one another | |
4767 | * `#[link_args]` is behind the `link_args` feature gate. | |
4768 | * Native libraries are now linked with `#[link(name = "foo")]` | |
4769 | * Native libraries can be statically linked to a rust crate | |
4770 | (`#[link(name = "foo", kind = "static")]`). | |
4771 | * Native OS X frameworks are now officially supported | |
4772 | (`#[link(name = "foo", kind = "framework")]`). | |
4773 | * The `#[thread_local]` attribute creates thread-local (not task-local) | |
4774 | variables. Currently behind the `thread_local` feature gate. | |
4775 | * The `return` keyword may be used in closures. | |
4776 | * Types that can be copied via a memcpy implement the `Pod` kind. | |
4777 | * The `cfg` attribute can now be used on struct fields and enum variants. | |
4778 | ||
4779 | * Libraries | |
4780 | * std: The `option` and `result` API's have been overhauled to make them | |
4781 | simpler, more consistent, and more composable. | |
4782 | * std: The entire `std::io` module has been replaced with one that is | |
4783 | more comprehensive and that properly interfaces with the underlying | |
4784 | scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all | |
4785 | implemented. | |
4786 | * std: `io::util` contains a number of useful implementations of | |
4787 | `Reader` and `Writer`, including `NullReader`, `NullWriter`, | |
4788 | `ZeroReader`, `TeeReader`. | |
4789 | * std: The reference counted pointer type `extra::rc` moved into std. | |
4790 | * std: The `Gc` type in the `gc` module will replace `@` (it is currently | |
4791 | just a wrapper around it). | |
4792 | * std: The `Either` type has been removed. | |
4793 | * std: `fmt::Default` can be implemented for any type to provide default | |
4794 | formatting to the `format!` macro, as in `format!("{}", myfoo)`. | |
4795 | * std: The `rand` API continues to be tweaked. | |
4796 | * std: The `rust_begin_unwind` function, useful for inserting breakpoints | |
4797 | on failure in gdb, is now named `rust_fail`. | |
4798 | * std: The `each_key` and `each_value` methods on `HashMap` have been | |
4799 | replaced by the `keys` and `values` iterators. | |
4800 | * std: Functions dealing with type size and alignment have moved from the | |
4801 | `sys` module to the `mem` module. | |
4802 | * std: The `path` module was written and API changed. | |
4803 | * std: `str::from_utf8` has been changed to cast instead of allocate. | |
4804 | * std: `starts_with` and `ends_with` methods added to vectors via the | |
4805 | `ImmutableEqVector` trait, which is in the prelude. | |
4806 | * std: Vectors can be indexed with the `get_opt` method, which returns `None` | |
4807 | if the index is out of bounds. | |
4808 | * std: Task failure no longer propagates between tasks, as the model was | |
4809 | complex, expensive, and incompatible with thread-based tasks. | |
4810 | * std: The `Any` type can be used for dynamic typing. | |
4811 | * std: `~Any` can be passed to the `fail!` macro and retrieved via | |
4812 | `task::try`. | |
4813 | * std: Methods that produce iterators generally do not have an `_iter` | |
4814 | suffix now. | |
4815 | * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability | |
4816 | roots (mutable fields, etc.). Use instead of e.g. `@mut`. | |
4817 | * std: `util::ignore` renamed to `prelude::drop`. | |
4818 | * std: Slices have `sort` and `sort_by` methods via the `MutableVector` | |
4819 | trait. | |
4820 | * std: `vec::raw` has seen a lot of cleanup and API changes. | |
4821 | * std: The standard library no longer includes any C++ code, and very | |
4822 | minimal C, eliminating the dependency on libstdc++. | |
4823 | * std: Runtime scheduling and I/O functionality has been factored out into | |
4824 | extensible interfaces and is now implemented by two different crates: | |
4825 | libnative, for native threading and I/O; and libgreen, for green threading | |
4826 | and I/O. This paves the way for using the standard library in more limited | |
4827 | embedded environments. | |
4828 | * std: The `comm` module has been rewritten to be much faster, have a | |
4829 | simpler, more consistent API, and to work for both native and green | |
4830 | threading. | |
4831 | * std: All libuv dependencies have been moved into the rustuv crate. | |
4832 | * native: New implementations of runtime scheduling on top of OS threads. | |
4833 | * native: New native implementations of TCP, UDP, file I/O, process spawning, | |
4834 | and other I/O. | |
4835 | * green: The green thread scheduler and message passing types are almost | |
4836 | entirely lock-free. | |
4837 | * extra: The `flatpipes` module had bitrotted and was removed. | |
4838 | * extra: All crypto functions have been removed and Rust now has a policy of | |
4839 | not reimplementing crypto in the standard library. In the future crypto | |
4840 | will be provided by external crates with bindings to established libraries. | |
4841 | * extra: `c_vec` has been modernized. | |
4842 | * extra: The `sort` module has been removed. Use the `sort` method on | |
4843 | mutable slices. | |
4844 | ||
4845 | * Tooling | |
4846 | * The `rust` and `rusti` commands have been removed, due to lack of | |
4847 | maintenance. | |
4848 | * `rustdoc` was completely rewritten. | |
4849 | * `rustdoc` can test code examples in documentation. | |
4850 | * `rustpkg` can test packages with the argument, 'test'. | |
4851 | * `rustpkg` supports arbitrary dependencies, including C libraries. | |
4852 | * `rustc`'s support for generating debug info is improved again. | |
4853 | * `rustc` has better error reporting for unbalanced delimiters. | |
4854 | * `rustc`'s JIT support was removed due to bitrot. | |
4855 | * Executables and static libraries can be built with LTO (-Z lto) | |
4856 | * `rustc` adds a `--dep-info` flag for communicating dependencies to | |
4857 | build tools. | |
4858 | ||
62682a34 | 4859 | |
b039eaaf | 4860 | Version 0.8 (2013-09-26) |
62682a34 | 4861 | ============================ |
1a4d82fc JJ |
4862 | |
4863 | * ~2200 changes, numerous bugfixes | |
4864 | ||
4865 | * Language | |
4866 | * The `for` loop syntax has changed to work with the `Iterator` trait. | |
4867 | * At long last, unwinding works on Windows. | |
4868 | * Default methods are ready for use. | |
4869 | * Many trait inheritance bugs fixed. | |
4870 | * Owned and borrowed trait objects work more reliably. | |
4871 | * `copy` is no longer a keyword. It has been replaced by the `Clone` trait. | |
4872 | * rustc can omit emission of code for the `debug!` macro if it is passed | |
4873 | `--cfg ndebug` | |
4874 | * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look | |
4875 | for foo.rs, then foo/mod.rs, and will generate an error when both are | |
4876 | present. | |
4877 | * Strings no longer contain trailing nulls. The new `std::c_str` module | |
4878 | provides new mechanisms for converting to C strings. | |
4879 | * The type of foreign functions is now `extern "C" fn` instead of `*u8'. | |
4880 | * The FFI has been overhauled such that foreign functions are called directly, | |
4881 | instead of through a stack-switching wrapper. | |
4882 | * Calling a foreign function must be done through a Rust function with the | |
4883 | `#[fixed_stack_segment]` attribute. | |
4884 | * The `externfn!` macro can be used to declare both a foreign function and | |
4885 | a `#[fixed_stack_segment]` wrapper at once. | |
4886 | * `pub` and `priv` modifiers on `extern` blocks are no longer parsed. | |
4887 | * `unsafe` is no longer allowed on extern fns - they are all unsafe. | |
4888 | * `priv` is disallowed everywhere except for struct fields and enum variants. | |
4889 | * `&T` (besides `&'static T`) is no longer allowed in `@T`. | |
4890 | * `ref` bindings in irrefutable patterns work correctly now. | |
4891 | * `char` is now prevented from containing invalid code points. | |
4892 | * Casting to `bool` is no longer allowed. | |
4893 | * `\0` is now accepted as an escape in chars and strings. | |
4894 | * `yield` is a reserved keyword. | |
4895 | * `typeof` is a reserved keyword. | |
4896 | * Crates may be imported by URL with `extern mod foo = "url";`. | |
4897 | * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }` | |
4898 | * Static vectors can be initialized with repeating elements, | |
4899 | e.g. `static foo: [u8, .. 100]: [0, .. 100];`. | |
4900 | * Static structs can be initialized with functional record update, | |
4901 | e.g. `static foo: Foo = Foo { a: 5, .. bar };`. | |
4902 | * `cfg!` can be used to conditionally execute code based on the crate | |
4903 | configuration, similarly to `#[cfg(...)]`. | |
4904 | * The `unnecessary_qualification` lint detects unneeded module | |
4905 | prefixes (default: allow). | |
4906 | * Arithmetic operations have been implemented on the SIMD types in | |
4907 | `std::unstable::simd`. | |
4908 | * Exchange allocation headers were removed, reducing memory usage. | |
4909 | * `format!` implements a completely new, extensible, and higher-performance | |
4910 | string formatting system. It will replace `fmt!`. | |
4911 | * `print!` and `println!` write formatted strings (using the `format!` | |
4912 | extension) to stdout. | |
4913 | * `write!` and `writeln!` write formatted strings (using the `format!` | |
4914 | extension) to the new Writers in `std::rt::io`. | |
4915 | * The library section in which a function or static is placed may | |
4916 | be specified with `#[link_section = "..."]`. | |
4917 | * The `proto!` syntax extension for defining bounded message protocols | |
4918 | was removed. | |
4919 | * `macro_rules!` is hygienic for `let` declarations. | |
4920 | * The `#[export_name]` attribute specifies the name of a symbol. | |
4921 | * `unreachable!` can be used to indicate unreachable code, and fails | |
4922 | if executed. | |
4923 | ||
4924 | * Libraries | |
4925 | * std: Transitioned to the new runtime, written in Rust. | |
4926 | * std: Added an experimental I/O library, `rt::io`, based on the new | |
4927 | runtime. | |
4928 | * std: A new generic `range` function was added to the prelude, replacing | |
4929 | `uint::range` and friends. | |
4930 | * std: `range_rev` no longer exists. Since range is an iterator it can be | |
4931 | reversed with `range(lo, hi).invert()`. | |
4932 | * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default` | |
4933 | renamed to `unwrap_or`. | |
4934 | * std: The `iterator` module was renamed to `iter`. | |
4935 | * std: Integral types now support the `checked_add`, `checked_sub`, and | |
4936 | `checked_mul` operations for detecting overflow. | |
4937 | * std: Many methods in `str`, `vec`, `option, `result` were renamed for | |
4938 | consistency. | |
4939 | * std: Methods are standardizing on conventions for casting methods: | |
4940 | `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary | |
4941 | and cheap casts. | |
4942 | * std: The `CString` type in `c_str` provides new ways to convert to and | |
4943 | from C strings. | |
4944 | * std: `DoubleEndedIterator` can yield elements in two directions. | |
4945 | * std: The `mut_split` method on vectors partitions an `&mut [T]` into | |
4946 | two splices. | |
4947 | * std: `str::from_bytes` renamed to `str::from_utf8`. | |
4948 | * std: `pop_opt` and `shift_opt` methods added to vectors. | |
4949 | * std: The task-local data interface no longer uses @, and keys are | |
4950 | no longer function pointers. | |
4951 | * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`. | |
4952 | * std: Added `SharedPort` to `comm`. | |
4953 | * std: `Eq` has a default method for `ne`; only `eq` is required | |
4954 | in implementations. | |
4955 | * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt` | |
4956 | is required in implementations. | |
4957 | * std: `is_utf8` performance is improved, impacting many string functions. | |
4958 | * std: `os::MemoryMap` provides cross-platform mmap. | |
4959 | * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that | |
4960 | are not 'in-bounds' are considered undefined. | |
4961 | * std: Many freestanding functions in `vec` removed in favor of methods. | |
4962 | * std: Many freestanding functions on scalar types removed in favor of | |
4963 | methods. | |
4964 | * std: Many options to task builders were removed since they don't make | |
4965 | sense in the new scheduler design. | |
4966 | * std: More containers implement `FromIterator` so can be created by the | |
4967 | `collect` method. | |
4968 | * std: More complete atomic types in `unstable::atomics`. | |
4969 | * std: `comm::PortSet` removed. | |
4970 | * std: Mutating methods in the `Set` and `Map` traits have been moved into | |
4971 | the `MutableSet` and `MutableMap` traits. `Container::is_empty`, | |
4972 | `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have | |
4973 | default implementations. | |
4974 | * std: Various `from_str` functions were removed in favor of a generic | |
4975 | `from_str` which is available in the prelude. | |
4976 | * std: `util::unreachable` removed in favor of the `unreachable!` macro. | |
4977 | * extra: `dlist`, the doubly-linked list was modernized. | |
4978 | * extra: Added a `hex` module with `ToHex` and `FromHex` traits. | |
4979 | * extra: Added `glob` module, replacing `std::os::glob`. | |
4980 | * extra: `rope` was removed. | |
4981 | * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`. | |
4982 | * extra: `net`, and `timer` were removed. The experimental replacements | |
4983 | are `std::rt::io::net` and `std::rt::io::timer`. | |
4984 | * extra: Iterators implemented for `SmallIntMap`. | |
4985 | * extra: Iterators implemented for `Bitv` and `BitvSet`. | |
4986 | * extra: `SmallIntSet` removed. Use `BitvSet`. | |
4987 | * extra: Performance of JSON parsing greatly improved. | |
4988 | * extra: `semver` updated to SemVer 2.0.0. | |
4989 | * extra: `term` handles more terminals correctly. | |
4990 | * extra: `dbg` module removed. | |
4991 | * extra: `par` module removed. | |
4992 | * extra: `future` was cleaned up, with some method renames. | |
4993 | * extra: Most free functions in `getopts` were converted to methods. | |
4994 | ||
4995 | * Other | |
4996 | * rustc's debug info generation (`-Z debug-info`) is greatly improved. | |
4997 | * rustc accepts `--target-cpu` to compile to a specific CPU architecture, | |
4998 | similarly to gcc's `--march` flag. | |
4999 | * rustc's performance compiling small crates is much better. | |
5000 | * rustpkg has received many improvements. | |
5001 | * rustpkg supports git tags as package IDs. | |
5002 | * rustpkg builds into target-specific directories so it can be used for | |
5003 | cross-compiling. | |
5004 | * The number of concurrent test tasks is controlled by the environment | |
5005 | variable RUST_TEST_TASKS. | |
5006 | * The test harness can now report metrics for benchmarks. | |
5007 | * All tools have man pages. | |
5008 | * Programs compiled with `--test` now support the `-h` and `--help` flags. | |
5009 | * The runtime uses jemalloc for allocations. | |
5010 | * Segmented stacks are temporarily disabled as part of the transition to | |
5011 | the new runtime. Stack overflows are possible! | |
5012 | * A new documentation backend, rustdoc_ng, is available for use. It is | |
5013 | still invoked through the normal `rustdoc` command. | |
5014 | ||
62682a34 | 5015 | |
b039eaaf | 5016 | Version 0.7 (2013-07-03) |
62682a34 | 5017 | ======================= |
1a4d82fc JJ |
5018 | |
5019 | * ~2000 changes, numerous bugfixes | |
5020 | ||
5021 | * Language | |
5022 | * `impl`s no longer accept a visibility qualifier. Put them on methods | |
5023 | instead. | |
5024 | * The borrow checker has been rewritten with flow-sensitivity, fixing | |
5025 | many bugs and inconveniences. | |
5026 | * The `self` parameter no longer implicitly means `&'self self`, | |
5027 | and can be explicitly marked with a lifetime. | |
5028 | * Overloadable compound operators (`+=`, etc.) have been temporarily | |
5029 | removed due to bugs. | |
5030 | * The `for` loop protocol now requires `for`-iterators to return `bool` | |
5031 | so they compose better. | |
5032 | * The `Durable` trait is replaced with the `'static` bounds. | |
5033 | * Trait default methods work more often. | |
5034 | * Structs with the `#[packed]` attribute have byte alignment and | |
5035 | no padding between fields. | |
5036 | * Type parameters bound by `Copy` must now be copied explicitly with | |
5037 | the `copy` keyword. | |
5038 | * It is now illegal to move out of a dereferenced unsafe pointer. | |
5039 | * `Option<~T>` is now represented as a nullable pointer. | |
5040 | * `@mut` does dynamic borrow checks correctly. | |
5041 | * The `main` function is only detected at the topmost level of the crate. | |
5042 | The `#[main]` attribute is still valid anywhere. | |
5043 | * Struct fields may no longer be mutable. Use inherited mutability. | |
5044 | * The `#[no_send]` attribute makes a type that would otherwise be | |
5045 | `Send`, not. | |
5046 | * The `#[no_freeze]` attribute makes a type that would otherwise be | |
5047 | `Freeze`, not. | |
5048 | * Unbounded recursion will abort the process after reaching the limit | |
5049 | specified by the `RUST_MAX_STACK` environment variable (default: 1GB). | |
5050 | * The `vecs_implicitly_copyable` lint mode has been removed. Vectors | |
5051 | are never implicitly copyable. | |
5052 | * `#[static_assert]` makes compile-time assertions about static bools. | |
5053 | * At long last, 'argument modes' no longer exist. | |
5054 | * The rarely used `use mod` statement no longer exists. | |
5055 | ||
5056 | * Syntax extensions | |
5057 | * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style | |
5058 | argument list. | |
5059 | * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`, | |
5060 | `Rand`, `Zero` and `ToStr` can all be automatically derived with | |
5061 | `#[deriving(...)]`. | |
5062 | * The `bytes!` macro returns a vector of bytes for string, u8, char, | |
5063 | and unsuffixed integer literals. | |
5064 | ||
5065 | * Libraries | |
5066 | * The `core` crate was renamed to `std`. | |
5067 | * The `std` crate was renamed to `extra`. | |
5068 | * More and improved documentation. | |
5069 | * std: `iterator` module for external iterator objects. | |
5070 | * Many old-style (internal, higher-order function) iterators replaced by | |
5071 | implementations of `Iterator`. | |
5072 | * std: Many old internal vector and string iterators, | |
5073 | incl. `any`, `all`. removed. | |
5074 | * std: The `finalize` method of `Drop` renamed to `drop`. | |
5075 | * std: The `drop` method now takes `&mut self` instead of `&self`. | |
5076 | * std: The prelude no longer reexports any modules, only types and traits. | |
5077 | * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`, | |
5078 | `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits. | |
5079 | * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`, | |
5080 | `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`. | |
5081 | * std: Tuple traits and accessors defined for up to 12-tuples, e.g. | |
5082 | `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`. | |
5083 | * std: Many types implement `Clone`. | |
5084 | * std: `path` type renamed to `Path`. | |
5085 | * std: `mut` module and `Mut` type removed. | |
5086 | * std: Many standalone functions removed in favor of methods and iterators | |
5087 | in `vec`, `str`. In the future methods will also work as functions. | |
5088 | * std: `reinterpret_cast` removed. Use `transmute`. | |
5089 | * std: ascii string handling in `std::ascii`. | |
5090 | * std: `Rand` is implemented for ~/@. | |
5091 | * std: `run` module for spawning processes overhauled. | |
5092 | * std: Various atomic types added to `unstable::atomic`. | |
5093 | * std: Various types implement `Zero`. | |
5094 | * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`. | |
5095 | * std: Borrowed pointer functions moved from `ptr` to `borrow`. | |
5096 | * std: Added `os::mkdir_recursive`. | |
5097 | * std: Added `os::glob` function performs filesystems globs. | |
5098 | * std: `FuzzyEq` renamed to `ApproxEq`. | |
5099 | * std: `Map` now defines `pop` and `swap` methods. | |
5100 | * std: `Cell` constructors converted to static methods. | |
5101 | * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`. | |
5102 | * extra: `flate` module moved from `std` to `extra`. | |
5103 | * extra: `fileinput` module for iterating over a series of files. | |
5104 | * extra: `Complex` number type and `complex` module. | |
5105 | * extra: `Rational` number type and `rational` module. | |
5106 | * extra: `BigInt`, `BigUint` implement numeric and comparison traits. | |
5107 | * extra: `term` uses terminfo now, is more correct. | |
5108 | * extra: `arc` functions converted to methods. | |
5109 | * extra: Implementation of fixed output size variations of SHA-2. | |
5110 | ||
5111 | * Tooling | |
5112 | * `unused_variable` lint mode for unused variables (default: warn). | |
5113 | * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks | |
5114 | (default: warn). | |
5115 | * `unused_mut` lint mode for identifying unused `mut` qualifiers | |
5116 | (default: warn). | |
5117 | * `dead_assignment` lint mode for unread variables (default: warn). | |
5118 | * `unnecessary_allocation` lint mode detects some heap allocations that are | |
5119 | immediately borrowed so could be written without allocating (default: warn). | |
5120 | * `missing_doc` lint mode (default: allow). | |
5121 | * `unreachable_code` lint mode (default: warn). | |
5122 | * The `rusti` command has been rewritten and a number of bugs addressed. | |
5123 | * rustc outputs in color on more terminals. | |
5124 | * rustc accepts a `--link-args` flag to pass arguments to the linker. | |
5125 | * rustc accepts a `-Z print-link-args` flag for debugging linkage. | |
5126 | * Compiling with `-g` will make the binary record information about | |
5127 | dynamic borrowcheck failures for debugging. | |
5128 | * rustdoc has a nicer stylesheet. | |
5129 | * Various improvements to rustdoc. | |
5130 | * Improvements to rustpkg (see the detailed release notes). | |
5131 | ||
62682a34 | 5132 | |
b039eaaf | 5133 | Version 0.6 (2013-04-03) |
62682a34 | 5134 | ======================== |
1a4d82fc JJ |
5135 | |
5136 | * ~2100 changes, numerous bugfixes | |
5137 | ||
5138 | * Syntax changes | |
5139 | * The self type parameter in traits is now spelled `Self` | |
5140 | * The `self` parameter in trait and impl methods must now be explicitly | |
5141 | named (for example: `fn f(&self) { }`). Implicit self is deprecated. | |
5142 | * Static methods no longer require the `static` keyword and instead | |
5143 | are distinguished by the lack of a `self` parameter | |
5144 | * Replaced the `Durable` trait with the `'static` lifetime | |
5145 | * The old closure type syntax with the trailing sigil has been | |
5146 | removed in favor of the more consistent leading sigil | |
5147 | * `super` is a keyword, and may be prefixed to paths | |
5148 | * Trait bounds are separated with `+` instead of whitespace | |
5149 | * Traits are implemented with `impl Trait for Type` | |
5150 | instead of `impl Type: Trait` | |
5151 | * Lifetime syntax is now `&'l foo` instead of `&l/foo` | |
5152 | * The `export` keyword has finally been removed | |
5153 | * The `move` keyword has been removed (see "Semantic changes") | |
5154 | * The interior mutability qualifier on vectors, `[mut T]`, has been | |
5155 | removed. Use `&mut [T]`, etc. | |
5156 | * `mut` is no longer valid in `~mut T`. Use inherited mutability | |
5157 | * `fail` is no longer a keyword. Use `fail!()` | |
5158 | * `assert` is no longer a keyword. Use `assert!()` | |
5159 | * `log` is no longer a keyword. use `debug!`, etc. | |
5160 | * 1-tuples may be represented as `(T,)` | |
5161 | * Struct fields may no longer be `mut`. Use inherited mutability, | |
5162 | `@mut T`, `core::mut` or `core::cell` | |
5163 | * `extern mod { ... }` is no longer valid syntax for foreign | |
5164 | function modules. Use extern blocks: `extern { ... }` | |
5165 | * Newtype enums removed. Use tuple-structs. | |
5166 | * Trait implementations no longer support visibility modifiers | |
5167 | * Pattern matching over vectors improved and expanded | |
5168 | * `const` renamed to `static` to correspond to lifetime name, | |
5169 | and make room for future `static mut` unsafe mutable globals. | |
5170 | * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc. | |
5171 | * `Clone` implementations can be automatically generated with | |
5172 | `#[deriving(Clone)]` | |
5173 | * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar` | |
5174 | instead of `foo as Bar`. | |
5175 | * Fixed length vector types are now written as `[int, .. 3]` | |
5176 | instead of `[int * 3]`. | |
5177 | * Fixed length vector types can express the length as a constant | |
5178 | expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`) | |
5179 | ||
5180 | * Semantic changes | |
5181 | * Types with owned pointers or custom destructors move by default, | |
5182 | eliminating the `move` keyword | |
5183 | * All foreign functions are considered unsafe | |
5184 | * &mut is now unaliasable | |
5185 | * Writes to borrowed @mut pointers are prevented dynamically | |
5186 | * () has size 0 | |
5187 | * The name of the main function can be customized using #[main] | |
5188 | * The default type of an inferred closure is &fn instead of @fn | |
5189 | * `use` statements may no longer be "chained" - they cannot import | |
5190 | identifiers imported by previous `use` statements | |
5191 | * `use` statements are crate relative, importing from the "top" | |
5192 | of the crate by default. Paths may be prefixed with `super::` | |
5193 | or `self::` to change the search behavior. | |
5194 | * Method visibility is inherited from the implementation declaration | |
5195 | * Structural records have been removed | |
5196 | * Many more types can be used in static items, including enums | |
5197 | 'static-lifetime pointers and vectors | |
5198 | * Pattern matching over vectors improved and expanded | |
5199 | * Typechecking of closure types has been overhauled to | |
5200 | improve inference and eliminate unsoundness | |
5201 | * Macros leave scope at the end of modules, unless that module is | |
5202 | tagged with #[macro_escape] | |
5203 | ||
5204 | * Libraries | |
5205 | * Added big integers to `std::bigint` | |
5206 | * Removed `core::oldcomm` module | |
5207 | * Added pipe-based `core::comm` module | |
5208 | * Numeric traits have been reorganized under `core::num` | |
5209 | * `vec::slice` finally returns a slice | |
5210 | * `debug!` and friends don't require a format string, e.g. `debug!(Foo)` | |
5211 | * Containers reorganized around traits in `core::container` | |
5212 | * `core::dvec` removed, `~[T]` is a drop-in replacement | |
5213 | * `core::send_map` renamed to `core::hashmap` | |
5214 | * `std::map` removed; replaced with `core::hashmap` | |
5215 | * `std::treemap` reimplemented as an owned balanced tree | |
5216 | * `std::deque` and `std::smallintmap` reimplemented as owned containers | |
5217 | * `core::trie` added as a fast ordered map for integer keys | |
5218 | * Set types added to `core::hashmap`, `core::trie` and `std::treemap` | |
5219 | * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to | |
5220 | overload the comparison operators, whereas `TotalOrd` is used | |
5221 | by certain container types | |
5222 | ||
5223 | * Other | |
5224 | * Replaced the 'cargo' package manager with 'rustpkg' | |
5225 | * Added all-purpose 'rust' tool | |
5226 | * `rustc --test` now supports benchmarks with the `#[bench]` attribute | |
5227 | * rustc now *attempts* to offer spelling suggestions | |
5228 | * Improved support for ARM and Android | |
5229 | * Preliminary MIPS backend | |
5230 | * Improved foreign function ABI implementation for x86, x86_64 | |
5231 | * Various memory usage improvements | |
5232 | * Rust code may be embedded in foreign code under limited circumstances | |
5233 | * Inline assembler supported by new asm!() syntax extension. | |
5234 | ||
62682a34 | 5235 | |
b039eaaf | 5236 | Version 0.5 (2012-12-21) |
62682a34 | 5237 | =========================== |
1a4d82fc JJ |
5238 | |
5239 | * ~900 changes, numerous bugfixes | |
5240 | ||
5241 | * Syntax changes | |
5242 | * Removed `<-` move operator | |
5243 | * Completed the transition from the `#fmt` extension syntax to `fmt!` | |
5244 | * Removed old fixed length vector syntax - `[T]/N` | |
5245 | * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc. | |
5246 | * Macros may now expand to items and statements | |
5247 | * `a.b()` is always parsed as a method call, never as a field projection | |
5248 | * `Eq` and `IterBytes` implementations can be automatically generated | |
5249 | with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively | |
5250 | * Removed the special crate language for `.rc` files | |
5251 | * Function arguments may consist of any irrefutable pattern | |
5252 | ||
5253 | * Semantic changes | |
5254 | * `&` and `~` pointers may point to objects | |
5255 | * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums. | |
5256 | * Enum variants may be structs | |
5257 | * Destructors can be added to all nominal types with the Drop trait | |
5258 | * Structs and nullary enum variants may be constants | |
5259 | * Values that cannot be implicitly copied are now automatically moved | |
5260 | without writing `move` explicitly | |
5261 | * `&T` may now be coerced to `*T` | |
5262 | * Coercions happen in `let` statements as well as function calls | |
5263 | * `use` statements now take crate-relative paths | |
5264 | * The module and type namespaces have been merged so that static | |
5265 | method names can be resolved under the trait in which they are | |
5266 | declared | |
5267 | ||
5268 | * Improved support for language features | |
5269 | * Trait inheritance works in many scenarios | |
5270 | * More support for explicit self arguments in methods - `self`, `&self` | |
5271 | `@self`, and `~self` all generally work as expected | |
5272 | * Static methods work in more situations | |
5273 | * Experimental: Traits may declare default methods for the implementations | |
5274 | to use | |
5275 | ||
5276 | * Libraries | |
5277 | * New condition handling system in `core::condition` | |
5278 | * Timsort added to `std::sort` | |
5279 | * New priority queue, `std::priority_queue` | |
5280 | * Pipes for serializable types, `std::flatpipes' | |
5281 | * Serialization overhauled to be trait-based | |
5282 | * Expanded `getopts` definitions | |
5283 | * Moved futures to `std` | |
5284 | * More functions are pure now | |
5285 | * `core::comm` renamed to `oldcomm`. Still deprecated | |
5286 | * `rustdoc` and `cargo` are libraries now | |
5287 | ||
5288 | * Misc | |
5289 | * Added a preliminary REPL, `rusti` | |
5290 | * License changed from MIT to dual MIT/APL2 | |
5291 | ||
62682a34 | 5292 | |
b039eaaf | 5293 | Version 0.4 (2012-10-15) |
62682a34 | 5294 | ========================== |
1a4d82fc JJ |
5295 | |
5296 | * ~2000 changes, numerous bugfixes | |
5297 | ||
5298 | * Syntax | |
5299 | * All keywords are now strict and may not be used as identifiers anywhere | |
5300 | * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send', | |
5301 | 'of', 'with', 'to', 'class'. | |
5302 | * Classes are replaced with simpler structs | |
5303 | * Explicit method self types | |
5304 | * `ret` became `return` and `alt` became `match` | |
5305 | * `import` is now `use`; `use is now `extern mod` | |
5306 | * `extern mod { ... }` is now `extern { ... }` | |
5307 | * `use mod` is the recommended way to import modules | |
5308 | * `pub` and `priv` replace deprecated export lists | |
5309 | * The syntax of `match` pattern arms now uses fat arrow (=>) | |
5310 | * `main` no longer accepts an args vector; use `os::args` instead | |
5311 | ||
5312 | * Semantics | |
5313 | * Trait implementations are now coherent, ala Haskell typeclasses | |
5314 | * Trait methods may be static | |
5315 | * Argument modes are deprecated | |
5316 | * Borrowed pointers are much more mature and recommended for use | |
5317 | * Strings and vectors in the static region are stored in constant memory | |
5318 | * Typestate was removed | |
5319 | * Resolution rewritten to be more reliable | |
5320 | * Support for 'dual-mode' data structures (freezing and thawing) | |
5321 | ||
5322 | * Libraries | |
5323 | * Most binary operators can now be overloaded via the traits in | |
5324 | `core::ops' | |
5325 | * `std::net::url` for representing URLs | |
5326 | * Sendable hash maps in `core::send_map` | |
5327 | * `core::task' gained a (currently unsafe) task-local storage API | |
5328 | ||
5329 | * Concurrency | |
5330 | * An efficient new intertask communication primitive called the pipe, | |
5331 | along with a number of higher-level channel types, in `core::pipes` | |
5332 | * `std::arc`, an atomically reference counted, immutable, shared memory | |
5333 | type | |
5334 | * `std::sync`, various exotic synchronization tools based on arcs and pipes | |
5335 | * Futures are now based on pipes and sendable | |
5336 | * More robust linked task failure | |
5337 | * Improved task builder API | |
5338 | ||
5339 | * Other | |
5340 | * Improved error reporting | |
5341 | * Preliminary JIT support | |
5342 | * Preliminary work on precise GC | |
5343 | * Extensive architectural improvements to rustc | |
5344 | * Begun a transition away from buggy C++-based reflection (shape) code to | |
5345 | Rust-based (visitor) code | |
5346 | * All hash functions and tables converted to secure, randomized SipHash | |
5347 | ||
62682a34 | 5348 | |
b039eaaf | 5349 | Version 0.3 (2012-07-12) |
62682a34 | 5350 | ======================== |
1a4d82fc JJ |
5351 | |
5352 | * ~1900 changes, numerous bugfixes | |
5353 | ||
5354 | * New coding conveniences | |
5355 | * Integer-literal suffix inference | |
5356 | * Per-item control over warnings, errors | |
5357 | * #[cfg(windows)] and #[cfg(unix)] attributes | |
5358 | * Documentation comments | |
5359 | * More compact closure syntax | |
5360 | * 'do' expressions for treating higher-order functions as | |
5361 | control structures | |
5362 | * *-patterns (wildcard extended to all constructor fields) | |
5363 | ||
5364 | * Semantic cleanup | |
5365 | * Name resolution pass and exhaustiveness checker rewritten | |
5366 | * Region pointers and borrow checking supersede alias | |
5367 | analysis | |
5368 | * Init-ness checking is now provided by a region-based liveness | |
5369 | pass instead of the typestate pass; same for last-use analysis | |
5370 | * Extensive work on region pointers | |
5371 | ||
5372 | * Experimental new language features | |
5373 | * Slices and fixed-size, interior-allocated vectors | |
5374 | * #!-comments for lang versioning, shell execution | |
5375 | * Destructors and iface implementation for classes; | |
5376 | type-parameterized classes and class methods | |
5377 | * 'const' type kind for types that can be used to implement | |
5378 | shared-memory concurrency patterns | |
5379 | ||
5380 | * Type reflection | |
5381 | ||
5382 | * Removal of various obsolete features | |
5383 | * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind', | |
5384 | 'crust', 'native' (now 'extern'), 'cont' (now 'again') | |
5385 | ||
5386 | * Constructs: do-while loops ('do' repurposed), fn binding, | |
5387 | resources (replaced by destructors) | |
5388 | ||
5389 | * Compiler reorganization | |
5390 | * Syntax-layer of compiler split into separate crate | |
5391 | * Clang (from LLVM project) integrated into build | |
5392 | * Typechecker split into sub-modules | |
5393 | ||
5394 | * New library code | |
5395 | * New time functions | |
5396 | * Extension methods for many built-in types | |
5397 | * Arc: atomic-refcount read-only / exclusive-use shared cells | |
5398 | * Par: parallel map and search routines | |
5399 | * Extensive work on libuv interface | |
5400 | * Much vector code moved to libraries | |
5401 | * Syntax extensions: #line, #col, #file, #mod, #stringify, | |
5402 | #include, #include_str, #include_bin | |
5403 | ||
5404 | * Tool improvements | |
5405 | * Cargo automatically resolves dependencies | |
5406 | ||
62682a34 | 5407 | |
b039eaaf | 5408 | Version 0.2 (2012-03-29) |
62682a34 | 5409 | ========================= |
1a4d82fc JJ |
5410 | |
5411 | * >1500 changes, numerous bugfixes | |
5412 | ||
5413 | * New docs and doc tooling | |
5414 | ||
5415 | * New port: FreeBSD x86_64 | |
5416 | ||
5417 | * Compilation model enhancements | |
5418 | * Generics now specialized, multiply instantiated | |
5419 | * Functions now inlined across separate crates | |
5420 | ||
5421 | * Scheduling, stack and threading fixes | |
5422 | * Noticeably improved message-passing performance | |
5423 | * Explicit schedulers | |
5424 | * Callbacks from C | |
5425 | * Helgrind clean | |
5426 | ||
5427 | * Experimental new language features | |
5428 | * Operator overloading | |
5429 | * Region pointers | |
5430 | * Classes | |
5431 | ||
5432 | * Various language extensions | |
5433 | * C-callback function types: 'crust fn ...' | |
5434 | * Infinite-loop construct: 'loop { ... }' | |
5435 | * Shorten 'mutable' to 'mut' | |
5436 | * Required mutable-local qualifier: 'let mut ...' | |
5437 | * Basic glob-exporting: 'export foo::*;' | |
5438 | * Alt now exhaustive, 'alt check' for runtime-checked | |
5439 | * Block-function form of 'for' loop, with 'break' and 'ret'. | |
5440 | ||
5441 | * New library code | |
5442 | * AST quasi-quote syntax extension | |
5443 | * Revived libuv interface | |
5444 | * New modules: core::{future, iter}, std::arena | |
5445 | * Merged per-platform std::{os*, fs*} to core::{libc, os} | |
5446 | * Extensive cleanup, regularization in libstd, libcore | |
5447 | ||
62682a34 | 5448 | |
b039eaaf | 5449 | Version 0.1 (2012-01-20) |
62682a34 | 5450 | =============================== |
1a4d82fc JJ |
5451 | |
5452 | * Most language features work, including: | |
5453 | * Unique pointers, unique closures, move semantics | |
5454 | * Interface-constrained generics | |
5455 | * Static interface dispatch | |
5456 | * Stack growth | |
5457 | * Multithread task scheduling | |
5458 | * Typestate predicates | |
5459 | * Failure unwinding, destructors | |
5460 | * Pattern matching and destructuring assignment | |
5461 | * Lightweight block-lambda syntax | |
5462 | * Preliminary macro-by-example | |
5463 | ||
5464 | * Compiler works with the following configurations: | |
5465 | * Linux: x86 and x86_64 hosts and targets | |
cc61c64b | 5466 | * macOS: x86 and x86_64 hosts and targets |
1a4d82fc JJ |
5467 | * Windows: x86 hosts and targets |
5468 | ||
5469 | * Cross compilation / multi-target configuration supported. | |
5470 | ||
5471 | * Preliminary API-documentation and package-management tools included. | |
5472 | ||
5473 | Known issues: | |
5474 | ||
5475 | * Documentation is incomplete. | |
5476 | ||
5477 | * Performance is below intended target. | |
5478 | ||
5479 | * Standard library APIs are subject to extensive change, reorganization. | |
5480 | ||
5481 | * Language-level versioning is not yet operational - future code will | |
5482 | break unexpectedly. |