1 Version 1.11.0 (2016-08-18)
2 ===========================
7 * [`cfg_attr` works on `path` attributes]
8 (https://github.com/rust-lang/rust/pull/34546)
9 * [Support nested `cfg_attr` attributes]
10 (https://github.com/rust-lang/rust/pull/34216)
11 * [Allow statement-generating braced macro invocations at the end of blocks]
12 (https://github.com/rust-lang/rust/pull/34436)
13 * [Macros can be expanded inside of trait definitions]
14 (https://github.com/rust-lang/rust/pull/34213)
15 * [`#[macro_use]` works properly when it is itself expanded from a macro]
16 (https://github.com/rust-lang/rust/pull/34032)
21 * [`BinaryHeap::append`]
22 (https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.append)
23 * [`BTreeMap::append`]
24 (https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.append)
25 * [`BTreeMap::split_off`]
26 (https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.split_off)
27 * [`BTreeSet::append`]
28 (https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.append)
29 * [`BTreeSet::split_off`]
30 (https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.split_off)
32 (https://doc.rust-lang.org/std/primitive.f32.html#method.to_degrees)
33 (in libcore - previously stabilized in libstd)
35 (https://doc.rust-lang.org/std/primitive.f32.html#method.to_radians)
36 (in libcore - previously stabilized in libstd)
38 (https://doc.rust-lang.org/std/primitive.f64.html#method.to_degrees)
39 (in libcore - previously stabilized in libstd)
41 (https://doc.rust-lang.org/std/primitive.f64.html#method.to_radians)
42 (in libcore - previously stabilized in libstd)
44 (https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
45 * [`Iterator::product`]
46 (https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
48 (https://doc.rust-lang.org/std/cell/struct.Cell.html#method.get_mut)
49 * [`RefCell::get_mut`]
50 (https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.get_mut)
55 * [The `thread_local!` macro supports multiple definitions in a single
56 invocation, and can apply attributes]
57 (https://github.com/rust-lang/rust/pull/34077)
58 * [`Cow` implements `Default`]
59 (https://github.com/rust-lang/rust/pull/34305)
60 * [`Wrapping` implements binary, octal, lower-hex and upper-hex
62 (https://github.com/rust-lang/rust/pull/34190)
63 * [The range types implement `Hash`]
64 (https://github.com/rust-lang/rust/pull/34180)
65 * [`lookup_host` ignores unknown address types]
66 (https://github.com/rust-lang/rust/pull/34067)
67 * [`assert_eq!` accepts a custom error message, like `assert!` does]
68 (https://github.com/rust-lang/rust/pull/33976)
69 * [The main thread is now called "main" instead of "<main>"]
70 (https://github.com/rust-lang/rust/pull/33803)
75 * [Disallow specifying features of transitive deps]
76 (https://github.com/rust-lang/cargo/pull/2821)
77 * [Add color support for Windows consoles]
78 (https://github.com/rust-lang/cargo/pull/2804)
79 * [Fix `harness = false` on `[lib]` sections]
80 (https://github.com/rust-lang/cargo/pull/2795)
81 * [Don't panic when `links` contains a '.']
82 (https://github.com/rust-lang/cargo/pull/2787)
83 * [Build scripts can emit warnings]
84 (https://github.com/rust-lang/cargo/pull/2630),
85 and `-vv` prints warnings for all crates.
86 * [Ignore file locks on OS X NFS mounts]
87 (https://github.com/rust-lang/cargo/pull/2720)
88 * [Don't warn about `package.metadata` keys]
89 (https://github.com/rust-lang/cargo/pull/2668).
90 This provides room for expansion by arbitrary tools.
91 * [Add support for cdylib crate types]
92 (https://github.com/rust-lang/cargo/pull/2741)
93 * [Prevent publishing crates when files are dirty]
94 (https://github.com/rust-lang/cargo/pull/2781)
95 * [Don't fetch all crates on clean]
96 (https://github.com/rust-lang/cargo/pull/2704)
97 * [Propagate --color option to rustc]
98 (https://github.com/rust-lang/cargo/pull/2779)
99 * [Fix `cargo doc --open` on Windows]
100 (https://github.com/rust-lang/cargo/pull/2780)
101 * [Improve autocompletion]
102 (https://github.com/rust-lang/cargo/pull/2772)
103 * [Configure colors of stderr as well as stdout]
104 (https://github.com/rust-lang/cargo/pull/2739)
109 * [Caching projections speeds up type check dramatically for some
111 (https://github.com/rust-lang/rust/pull/33816)
112 * [The default `HashMap` hasher is SipHash 1-3 instead of SipHash 2-4]
113 (https://github.com/rust-lang/rust/pull/33940)
114 This hasher is faster, but is believed to provide sufficient
115 protection from collision attacks.
116 * [Comparison of `Ipv4Addr` is 10x faster]
117 (https://github.com/rust-lang/rust/pull/33891)
122 * [Fix empty implementation section on some module pages]
123 (https://github.com/rust-lang/rust/pull/34536)
124 * [Fix inlined renamed reexports in import lists]
125 (https://github.com/rust-lang/rust/pull/34479)
126 * [Fix search result layout for enum variants and struct fields]
127 (https://github.com/rust-lang/rust/pull/34477)
128 * [Fix issues with source links to external crates]
129 (https://github.com/rust-lang/rust/pull/34387)
130 * [Fix redirect pages for renamed reexports]
131 (https://github.com/rust-lang/rust/pull/34245)
136 * [rustc is better at finding the MSVC toolchain]
137 (https://github.com/rust-lang/rust/pull/34492)
138 * [When emitting debug info, rustc emits frame pointers for closures,
139 shims and glue, as it does for all other functions]
140 (https://github.com/rust-lang/rust/pull/33909)
141 * [rust-lldb warns about unsupported versions of LLDB]
142 (https://github.com/rust-lang/rust/pull/34646)
143 * Many more errors have been given error codes and extended
145 * API documentation continues to be improved, with many new examples
150 * [rustc no longer hangs when dependencies recursively re-export
152 (https://github.com/rust-lang/rust/pull/34542)
153 * [rustc requires LLVM 3.7+]
154 (https://github.com/rust-lang/rust/pull/34104)
155 * [The 'How Safe and Unsafe Interact' chapter of The Rustonomicon was
157 (https://github.com/rust-lang/rust/pull/33895)
158 * [rustc support 16-bit pointer sizes]
159 (https://github.com/rust-lang/rust/pull/33460).
160 No targets use this yet, but it works toward AVR support.
165 * [`const`s and `static`s may not have unsized types]
166 (https://github.com/rust-lang/rust/pull/34443)
167 * [The new follow-set rules that place restrictions on `macro_rules!`
168 in order to ensure syntax forward-compatibility have been enabled]
169 (https://github.com/rust-lang/rust/pull/33982)
170 This was an [ammendment to RFC 550]
171 (https://github.com/rust-lang/rfcs/pull/1384),
172 and has been a warning since 1.10.
173 * [`cfg` attribute process has been refactored to fix various bugs]
174 (https://github.com/rust-lang/rust/pull/33706).
175 This causes breakage in some corner cases.
178 Version 1.10.0 (2016-07-07)
179 ===========================
184 * [Allow `concat_idents!` in type positions as well as in expression
186 (https://github.com/rust-lang/rust/pull/33735).
187 * [`Copy` types are required to have a trivial implementation of `Clone`]
188 (https://github.com/rust-lang/rust/pull/33420).
189 [RFC 1521](https://github.com/rust-lang/rfcs/blob/master/text/1521-copy-clone-semantics.md).
190 * [Single-variant enums support the `#[repr(..)]` attribute]
191 (https://github.com/rust-lang/rust/pull/33355).
192 * [Fix `#[derive(RustcEncodable)]` in the presence of other `encode` methods]
193 (https://github.com/rust-lang/rust/pull/32908).
194 * [`panic!` can be converted to a runtime abort with the
195 `-C panic=abort` flag]
196 (https://github.com/rust-lang/rust/pull/32900).
197 [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
198 * [Add a new crate type, 'cdylib']
199 (https://github.com/rust-lang/rust/pull/33553).
200 cdylibs are dynamic libraries suitable for loading by non-Rust hosts.
201 [RFC 1510](https://github.com/rust-lang/rfcs/blob/master/text/1510-rdylib.md).
202 Note that Cargo does not yet directly support cdylibs.
207 * `os::windows::fs::OpenOptionsExt::access_mode`
208 * `os::windows::fs::OpenOptionsExt::share_mode`
209 * `os::windows::fs::OpenOptionsExt::custom_flags`
210 * `os::windows::fs::OpenOptionsExt::attributes`
211 * `os::windows::fs::OpenOptionsExt::security_qos_flags`
212 * `os::unix::fs::OpenOptionsExt::custom_flags`
213 * [`sync::Weak::new`]
214 (http://doc.rust-lang.org/alloc/arc/struct.Weak.html#method.new)
215 * `Default for sync::Weak`
216 * [`panic::set_hook`]
217 (http://doc.rust-lang.org/std/panic/fn.set_hook.html)
218 * [`panic::take_hook`]
219 (http://doc.rust-lang.org/std/panic/fn.take_hook.html)
220 * [`panic::PanicInfo`]
221 (http://doc.rust-lang.org/std/panic/struct.PanicInfo.html)
222 * [`panic::PanicInfo::payload`]
223 (http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.payload)
224 * [`panic::PanicInfo::location`]
225 (http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.location)
226 * [`panic::Location`]
227 (http://doc.rust-lang.org/std/panic/struct.Location.html)
228 * [`panic::Location::file`]
229 (http://doc.rust-lang.org/std/panic/struct.Location.html#method.file)
230 * [`panic::Location::line`]
231 (http://doc.rust-lang.org/std/panic/struct.Location.html#method.line)
232 * [`ffi::CStr::from_bytes_with_nul`]
233 (http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul)
234 * [`ffi::CStr::from_bytes_with_nul_unchecked`]
235 (http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked)
236 * [`ffi::FromBytesWithNulError`]
237 (http://doc.rust-lang.org/std/ffi/struct.FromBytesWithNulError.html)
238 * [`fs::Metadata::modified`]
239 (http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.modified)
240 * [`fs::Metadata::accessed`]
241 (http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.accessed)
242 * [`fs::Metadata::created`]
243 (http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.created)
244 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
245 * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
246 * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
247 * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
248 * [`SocketAddr::is_unnamed`]
249 (http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.is_unnamed)
250 * [`SocketAddr::as_pathname`]
251 (http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.as_pathname)
252 * [`UnixStream::connect`]
253 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.connect)
254 * [`UnixStream::pair`]
255 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.pair)
256 * [`UnixStream::try_clone`]
257 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.try_clone)
258 * [`UnixStream::local_addr`]
259 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.local_addr)
260 * [`UnixStream::peer_addr`]
261 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.peer_addr)
262 * [`UnixStream::set_read_timeout`]
263 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
264 * [`UnixStream::set_write_timeout`]
265 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
266 * [`UnixStream::read_timeout`]
267 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
268 * [`UnixStream::write_timeout`]
269 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
270 * [`UnixStream::set_nonblocking`]
271 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.set_nonblocking)
272 * [`UnixStream::take_error`]
273 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.take_error)
274 * [`UnixStream::shutdown`]
275 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.shutdown)
276 * Read/Write/RawFd impls for `UnixStream`
277 * [`UnixListener::bind`]
278 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.bind)
279 * [`UnixListener::accept`]
280 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.accept)
281 * [`UnixListener::try_clone`]
282 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.try_clone)
283 * [`UnixListener::local_addr`]
284 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.local_addr)
285 * [`UnixListener::set_nonblocking`]
286 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.set_nonblocking)
287 * [`UnixListener::take_error`]
288 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.take_error)
289 * [`UnixListener::incoming`]
290 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.incoming)
291 * RawFd impls for `UnixListener`
292 * [`UnixDatagram::bind`]
293 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.bind)
294 * [`UnixDatagram::unbound`]
295 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.unbound)
296 * [`UnixDatagram::pair`]
297 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.pair)
298 * [`UnixDatagram::connect`]
299 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.connect)
300 * [`UnixDatagram::try_clone`]
301 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.try_clone)
302 * [`UnixDatagram::local_addr`]
303 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.local_addr)
304 * [`UnixDatagram::peer_addr`]
305 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.peer_addr)
306 * [`UnixDatagram::recv_from`]
307 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv_from)
308 * [`UnixDatagram::recv`]
309 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv)
310 * [`UnixDatagram::send_to`]
311 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send_to)
312 * [`UnixDatagram::send`]
313 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send)
314 * [`UnixDatagram::set_read_timeout`]
315 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_read_timeout)
316 * [`UnixDatagram::set_write_timeout`]
317 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_write_timeout)
318 * [`UnixDatagram::read_timeout`]
319 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.read_timeout)
320 * [`UnixDatagram::write_timeout`]
321 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.write_timeout)
322 * [`UnixDatagram::set_nonblocking`]
323 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_nonblocking)
324 * [`UnixDatagram::take_error`]
325 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.take_error)
326 * [`UnixDatagram::shutdown`]
327 (http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.shutdown)
328 * RawFd impls for `UnixDatagram`
329 * `{BTree,Hash}Map::values_mut`
330 * [`<[_]>::binary_search_by_key`]
331 (http://doc.rust-lang.org/beta/std/primitive.slice.html#method.binary_search_by_key)
336 * [The `abs_sub` method of floats is deprecated]
337 (https://github.com/rust-lang/rust/pull/33664).
338 The semantics of this minor method are subtle and probably not what
340 * [Add implementation of Ord for Cell<T> and RefCell<T> where T: Ord]
341 (https://github.com/rust-lang/rust/pull/33306).
342 * [On Linux, if `HashMap`s can't be initialized with `getrandom` they
343 will fall back to `/dev/urandom` temporarily to avoid blocking
345 (https://github.com/rust-lang/rust/pull/33086).
346 * [Implemented negation for wrapping numerals]
347 (https://github.com/rust-lang/rust/pull/33067).
348 * [Implement `Clone` for `binary_heap::IntoIter`]
349 (https://github.com/rust-lang/rust/pull/33050).
350 * [Implement `Display` and `Hash` for `std::num::Wrapping`]
351 (https://github.com/rust-lang/rust/pull/33023).
352 * [Add `Default` implementation for `&CStr`, `CString`]
353 (https://github.com/rust-lang/rust/pull/32990).
354 * [Implement `From<Vec<T>>` and `Into<Vec<T>>` for `VecDeque<T>`]
355 (https://github.com/rust-lang/rust/pull/32866).
356 * [Implement `Default` for `UnsafeCell`, `fmt::Error`, `Condvar`,
358 (https://github.com/rust-lang/rust/pull/32785).
362 * [Cargo.toml supports the `profile.*.panic` option]
363 (https://github.com/rust-lang/cargo/pull/2687).
364 This controls the runtime behavior of the `panic!` macro
365 and can be either "unwind" (the default), or "abort".
366 [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
367 * [Don't throw away errors with `-p` arguments]
368 (https://github.com/rust-lang/cargo/pull/2723).
369 * [Report status to stderr instead of stdout]
370 (https://github.com/rust-lang/cargo/pull/2693).
371 * [Build scripts are passed a `CARGO_MANIFEST_LINKS` environment
372 variable that corresponds to the `links` field of the manifest]
373 (https://github.com/rust-lang/cargo/pull/2710).
374 * [Ban keywords from crate names]
375 (https://github.com/rust-lang/cargo/pull/2707).
376 * [Canonicalize `CARGO_HOME` on Windows]
377 (https://github.com/rust-lang/cargo/pull/2604).
378 * [Retry network requests]
379 (https://github.com/rust-lang/cargo/pull/2396).
380 By default they are retried twice, which can be customized with the
381 `net.retry` value in `.cargo/config`.
382 * [Don't print extra error info for failing subcommands]
383 (https://github.com/rust-lang/cargo/pull/2674).
384 * [Add `--force` flag to `cargo install`]
385 (https://github.com/rust-lang/cargo/pull/2405).
386 * [Don't use `flock` on NFS mounts]
387 (https://github.com/rust-lang/cargo/pull/2623).
388 * [Prefer building `cargo install` artifacts in temporary directories]
389 (https://github.com/rust-lang/cargo/pull/2610).
390 Makes it possible to install multiple crates in parallel.
391 * [Add `cargo test --doc`]
392 (https://github.com/rust-lang/cargo/pull/2578).
393 * [Add `cargo --explain`]
394 (https://github.com/rust-lang/cargo/pull/2551).
395 * [Don't print warnings when `-q` is passed]
396 (https://github.com/rust-lang/cargo/pull/2576).
397 * [Add `cargo doc --lib` and `--bin`]
398 (https://github.com/rust-lang/cargo/pull/2577).
399 * [Don't require build script output to be UTF-8]
400 (https://github.com/rust-lang/cargo/pull/2560).
401 * [Correctly attempt multiple git usernames]
402 (https://github.com/rust-lang/cargo/pull/2584).
407 * [rustc memory usage was reduced by refactoring the context used for
409 (https://github.com/rust-lang/rust/pull/33425).
410 * [Speed up creation of `HashMap`s by caching the random keys used
411 to initialize the hash state]
412 (https://github.com/rust-lang/rust/pull/33318).
413 * [The `find` implementation for `Chain` iterators is 2x faster]
414 (https://github.com/rust-lang/rust/pull/33289).
415 * [Trait selection optimizations speed up type checking by 15%]
416 (https://github.com/rust-lang/rust/pull/33138).
417 * [Efficient trie lookup for boolean Unicode properties]
418 (https://github.com/rust-lang/rust/pull/33098).
419 10x faster than the previous lookup tables.
420 * [Special case `#[derive(Copy, Clone)]` to avoid bloat]
421 (https://github.com/rust-lang/rust/pull/31414).
426 * Many incremental improvements to documentation and rustdoc.
427 * [rustdoc: List blanket trait impls]
428 (https://github.com/rust-lang/rust/pull/33514).
429 * [rustdoc: Clean up ABI rendering]
430 (https://github.com/rust-lang/rust/pull/33151).
431 * [Indexing with the wrong type produces a more informative error]
432 (https://github.com/rust-lang/rust/pull/33401).
433 * [Improve diagnostics for constants being used in irrefutable patterns]
434 (https://github.com/rust-lang/rust/pull/33406).
435 * [When many method candidates are in scope limit the suggestions to 10]
436 (https://github.com/rust-lang/rust/pull/33338).
437 * [Remove confusing suggestion when calling a `fn` type]
438 (https://github.com/rust-lang/rust/pull/33325).
439 * [Do not suggest changing `&mut self` to `&mut mut self`]
440 (https://github.com/rust-lang/rust/pull/33319).
445 * [Update i686-linux-android features to match Android ABI]
446 (https://github.com/rust-lang/rust/pull/33651).
447 * [Update aarch64-linux-android features to match Android ABI]
448 (https://github.com/rust-lang/rust/pull/33500).
449 * [`std` no longer prints backtraces on platforms where the running
450 module must be loaded with `env::current_exe`, which can't be relied
451 on](https://github.com/rust-lang/rust/pull/33554).
452 * This release includes std binaries for the i586-unknown-linux-gnu,
453 i686-unknown-linux-musl, and armv7-linux-androideabi targets. The
454 i586 target is for old x86 hardware without SSE2, and the armv7
455 target is for Android running on modern ARM architectures.
456 * [The `rust-gdb` and `rust-lldb` scripts are distributed on all
457 Unix platforms](https://github.com/rust-lang/rust/pull/32835).
458 * [On Unix the runtime aborts by calling `libc::abort` instead of
459 generating an illegal instruction]
460 (https://github.com/rust-lang/rust/pull/31457).
461 * [Rust is now bootstrapped from the previous release of Rust,
462 instead of a snapshot from an arbitrary commit]
463 (https://github.com/rust-lang/rust/pull/32942).
468 * [`AtomicBool` is now bool-sized, not word-sized]
469 (https://github.com/rust-lang/rust/pull/33579).
470 * [`target_env` for Linux ARM targets is just `gnu`, not
471 `gnueabihf`, `gnueabi`, etc]
472 (https://github.com/rust-lang/rust/pull/33403).
473 * [Consistently panic on overflow in `Duration::new`]
474 (https://github.com/rust-lang/rust/pull/33072).
475 * [Change `String::truncate` to panic less]
476 (https://github.com/rust-lang/rust/pull/32977).
477 * [Add `:block` to the follow set for `:ty` and `:path`]
478 (https://github.com/rust-lang/rust/pull/32945).
479 Affects how macros are parsed.
480 * [Fix macro hygiene bug]
481 (https://github.com/rust-lang/rust/pull/32923).
482 * [Feature-gated attributes on macro-generated macro invocations are
484 (https://github.com/rust-lang/rust/pull/32791).
485 * [Suppress fallback and ambiguity errors during type inference]
486 (https://github.com/rust-lang/rust/pull/32258).
487 This caused some minor changes to type inference.
490 Version 1.9.0 (2016-05-26)
491 ==========================
496 * The `#[deprecated]` attribute when applied to an API will generate
497 warnings when used. The warnings may be suppressed with
498 `#[allow(deprecated)]`. [RFC 1270].
499 * [`fn` item types are zero sized, and each `fn` names a unique
500 type][1.9fn]. This will break code that transmutes `fn`s, so calling
501 `transmute` on a `fn` type will generate a warning for a few cycles,
502 then will be converted to an error.
503 * [Field and method resolution understand visibility, so private
504 fields and methods cannot prevent the proper use of public fields
506 * [The parser considers unicode codepoints in the
507 `PATTERN_WHITE_SPACE` category to be whitespace][1.9ws].
513 * [`std::panic::catch_unwind`][] (renamed from `recover`)
514 * [`std::panic::resume_unwind`][] (renamed from `propagate`)
515 * [`std::panic::AssertUnwindSafe`][] (renamed from `AssertRecoverSafe`)
516 * [`std::panic::UnwindSafe`][] (renamed from `RecoverSafe`)
517 * [`str::is_char_boundary`]
518 * [`<*const T>::as_ref`]
519 * [`<*mut T>::as_ref`]
520 * [`<*mut T>::as_mut`]
521 * [`AsciiExt::make_ascii_uppercase`]
522 * [`AsciiExt::make_ascii_lowercase`]
523 * [`char::decode_utf16`]
524 * [`char::DecodeUtf16`]
525 * [`char::DecodeUtf16Error`]
526 * [`char::DecodeUtf16Error::unpaired_surrogate`]
528 * [`BTreeSet::replace`]
531 * [`HashSet::replace`]
533 * [`OsString::with_capacity`]
534 * [`OsString::clear`]
535 * [`OsString::capacity`]
536 * [`OsString::reserve`]
537 * [`OsString::reserve_exact`]
538 * [`OsStr::is_empty`]
540 * [`std::os::unix::thread`]
543 * [`JoinHandleExt::as_pthread_t`]
544 * [`JoinHandleExt::into_pthread_t`]
545 * [`HashSet::hasher`]
546 * [`HashMap::hasher`]
547 * [`CommandExt::exec`]
548 * [`File::try_clone`]
549 * [`SocketAddr::set_ip`]
550 * [`SocketAddr::set_port`]
551 * [`SocketAddrV4::set_ip`]
552 * [`SocketAddrV4::set_port`]
553 * [`SocketAddrV6::set_ip`]
554 * [`SocketAddrV6::set_port`]
555 * [`SocketAddrV6::set_flowinfo`]
556 * [`SocketAddrV6::set_scope_id`]
557 * [`slice::copy_from_slice`]
558 * [`ptr::read_volatile`]
559 * [`ptr::write_volatile`]
560 * [`OpenOptions::create_new`]
561 * [`TcpStream::set_nodelay`]
562 * [`TcpStream::nodelay`]
563 * [`TcpStream::set_ttl`]
565 * [`TcpStream::set_only_v6`]
566 * [`TcpStream::only_v6`]
567 * [`TcpStream::take_error`]
568 * [`TcpStream::set_nonblocking`]
569 * [`TcpListener::set_ttl`]
570 * [`TcpListener::ttl`]
571 * [`TcpListener::set_only_v6`]
572 * [`TcpListener::only_v6`]
573 * [`TcpListener::take_error`]
574 * [`TcpListener::set_nonblocking`]
575 * [`UdpSocket::set_broadcast`]
576 * [`UdpSocket::broadcast`]
577 * [`UdpSocket::set_multicast_loop_v4`]
578 * [`UdpSocket::multicast_loop_v4`]
579 * [`UdpSocket::set_multicast_ttl_v4`]
580 * [`UdpSocket::multicast_ttl_v4`]
581 * [`UdpSocket::set_multicast_loop_v6`]
582 * [`UdpSocket::multicast_loop_v6`]
583 * [`UdpSocket::set_multicast_ttl_v6`]
584 * [`UdpSocket::multicast_ttl_v6`]
585 * [`UdpSocket::set_ttl`]
587 * [`UdpSocket::set_only_v6`]
588 * [`UdpSocket::only_v6`]
589 * [`UdpSocket::join_multicast_v4`]
590 * [`UdpSocket::join_multicast_v6`]
591 * [`UdpSocket::leave_multicast_v4`]
592 * [`UdpSocket::leave_multicast_v6`]
593 * [`UdpSocket::take_error`]
594 * [`UdpSocket::connect`]
595 * [`UdpSocket::send`]
596 * [`UdpSocket::recv`]
597 * [`UdpSocket::set_nonblocking`]
602 * [`std::sync::Once` is poisoned if its initialization function
604 * [`cell::Ref` and `cell::RefMut` can contain unsized types][1.9cu].
605 * [Most types implement `fmt::Debug`][1.9db].
606 * [The default buffer size used by `BufReader` and `BufWriter` was
607 reduced to 8K, from 64K][1.9bf]. This is in line with the buffer size
608 used by other languages.
609 * [`Instant`, `SystemTime` and `Duration` implement `+=` and `-=`.
610 `Duration` additionally implements `*=` and `/=`][1.9ta].
611 * [`Skip` is a `DoubleEndedIterator`][1.9sk].
612 * [`From<[u8; 4]>` is implemented for `Ipv4Addr`][1.9fi].
613 * [`Chain` implements `BufRead`][1.9ch].
614 * [`HashMap`, `HashSet` and iterators are covariant][1.9hc].
619 * [Cargo can now run concurrently][1.9cc].
620 * [Top-level overrides allow specific revisions of crates to be
621 overridden through the entire crate graph][1.9ct]. This is intended
622 to make upgrades easier for large projects, by allowing crates to be
623 forked temporarily until they've been upgraded and republished.
624 * [Cargo exports a `CARGO_PKG_AUTHORS` environment variable][1.9cp].
625 * [Cargo will pass the contents of the `RUSTFLAGS` variable to `rustc`
626 on the commandline][1.9cf]. `rustc` arguments can also be specified
627 in the `build.rustflags` configuration key.
632 * [The time complexity of comparing variables for equivalence during type
633 unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads
634 to major compilation time improvement in some scenarios.
635 * [`ToString` is specialized for `str`, giving it the same performance
636 as `to_owned`][1.9ts].
637 * [Spawning processes with `Command::output` no longer creates extra
639 * [`#[derive(PartialEq)]` and `#[derive(PartialOrd)]` emit less code
640 for C-like enums][1.9cl].
645 * [Passing the `--quiet` flag to a test runner will produce
646 much-abbreviated output][1.9q].
647 * The Rust Project now publishes std binaries for the
648 `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`, and
649 `i586-pc-windows-msvc` targets.
654 * [`std::sync::Once` is poisoned if its initialization function
656 * [It is illegal to define methods with the same name in overlapping
657 inherent `impl` blocks][1.9sn].
658 * [`fn` item types are zero sized, and each `fn` names a unique
659 type][1.9fn]. This will break code that transmutes `fn`s, so calling
660 `transmute` on a `fn` type will generate a warning for a few cycles,
661 then will be converted to an error.
662 * [Improvements to const evaluation may trigger new errors when integer
663 literals are out of range][1.9ce].
666 [1.9bf]: https://github.com/rust-lang/rust/pull/32695
667 [1.9cc]: https://github.com/rust-lang/cargo/pull/2486
668 [1.9ce]: https://github.com/rust-lang/rust/pull/30587
669 [1.9cf]: https://github.com/rust-lang/cargo/pull/2241
670 [1.9ch]: https://github.com/rust-lang/rust/pull/32541
671 [1.9cl]: https://github.com/rust-lang/rust/pull/31977
672 [1.9cp]: https://github.com/rust-lang/cargo/pull/2465
673 [1.9ct]: https://github.com/rust-lang/cargo/pull/2385
674 [1.9cu]: https://github.com/rust-lang/rust/pull/32652
675 [1.9db]: https://github.com/rust-lang/rust/pull/32054
676 [1.9fi]: https://github.com/rust-lang/rust/pull/32050
677 [1.9fn]: https://github.com/rust-lang/rust/pull/31710
678 [1.9fv]: https://github.com/rust-lang/rust/pull/31938
679 [1.9hc]: https://github.com/rust-lang/rust/pull/32635
680 [1.9o]: https://github.com/rust-lang/rust/pull/32325
681 [1.9q]: https://github.com/rust-lang/rust/pull/31887
682 [1.9sk]: https://github.com/rust-lang/rust/pull/31700
683 [1.9sn]: https://github.com/rust-lang/rust/pull/31925
684 [1.9sp]: https://github.com/rust-lang/rust/pull/31618
685 [1.9ta]: https://github.com/rust-lang/rust/pull/32448
686 [1.9ts]: https://github.com/rust-lang/rust/pull/32586
687 [1.9tu]: https://github.com/rust-lang/rust/pull/32062
688 [1.9ws]: https://github.com/rust-lang/rust/pull/29734
689 [RFC 1270]: https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
690 [`<*const T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
691 [`<*mut T>::as_mut`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_mut
692 [`<*mut T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
693 [`slice::copy_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.copy_from_slice
694 [`AsciiExt::make_ascii_lowercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase
695 [`AsciiExt::make_ascii_uppercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase
696 [`BTreeSet::get`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.get
697 [`BTreeSet::replace`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.replace
698 [`BTreeSet::take`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.take
699 [`CommandExt::exec`]: http://doc.rust-lang.org/nightly/std/os/unix/process/trait.CommandExt.html#tymethod.exec
700 [`File::try_clone`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.try_clone
701 [`HashMap::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.hasher
702 [`HashSet::get`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.get
703 [`HashSet::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.hasher
704 [`HashSet::replace`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.replace
705 [`HashSet::take`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.take
706 [`JoinHandleExt::as_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.as_pthread_t
707 [`JoinHandleExt::into_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.into_pthread_t
708 [`JoinHandleExt`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html
709 [`OpenOptions::create_new`]: http://doc.rust-lang.org/nightly/std/fs/struct.OpenOptions.html#method.create_new
710 [`OsStr::is_empty`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.is_empty
711 [`OsStr::len`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.len
712 [`OsString::capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.capacity
713 [`OsString::clear`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.clear
714 [`OsString::reserve_exact`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve_exact
715 [`OsString::reserve`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve
716 [`OsString::with_capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.with_capacity
717 [`RawPthread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/type.RawPthread.html
718 [`SocketAddr::set_ip`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_ip
719 [`SocketAddr::set_port`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_port
720 [`SocketAddrV4::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_ip
721 [`SocketAddrV4::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_port
722 [`SocketAddrV6::set_flowinfo`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_flowinfo
723 [`SocketAddrV6::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_ip
724 [`SocketAddrV6::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_port
725 [`SocketAddrV6::set_scope_id`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_scope_id
726 [`TcpListener::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
727 [`TcpListener::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
728 [`TcpListener::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
729 [`TcpListener::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
730 [`TcpListener::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
731 [`TcpListener::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
732 [`TcpStream::nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.nodelay
733 [`TcpStream::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
734 [`TcpStream::set_nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nodelay
735 [`TcpStream::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
736 [`TcpStream::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
737 [`TcpStream::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
738 [`TcpStream::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
739 [`TcpStream::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
740 [`UdpSocket::broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.broadcast
741 [`UdpSocket::connect`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.connect
742 [`UdpSocket::join_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v4
743 [`UdpSocket::join_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v6
744 [`UdpSocket::leave_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v4
745 [`UdpSocket::leave_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v6
746 [`UdpSocket::multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v4
747 [`UdpSocket::multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v6
748 [`UdpSocket::multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v4
749 [`UdpSocket::multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v6
750 [`UdpSocket::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.only_v6
751 [`UdpSocket::recv`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.recv
752 [`UdpSocket::send`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.send
753 [`UdpSocket::set_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_broadcast
754 [`UdpSocket::set_multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v4
755 [`UdpSocket::set_multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v6
756 [`UdpSocket::set_multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v4
757 [`UdpSocket::set_multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v6
758 [`UdpSocket::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_nonblocking
759 [`UdpSocket::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_only_v6
760 [`UdpSocket::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_ttl
761 [`UdpSocket::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.take_error
762 [`UdpSocket::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.ttl
763 [`char::DecodeUtf16Error::unpaired_surrogate`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html#method.unpaired_surrogate
764 [`char::DecodeUtf16Error`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html
765 [`char::DecodeUtf16`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16.html
766 [`char::decode_utf16`]: http://doc.rust-lang.org/nightly/std/char/fn.decode_utf16.html
767 [`ptr::read_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.read_volatile.html
768 [`ptr::write_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.write_volatile.html
769 [`std::os::unix::thread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/index.html
770 [`std::panic::AssertUnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/struct.AssertUnwindSafe.html
771 [`std::panic::UnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html
772 [`std::panic::catch_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.catch_unwind.html
773 [`std::panic::resume_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.resume_unwind.html
774 [`std::panic`]: http://doc.rust-lang.org/nightly/std/panic/index.html
775 [`str::is_char_boundary`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary
778 Version 1.8.0 (2016-04-14)
779 ==========================
784 * Rust supports overloading of compound assignment statements like
785 `+=` by implementing the [`AddAssign`], [`SubAssign`],
786 [`MulAssign`], [`DivAssign`], [`RemAssign`], [`BitAndAssign`],
787 [`BitOrAssign`], [`BitXorAssign`], [`ShlAssign`], or [`ShrAssign`]
789 * Empty structs can be defined with braces, as in `struct Foo { }`, in
790 addition to the non-braced form, `struct Foo;`. [RFC 218].
796 * [`str::encode_utf16`][] (renamed from `utf16_units`)
797 * [`str::EncodeUtf16`][] (renamed from `Utf16Units`)
800 * [`ptr::drop_in_place`]
802 * [`time::SystemTime`]
804 * [`Instant::duration_since`][] (renamed from `duration_from_earlier`)
805 * [`Instant::elapsed`]
806 * [`SystemTime::now`]
807 * [`SystemTime::duration_since`][] (renamed from `duration_from_earlier`)
808 * [`SystemTime::elapsed`]
809 * Various `Add`/`Sub` impls for `Time` and `SystemTime`
810 * [`SystemTimeError`]
811 * [`SystemTimeError::duration`]
812 * Various impls for `SystemTimeError`
814 * [`AddAssign`], [`SubAssign`], [`MulAssign`], [`DivAssign`],
815 [`RemAssign`], [`BitAndAssign`], [`BitOrAssign`],
816 [`BitXorAssign`], [`ShlAssign`], [`ShrAssign`].
817 * [The `write!` and `writeln!` macros correctly emit errors if any of
818 their arguments can't be formatted][1.8w].
819 * [Various I/O functions support large files on 32-bit Linux][1.8l].
820 * [The Unix-specific `raw` modules, which contain a number of
821 redefined C types are deprecated][1.8r], including `os::raw::unix`,
822 `os::raw::macos`, and `os::raw::linux`. These modules defined types
823 such as `ino_t` and `dev_t`. The inconsistency of these definitions
824 across platforms was making it difficult to implement `std`
825 correctly. Those that need these definitions should use the `libc`
827 * The Unix-specific `MetadataExt` traits, including
828 `os::unix::fs::MetadataExt`, which expose values such as inode
829 numbers [no longer return platform-specific types][1.8r], but
830 instead return widened integers. [RFC 1415].
831 * [`btree_set::{IntoIter, Iter, Range}` are covariant][1.8cv].
832 * [Atomic loads and stores are not volatile][1.8a].
833 * [All types in `sync::mpsc` implement `fmt::Debug`][1.8mp].
838 * [Inlining hash functions lead to a 3% compile-time improvement in
839 some workloads][1.8h].
840 * When using jemalloc, its symbols are [unprefixed so that it
841 overrides the libc malloc implementation][1.8h]. This means that for
842 rustc, LLVM is now using jemalloc, which results in a 6%
843 compile-time improvement on a specific workload.
844 * [Avoid quadratic growth in function size due to cleanups][1.8cu].
849 * [32-bit MSVC builds finally implement unwinding][1.8ms].
850 i686-pc-windows-msvc is now considered a tier-1 platform.
851 * [The `--print targets` flag prints a list of supported targets][1.8t].
852 * [The `--print cfg` flag prints the `cfg`s defined for the current
854 * [`rustc` can be built with an new Cargo-based build system, written
855 in Rust][1.8b]. It will eventually replace Rust's Makefile-based
856 build system. To enable it configure with `configure --rustbuild`.
857 * [Errors for non-exhaustive `match` patterns now list up to 3 missing
858 variants while also indicating the total number of missing variants
859 if more than 3][1.8m].
860 * [Executable stacks are disabled on Linux and BSD][1.8nx].
861 * The Rust Project now publishes binary releases of the standard
862 library for a number of tier-2 targets:
863 `armv7-unknown-linux-gnueabihf`, `powerpc-unknown-linux-gnu`,
864 `powerpc64-unknown-linux-gnu`, `powerpc64le-unknown-linux-gnu`
865 `x86_64-rumprun-netbsd`. These can be installed with
866 tools such as [multirust][1.8mr].
871 * [`cargo init` creates a new Cargo project in the current
872 directory][1.8ci]. It is otherwise like `cargo new`.
873 * [Cargo has configuration keys for `-v` and
874 `--color`][1.8cc]. `verbose` and `color`, respectively, go in the
875 `[term]` section of `.cargo/config`.
876 * [Configuration keys that evaluate to strings or integers can be set
877 via environment variables][1.8ce]. For example the `build.jobs` key
878 can be set via `CARGO_BUILD_JOBS`. Environment variables take
879 precedence over config files.
880 * [Target-specific dependencies support Rust `cfg` syntax for
881 describing targets][1.8cfg] so that dependencies for multiple
882 targets can be specified together. [RFC 1361].
883 * [The environment variables `CARGO_TARGET_ROOT`, `RUSTC`, and
884 `RUSTDOC` take precedence over the `build.target-dir`,
885 `build.rustc`, and `build.rustdoc` configuration values][1.8cv].
886 * [The child process tree is killed on Windows when Cargo is
888 * [The `build.target` configuration value sets the target platform,
889 like `--target`][1.8ct].
894 * [Unstable compiler flags have been further restricted][1.8u]. Since
895 1.0 `-Z` flags have been considered unstable, and other flags that
896 were considered unstable additionally required passing `-Z
897 unstable-options` to access. Unlike unstable language and library
898 features though, these options have been accessible on the stable
899 release channel. Going forward, *new unstable flags will not be
900 available on the stable release channel*, and old unstable flags
901 will warn about their usage. In the future, all unstable flags will
902 be unavailable on the stable release channel.
903 * [It is no longer possible to `match` on empty enum variants using
904 the `Variant(..)` syntax][1.8v]. This has been a warning since 1.6.
905 * The Unix-specific `MetadataExt` traits, including
906 `os::unix::fs::MetadataExt`, which expose values such as inode
907 numbers [no longer return platform-specific types][1.8r], but
908 instead return widened integers. [RFC 1415].
909 * [Modules sourced from the filesystem cannot appear within arbitrary
910 blocks, but only within other modules][1.8mf].
911 * [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
912 * On Unix, [stack overflow triggers a runtime abort instead of a
914 * [`Command::spawn` and its equivalents return an error if any of
915 its command-line arguments contain interior `NUL`s][1.8n].
916 * [Tuple and unit enum variants from other crates are in the type
918 * [On Windows `rustc` emits `.lib` files for the `staticlib` library
919 type instead of `.a` files][1.8st]. Additionally, for the MSVC
920 toolchain, `rustc` emits import libraries named `foo.dll.lib`
921 instead of `foo.lib`.
924 [1.8a]: https://github.com/rust-lang/rust/pull/30962
925 [1.8b]: https://github.com/rust-lang/rust/pull/31123
926 [1.8c]: https://github.com/rust-lang/rust/pull/31530
927 [1.8cc]: https://github.com/rust-lang/cargo/pull/2397
928 [1.8ce]: https://github.com/rust-lang/cargo/pull/2398
929 [1.8cf]: https://github.com/rust-lang/rust/pull/31278
930 [1.8cfg]: https://github.com/rust-lang/cargo/pull/2328
931 [1.8ci]: https://github.com/rust-lang/cargo/pull/2081
932 [1.8ck]: https://github.com/rust-lang/cargo/pull/2370
933 [1.8ct]: https://github.com/rust-lang/cargo/pull/2335
934 [1.8cu]: https://github.com/rust-lang/rust/pull/31390
935 [1.8cv]: https://github.com/rust-lang/cargo/issues/2365
936 [1.8cv]: https://github.com/rust-lang/rust/pull/30998
937 [1.8h]: https://github.com/rust-lang/rust/pull/31460
938 [1.8l]: https://github.com/rust-lang/rust/pull/31668
939 [1.8m]: https://github.com/rust-lang/rust/pull/31020
940 [1.8mf]: https://github.com/rust-lang/rust/pull/31534
941 [1.8mp]: https://github.com/rust-lang/rust/pull/30894
942 [1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
943 [1.8ms]: https://github.com/rust-lang/rust/pull/30448
944 [1.8n]: https://github.com/rust-lang/rust/pull/31056
945 [1.8nx]: https://github.com/rust-lang/rust/pull/30859
946 [1.8r]: https://github.com/rust-lang/rust/pull/31551
947 [1.8so]: https://github.com/rust-lang/rust/pull/31333
948 [1.8st]: https://github.com/rust-lang/rust/pull/29520
949 [1.8t]: https://github.com/rust-lang/rust/pull/31358
950 [1.8tn]: https://github.com/rust-lang/rust/pull/30882
951 [1.8u]: https://github.com/rust-lang/rust/pull/31793
952 [1.8v]: https://github.com/rust-lang/rust/pull/31757
953 [1.8w]: https://github.com/rust-lang/rust/pull/31904
954 [RFC 1361]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md
955 [RFC 1415]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md
956 [RFC 218]: https://github.com/rust-lang/rfcs/blob/master/text/0218-empty-struct-with-braces.md
957 [RFC 953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md
958 [`AddAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.AddAssign.html
959 [`BitAndAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitAndAssign.html
960 [`BitOrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitOrAssign.html
961 [`BitXorAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitXorAssign.html
962 [`DivAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.DivAssign.html
963 [`Instant::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.duration_since
964 [`Instant::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.elapsed
965 [`Instant::now`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.now
966 [`MulAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.MulAssign.html
967 [`Ref::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.Ref.html#method.map
968 [`RefMut::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map
969 [`RemAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.RemAssign.html
970 [`ShlAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShlAssign.html
971 [`ShrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShrAssign.html
972 [`SubAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.SubAssign.html
973 [`SystemTime::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.duration_since
974 [`SystemTime::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.elapsed
975 [`SystemTime::now`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.now
976 [`SystemTimeError::duration`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html#method.duration
977 [`SystemTimeError`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html
978 [`UNIX_EPOCH`]: http://doc.rust-lang.org/nightly/std/time/constant.UNIX_EPOCH.html
979 [`ptr::drop_in_place`]: http://doc.rust-lang.org/nightly/std/ptr/fn.drop_in_place.html
980 [`str::EncodeUtf16`]: http://doc.rust-lang.org/nightly/std/str/struct.EncodeUtf16.html
981 [`str::encode_utf16`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16
982 [`time::Instant`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html
983 [`time::SystemTime`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html
986 Version 1.7.0 (2016-03-03)
987 ==========================
994 * [`Path::strip_prefix`][] (renamed from relative_from)
995 * [`path::StripPrefixError`][] (new error type returned from strip_prefix)
997 * [`Ipv4Addr::is_loopback`]
998 * [`Ipv4Addr::is_private`]
999 * [`Ipv4Addr::is_link_local`]
1000 * [`Ipv4Addr::is_multicast`]
1001 * [`Ipv4Addr::is_broadcast`]
1002 * [`Ipv4Addr::is_documentation`]
1004 * [`Ipv6Addr::is_unspecified`]
1005 * [`Ipv6Addr::is_loopback`]
1006 * [`Ipv6Addr::is_multicast`]
1009 * [`Vec::as_mut_slice`]
1011 * [`String::as_str`]
1012 * [`String::as_mut_str`]
1014 * `<[T]>::`[`clone_from_slice`], which now requires the two slices to
1016 * `<[T]>::`[`sort_by_key`]
1017 * checked, saturated, and overflowing operations
1018 * [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`]
1019 * [`i32::saturating_mul`]
1020 * [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`]
1021 * [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`]
1022 * [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`]
1023 * [`u32::saturating_mul`]
1024 * [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`]
1025 * [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`]
1026 * and checked, saturated, and overflowing operations for other primitive types
1028 * [`ffi::IntoStringError`]
1029 * [`CString::into_string`]
1030 * [`CString::into_bytes`]
1031 * [`CString::into_bytes_with_nul`]
1032 * `From<CString> for Vec<u8>`
1034 * [`IntoStringError::into_cstring`]
1035 * [`IntoStringError::utf8_error`]
1036 * `Error for IntoStringError`
1038 * [`std::hash::BuildHasher`]
1039 * [`BuildHasher::Hasher`]
1040 * [`BuildHasher::build_hasher`]
1041 * [`std::hash::BuildHasherDefault`]
1042 * [`HashMap::with_hasher`]
1043 * [`HashMap::with_capacity_and_hasher`]
1044 * [`HashSet::with_hasher`]
1045 * [`HashSet::with_capacity_and_hasher`]
1046 * [`std::collections::hash_map::RandomState`]
1047 * [`RandomState::new`]
1048 * [Validating UTF-8 is faster by a factor of between 7 and 14x for
1049 ASCII input][1.7utf8]. This means that creating `String`s and `str`s
1050 from bytes is faster.
1051 * [The performance of `LineWriter` (and thus `io::stdout`) was
1052 improved by using `memchr` to search for newlines][1.7m].
1053 * [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The
1054 `f64` variants were stabilized previously.
1055 * [`BTreeMap` was rewritten to use less memory and improve the performance
1056 of insertion and iteration, the latter by as much as 5x][1.7bm].
1057 * [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are
1058 covariant over their contained type][1.7bt].
1059 * [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant
1060 over their contained type][1.7ll].
1061 * [`str::replace` now accepts a `Pattern`][1.7rp], like other string
1063 * [`Any` is implemented for unsized types][1.7a].
1064 * [`Hash` is implemented for `Duration`][1.7h].
1069 * [When running tests with `--test`, rustdoc will pass `--cfg`
1070 arguments to the compiler][1.7dt].
1071 * [The compiler is built with RPATH information by default][1.7rpa].
1072 This means that it will be possible to run `rustc` when installed in
1073 unusual configurations without configuring the dynamic linker search
1075 * [`rustc` passes `--enable-new-dtags` to GNU ld][1.7dta]. This makes
1076 any RPATH entries (emitted with `-C rpath`) *not* take precedence
1077 over `LD_LIBRARY_PATH`.
1082 * [`cargo rustc` accepts a `--profile` flag that runs `rustc` under
1083 any of the compilation profiles, 'dev', 'bench', or 'test'][1.7cp].
1084 * [The `rerun-if-changed` build script directive no longer causes the
1085 build script to incorrectly run twice in certain scenarios][1.7rr].
1090 * Soundness fixes to the interactions between associated types and
1091 lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
1092 code that violates the new rules. This is a significant change that
1093 is known to break existing code, so it has emitted warnings for the
1094 new error cases since 1.4 to give crate authors time to adapt. The
1095 details of what is changing are subtle; read the RFC for more.
1096 * [Several bugs in the compiler's visibility calculations were
1097 fixed][1.7v]. Since this was found to break significant amounts of
1098 code, the new errors will be emitted as warnings for several release
1099 cycles, under the `private_in_public` lint.
1100 * Defaulted type parameters were accidentally accepted in positions
1101 that were not intended. In this release, [defaulted type parameters
1102 appearing outside of type definitions will generate a
1103 warning][1.7d], which will become an error in future releases.
1104 * [Parsing "." as a float results in an error instead of 0][1.7p].
1105 That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`.
1106 * [Borrows of closure parameters may not outlive the closure][1.7bc].
1108 [1.7a]: https://github.com/rust-lang/rust/pull/30928
1109 [1.7bc]: https://github.com/rust-lang/rust/pull/30341
1110 [1.7bm]: https://github.com/rust-lang/rust/pull/30426
1111 [1.7bt]: https://github.com/rust-lang/rust/pull/30998
1112 [1.7cp]: https://github.com/rust-lang/cargo/pull/2224
1113 [1.7d]: https://github.com/rust-lang/rust/pull/30724
1114 [1.7dt]: https://github.com/rust-lang/rust/pull/30372
1115 [1.7dta]: https://github.com/rust-lang/rust/pull/30394
1116 [1.7f]: https://github.com/rust-lang/rust/pull/30672
1117 [1.7h]: https://github.com/rust-lang/rust/pull/30818
1118 [1.7ll]: https://github.com/rust-lang/rust/pull/30663
1119 [1.7m]: https://github.com/rust-lang/rust/pull/30381
1120 [1.7p]: https://github.com/rust-lang/rust/pull/30681
1121 [1.7rp]: https://github.com/rust-lang/rust/pull/29498
1122 [1.7rpa]: https://github.com/rust-lang/rust/pull/30353
1123 [1.7rr]: https://github.com/rust-lang/cargo/pull/2279
1124 [1.7sf]: https://github.com/rust-lang/rust/pull/30389
1125 [1.7utf8]: https://github.com/rust-lang/rust/pull/30740
1126 [1.7v]: https://github.com/rust-lang/rust/pull/29973
1127 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
1128 [`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
1129 [`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher
1130 [`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul
1131 [`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes
1132 [`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string
1133 [`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher
1134 [`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher
1135 [`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher
1136 [`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher
1137 [`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring
1138 [`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error
1139 [`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast
1140 [`Ipv4Addr::is_documentation`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_documentation
1141 [`Ipv4Addr::is_link_local`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_link_local
1142 [`Ipv4Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_loopback
1143 [`Ipv4Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_multicast
1144 [`Ipv4Addr::is_private`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_private
1145 [`Ipv6Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_loopback
1146 [`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast
1147 [`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified
1148 [`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix
1149 [`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new
1150 [`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str
1151 [`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str
1152 [`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice
1153 [`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
1154 [`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
1155 [`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html
1156 [`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg
1157 [`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem
1158 [`i32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shl
1159 [`i32::checked_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shr
1160 [`i32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_add
1161 [`i32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_div
1162 [`i32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_mul
1163 [`i32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_neg
1164 [`i32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_rem
1165 [`i32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shl
1166 [`i32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shr
1167 [`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
1168 [`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
1169 [`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
1170 [`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
1171 [`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html
1172 [`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html
1173 [`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html
1174 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
1175 [`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
1176 [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
1177 [`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
1178 [`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add
1179 [`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div
1180 [`u32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_mul
1181 [`u32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_neg
1182 [`u32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_rem
1183 [`u32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shl
1184 [`u32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shr
1185 [`u32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_sub
1186 [`u32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.saturating_mul
1189 Version 1.6.0 (2016-01-21)
1190 ==========================
1195 * The `#![no_std]` attribute causes a crate to not be linked to the
1196 standard library, but only the [core library][1.6co], as described
1197 in [RFC 1184]. The core library defines common types and traits but
1198 has no platform dependencies whatsoever, and is the basis for Rust
1199 software in environments that cannot support a full port of the
1200 standard library, such as operating systems. Most of the core
1201 library is now stable.
1207 [`Read::read_exact`],
1208 [`ErrorKind::UnexpectedEof`][] (renamed from `UnexpectedEOF`),
1209 [`fs::DirBuilder`], [`fs::DirBuilder::new`],
1210 [`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`],
1211 [`os::unix::fs::DirBuilderExt`],
1212 [`os::unix::fs::DirBuilderExt::mode`], [`vec::Drain`],
1213 [`vec::Vec::drain`], [`string::Drain`], [`string::String::drain`],
1214 [`vec_deque::Drain`], [`vec_deque::VecDeque::drain`],
1215 [`collections::hash_map::Drain`],
1216 [`collections::hash_map::HashMap::drain`],
1217 [`collections::hash_set::Drain`],
1218 [`collections::hash_set::HashSet::drain`],
1219 [`collections::binary_heap::Drain`],
1220 [`collections::binary_heap::BinaryHeap::drain`],
1221 [`Vec::extend_from_slice`][] (renamed from `push_all`),
1222 [`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`],
1223 [`RwLock::into_inner`],
1224 [`Iterator::min_by_key`][] (renamed from `min_by`),
1225 [`Iterator::max_by_key`][] (renamed from `max_by`).
1226 * The [core library][1.6co] is stable, as are most of its APIs.
1227 * [The `assert_eq!` macro supports arguments that don't implement
1228 `Sized`][1.6ae], such as arrays. In this way it behaves more like
1230 * Several timer functions that take duration in milliseconds [are
1231 deprecated in favor of those that take `Duration`][1.6ms]. These
1232 include `Condvar::wait_timeout_ms`, `thread::sleep_ms`, and
1233 `thread::park_timeout_ms`.
1234 * The algorithm by which `Vec` reserves additional elements was
1235 [tweaked to not allocate excessive space][1.6a] while still growing
1237 * `From` conversions are [implemented from integers to floats][1.6f]
1238 in cases where the conversion is lossless. Thus they are not
1239 implemented for 32-bit ints to `f32`, nor for 64-bit ints to `f32`
1240 or `f64`. They are also not implemented for `isize` and `usize`
1241 because the implementations would be platform-specific. `From` is
1242 also implemented from `f32` to `f64`.
1243 * `From<&Path>` and `From<PathBuf>` are implemented for `Cow<Path>`.
1244 * `From<T>` is implemented for `Box<T>`, `Rc<T>` and `Arc<T>`.
1245 * `IntoIterator` is implemented for `&PathBuf` and `&Path`.
1246 * [`BinaryHeap` was refactored][1.6bh] for modest performance
1248 * Sorting slices that are already sorted [is 50% faster in some
1254 * Cargo will look in `$CARGO_HOME/bin` for subcommands [by default][1.6c].
1255 * Cargo build scripts can specify their dependencies by emitting the
1256 [`rerun-if-changed`][1.6rr] key.
1257 * crates.io will reject publication of crates with dependencies that
1258 have a wildcard version constraint. Crates with wildcard
1259 dependencies were seen to cause a variety of problems, as described
1260 in [RFC 1241]. Since 1.5 publication of such crates has emitted a
1262 * `cargo clean` [accepts a `--release` flag][1.6cc] to clean the
1263 release folder. A variety of artifacts that Cargo failed to clean
1264 are now correctly deleted.
1269 * The `unreachable_code` lint [warns when a function call's argument
1271 * The parser indicates [failures that may be caused by
1272 confusingly-similar Unicode characters][1.6uc]
1273 * Certain macro errors [are reported at definition time][1.6m], not
1279 * The compiler no longer makes use of the [`RUST_PATH`][1.6rp]
1280 environment variable when locating crates. This was a pre-cargo
1281 feature for integrating with the package manager that was
1282 accidentally never removed.
1283 * [A number of bugs were fixed in the privacy checker][1.6p] that
1284 could cause previously-accepted code to break.
1285 * [Modules and unit/tuple structs may not share the same name][1.6ts].
1286 * [Bugs in pattern matching unit structs were fixed][1.6us]. The tuple
1287 struct pattern syntax (`Foo(..)`) can no longer be used to match
1288 unit structs. This is a warning now, but will become an error in
1289 future releases. Patterns that share the same name as a const are
1291 * A bug was fixed that causes [rustc not to apply default type
1292 parameters][1.6xc] when resolving certain method implementations of
1293 traits defined in other crates.
1295 [1.6a]: https://github.com/rust-lang/rust/pull/29454
1296 [1.6ae]: https://github.com/rust-lang/rust/pull/29770
1297 [1.6bh]: https://github.com/rust-lang/rust/pull/29811
1298 [1.6c]: https://github.com/rust-lang/cargo/pull/2192
1299 [1.6cc]: https://github.com/rust-lang/cargo/pull/2131
1300 [1.6co]: http://doc.rust-lang.org/beta/core/index.html
1301 [1.6dv]: https://github.com/rust-lang/rust/pull/30000
1302 [1.6f]: https://github.com/rust-lang/rust/pull/29129
1303 [1.6m]: https://github.com/rust-lang/rust/pull/29828
1304 [1.6ms]: https://github.com/rust-lang/rust/pull/29604
1305 [1.6p]: https://github.com/rust-lang/rust/pull/29726
1306 [1.6rp]: https://github.com/rust-lang/rust/pull/30034
1307 [1.6rr]: https://github.com/rust-lang/cargo/pull/2134
1308 [1.6s]: https://github.com/rust-lang/rust/pull/29675
1309 [1.6ts]: https://github.com/rust-lang/rust/issues/21546
1310 [1.6uc]: https://github.com/rust-lang/rust/pull/29837
1311 [1.6us]: https://github.com/rust-lang/rust/pull/29383
1312 [1.6xc]: https://github.com/rust-lang/rust/issues/30123
1313 [RFC 1184]: https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md
1314 [RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
1315 [`ErrorKind::UnexpectedEof`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html#variant.UnexpectedEof
1316 [`Iterator::max_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.max_by_key
1317 [`Iterator::min_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.min_by_key
1318 [`Mutex::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.get_mut
1319 [`Mutex::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.into_inner
1320 [`Read::read_exact`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact
1321 [`RwLock::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.get_mut
1322 [`RwLock::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.into_inner
1323 [`Vec::extend_from_slice`]: http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html#method.extend_from_slice
1324 [`collections::binary_heap::BinaryHeap::drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.BinaryHeap.html#method.drain
1325 [`collections::binary_heap::Drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.Drain.html
1326 [`collections::hash_map::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.Drain.html
1327 [`collections::hash_map::HashMap::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.HashMap.html#method.drain
1328 [`collections::hash_set::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.Drain.html
1329 [`collections::hash_set::HashSet::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.HashSet.html#method.drain
1330 [`fs::DirBuilder::create`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.create
1331 [`fs::DirBuilder::new`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.new
1332 [`fs::DirBuilder::recursive`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.recursive
1333 [`fs::DirBuilder`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html
1334 [`os::unix::fs::DirBuilderExt::mode`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode
1335 [`os::unix::fs::DirBuilderExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html
1336 [`string::Drain`]: http://doc.rust-lang.org/nightly/std/string/struct.Drain.html
1337 [`string::String::drain`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.drain
1338 [`vec::Drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Drain.html
1339 [`vec::Vec::drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain
1340 [`vec_deque::Drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.Drain.html
1341 [`vec_deque::VecDeque::drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.VecDeque.html#method.drain
1344 Version 1.5.0 (2015-12-10)
1345 ==========================
1347 * ~700 changes, numerous bugfixes
1353 [`BinaryHeap::from`], [`BinaryHeap::into_sorted_vec`],
1354 [`BinaryHeap::into_vec`], [`Condvar::wait_timeout`],
1355 [`FileTypeExt::is_block_device`], [`FileTypeExt::is_char_device`],
1356 [`FileTypeExt::is_fifo`], [`FileTypeExt::is_socket`],
1357 [`FileTypeExt`], [`Formatter::alternate`], [`Formatter::fill`],
1358 [`Formatter::precision`], [`Formatter::sign_aware_zero_pad`],
1359 [`Formatter::sign_minus`], [`Formatter::sign_plus`],
1360 [`Formatter::width`], [`Iterator::cmp`], [`Iterator::eq`],
1361 [`Iterator::ge`], [`Iterator::gt`], [`Iterator::le`],
1362 [`Iterator::lt`], [`Iterator::ne`], [`Iterator::partial_cmp`],
1363 [`Path::canonicalize`], [`Path::exists`], [`Path::is_dir`],
1364 [`Path::is_file`], [`Path::metadata`], [`Path::read_dir`],
1365 [`Path::read_link`], [`Path::symlink_metadata`],
1366 [`Utf8Error::valid_up_to`], [`Vec::resize`],
1367 [`VecDeque::as_mut_slices`], [`VecDeque::as_slices`],
1368 [`VecDeque::insert`], [`VecDeque::shrink_to_fit`],
1369 [`VecDeque::swap_remove_back`], [`VecDeque::swap_remove_front`],
1370 [`slice::split_first_mut`], [`slice::split_first`],
1371 [`slice::split_last_mut`], [`slice::split_last`],
1372 [`char::from_u32_unchecked`], [`fs::canonicalize`],
1373 [`str::MatchIndices`], [`str::RMatchIndices`],
1374 [`str::match_indices`], [`str::rmatch_indices`],
1375 [`str::slice_mut_unchecked`], [`string::ParseError`].
1376 * Rust applications hosted on crates.io can be installed locally to
1377 `~/.cargo/bin` with the [`cargo install`] command. Among other
1378 things this makes it easier to augment Cargo with new subcommands:
1379 when a binary named e.g. `cargo-foo` is found in `$PATH` it can be
1380 invoked as `cargo foo`.
1381 * Crates with wildcard (`*`) dependencies will [emit warnings when
1382 published][1.5w]. In 1.6 it will no longer be possible to publish
1383 crates with wildcard dependencies.
1388 * The rules determining when a particular lifetime must outlive
1389 a particular value (known as '[dropck]') have been [modified
1390 to not rely on parametricity][1.5p].
1391 * [Implementations of `AsRef` and `AsMut` were added to `Box`, `Rc`,
1392 and `Arc`][1.5a]. Because these smart pointer types implement
1393 `Deref`, this causes breakage in cases where the interior type
1394 contains methods of the same name.
1395 * [Correct a bug in Rc/Arc][1.5c] that caused [dropck] to be unaware
1396 that they could drop their content. Soundness fix.
1397 * All method invocations are [properly checked][1.5wf1] for
1398 [well-formedness][1.5wf2]. Soundness fix.
1399 * Traits whose supertraits contain `Self` are [not object
1400 safe][1.5o]. Soundness fix.
1401 * Target specifications support a [`no_default_libraries`][1.5nd]
1402 setting that controls whether `-nodefaultlibs` is passed to the
1403 linker, and in turn the `is_like_windows` setting no longer affects
1404 the `-nodefaultlibs` flag.
1405 * `#[derive(Show)]`, long-deprecated, [has been removed][1.5ds].
1406 * The `#[inline]` and `#[repr]` attributes [can only appear
1407 in valid locations][1.5at].
1408 * Native libraries linked from the local crate are [passed to
1409 the linker before native libraries from upstream crates][1.5nl].
1410 * Two rarely-used attributes, `#[no_debug]` and
1411 `#[omit_gdb_pretty_printer_section]` [are feature gated][1.5fg].
1412 * Negation of unsigned integers, which has been a warning for
1413 several releases, [is now behind a feature gate and will
1414 generate errors][1.5nu].
1415 * The parser accidentally accepted visibility modifiers on
1416 enum variants, a bug [which has been fixed][1.5ev].
1417 * [A bug was fixed that allowed `use` statements to import unstable
1423 * When evaluating expressions at compile-time that are not
1424 compile-time constants (const-evaluating expressions in non-const
1425 contexts), incorrect code such as overlong bitshifts and arithmetic
1426 overflow will [generate a warning instead of an error][1.5ce],
1427 delaying the error until runtime. This will allow the
1428 const-evaluator to be expanded in the future backwards-compatibly.
1429 * The `improper_ctypes` lint [no longer warns about using `isize` and
1430 `usize` in FFI][1.5ict].
1435 * `Arc<T>` and `Rc<T>` are [covariant with respect to `T` instead of
1437 * `Default` is [implemented for mutable slices][1.5d].
1438 * `FromStr` is [implemented for `SockAddrV4` and `SockAddrV6`][1.5s].
1439 * There are now `From` conversions [between floating point
1440 types][1.5f] where the conversions are lossless.
1441 * Thera are now `From` conversions [between integer types][1.5i] where
1442 the conversions are lossless.
1443 * [`fs::Metadata` implements `Clone`][1.5fs].
1444 * The `parse` method [accepts a leading "+" when parsing
1446 * [`AsMut` is implemented for `Vec`][1.5am].
1447 * The `clone_from` implementations for `String` and `BinaryHeap` [have
1448 been optimized][1.5cf] and no longer rely on the default impl.
1449 * The `extern "Rust"`, `extern "C"`, `unsafe extern "Rust"` and
1450 `unsafe extern "C"` function types now [implement `Clone`,
1451 `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and
1452 `fmt::Debug` for up to 12 arguments][1.5fp].
1453 * [Dropping `Vec`s is much faster in unoptimized builds when the
1454 element types don't implement `Drop`][1.5dv].
1455 * A bug that caused in incorrect behavior when [combining `VecDeque`
1456 with zero-sized types][1.5vdz] was resolved.
1457 * [`PartialOrd` for slices is faster][1.5po].
1462 * [Crate metadata size was reduced by 20%][1.5md].
1463 * [Improvements to code generation reduced the size of libcore by 3.3
1464 MB and rustc's memory usage by 18MB][1.5m].
1465 * [Improvements to deref translation increased performance in
1466 unoptimized builds][1.5dr].
1467 * Various errors in trait resolution [are deduplicated to only be
1468 reported once][1.5te].
1469 * Rust has preliminary [support for rumprun kernels][1.5rr].
1470 * Rust has preliminary [support for NetBSD on amd64][1.5na].
1472 [1.5use]: https://github.com/rust-lang/rust/pull/28364
1473 [1.5po]: https://github.com/rust-lang/rust/pull/28436
1474 [1.5ev]: https://github.com/rust-lang/rust/pull/28442
1475 [1.5nu]: https://github.com/rust-lang/rust/pull/28468
1476 [1.5dr]: https://github.com/rust-lang/rust/pull/28491
1477 [1.5vdz]: https://github.com/rust-lang/rust/pull/28494
1478 [1.5md]: https://github.com/rust-lang/rust/pull/28521
1479 [1.5fg]: https://github.com/rust-lang/rust/pull/28522
1480 [1.5dv]: https://github.com/rust-lang/rust/pull/28531
1481 [1.5na]: https://github.com/rust-lang/rust/pull/28543
1482 [1.5fp]: https://github.com/rust-lang/rust/pull/28560
1483 [1.5rr]: https://github.com/rust-lang/rust/pull/28593
1484 [1.5cf]: https://github.com/rust-lang/rust/pull/28602
1485 [1.5nl]: https://github.com/rust-lang/rust/pull/28605
1486 [1.5te]: https://github.com/rust-lang/rust/pull/28645
1487 [1.5at]: https://github.com/rust-lang/rust/pull/28650
1488 [1.5am]: https://github.com/rust-lang/rust/pull/28663
1489 [1.5m]: https://github.com/rust-lang/rust/pull/28778
1490 [1.5ict]: https://github.com/rust-lang/rust/pull/28779
1491 [1.5a]: https://github.com/rust-lang/rust/pull/28811
1492 [1.5pi]: https://github.com/rust-lang/rust/pull/28826
1493 [1.5ce]: https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md
1494 [1.5p]: https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
1495 [1.5i]: https://github.com/rust-lang/rust/pull/28921
1496 [1.5fs]: https://github.com/rust-lang/rust/pull/29021
1497 [1.5f]: https://github.com/rust-lang/rust/pull/29129
1498 [1.5ds]: https://github.com/rust-lang/rust/pull/29148
1499 [1.5s]: https://github.com/rust-lang/rust/pull/29190
1500 [1.5d]: https://github.com/rust-lang/rust/pull/29245
1501 [1.5o]: https://github.com/rust-lang/rust/pull/29259
1502 [1.5nd]: https://github.com/rust-lang/rust/pull/28578
1503 [1.5wf2]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
1504 [1.5wf1]: https://github.com/rust-lang/rust/pull/28669
1505 [dropck]: https://doc.rust-lang.org/nightly/nomicon/dropck.html
1506 [1.5c]: https://github.com/rust-lang/rust/pull/29110
1507 [1.5w]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
1508 [`cargo install`]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md
1509 [`BinaryHeap::from`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html#method.from
1510 [`BinaryHeap::into_sorted_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_sorted_vec
1511 [`BinaryHeap::into_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_vec
1512 [`Condvar::wait_timeout`]: http://doc.rust-lang.org/nightly/std/sync/struct.Condvar.html#method.wait_timeout
1513 [`FileTypeExt::is_block_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_block_device
1514 [`FileTypeExt::is_char_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_char_device
1515 [`FileTypeExt::is_fifo`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_fifo
1516 [`FileTypeExt::is_socket`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_socket
1517 [`FileTypeExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html
1518 [`Formatter::alternate`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.alternate
1519 [`Formatter::fill`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.fill
1520 [`Formatter::precision`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.precision
1521 [`Formatter::sign_aware_zero_pad`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_aware_zero_pad
1522 [`Formatter::sign_minus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_minus
1523 [`Formatter::sign_plus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_plus
1524 [`Formatter::width`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.width
1525 [`Iterator::cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cmp
1526 [`Iterator::eq`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.eq
1527 [`Iterator::ge`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ge
1528 [`Iterator::gt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.gt
1529 [`Iterator::le`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.le
1530 [`Iterator::lt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.lt
1531 [`Iterator::ne`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ne
1532 [`Iterator::partial_cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.partial_cmp
1533 [`Path::canonicalize`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.canonicalize
1534 [`Path::exists`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.exists
1535 [`Path::is_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_dir
1536 [`Path::is_file`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_file
1537 [`Path::metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.metadata
1538 [`Path::read_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_dir
1539 [`Path::read_link`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_link
1540 [`Path::symlink_metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.symlink_metadata
1541 [`Utf8Error::valid_up_to`]: http://doc.rust-lang.org/nightly/core/str/struct.Utf8Error.html#method.valid_up_to
1542 [`Vec::resize`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.resize
1543 [`VecDeque::as_mut_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_mut_slices
1544 [`VecDeque::as_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_slices
1545 [`VecDeque::insert`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.insert
1546 [`VecDeque::shrink_to_fit`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.shrink_to_fit
1547 [`VecDeque::swap_remove_back`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_back
1548 [`VecDeque::swap_remove_front`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_front
1549 [`slice::split_first_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first_mut
1550 [`slice::split_first`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first
1551 [`slice::split_last_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last_mut
1552 [`slice::split_last`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last
1553 [`char::from_u32_unchecked`]: http://doc.rust-lang.org/nightly/std/char/fn.from_u32_unchecked.html
1554 [`fs::canonicalize`]: http://doc.rust-lang.org/nightly/std/fs/fn.canonicalize.html
1555 [`str::MatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.MatchIndices.html
1556 [`str::RMatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.RMatchIndices.html
1557 [`str::match_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices
1558 [`str::rmatch_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices
1559 [`str::slice_mut_unchecked`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked
1560 [`string::ParseError`]: http://doc.rust-lang.org/nightly/std/string/enum.ParseError.html
1562 Version 1.4.0 (2015-10-29)
1563 ==========================
1565 * ~1200 changes, numerous bugfixes
1570 * Windows builds targeting the 64-bit MSVC ABI and linker (instead of
1571 GNU) are now supported and recommended for use.
1576 * [Several changes have been made to fix type soundness and improve
1577 the behavior of associated types][sound]. See [RFC 1214]. Although
1578 we have mostly introduced these changes as warnings this release, to
1579 become errors next release, there are still some scenarios that will
1580 see immediate breakage.
1581 * [The `str::lines` and `BufRead::lines` iterators treat `\r\n` as
1582 line breaks in addition to `\n`][crlf].
1583 * [Loans of `'static` lifetime extend to the end of a function][stat].
1584 * [`str::parse` no longer introduces avoidable rounding error when
1585 parsing floating point numbers. Together with earlier changes to
1586 float formatting/output, "round trips" like f.to_string().parse()
1587 now preserve the value of f exactly. Additionally, leading plus
1588 signs are now accepted][fp3].
1594 * `use` statements that import multiple items [can now rename
1595 them][i], as in `use foo::{bar as kitten, baz as puppy}`.
1596 * [Binops work correctly on fat pointers][binfat].
1597 * `pub extern crate`, which does not behave as expected, [issues a
1598 warning][pec] until a better solution is found.
1603 * [Many APIs were stabilized][stab]: `<Box<str>>::into_string`,
1604 [`Arc::downgrade`], [`Arc::get_mut`], [`Arc::make_mut`],
1605 [`Arc::try_unwrap`], [`Box::from_raw`], [`Box::into_raw`], [`CStr::to_str`],
1606 [`CStr::to_string_lossy`], [`CString::from_raw`], [`CString::into_raw`],
1607 [`IntoRawFd::into_raw_fd`], [`IntoRawFd`],
1608 `IntoRawHandle::into_raw_handle`, `IntoRawHandle`,
1609 `IntoRawSocket::into_raw_socket`, `IntoRawSocket`, [`Rc::downgrade`],
1610 [`Rc::get_mut`], [`Rc::make_mut`], [`Rc::try_unwrap`], [`Result::expect`],
1611 [`String::into_boxed_str`], [`TcpStream::read_timeout`],
1612 [`TcpStream::set_read_timeout`], [`TcpStream::set_write_timeout`],
1613 [`TcpStream::write_timeout`], [`UdpSocket::read_timeout`],
1614 [`UdpSocket::set_read_timeout`], [`UdpSocket::set_write_timeout`],
1615 [`UdpSocket::write_timeout`], `Vec::append`, `Vec::split_off`,
1616 [`VecDeque::append`], [`VecDeque::retain`], [`VecDeque::split_off`],
1617 [`rc::Weak::upgrade`], [`rc::Weak`], [`slice::Iter::as_slice`],
1618 [`slice::IterMut::into_slice`], [`str::CharIndices::as_str`],
1619 [`str::Chars::as_str`], [`str::split_at_mut`], [`str::split_at`],
1620 [`sync::Weak::upgrade`], [`sync::Weak`], [`thread::park_timeout`],
1622 * [Some APIs were deprecated][dep]: `BTreeMap::with_b`,
1623 `BTreeSet::with_b`, `Option::as_mut_slice`, `Option::as_slice`,
1624 `Result::as_mut_slice`, `Result::as_slice`, `f32::from_str_radix`,
1625 `f64::from_str_radix`.
1626 * [Reverse-searching strings is faster with the 'two-way'
1628 * [`std::io::copy` allows `?Sized` arguments][cc].
1629 * The `Windows`, `Chunks`, and `ChunksMut` iterators over slices all
1630 [override `count`, `nth` and `last` with an O(1)
1631 implementation][it].
1632 * [`Default` is implemented for arrays up to `[T; 32]`][d].
1633 * [`IntoRawFd` has been added to the Unix-specific prelude,
1634 `IntoRawSocket` and `IntoRawHandle` to the Windows-specific
1636 * [`Extend<String>` and `FromIterator<String` are both implemented for
1638 * [`IntoIterator` is implemented for references to `Option` and
1640 * [`HashMap` and `HashSet` implement `Extend<&T>` where `T:
1641 Copy`][ext] as part of [RFC 839]. This will cause type inferance
1642 breakage in rare situations.
1643 * [`BinaryHeap` implements `Debug`][bh2].
1644 * [`Borrow` and `BorrowMut` are implemented for fixed-size
1646 * [`extern fn`s with the "Rust" and "C" ABIs implement common
1647 traits including `Eq`, `Ord`, `Debug`, `Hash`][fp].
1648 * [String comparison is faster][faststr].
1649 * `&mut T` where `T: std::fmt::Write` [also implements
1650 `std::fmt::Write`][mutw].
1651 * [A stable regression in `VecDeque::push_back` and other
1652 capicity-altering methods that caused panics for zero-sized types
1654 * [Function pointers implement traits for up to 12 parameters][fp2].
1659 * The compiler [no longer uses the 'morestack' feature to prevent
1660 stack overflow][mm]. Instead it uses guard pages and stack
1661 probes (though stack probes are not yet implemented on any platform
1663 * [The compiler matches traits faster when projections are involved][p].
1664 * The 'improper_ctypes' lint [no longer warns about use of `isize` and
1666 * [Cargo now displays useful information about what its doing during
1667 `cargo update`][cu].
1669 [`Arc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.downgrade
1670 [`Arc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.make_mut
1671 [`Arc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.get_mut
1672 [`Arc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.try_unwrap
1673 [`Box::from_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.from_raw
1674 [`Box::into_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.into_raw
1675 [`CStr::to_str`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_str
1676 [`CStr::to_string_lossy`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_string_lossy
1677 [`CString::from_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.from_raw
1678 [`CString::into_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_raw
1679 [`IntoRawFd::into_raw_fd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html#tymethod.into_raw_fd
1680 [`IntoRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html
1681 [`Rc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.downgrade
1682 [`Rc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.get_mut
1683 [`Rc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.make_mut
1684 [`Rc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.try_unwrap
1685 [`Result::expect`]: http://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.expect
1686 [`String::into_boxed_str`]: http://doc.rust-lang.org/nightly/collections/string/struct.String.html#method.into_boxed_str
1687 [`TcpStream::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
1688 [`TcpStream::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
1689 [`TcpStream::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
1690 [`TcpStream::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
1691 [`UdpSocket::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
1692 [`UdpSocket::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
1693 [`UdpSocket::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
1694 [`UdpSocket::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
1695 [`VecDeque::append`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.append
1696 [`VecDeque::retain`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.retain
1697 [`VecDeque::split_off`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.split_off
1698 [`rc::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html#method.upgrade
1699 [`rc::Weak`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html
1700 [`slice::Iter::as_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#method.as_slice
1701 [`slice::IterMut::into_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.IterMut.html#method.into_slice
1702 [`str::CharIndices::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.CharIndices.html#method.as_str
1703 [`str::Chars::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.Chars.html#method.as_str
1704 [`str::split_at_mut`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut
1705 [`str::split_at`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at
1706 [`sync::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html#method.upgrade
1707 [`sync::Weak`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html
1708 [`thread::park_timeout`]: http://doc.rust-lang.org/nightly/std/thread/fn.park_timeout.html
1709 [`thread::sleep`]: http://doc.rust-lang.org/nightly/std/thread/fn.sleep.html
1710 [bh2]: https://github.com/rust-lang/rust/pull/28156
1711 [binfat]: https://github.com/rust-lang/rust/pull/28270
1712 [bm]: https://github.com/rust-lang/rust/pull/28197
1713 [cc]: https://github.com/rust-lang/rust/pull/27531
1714 [crlf]: https://github.com/rust-lang/rust/pull/28034
1715 [cu]: https://github.com/rust-lang/cargo/pull/1931
1716 [d]: https://github.com/rust-lang/rust/pull/27825
1717 [dep]: https://github.com/rust-lang/rust/pull/28339
1718 [es]: https://github.com/rust-lang/rust/pull/27956
1719 [ext]: https://github.com/rust-lang/rust/pull/28094
1720 [faststr]: https://github.com/rust-lang/rust/pull/28338
1721 [ffi]: https://github.com/rust-lang/rust/pull/28779
1722 [fp]: https://github.com/rust-lang/rust/pull/28268
1723 [fp2]: https://github.com/rust-lang/rust/pull/28560
1724 [fp3]: https://github.com/rust-lang/rust/pull/27307
1725 [i]: https://github.com/rust-lang/rust/pull/27451
1726 [into2]: https://github.com/rust-lang/rust/pull/28039
1727 [it]: https://github.com/rust-lang/rust/pull/27652
1728 [mm]: https://github.com/rust-lang/rust/pull/27338
1729 [mutw]: https://github.com/rust-lang/rust/pull/28368
1730 [sound]: https://github.com/rust-lang/rust/pull/27641
1731 [p]: https://github.com/rust-lang/rust/pull/27866
1732 [pec]: https://github.com/rust-lang/rust/pull/28486
1733 [pr]: https://github.com/rust-lang/rust/pull/27896
1734 [RFC 839]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
1735 [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
1736 [s]: https://github.com/rust-lang/rust/pull/27474
1737 [stab]: https://github.com/rust-lang/rust/pull/28339
1738 [stat]: https://github.com/rust-lang/rust/pull/28321
1739 [vd]: https://github.com/rust-lang/rust/pull/28494
1741 Version 1.3.0 (2015-09-17)
1742 ==============================
1744 * ~900 changes, numerous bugfixes
1749 * The [new object lifetime defaults][nold] have been [turned
1750 on][nold2] after a cycle of warnings about the change. Now types
1751 like `&'a Box<Trait>` (or `&'a Rc<Trait>`, etc) will change from
1752 being interpreted as `&'a Box<Trait+'a>` to `&'a
1753 Box<Trait+'static>`.
1754 * [The Rustonomicon][nom] is a new book in the official documentation
1755 that dives into writing unsafe Rust.
1756 * The [`Duration`] API, [has been stabilized][ds]. This basic unit of
1757 timekeeping is employed by other std APIs, as well as out-of-tree
1763 * The [new object lifetime defaults][nold] have been [turned
1764 on][nold2] after a cycle of warnings about the change.
1765 * There is a known [regression][lr] in how object lifetime elision is
1766 interpreted, the proper solution for which is undetermined.
1767 * The `#[prelude_import]` attribute, an internal implementation
1768 detail, was accidentally stabilized previously. [It has been put
1769 behind the `prelude_import` feature gate][pi]. This change is
1770 believed to break no existing code.
1771 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
1772 [more sane for dynamically sized types][dst3]. Code that relied on
1773 the previous behavior is thought to be broken.
1774 * The `dropck` rules, which checks that destructors can't access
1775 destroyed values, [have been updated][dropck] to match the
1776 [RFC][dropckrfc]. This fixes some soundness holes, and as such will
1777 cause some previously-compiling code to no longer build.
1782 * The [new object lifetime defaults][nold] have been [turned
1783 on][nold2] after a cycle of warnings about the change.
1784 * Semicolons may [now follow types and paths in
1785 macros](https://github.com/rust-lang/rust/pull/27000).
1786 * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
1787 [more sane for dynamically sized types][dst3]. Code that relied on
1788 the previous behavior is not known to exist, and suspected to be
1790 * `'static` variables [may now be recursive][st].
1791 * `ref` bindings choose between [`Deref`] and [`DerefMut`]
1792 implementations correctly.
1793 * The `dropck` rules, which checks that destructors can't access
1794 destroyed values, [have been updated][dropck] to match the
1800 * The [`Duration`] API, [has been stabilized][ds], as well as the
1801 `std::time` module, which presently contains only `Duration`.
1802 * `Box<str>` and `Box<[T]>` both implement `Clone`.
1803 * The owned C string, [`CString`], implements [`Borrow`] and the
1804 borrowed C string, [`CStr`], implements [`ToOwned`]. The two of
1805 these allow C strings to be borrowed and cloned in generic code.
1806 * [`CStr`] implements [`Debug`].
1807 * [`AtomicPtr`] implements [`Debug`].
1808 * [`Error`] trait objects [can be downcast to their concrete types][e]
1809 in many common configurations, using the [`is`], [`downcast`],
1810 [`downcast_ref`] and [`downcast_mut`] methods, similarly to the
1812 * Searching for substrings now [employs the two-way algorithm][search]
1813 instead of doing a naive search. This gives major speedups to a
1814 number of methods, including [`contains`][sc], [`find`][sf],
1815 [`rfind`][srf], [`split`][ss]. [`starts_with`][ssw] and
1816 [`ends_with`][sew] are also faster.
1817 * The performance of `PartialEq` for slices is [much faster][ps].
1818 * The [`Hash`] trait offers the default method, [`hash_slice`], which
1819 is overridden and optimized by the implementations for scalars.
1820 * The [`Hasher`] trait now has a number of specialized `write_*`
1821 methods for primitive types, for efficiency.
1822 * The I/O-specific error type, [`std::io::Error`][ie], gained a set of
1823 methods for accessing the 'inner error', if any: [`get_ref`][iegr],
1824 [`get_mut`][iegm], [`into_inner`][ieii]. As well, the implementation
1825 of [`std::error::Error::cause`][iec] also delegates to the inner
1827 * [`process::Child`][pc] gained the [`id`] method, which returns a
1828 `u32` representing the platform-specific process identifier.
1829 * The [`connect`] method on slices is deprecated, replaced by the new
1830 [`join`] method (note that both of these are on the *unstable*
1831 [`SliceConcatExt`] trait, but through the magic of the prelude are
1832 available to stable code anyway).
1833 * The [`Div`] operator is implemented for [`Wrapping`] types.
1834 * [`DerefMut` is implemented for `String`][dms].
1835 * Performance of SipHash (the default hasher for `HashMap`) is
1836 [better for long data][sh].
1837 * [`AtomicPtr`] implements [`Send`].
1838 * The [`read_to_end`] implementations for [`Stdin`] and [`File`]
1839 are now [specialized to use uninitalized buffers for increased
1841 * Lifetime parameters of foreign functions [are now resolved
1847 * Rust can now, with some coercion, [produce programs that run on
1848 Windows XP][xp], though XP is not considered a supported platform.
1849 * Porting Rust on Windows from the GNU toolchain to MSVC continues
1850 ([1][win1], [2][win2], [3][win3], [4][win4]). It is still not
1851 recommended for use in 1.3, though should be fully-functional
1852 in the [64-bit 1.4 beta][b14].
1853 * On Fedora-based systems installation will [properly configure the
1854 dynamic linker][fl].
1855 * The compiler gained many new extended error descriptions, which can
1856 be accessed with the `--explain` flag.
1857 * The `dropck` pass, which checks that destructors can't access
1858 destroyed values, [has been rewritten][dropck]. This fixes some
1859 soundness holes, and as such will cause some previously-compiling
1860 code to no longer build.
1861 * `rustc` now uses [LLVM to write archive files where possible][ar].
1862 Eventually this will eliminate the compiler's dependency on the ar
1864 * Rust has [preliminary support for i686 FreeBSD][fb] (it has long
1865 supported FreeBSD on x86_64).
1866 * The [`unused_mut`][lum], [`unconditional_recursion`][lur],
1867 [`improper_ctypes`][lic], and [`negate_unsigned`][lnu] lints are
1869 * If landing pads are disabled (with `-Z no-landing-pads`), [`panic!`
1870 will kill the process instead of leaking][nlp].
1872 [`Any`]: http://doc.rust-lang.org/nightly/std/any/trait.Any.html
1873 [`AtomicPtr`]: http://doc.rust-lang.org/nightly/std/sync/atomic/struct.AtomicPtr.html
1874 [`Borrow`]: http://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html
1875 [`CStr`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html
1876 [`CString`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html
1877 [`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
1878 [`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
1879 [`Deref`]: http://doc.rust-lang.org/nightly/std/ops/trait.Deref.html
1880 [`Div`]: http://doc.rust-lang.org/nightly/std/ops/trait.Div.html
1881 [`Duration`]: http://doc.rust-lang.org/nightly/std/time/struct.Duration.html
1882 [`Error`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html
1883 [`File`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html
1884 [`Hash`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html
1885 [`Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
1886 [`Send`]: http://doc.rust-lang.org/nightly/std/marker/trait.Send.html
1887 [`SliceConcatExt`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html
1888 [`Stdin`]: http://doc.rust-lang.org/nightly/std/io/struct.Stdin.html
1889 [`ToOwned`]: http://doc.rust-lang.org/nightly/std/borrow/trait.ToOwned.html
1890 [`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
1891 [`connect`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.connect
1892 [`downcast_mut`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_mut
1893 [`downcast_ref`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_ref
1894 [`downcast`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast
1895 [`hash_slice`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
1896 [`id`]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html#method.id
1897 [`is`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.is
1898 [`join`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.join
1899 [`read_to_end`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end
1900 [ar]: https://github.com/rust-lang/rust/pull/26926
1901 [b14]: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi
1902 [dms]: https://github.com/rust-lang/rust/pull/26241
1903 [dropck]: https://github.com/rust-lang/rust/pull/27261
1904 [dropckrfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
1905 [ds]: https://github.com/rust-lang/rust/pull/26818
1906 [dst1]: http://doc.rust-lang.org/nightly/std/mem/fn.size_of_val.html
1907 [dst2]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of_val.html
1908 [dst3]: https://github.com/rust-lang/rust/pull/27351
1909 [e]: https://github.com/rust-lang/rust/pull/24793
1910 [f]: https://github.com/rust-lang/rust/pull/26588
1911 [fb]: https://github.com/rust-lang/rust/pull/26959
1912 [fl]: https://github.com/rust-lang/rust-installer/pull/41
1913 [hs]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
1914 [ie]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html
1915 [iec]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.cause
1916 [iegm]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_mut
1917 [iegr]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_ref
1918 [ieii]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.into_inner
1919 [lic]: https://github.com/rust-lang/rust/pull/26583
1920 [lnu]: https://github.com/rust-lang/rust/pull/27026
1921 [lr]: https://github.com/rust-lang/rust/issues/27248
1922 [lum]: https://github.com/rust-lang/rust/pull/26378
1923 [lur]: https://github.com/rust-lang/rust/pull/26783
1924 [nlp]: https://github.com/rust-lang/rust/pull/27176
1925 [nold2]: https://github.com/rust-lang/rust/pull/27045
1926 [nold]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
1927 [nom]: http://doc.rust-lang.org/nightly/nomicon/
1928 [pc]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html
1929 [pi]: https://github.com/rust-lang/rust/pull/26699
1930 [ps]: https://github.com/rust-lang/rust/pull/26884
1931 [rte]: https://github.com/rust-lang/rust/pull/26950
1932 [sc]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.contains
1933 [search]: https://github.com/rust-lang/rust/pull/26327
1934 [sew]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.ends_with
1935 [sf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.find
1936 [sh]: https://github.com/rust-lang/rust/pull/27280
1937 [srf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rfind
1938 [ss]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split
1939 [ssw]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.starts_with
1940 [st]: https://github.com/rust-lang/rust/pull/26630
1941 [win1]: https://github.com/rust-lang/rust/pull/26569
1942 [win2]: https://github.com/rust-lang/rust/pull/26741
1943 [win3]: https://github.com/rust-lang/rust/pull/26741
1944 [win4]: https://github.com/rust-lang/rust/pull/27210
1945 [xp]: https://github.com/rust-lang/rust/pull/26569
1947 Version 1.2.0 (2015-08-07)
1948 ==========================
1950 * ~1200 changes, numerous bugfixes
1955 * [Dynamically-sized-type coercions][dst] allow smart pointer types
1956 like `Rc` to contain types without a fixed size, arrays and trait
1957 objects, finally enabling use of `Rc<[T]>` and completing the
1958 implementation of DST.
1959 * [Parallel codegen][parcodegen] is now working again, which can
1960 substantially speed up large builds in debug mode; It also gets
1961 another ~33% speedup when bootstrapping on a 4 core machine (using 8
1962 jobs). It's not enabled by default, but will be "in the near
1963 future". It can be activated with the `-C codegen-units=N` flag to
1965 * This is the first release with [experimental support for linking
1966 with the MSVC linker and lib C on Windows (instead of using the GNU
1967 variants via MinGW)][win]. It is yet recommended only for the most
1968 intrepid Rusticians.
1969 * Benchmark compilations are showing a 30% improvement in
1970 bootstrapping over 1.1.
1975 * The [`to_uppercase`] and [`to_lowercase`] methods on `char` now do
1976 unicode case mapping, which is a previously-planned change in
1977 behavior and considered a bugfix.
1978 * [`mem::align_of`] now specifies [the *minimum alignment* for
1979 T][align], which is usually the alignment programs are interested
1980 in, and the same value reported by clang's
1981 `alignof`. [`mem::min_align_of`] is deprecated. This is not known to
1983 * [The `#[packed]` attribute is no longer silently accepted by the
1984 compiler][packed]. This attribute did nothing and code that
1985 mentioned it likely did not work as intended.
1986 * Associated type defaults are [now behind the
1987 `associated_type_defaults` feature gate][ad]. In 1.1 associated type
1988 defaults *did not work*, but could be mentioned syntactically. As
1989 such this breakage has minimal impact.
1994 * Patterns with `ref mut` now correctly invoke [`DerefMut`] when
1995 matching against dereferencable values.
2000 * The [`Extend`] trait, which grows a collection from an iterator, is
2001 implemented over iterators of references, for `String`, `Vec`,
2002 `LinkedList`, `VecDeque`, `EnumSet`, `BinaryHeap`, `VecMap`,
2003 `BTreeSet` and `BTreeMap`. [RFC][extend-rfc].
2004 * The [`iter::once`] function returns an iterator that yields a single
2005 element, and [`iter::empty`] returns an iterator that yields no
2007 * The [`matches`] and [`rmatches`] methods on `str` return iterators
2008 over substring matches.
2009 * [`Cell`] and [`RefCell`] both implement `Eq`.
2010 * A number of methods for wrapping arithmetic are added to the
2011 integral types, [`wrapping_div`], [`wrapping_rem`],
2012 [`wrapping_neg`], [`wrapping_shl`], [`wrapping_shr`]. These are in
2013 addition to the existing [`wrapping_add`], [`wrapping_sub`], and
2014 [`wrapping_mul`] methods, and alternatives to the [`Wrapping`]
2015 type.. It is illegal for the default arithmetic operations in Rust
2016 to overflow; the desire to wrap must be explicit.
2017 * The `{:#?}` formatting specifier [displays the alternate,
2018 pretty-printed][debugfmt] form of the `Debug` formatter. This
2019 feature was actually introduced prior to 1.0 with little
2021 * [`fmt::Formatter`] implements [`fmt::Write`], a `fmt`-specific trait
2022 for writing data to formatted strings, similar to [`io::Write`].
2023 * [`fmt::Formatter`] adds 'debug builder' methods, [`debug_struct`],
2024 [`debug_tuple`], [`debug_list`], [`debug_set`], [`debug_map`]. These
2025 are used by code generators to emit implementations of [`Debug`].
2026 * `str` has new [`to_uppercase`][strup] and [`to_lowercase`][strlow]
2027 methods that convert case, following Unicode case mapping.
2028 * It is now easier to handle poisoned locks. The [`PoisonError`]
2029 type, returned by failing lock operations, exposes `into_inner`,
2030 `get_ref`, and `get_mut`, which all give access to the inner lock
2031 guard, and allow the poisoned lock to continue to operate. The
2032 `is_poisoned` method of [`RwLock`] and [`Mutex`] can poll for a
2033 poisoned lock without attempting to take the lock.
2034 * On Unix the [`FromRawFd`] trait is implemented for [`Stdio`], and
2035 [`AsRawFd`] for [`ChildStdin`], [`ChildStdout`], [`ChildStderr`].
2036 On Windows the `FromRawHandle` trait is implemented for `Stdio`,
2037 and `AsRawHandle` for `ChildStdin`, `ChildStdout`,
2039 * [`io::ErrorKind`] has a new variant, `InvalidData`, which indicates
2045 * `rustc` employs smarter heuristics for guessing at [typos].
2046 * `rustc` emits more efficient code for [no-op conversions between
2047 unsafe pointers][nop].
2048 * Fat pointers are now [passed in pairs of immediate arguments][fat],
2049 resulting in faster compile times and smaller code.
2051 [`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
2052 [extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
2053 [`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html
2054 [`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html
2055 [`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
2056 [`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
2057 [`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
2058 [`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
2059 [`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
2060 [`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
2061 [`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
2062 [`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
2063 [`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
2064 [`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
2065 [`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
2066 [`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
2067 [`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
2068 [`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
2069 [`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
2070 [`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html
2071 [`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
2072 [`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
2073 [`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
2074 [`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
2075 [`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
2076 [`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
2077 [strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
2078 [strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
2079 [`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
2080 [`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
2081 [`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
2082 [`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
2083 [`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
2084 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
2085 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
2086 [`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
2087 [`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
2088 [`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
2089 [`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
2090 [`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
2091 [debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
2092 [`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
2093 [`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
2094 [align]: https://github.com/rust-lang/rust/pull/25646
2095 [`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
2096 [typos]: https://github.com/rust-lang/rust/pull/26087
2097 [nop]: https://github.com/rust-lang/rust/pull/26336
2098 [fat]: https://github.com/rust-lang/rust/pull/26411
2099 [dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
2100 [parcodegen]: https://github.com/rust-lang/rust/pull/26018
2101 [packed]: https://github.com/rust-lang/rust/pull/25541
2102 [ad]: https://github.com/rust-lang/rust/pull/27382
2103 [win]: https://github.com/rust-lang/rust/pull/25350
2105 Version 1.1.0 (2015-06-25)
2106 =========================
2108 * ~850 changes, numerous bugfixes
2113 * The [`std::fs` module has been expanded][fs] to expand the set of
2114 functionality exposed:
2115 * `DirEntry` now supports optimizations like `file_type` and `metadata` which
2116 don't incur a syscall on some platforms.
2117 * A `symlink_metadata` function has been added.
2118 * The `fs::Metadata` structure now lowers to its OS counterpart, providing
2119 access to all underlying information.
2120 * The compiler now contains extended explanations of many errors. When an error
2121 with an explanation occurs the compiler suggests using the `--explain` flag
2122 to read the explanation. Error explanations are also [available online][err-index].
2123 * Thanks to multiple [improvements][sk] to [type checking][pre], as
2124 well as other work, the time to bootstrap the compiler decreased by
2130 * The [`str::split_whitespace`] method splits a string on unicode
2131 whitespace boundaries.
2132 * On both Windows and Unix, new extension traits provide conversion of
2133 I/O types to and from the underlying system handles. On Unix, these
2134 traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
2135 and `AsRawHandle`. These are implemented for `File`, `TcpStream`,
2136 `TcpListener`, and `UpdSocket`. Further implementations for
2137 `std::process` will be stabilized later.
2138 * On Unix, [`std::os::unix::symlink`] creates symlinks. On
2139 Windows, symlinks can be created with
2140 `std::os::windows::symlink_dir` and
2141 `std::os::windows::symlink_file`.
2142 * The `mpsc::Receiver` type can now be converted into an iterator with
2143 `into_iter` on the [`IntoIterator`] trait.
2144 * `Ipv4Addr` can be created from `u32` with the `From<u32>`
2145 implementation of the [`From`] trait.
2146 * The `Debug` implementation for `RangeFull` [creates output that is
2147 more consistent with other implementations][rf].
2148 * [`Debug` is implemented for `File`][file].
2149 * The `Default` implementation for `Arc` [no longer requires `Sync +
2151 * [The `Iterator` methods `count`, `nth`, and `last` have been
2152 overridden for slices to have O(1) performance instead of O(n)][si].
2153 * Incorrect handling of paths on Windows has been improved in both the
2154 compiler and the standard library.
2155 * [`AtomicPtr` gained a `Default` implementation][ap].
2156 * In accordance with Rust's policy on arithmetic overflow `abs` now
2157 [panics on overflow when debug assertions are enabled][abs].
2158 * The [`Cloned`] iterator, which was accidentally left unstable for
2159 1.0 [has been stabilized][c].
2160 * The [`Incoming`] iterator, which iterates over incoming TCP
2161 connections, and which was accidentally unnamable in 1.0, [is now
2162 properly exported][inc].
2163 * [`BinaryHeap`] no longer corrupts itself [when functions called by
2164 `sift_up` or `sift_down` panic][bh].
2165 * The [`split_off`] method of `LinkedList` [no longer corrupts
2166 the list in certain scenarios][ll].
2171 * Type checking performance [has improved notably][sk] with
2172 [multiple improvements][pre].
2173 * The compiler [suggests code changes][ch] for more errors.
2174 * rustc and it's build system have experimental support for [building
2175 toolchains against MUSL][m] instead of glibc on Linux.
2176 * The compiler defines the `target_env` cfg value, which is used for
2177 distinguishing toolchains that are otherwise for the same
2178 platform. Presently this is set to `gnu` for common GNU Linux
2179 targets and for MinGW targets, and `musl` for MUSL Linux targets.
2180 * The [`cargo rustc`][crc] command invokes a build with custom flags
2182 * [Android executables are always position independent][pie].
2183 * [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
2186 [`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
2187 [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
2188 [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
2189 [`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
2190 [`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
2191 [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html
2192 [rf]: https://github.com/rust-lang/rust/pull/24491
2193 [err-index]: https://doc.rust-lang.org/error-index.html
2194 [sk]: https://github.com/rust-lang/rust/pull/24615
2195 [pre]: https://github.com/rust-lang/rust/pull/25323
2196 [file]: https://github.com/rust-lang/rust/pull/24598
2197 [ch]: https://github.com/rust-lang/rust/pull/24683
2198 [arc]: https://github.com/rust-lang/rust/pull/24695
2199 [si]: https://github.com/rust-lang/rust/pull/24701
2200 [ap]: https://github.com/rust-lang/rust/pull/24834
2201 [m]: https://github.com/rust-lang/rust/pull/24777
2202 [fs]: https://github.com/rust-lang/rfcs/blob/master/text/1044-io-fs-2.1.md
2203 [crc]: https://github.com/rust-lang/cargo/pull/1568
2204 [pie]: https://github.com/rust-lang/rust/pull/24953
2205 [abs]: https://github.com/rust-lang/rust/pull/25441
2206 [c]: https://github.com/rust-lang/rust/pull/25496
2207 [`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
2208 [`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
2209 [inc]: https://github.com/rust-lang/rust/pull/25522
2210 [bh]: https://github.com/rust-lang/rust/pull/25856
2211 [`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
2212 [ll]: https://github.com/rust-lang/rust/pull/26022
2213 [`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
2214 [drop]: https://github.com/rust-lang/rust/pull/24935
2216 Version 1.0.0 (2015-05-15)
2217 ========================
2219 * ~1500 changes, numerous bugfixes
2224 * The vast majority of the standard library is now `#[stable]`. It is
2225 no longer possible to use unstable features with a stable build of
2227 * Many popular crates on [crates.io] now work on the stable release
2229 * Arithmetic on basic integer types now [checks for overflow in debug
2235 * Several [restrictions have been added to trait coherence][coh] in
2236 order to make it easier for upstream authors to change traits
2237 without breaking downstream code.
2238 * Digits of binary and octal literals are [lexed more eagerly][lex] to
2239 improve error messages and macro behavior. For example, `0b1234` is
2240 now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
2241 * Trait bounds [are always invariant][inv], eliminating the need for
2242 the `PhantomFn` and `MarkerTrait` lang items, which have been
2244 * ["-" is no longer a valid character in crate names][cr], the `extern crate
2245 "foo" as bar` syntax has been replaced with `extern crate foo as
2246 bar`, and Cargo now automatically translates "-" in *package* names
2247 to underscore for the crate name.
2248 * [Lifetime shadowing is an error][lt].
2249 * [`Send` no longer implies `'static`][send-rfc].
2250 * [UFCS now supports trait-less associated paths][moar-ufcs] like
2251 `MyType::default()`.
2252 * Primitive types [now have inherent methods][prim-inherent],
2253 obviating the need for extension traits like `SliceExt`.
2254 * Methods with `Self: Sized` in their `where` clause are [considered
2255 object-safe][self-sized], allowing many extension traits like
2256 `IteratorExt` to be merged into the traits they extended.
2257 * You can now [refer to associated types][assoc-where] whose
2258 corresponding trait bounds appear only in a `where` clause.
2259 * The final bits of [OIBIT landed][oibit-final], meaning that traits
2260 like `Send` and `Sync` are now library-defined.
2261 * A [Reflect trait][reflect] was introduced, which means that
2262 downcasting via the `Any` trait is effectively limited to concrete
2263 types. This helps retain the potentially-important "parametricity"
2264 property: generic code cannot behave differently for different type
2265 arguments except in minor ways.
2266 * The `unsafe_destructor` feature is now deprecated in favor of the
2267 [new `dropck`][dropck]. This change is a major reduction in unsafe
2273 * The `thread_local` module [has been renamed to `std::thread`][th].
2274 * The methods of `IteratorExt` [have been moved to the `Iterator`
2276 * Several traits that implement Rust's conventions for type
2277 conversions, `AsMut`, `AsRef`, `From`, and `Into` have been
2278 [centralized in the `std::convert` module][con].
2279 * The `FromError` trait [was removed in favor of `From`][fe].
2280 * The basic sleep function [has moved to
2281 `std::thread::sleep_ms`][slp].
2282 * The `splitn` function now takes an `n` parameter that represents the
2283 number of items yielded by the returned iterator [instead of the
2284 number of 'splits'][spl].
2285 * [On Unix, all file descriptors are `CLOEXEC` by default][clo].
2286 * [Derived implementations of `PartialOrd` now order enums according
2287 to their explicitly-assigned discriminants][po].
2288 * [Methods for searching strings are generic over `Pattern`s][pat],
2289 implemented presently by `&char`, `&str`, `FnMut(char) -> bool` and
2291 * [In method resolution, object methods are resolved before inherent
2293 * [`String::from_str` has been deprecated in favor of the `From` impl,
2294 `String::from`][sf].
2295 * [`io::Error` implements `Sync`][ios].
2296 * [The `words` method on `&str` has been replaced with
2297 `split_whitespace`][sw], to avoid answering the tricky question, 'what is
2299 * The new path and IO modules are complete and `#[stable]`. This
2300 was the major library focus for this cycle.
2301 * The path API was [revised][path-normalize] to normalize `.`,
2302 adjusting the tradeoffs in favor of the most common usage.
2303 * A large number of remaining APIs in `std` were also stabilized
2304 during this cycle; about 75% of the non-deprecated API surface
2306 * The new [string pattern API][string-pattern] landed, which makes
2307 the string slice API much more internally consistent and flexible.
2308 * A new set of [generic conversion traits][conversion] replaced
2309 many existing ad hoc traits.
2310 * Generic numeric traits were [completely removed][num-traits]. This
2311 was made possible thanks to inherent methods for primitive types,
2312 and the removal gives maximal flexibility for designing a numeric
2313 hierarchy in the future.
2314 * The `Fn` traits are now related via [inheritance][fn-inherit]
2315 and provide ergonomic [blanket implementations][fn-blanket].
2316 * The `Index` and `IndexMut` traits were changed to
2317 [take the index by value][index-value], enabling code like
2318 `hash_map["string"]` to work.
2319 * `Copy` now [inherits][copy-clone] from `Clone`, meaning that all
2320 `Copy` data is known to be `Clone` as well.
2325 * Many errors now have extended explanations that can be accessed with
2326 the `--explain` flag to `rustc`.
2327 * Many new examples have been added to the standard library
2329 * rustdoc has received a number of improvements focused on completion
2331 * Metadata was tuned, shrinking binaries [by 27%][metadata-shrink].
2332 * Much headway was made on ecosystem-wide CI, making it possible
2333 to [compare builds for breakage][ci-compare].
2336 [crates.io]: http://crates.io
2337 [clo]: https://github.com/rust-lang/rust/pull/24034
2338 [coh]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
2339 [con]: https://github.com/rust-lang/rust/pull/23875
2340 [cr]: https://github.com/rust-lang/rust/pull/23419
2341 [fe]: https://github.com/rust-lang/rust/pull/23879
2342 [ie]: https://github.com/rust-lang/rust/pull/23300
2343 [inv]: https://github.com/rust-lang/rust/pull/23938
2344 [ios]: https://github.com/rust-lang/rust/pull/24133
2345 [lex]: https://github.com/rust-lang/rfcs/blob/master/text/0879-small-base-lexing.md
2346 [lt]: https://github.com/rust-lang/rust/pull/24057
2347 [meth]: https://github.com/rust-lang/rust/pull/24056
2348 [pat]: https://github.com/rust-lang/rfcs/blob/master/text/0528-string-patterns.md
2349 [po]: https://github.com/rust-lang/rust/pull/24270
2350 [sf]: https://github.com/rust-lang/rust/pull/24517
2351 [slp]: https://github.com/rust-lang/rust/pull/23949
2352 [spl]: https://github.com/rust-lang/rfcs/blob/master/text/0979-align-splitn-with-other-languages.md
2353 [sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md
2354 [th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md
2355 [send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md
2356 [moar-ufcs]: https://github.com/rust-lang/rust/pull/22172
2357 [prim-inherent]: https://github.com/rust-lang/rust/pull/23104
2358 [overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md
2359 [metadata-shrink]: https://github.com/rust-lang/rust/pull/22971
2360 [self-sized]: https://github.com/rust-lang/rust/pull/22301
2361 [assoc-where]: https://github.com/rust-lang/rust/pull/22512
2362 [string-pattern]: https://github.com/rust-lang/rust/pull/22466
2363 [oibit-final]: https://github.com/rust-lang/rust/pull/21689
2364 [reflect]: https://github.com/rust-lang/rust/pull/23712
2365 [conversion]: https://github.com/rust-lang/rfcs/pull/529
2366 [num-traits]: https://github.com/rust-lang/rust/pull/23549
2367 [index-value]: https://github.com/rust-lang/rust/pull/23601
2368 [dropck]: https://github.com/rust-lang/rfcs/pull/769
2369 [ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee
2370 [fn-inherit]: https://github.com/rust-lang/rust/pull/23282
2371 [fn-blanket]: https://github.com/rust-lang/rust/pull/23895
2372 [copy-clone]: https://github.com/rust-lang/rust/pull/23860
2373 [path-normalize]: https://github.com/rust-lang/rust/pull/23229
2376 Version 1.0.0-alpha.2 (2015-02-20)
2377 =====================================
2379 * ~1300 changes, numerous bugfixes
2383 * The various I/O modules were [overhauled][io-rfc] to reduce
2384 unnecessary abstractions and provide better interoperation with
2385 the underlying platform. The old `io` module remains temporarily
2387 * The standard library now [participates in feature gating][feat],
2388 so use of unstable libraries now requires a `#![feature(...)]`
2389 attribute. The impact of this change is [described on the
2390 forum][feat-forum]. [RFC][feat-rfc].
2394 * `for` loops [now operate on the `IntoIterator` trait][into],
2395 which eliminates the need to call `.iter()`, etc. to iterate
2396 over collections. There are some new subtleties to remember
2397 though regarding what sort of iterators various types yield, in
2398 particular that `for foo in bar { }` yields values from a move
2399 iterator, destroying the original collection. [RFC][into-rfc].
2400 * Objects now have [default lifetime bounds][obj], so you don't
2401 have to write `Box<Trait+'static>` when you don't care about
2402 storing references. [RFC][obj-rfc].
2403 * In types that implement `Drop`, [lifetimes must outlive the
2404 value][drop]. This will soon make it possible to safely
2405 implement `Drop` for types where `#[unsafe_destructor]` is now
2406 required. Read the [gorgeous RFC][drop-rfc] for details.
2407 * The fully qualified <T as Trait>::X syntax lets you set the Self
2408 type for a trait method or associated type. [RFC][ufcs-rfc].
2409 * References to types that implement `Deref<U>` now [automatically
2410 coerce to references][deref] to the dereferenced type `U`,
2411 e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This
2412 should eliminate many unsightly uses of `&*`, as when converting
2413 from references to vectors into references to
2414 slices. [RFC][deref-rfc].
2415 * The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`,
2416 `|:|`) is obsolete and closure kind is inferred from context.
2417 * [`Self` is a keyword][Self].
2421 * The `Show` and `String` formatting traits [have been
2422 renamed][fmt] to `Debug` and `Display` to more clearly reflect
2423 their related purposes. Automatically getting a string
2424 conversion to use with `format!("{:?}", something_to_debug)` is
2425 now written `#[derive(Debug)]`.
2426 * Abstract [OS-specific string types][osstr], `std::ff::{OsString,
2427 OsStr}`, provide strings in platform-specific encodings for easier
2428 interop with system APIs. [RFC][osstr-rfc].
2429 * The `boxed::into_raw` and `Box::from_raw` functions [convert
2430 between `Box<T>` and `*mut T`][boxraw], a common pattern for
2431 creating raw pointers.
2435 * Certain long error messages of the form 'expected foo found bar'
2436 are now [split neatly across multiple
2437 lines][multiline]. Examples in the PR.
2438 * On Unix Rust can be [uninstalled][un] by running
2439 `/usr/local/lib/rustlib/uninstall.sh`.
2440 * The `#[rustc_on_unimplemented]` attribute, requiring the
2441 'on_unimplemented' feature, lets rustc [display custom error
2442 messages when a trait is expected to be implemented for a type
2447 * Rust is tested against a [LALR grammar][lalr], which parses
2448 almost all the Rust files that rustc does.
2450 [boxraw]: https://github.com/rust-lang/rust/pull/21318
2451 [close]: https://github.com/rust-lang/rust/pull/21843
2452 [deref]: https://github.com/rust-lang/rust/pull/21351
2453 [deref-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md
2454 [drop]: https://github.com/rust-lang/rust/pull/21972
2455 [drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
2456 [feat]: https://github.com/rust-lang/rust/pull/21248
2457 [feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
2458 [feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
2459 [fmt]: https://github.com/rust-lang/rust/pull/21457
2460 [into]: https://github.com/rust-lang/rust/pull/20790
2461 [into-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable
2462 [io-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
2463 [lalr]: https://github.com/rust-lang/rust/pull/21452
2464 [multiline]: https://github.com/rust-lang/rust/pull/19870
2465 [obj]: https://github.com/rust-lang/rust/pull/22230
2466 [obj-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
2467 [onun]: https://github.com/rust-lang/rust/pull/20889
2468 [osstr]: https://github.com/rust-lang/rust/pull/21488
2469 [osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
2470 [Self]: https://github.com/rust-lang/rust/pull/22158
2471 [ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
2472 [un]: https://github.com/rust-lang/rust/pull/22256
2475 Version 1.0.0-alpha (2015-01-09)
2476 ==================================
2478 * ~2400 changes, numerous bugfixes
2482 * The language itself is considered feature complete for 1.0,
2483 though there will be many usability improvements and bugfixes
2484 before the final release.
2485 * Nearly 50% of the public API surface of the standard library has
2486 been declared 'stable'. Those interfaces are unlikely to change
2488 * The long-running debate over integer types has been
2489 [settled][ints]: Rust will ship with types named `isize` and
2490 `usize`, rather than `int` and `uint`, for pointer-sized
2491 integers. Guidelines will be rolled out during the alpha cycle.
2492 * Most crates that are not `std` have been moved out of the Rust
2493 distribution into the Cargo ecosystem so they can evolve
2494 separately and don't need to be stabilized as quickly, including
2495 'time', 'getopts', 'num', 'regex', and 'term'.
2496 * Documentation continues to be expanded with more API coverage, more
2497 examples, and more in-depth explanations. The guides have been
2498 consolidated into [The Rust Programming Language][trpl].
2499 * "[Rust By Example][rbe]" is now maintained by the Rust team.
2500 * All official Rust binary installers now come with [Cargo], the
2501 Rust package manager.
2505 * Closures have been [completely redesigned][unboxed] to be
2506 implemented in terms of traits, can now be used as generic type
2507 bounds and thus monomorphized and inlined, or via an opaque
2508 pointer (boxed) as in the old system. The new system is often
2509 referred to as 'unboxed' closures.
2510 * Traits now support [associated types][assoc], allowing families
2511 of related types to be defined together and used generically in
2513 * Enum variants are [namespaced by their type names][enum].
2514 * [`where` clauses][where] provide a more versatile and attractive
2515 syntax for specifying generic bounds, though the previous syntax
2517 * Rust again picks a [fallback][fb] (either i32 or f64) for uninferred
2519 * Rust [no longer has a runtime][rt] of any description, and only
2520 supports OS threads, not green threads.
2521 * At long last, Rust has been overhauled for 'dynamically-sized
2522 types' ([DST]), which integrates 'fat pointers' (object types,
2523 arrays, and `str`) more deeply into the type system, making it
2525 * Rust now has a general [range syntax][range], `i..j`, `i..`, and
2526 `..j` that produce range types and which, when combined with the
2527 `Index` operator and multidispatch, leads to a convenient slice
2529 * The new range syntax revealed an ambiguity in the fixed-length
2530 array syntax, so now fixed length arrays [are written `[T;
2532 * The `Copy` trait is no longer implemented automatically. Unsafe
2533 pointers no longer implement `Sync` and `Send` so types
2534 containing them don't automatically either. `Sync` and `Send`
2535 are now 'unsafe traits' so one can "forcibly" implement them via
2536 `unsafe impl` if a type confirms to the requirements for them
2537 even though the internals do not (e.g. structs containing unsafe
2538 pointers like `Arc`). These changes are intended to prevent some
2539 footguns and are collectively known as [opt-in built-in
2540 traits][oibit] (though `Sync` and `Send` will soon become pure
2541 library types unknown to the compiler).
2542 * Operator traits now take their operands [by value][ops], and
2543 comparison traits can use multidispatch to compare one type
2544 against multiple other types, allowing e.g. `String` to be
2545 compared with `&str`.
2546 * `if let` and `while let` are no longer feature-gated.
2547 * Rust has adopted a more [uniform syntax for escaping unicode
2548 characters][unicode].
2549 * `macro_rules!` [has been declared stable][mac]. Though it is a
2550 flawed system it is sufficiently popular that it must be usable
2551 for 1.0. Effort has gone into [future-proofing][mac-future] it
2552 in ways that will allow other macro systems to be developed in
2553 parallel, and won't otherwise impact the evolution of the
2555 * The prelude has been [pared back significantly][prelude] such
2556 that it is the minimum necessary to support the most pervasive
2557 code patterns, and through [generalized where clauses][where]
2558 many of the prelude extension traits have been consolidated.
2559 * Rust's rudimentary reflection [has been removed][refl], as it
2560 incurred too much code generation for little benefit.
2561 * [Struct variants][structvars] are no longer feature-gated.
2562 * Trait bounds can be [polymorphic over lifetimes][hrtb]. Also
2563 known as 'higher-ranked trait bounds', this crucially allows
2564 unboxed closures to work.
2565 * Macros invocations surrounded by parens or square brackets and
2566 not terminated by a semicolon are [parsed as
2567 expressions][macros], which makes expressions like `vec![1i32,
2568 2, 3].len()` work as expected.
2569 * Trait objects now implement their traits automatically, and
2570 traits that can be coerced to objects now must be [object
2572 * Automatically deriving traits is now done with `#[derive(...)]`
2573 not `#[deriving(...)]` for [consistency with other naming
2574 conventions][derive].
2575 * Importing the containing module or enum at the same time as
2576 items or variants they contain is [now done with `self` instead
2577 of `mod`][self], as in use `foo::{self, bar}`
2578 * Glob imports are no longer feature-gated.
2579 * The `box` operator and `box` patterns have been feature-gated
2580 pending a redesign. For now unique boxes should be allocated
2581 like other containers, with `Box::new`.
2585 * A [series][coll1] of [efforts][coll2] to establish
2586 [conventions][coll3] for collections types has resulted in API
2587 improvements throughout the standard library.
2588 * New [APIs for error handling][err] provide ergonomic interop
2589 between error types, and [new conventions][err-conv] describe
2590 more clearly the recommended error handling strategies in Rust.
2591 * The `fail!` macro has been renamed to [`panic!`][panic] so that
2592 it is easier to discuss failure in the context of error handling
2593 without making clarifications as to whether you are referring to
2594 the 'fail' macro or failure more generally.
2595 * On Linux, `OsRng` prefers the new, more reliable `getrandom`
2596 syscall when available.
2597 * The 'serialize' crate has been renamed 'rustc-serialize' and
2598 moved out of the distribution to Cargo. Although it is widely
2599 used now, it is expected to be superseded in the near future.
2600 * The `Show` formatter, typically implemented with
2601 `#[derive(Show)]` is [now requested with the `{:?}`
2602 specifier][show] and is intended for use by all types, for uses
2603 such as `println!` debugging. The new `String` formatter must be
2604 implemented by hand, uses the `{}` specifier, and is intended
2605 for full-fidelity conversions of things that can logically be
2606 represented as strings.
2610 * [Flexible target specification][flex] allows rustc's code
2611 generation to be configured to support otherwise-unsupported
2613 * Rust comes with rust-gdb and rust-lldb scripts that launch their
2614 respective debuggers with Rust-appropriate pretty-printing.
2615 * The Windows installation of Rust is distributed with the the
2616 MinGW components currently required to link binaries on that
2621 * Nullable enum optimizations have been extended to more types so
2622 that e.g. `Option<Vec<T>>` and `Option<String>` take up no more
2623 space than the inner types themselves.
2624 * Work has begun on supporting AArch64.
2626 [Cargo]: https://crates.io
2627 [unboxed]: http://smallcultfollowing.com/babysteps/blog/2014/11/26/purging-proc/
2628 [enum]: https://github.com/rust-lang/rfcs/blob/master/text/0390-enum-namespacing.md
2629 [flex]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md
2630 [err]: https://github.com/rust-lang/rfcs/blob/master/text/0201-error-chaining.md
2631 [err-conv]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md
2632 [rt]: https://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md
2633 [mac]: https://github.com/rust-lang/rfcs/blob/master/text/0453-macro-reform.md
2634 [mac-future]: https://github.com/rust-lang/rfcs/pull/550
2635 [DST]: http://smallcultfollowing.com/babysteps/blog/2014/01/05/dst-take-5/
2636 [coll1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md
2637 [coll2]: https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
2638 [coll3]: https://github.com/rust-lang/rfcs/blob/master/text/0216-collection-views.md
2639 [ops]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md
2640 [prelude]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
2641 [where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md
2642 [refl]: https://github.com/rust-lang/rfcs/blob/master/text/0379-remove-reflection.md
2643 [panic]: https://github.com/rust-lang/rfcs/blob/master/text/0221-panic.md
2644 [structvars]: https://github.com/rust-lang/rfcs/blob/master/text/0418-struct-variants.md
2645 [hrtb]: https://github.com/rust-lang/rfcs/blob/master/text/0387-higher-ranked-trait-bounds.md
2646 [unicode]: https://github.com/rust-lang/rfcs/blob/master/text/0446-es6-unicode-escapes.md
2647 [oibit]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md
2648 [macros]: https://github.com/rust-lang/rfcs/blob/master/text/0378-expr-macros.md
2649 [range]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md#indexing-and-slicing
2650 [arrays]: https://github.com/rust-lang/rfcs/blob/master/text/0520-new-array-repeat-syntax.md
2651 [show]: https://github.com/rust-lang/rfcs/blob/master/text/0504-show-stabilization.md
2652 [derive]: https://github.com/rust-lang/rfcs/blob/master/text/0534-deriving2derive.md
2653 [self]: https://github.com/rust-lang/rfcs/blob/master/text/0532-self-in-use.md
2654 [fb]: https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md
2655 [objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
2656 [assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
2657 [ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
2658 [trpl]: https://doc.rust-lang.org/book/index.html
2659 [rbe]: http://rustbyexample.com/
2662 Version 0.12.0 (2014-10-09)
2663 =============================
2665 * ~1900 changes, numerous bugfixes
2669 * The introductory documentation (now called The Rust Guide) has
2670 been completely rewritten, as have a number of supplementary
2672 * Rust's package manager, Cargo, continues to improve and is
2673 sometimes considered to be quite awesome.
2674 * Many API's in `std` have been reviewed and updated for
2675 consistency with the in-development Rust coding
2676 guidelines. The standard library documentation tracks
2677 stabilization progress.
2678 * Minor libraries have been moved out-of-tree to the rust-lang org
2679 on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can
2680 be installed with Cargo.
2681 * Lifetime elision allows lifetime annotations to be left off of
2682 function declarations in many common scenarios.
2683 * Rust now works on 64-bit Windows.
2686 * Indexing can be overloaded with the `Index` and `IndexMut`
2688 * The `if let` construct takes a branch only if the `let` pattern
2689 matches, currently behind the 'if_let' feature gate.
2690 * 'where clauses', a more flexible syntax for specifying trait
2691 bounds that is more aesthetic, have been added for traits and
2692 free functions. Where clauses will in the future make it
2693 possible to constrain associated types, which would be
2694 impossible with the existing syntax.
2695 * A new slicing syntax (e.g. `[0..4]`) has been introduced behind
2696 the 'slicing_syntax' feature gate, and can be overloaded with
2697 the `Slice` or `SliceMut` traits.
2698 * The syntax for matching of sub-slices has been changed to use a
2699 postfix `..` instead of prefix (.e.g. `[a, b, c..]`), for
2700 consistency with other uses of `..` and to future-proof
2701 potential additional uses of the syntax.
2702 * The syntax for matching inclusive ranges in patterns has changed
2703 from `0..3` to `0...4` to be consistent with the exclusive range
2705 * Matching of sub-slices in non-tail positions (e.g. `[a.., b,
2706 c]`) has been put behind the 'advanced_slice_patterns' feature
2707 gate and may be removed in the future.
2708 * Components of tuples and tuple structs can be extracted using
2709 the `value.0` syntax, currently behind the `tuple_indexing`
2711 * The `#[crate_id]` attribute is no longer supported; versioning
2712 is handled by the package manager.
2713 * Renaming crate imports are now written `extern crate foo as bar`
2714 instead of `extern crate bar = foo`.
2715 * Renaming use statements are now written `use foo as bar` instead
2717 * `let` and `match` bindings and argument names in macros are now
2719 * The new, more efficient, closure types ('unboxed closures') have
2720 been added under a feature gate, 'unboxed_closures'. These will
2721 soon replace the existing closure types, once higher-ranked
2722 trait lifetimes are added to the language.
2723 * `move` has been added as a keyword, for indicating closures
2724 that capture by value.
2725 * Mutation and assignment is no longer allowed in pattern guards.
2726 * Generic structs and enums can now have trait bounds.
2727 * The `Share` trait is now called `Sync` to free up the term
2728 'shared' to refer to 'shared reference' (the default reference
2730 * Dynamically-sized types have been mostly implemented,
2731 unifying the behavior of fat-pointer types with the rest of the
2733 * As part of dynamically-sized types, the `Sized` trait has been
2734 introduced, which qualifying types implement by default, and
2735 which type parameters expect by default. To specify that a type
2736 parameter does not need to be sized, write `<Sized? T>`. Most
2737 types are `Sized`, notable exceptions being unsized arrays
2738 (`[T]`) and trait types.
2739 * Closures can return `!`, as in `|| -> !` or `proc() -> !`.
2740 * Lifetime bounds can now be applied to type parameters and object
2742 * The old, reference counted GC type, `Gc<T>` which was once
2743 denoted by the `@` sigil, has finally been removed. GC will be
2744 revisited in the future.
2747 * Library documentation has been improved for a number of modules.
2748 * Bit-vectors, collections::bitv has been modernized.
2749 * The url crate is deprecated in favor of
2750 http://github.com/servo/rust-url, which can be installed with
2752 * Most I/O stream types can be cloned and subsequently closed from
2754 * A `std::time::Duration` type has been added for use in I/O
2755 methods that rely on timers, as well as in the 'time' crate's
2756 `Timespec` arithmetic.
2757 * The runtime I/O abstraction layer that enabled the green thread
2758 scheduler to do non-thread-blocking I/O has been removed, along
2759 with the libuv-based implementation employed by the green thread
2760 scheduler. This will greatly simplify the future I/O work.
2761 * `collections::btree` has been rewritten to have a more
2762 idiomatic and efficient design.
2765 * rustdoc output now indicates the stability levels of API's.
2766 * The `--crate-name` flag can specify the name of the crate
2767 being compiled, like `#[crate_name]`.
2768 * The `-C metadata` specifies additional metadata to hash into
2769 symbol names, and `-C extra-filename` specifies additional
2770 information to put into the output filename, for use by the
2771 package manager for versioning.
2772 * debug info generation has continued to improve and should be
2773 more reliable under both gdb and lldb.
2774 * rustc has experimental support for compiling in parallel
2775 using the `-C codegen-units` flag.
2776 * rustc no longer encodes rpath information into binaries by
2780 * Stack usage has been optimized with LLVM lifetime annotations.
2781 * Official Rust binaries on Linux are more compatible with older
2782 kernels and distributions, built on CentOS 5.10.
2785 Version 0.11.0 (2014-07-02)
2786 ==========================
2788 * ~1700 changes, numerous bugfixes
2791 * ~[T] has been removed from the language. This type is superseded by
2793 * ~str has been removed from the language. This type is superseded by
2795 * ~T has been removed from the language. This type is superseded by the
2797 * @T has been removed from the language. This type is superseded by the
2798 standard library's std::gc::Gc<T> type.
2799 * Struct fields are now all private by default.
2800 * Vector indices and shift amounts are both required to be a `uint`
2801 instead of any integral type.
2802 * Byte character, byte string, and raw byte string literals are now all
2803 supported by prefixing the normal literal with a `b`.
2804 * Multiple ABIs are no longer allowed in an ABI string
2805 * The syntax for lifetimes on closures/procedures has been tweaked
2806 slightly: `<'a>|A, B|: 'b + K -> T`
2807 * Floating point modulus has been removed from the language; however it
2808 is still provided by a library implementation.
2809 * Private enum variants are now disallowed.
2810 * The `priv` keyword has been removed from the language.
2811 * A closure can no longer be invoked through a &-pointer.
2812 * The `use foo, bar, baz;` syntax has been removed from the language.
2813 * The transmute intrinsic no longer works on type parameters.
2814 * Statics now allow blocks/items in their definition.
2815 * Trait bounds are separated from objects with + instead of : now.
2816 * Objects can no longer be read while they are mutably borrowed.
2817 * The address of a static is now marked as insignificant unless the
2818 #[inline(never)] attribute is placed it.
2819 * The #[unsafe_destructor] attribute is now behind a feature gate.
2820 * Struct literals are no longer allowed in ambiguous positions such as
2821 if, while, match, and for..in.
2822 * Declaration of lang items and intrinsics are now feature-gated by
2824 * Integral literals no longer default to `int`, and floating point
2825 literals no longer default to `f64`. Literals must be suffixed with an
2826 appropriate type if inference cannot determine the type of the
2828 * The Box<T> type is no longer implicitly borrowed to &mut T.
2829 * Procedures are now required to not capture borrowed references.
2832 * The standard library is now a "facade" over a number of underlying
2833 libraries. This means that development on the standard library should
2834 be speeder due to smaller crates, as well as a clearer line between
2836 * A new library, libcore, lives under the standard library's facade
2837 which is Rust's "0-assumption" library, suitable for embedded and
2838 kernel development for example.
2839 * A regex crate has been added to the standard distribution. This crate
2840 includes statically compiled regular expressions.
2841 * The unwrap/unwrap_err methods on Result require a Show bound for
2842 better error messages.
2843 * The return types of the std::comm primitives have been centralized
2844 around the Result type.
2845 * A number of I/O primitives have gained the ability to time out their
2847 * A number of I/O primitives have gained the ability to close their
2848 reading/writing halves to cancel pending operations.
2849 * Reverse iterator methods have been removed in favor of `rev()` on
2850 their forward-iteration counterparts.
2851 * A bitflags! macro has been added to enable easy interop with C and
2852 management of bit flags.
2853 * A debug_assert! macro is now provided which is disabled when
2854 `--cfg ndebug` is passed to the compiler.
2855 * A graphviz crate has been added for creating .dot files.
2856 * The std::cast module has been migrated into std::mem.
2857 * The std::local_data api has been migrated from freestanding functions
2858 to being based on methods.
2859 * The Pod trait has been renamed to Copy.
2860 * jemalloc has been added as the default allocator for types.
2861 * The API for allocating memory has been changed to use proper alignment
2862 and sized deallocation
2863 * Connecting a TcpStream or binding a TcpListener is now based on a
2864 string address and a u16 port. This allows connecting to a hostname as
2866 * The Reader trait now contains a core method, read_at_least(), which
2867 correctly handles many repeated 0-length reads.
2868 * The process-spawning API is now centered around a builder-style
2870 * The :? printing qualifier has been moved from the standard library to
2871 an external libdebug crate.
2872 * Eq/Ord have been renamed to PartialEq/PartialOrd. TotalEq/TotalOrd
2873 have been renamed to Eq/Ord.
2874 * The select/plural methods have been removed from format!. The escapes
2875 for { and } have also changed from \{ and \} to {{ and }},
2877 * The TaskBuilder API has been re-worked to be a true builder, and
2878 extension traits for spawning native/green tasks have been added.
2881 * All breaking changes to the language or libraries now have their
2882 commit message annotated with `[breaking-change]` to allow for easy
2883 discovery of breaking changes.
2884 * The compiler will now try to suggest how to annotate lifetimes if a
2885 lifetime-related error occurs.
2886 * Debug info continues to be improved greatly with general bug fixes and
2887 better support for situations like link time optimization (LTO).
2888 * Usage of syntax extensions when cross-compiling has been fixed.
2889 * Functionality equivalent to GCC & Clang's -ffunction-sections,
2890 -fdata-sections and --gc-sections has been enabled by default
2891 * The compiler is now stricter about where it will load module files
2892 from when a module is declared via `mod foo;`.
2893 * The #[phase(syntax)] attribute has been renamed to #[phase(plugin)].
2894 Syntax extensions are now discovered via a "plugin registrar" type
2895 which will be extended in the future to other various plugins.
2896 * Lints have been restructured to allow for dynamically loadable lints.
2897 * A number of rustdoc improvements:
2898 * The HTML output has been visually redesigned.
2899 * Markdown is now powered by hoedown instead of sundown.
2900 * Searching heuristics have been greatly improved.
2901 * The search index has been reduced in size by a great amount.
2902 * Cross-crate documentation via `pub use` has been greatly improved.
2903 * Primitive types are now hyperlinked and documented.
2904 * Documentation has been moved from static.rust-lang.org/doc to
2906 * A new sandbox, play.rust-lang.org, is available for running and
2907 sharing rust code examples on-line.
2908 * Unused attributes are now more robustly warned about.
2909 * The dead_code lint now warns about unused struct fields.
2910 * Cross-compiling to iOS is now supported.
2911 * Cross-compiling to mipsel is now supported.
2912 * Stability attributes are now inherited by default and no longer apply
2913 to intra-crate usage, only inter-crate usage.
2914 * Error message related to non-exhaustive match expressions have been
2918 Version 0.10 (2014-04-03)
2919 =========================
2921 * ~1500 changes, numerous bugfixes
2924 * A new RFC process is now in place for modifying the language.
2925 * Patterns with `@`-pointers have been removed from the language.
2926 * Patterns with unique vectors (`~[T]`) have been removed from the
2928 * Patterns with unique strings (`~str`) have been removed from the
2930 * `@str` has been removed from the language.
2931 * `@[T]` has been removed from the language.
2932 * `@self` has been removed from the language.
2933 * `@Trait` has been removed from the language.
2934 * Headers on `~` allocations which contain `@` boxes inside the type for
2935 reference counting have been removed.
2936 * The semantics around the lifetimes of temporary expressions have changed,
2937 see #3511 and #11585 for more information.
2938 * Cross-crate syntax extensions are now possible, but feature gated. See
2939 #11151 for more information. This includes both `macro_rules!` macros as
2940 well as syntax extensions such as `format!`.
2941 * New lint modes have been added, and older ones have been turned on to be
2943 * Unnecessary parentheses
2946 * Uppercase variables
2947 * Publicly visible private types
2948 * `#[deriving]` with raw pointers
2949 * Unsafe functions can no longer be coerced to closures.
2950 * Various obscure macros such as `log_syntax!` are now behind feature gates.
2951 * The `#[simd]` attribute is now behind a feature gate.
2952 * Visibility is no longer allowed on `extern crate` statements, and
2953 unnecessary visibility (`priv`) is no longer allowed on `use` statements.
2954 * Trailing commas are now allowed in argument lists and tuple patterns.
2955 * The `do` keyword has been removed, it is now a reserved keyword.
2956 * Default type parameters have been implemented, but are feature gated.
2957 * Borrowed variables through captures in closures are now considered soundly.
2958 * `extern mod` is now `extern crate`
2959 * The `Freeze` trait has been removed.
2960 * The `Share` trait has been added for types that can be shared among
2962 * Labels in macros are now hygienic.
2963 * Expression/statement macro invocations can be delimited with `{}` now.
2964 * Treatment of types allowed in `static mut` locations has been tweaked.
2965 * The `*` and `.` operators are now overloadable through the `Deref` and
2967 * `~Trait` and `proc` no longer have `Send` bounds by default.
2968 * Partial type hints are now supported with the `_` type marker.
2969 * An `Unsafe` type was introduced for interior mutability. It is now
2970 considered undefined to transmute from `&T` to `&mut T` without using the
2972 * The #[linkage] attribute was implemented for extern statics/functions.
2973 * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
2974 * `Pod` was renamed to `Copy`.
2977 * The `libextra` library has been removed. It has now been decomposed into
2978 component libraries with smaller and more focused nuggets of
2979 functionality. The full list of libraries can be found on the
2980 documentation index page.
2981 * std: `std::condition` has been removed. All I/O errors are now propagated
2982 through the `Result` type. In order to assist with error handling, a
2983 `try!` macro for unwrapping errors with an early return and a lint for
2984 unused results has been added. See #12039 for more information.
2985 * std: The `vec` module has been renamed to `slice`.
2986 * std: A new vector type, `Vec<T>`, has been added in preparation for DST.
2987 This will become the only growable vector in the future.
2988 * std: `std::io` now has more public-reexports. Types such as `BufferedReader`
2989 are now found at `std::io::BufferedReader` instead of
2990 `std::io::buffered::BufferedReader`.
2991 * std: `print` and `println` are no longer in the prelude, the `print!` and
2992 `println!` macros are intended to be used instead.
2993 * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer
2994 attempts to statically prevent cycles.
2995 * std: The standard distribution is adopting the policy of pushing failure
2996 to the user rather than failing in libraries. Many functions (such as
2997 `slice::last()`) now return `Option<T>` instead of `T` + failing.
2998 * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new
2999 deriving mode: `#[deriving(Show)]`.
3000 * std: `ToStr` is now implemented for all types implementing `Show`.
3001 * std: The formatting trait methods now take `&self` instead of `&T`
3002 * std: The `invert()` method on iterators has been renamed to `rev()`
3003 * std: `std::num` has seen a reduction in the genericity of its traits,
3004 consolidating functionality into a few core traits.
3005 * std: Backtraces are now printed on task failure if the environment
3006 variable `RUST_BACKTRACE` is present.
3007 * std: Naming conventions for iterators have been standardized. More details
3008 can be found on the wiki's style guide.
3009 * std: `eof()` has been removed from the `Reader` trait. Specific types may
3010 still implement the function.
3011 * std: Networking types are now cloneable to allow simultaneous reads/writes.
3012 * std: `assert_approx_eq!` has been removed
3013 * std: The `e` and `E` formatting specifiers for floats have been added to
3014 print them in exponential notation.
3015 * std: The `Times` trait has been removed
3016 * std: Indications of variance and opting out of builtin bounds is done
3017 through marker types in `std::kinds::marker` now
3018 * std: `hash` has been rewritten, `IterBytes` has been removed, and
3019 `#[deriving(Hash)]` is now possible.
3020 * std: `SharedChan` has been removed, `Sender` is now cloneable.
3021 * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`.
3022 * std: `Chan::new` is now `channel()`.
3023 * std: A new synchronous channel type has been implemented.
3024 * std: A `select!` macro is now provided for selecting over `Receiver`s.
3025 * std: `hashmap` and `trie` have been moved to `libcollections`
3026 * std: `run` has been rolled into `io::process`
3027 * std: `assert_eq!` now uses `{}` instead of `{:?}`
3028 * std: The equality and comparison traits have seen some reorganization.
3029 * std: `rand` has moved to `librand`.
3030 * std: `to_{lower,upper}case` has been implemented for `char`.
3031 * std: Logging has been moved to `liblog`.
3032 * collections: `HashMap` has been rewritten for higher performance and less
3034 * native: The default runtime is now `libnative`. If `libgreen` is desired,
3035 it can be booted manually. The runtime guide has more information and
3037 * native: All I/O functionality except signals has been implemented.
3038 * green: Task spawning with `libgreen` has been optimized with stack caching
3039 and various trimming of code.
3040 * green: Tasks spawned by `libgreen` now have an unmapped guard page.
3041 * sync: The `extra::sync` module has been updated to modern rust (and moved
3042 to the `sync` library), tweaking and improving various interfaces while
3043 dropping redundant functionality.
3044 * sync: A new `Barrier` type has been added to the `sync` library.
3045 * sync: An efficient mutex for native and green tasks has been implemented.
3046 * serialize: The `base64` module has seen some improvement. It treats
3047 newlines better, has non-string error values, and has seen general
3049 * fourcc: A `fourcc!` macro was introduced
3050 * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a
3051 hexadecimal literal.
3054 * `rustpkg` has been deprecated and removed from the main repository. Its
3055 replacement, `cargo`, is under development.
3056 * Nightly builds of rust are now available
3057 * The memory usage of rustc has been improved many times throughout this
3059 * The build process supports disabling rpath support for the rustc binary
3061 * Code generation has improved in some cases, giving more information to the
3062 LLVM optimization passes to enable more extensive optimizations.
3063 * Debuginfo compatibility with lldb on OSX has been restored.
3064 * The master branch is now gated on an android bot, making building for
3065 android much more reliable.
3066 * Output flags have been centralized into one `--emit` flag.
3067 * Crate type flags have been centralized into one `--crate-type` flag.
3068 * Codegen flags have been consolidated behind a `-C` flag.
3069 * Linking against outdated crates now has improved error messages.
3070 * Error messages with lifetimes will often suggest how to annotate the
3071 function to fix the error.
3072 * Many more types are documented in the standard library, and new guides
3074 * Many `rustdoc` improvements:
3075 * code blocks are syntax highlighted.
3076 * render standalone markdown files.
3077 * the --test flag tests all code blocks by default.
3078 * exported macros are displayed.
3079 * reexported types have their documentation inlined at the location of the
3081 * search works across crates that have been rendered to the same output
3085 Version 0.9 (2014-01-09)
3086 ==========================
3088 * ~1800 changes, numerous bugfixes
3091 * The `float` type has been removed. Use `f32` or `f64` instead.
3092 * A new facility for enabling experimental features (feature gating) has
3093 been added, using the crate-level `#[feature(foo)]` attribute.
3094 * Managed boxes (@) are now behind a feature gate
3095 (`#[feature(managed_boxes)]`) in preparation for future removal. Use the
3096 standard library's `Gc` or `Rc` types instead.
3097 * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
3098 * Jumping back to the top of a loop is now done with `continue` instead of
3100 * Strings can no longer be mutated through index assignment.
3101 * Raw strings can be created via the basic `r"foo"` syntax or with matched
3102 hash delimiters, as in `r###"foo"###`.
3103 * `~fn` is now written `proc (args) -> retval { ... }` and may only be
3105 * The `&fn` type is now written `|args| -> ret` to match the literal form.
3106 * `@fn`s have been removed.
3107 * `do` only works with procs in order to make it obvious what the cost
3109 * Single-element tuple-like structs can no longer be dereferenced to
3110 obtain the inner value. A more comprehensive solution for overloading
3111 the dereference operator will be provided in the future.
3112 * The `#[link(...)]` attribute has been replaced with
3113 `#[crate_id = "name#vers"]`.
3114 * Empty `impl`s must be terminated with empty braces and may not be
3115 terminated with a semicolon.
3116 * Keywords are no longer allowed as lifetime names; the `self` lifetime
3117 no longer has any special meaning.
3118 * The old `fmt!` string formatting macro has been removed.
3119 * `printf!` and `printfln!` (old-style formatting) removed in favor of
3120 `print!` and `println!`.
3121 * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
3122 * The `extern mod foo (name = "bar")` syntax has been removed. Use
3123 `extern mod foo = "bar"` instead.
3124 * New reserved keywords: `alignof`, `offsetof`, `sizeof`.
3125 * Macros can have attributes.
3126 * Macros can expand to items with attributes.
3127 * Macros can expand to multiple items.
3128 * The `asm!` macro is feature-gated (`#[feature(asm)]`).
3129 * Comments may be nested.
3130 * Values automatically coerce to trait objects they implement, without
3132 * Enum discriminants are no longer an entire word but as small as needed to
3133 contain all the variants. The `repr` attribute can be used to override
3134 the discriminant size, as in `#[repr(int)]` for integer-sized, and
3135 `#[repr(C)]` to match C enums.
3136 * Non-string literals are not allowed in attributes (they never worked).
3137 * The FFI now supports variadic functions.
3138 * Octal numeric literals, as in `0o7777`.
3139 * The `concat!` syntax extension performs compile-time string concatenation.
3140 * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
3141 removed as Rust no longer uses segmented stacks.
3142 * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
3143 * Ignoring all fields of an enum variant or tuple-struct is done with `..`,
3144 not `*`; ignoring remaining fields of a struct is also done with `..`,
3145 not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
3146 * `rustc` supports the "win64" calling convention via `extern "win64"`.
3147 * `rustc` supports the "system" calling convention, which defaults to the
3148 preferred convention for the target platform, "stdcall" on 32-bit Windows,
3150 * The `type_overflow` lint (default: warn) checks literals for overflow.
3151 * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
3152 * The `attribute_usage` lint (default: warn) warns about unknown
3154 * The `unknown_features` lint (default: warn) warns about unknown
3156 * The `dead_code` lint (default: warn) checks for dead code.
3157 * Rust libraries can be linked statically to one another
3158 * `#[link_args]` is behind the `link_args` feature gate.
3159 * Native libraries are now linked with `#[link(name = "foo")]`
3160 * Native libraries can be statically linked to a rust crate
3161 (`#[link(name = "foo", kind = "static")]`).
3162 * Native OS X frameworks are now officially supported
3163 (`#[link(name = "foo", kind = "framework")]`).
3164 * The `#[thread_local]` attribute creates thread-local (not task-local)
3165 variables. Currently behind the `thread_local` feature gate.
3166 * The `return` keyword may be used in closures.
3167 * Types that can be copied via a memcpy implement the `Pod` kind.
3168 * The `cfg` attribute can now be used on struct fields and enum variants.
3171 * std: The `option` and `result` API's have been overhauled to make them
3172 simpler, more consistent, and more composable.
3173 * std: The entire `std::io` module has been replaced with one that is
3174 more comprehensive and that properly interfaces with the underlying
3175 scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
3177 * std: `io::util` contains a number of useful implementations of
3178 `Reader` and `Writer`, including `NullReader`, `NullWriter`,
3179 `ZeroReader`, `TeeReader`.
3180 * std: The reference counted pointer type `extra::rc` moved into std.
3181 * std: The `Gc` type in the `gc` module will replace `@` (it is currently
3182 just a wrapper around it).
3183 * std: The `Either` type has been removed.
3184 * std: `fmt::Default` can be implemented for any type to provide default
3185 formatting to the `format!` macro, as in `format!("{}", myfoo)`.
3186 * std: The `rand` API continues to be tweaked.
3187 * std: The `rust_begin_unwind` function, useful for inserting breakpoints
3188 on failure in gdb, is now named `rust_fail`.
3189 * std: The `each_key` and `each_value` methods on `HashMap` have been
3190 replaced by the `keys` and `values` iterators.
3191 * std: Functions dealing with type size and alignment have moved from the
3192 `sys` module to the `mem` module.
3193 * std: The `path` module was written and API changed.
3194 * std: `str::from_utf8` has been changed to cast instead of allocate.
3195 * std: `starts_with` and `ends_with` methods added to vectors via the
3196 `ImmutableEqVector` trait, which is in the prelude.
3197 * std: Vectors can be indexed with the `get_opt` method, which returns `None`
3198 if the index is out of bounds.
3199 * std: Task failure no longer propagates between tasks, as the model was
3200 complex, expensive, and incompatible with thread-based tasks.
3201 * std: The `Any` type can be used for dynamic typing.
3202 * std: `~Any` can be passed to the `fail!` macro and retrieved via
3204 * std: Methods that produce iterators generally do not have an `_iter`
3206 * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
3207 roots (mutable fields, etc.). Use instead of e.g. `@mut`.
3208 * std: `util::ignore` renamed to `prelude::drop`.
3209 * std: Slices have `sort` and `sort_by` methods via the `MutableVector`
3211 * std: `vec::raw` has seen a lot of cleanup and API changes.
3212 * std: The standard library no longer includes any C++ code, and very
3213 minimal C, eliminating the dependency on libstdc++.
3214 * std: Runtime scheduling and I/O functionality has been factored out into
3215 extensible interfaces and is now implemented by two different crates:
3216 libnative, for native threading and I/O; and libgreen, for green threading
3217 and I/O. This paves the way for using the standard library in more limited
3218 embedded environments.
3219 * std: The `comm` module has been rewritten to be much faster, have a
3220 simpler, more consistent API, and to work for both native and green
3222 * std: All libuv dependencies have been moved into the rustuv crate.
3223 * native: New implementations of runtime scheduling on top of OS threads.
3224 * native: New native implementations of TCP, UDP, file I/O, process spawning,
3226 * green: The green thread scheduler and message passing types are almost
3228 * extra: The `flatpipes` module had bitrotted and was removed.
3229 * extra: All crypto functions have been removed and Rust now has a policy of
3230 not reimplementing crypto in the standard library. In the future crypto
3231 will be provided by external crates with bindings to established libraries.
3232 * extra: `c_vec` has been modernized.
3233 * extra: The `sort` module has been removed. Use the `sort` method on
3237 * The `rust` and `rusti` commands have been removed, due to lack of
3239 * `rustdoc` was completely rewritten.
3240 * `rustdoc` can test code examples in documentation.
3241 * `rustpkg` can test packages with the argument, 'test'.
3242 * `rustpkg` supports arbitrary dependencies, including C libraries.
3243 * `rustc`'s support for generating debug info is improved again.
3244 * `rustc` has better error reporting for unbalanced delimiters.
3245 * `rustc`'s JIT support was removed due to bitrot.
3246 * Executables and static libraries can be built with LTO (-Z lto)
3247 * `rustc` adds a `--dep-info` flag for communicating dependencies to
3251 Version 0.8 (2013-09-26)
3252 ============================
3254 * ~2200 changes, numerous bugfixes
3257 * The `for` loop syntax has changed to work with the `Iterator` trait.
3258 * At long last, unwinding works on Windows.
3259 * Default methods are ready for use.
3260 * Many trait inheritance bugs fixed.
3261 * Owned and borrowed trait objects work more reliably.
3262 * `copy` is no longer a keyword. It has been replaced by the `Clone` trait.
3263 * rustc can omit emission of code for the `debug!` macro if it is passed
3265 * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look
3266 for foo.rs, then foo/mod.rs, and will generate an error when both are
3268 * Strings no longer contain trailing nulls. The new `std::c_str` module
3269 provides new mechanisms for converting to C strings.
3270 * The type of foreign functions is now `extern "C" fn` instead of `*u8'.
3271 * The FFI has been overhauled such that foreign functions are called directly,
3272 instead of through a stack-switching wrapper.
3273 * Calling a foreign function must be done through a Rust function with the
3274 `#[fixed_stack_segment]` attribute.
3275 * The `externfn!` macro can be used to declare both a foreign function and
3276 a `#[fixed_stack_segment]` wrapper at once.
3277 * `pub` and `priv` modifiers on `extern` blocks are no longer parsed.
3278 * `unsafe` is no longer allowed on extern fns - they are all unsafe.
3279 * `priv` is disallowed everywhere except for struct fields and enum variants.
3280 * `&T` (besides `&'static T`) is no longer allowed in `@T`.
3281 * `ref` bindings in irrefutable patterns work correctly now.
3282 * `char` is now prevented from containing invalid code points.
3283 * Casting to `bool` is no longer allowed.
3284 * `\0` is now accepted as an escape in chars and strings.
3285 * `yield` is a reserved keyword.
3286 * `typeof` is a reserved keyword.
3287 * Crates may be imported by URL with `extern mod foo = "url";`.
3288 * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }`
3289 * Static vectors can be initialized with repeating elements,
3290 e.g. `static foo: [u8, .. 100]: [0, .. 100];`.
3291 * Static structs can be initialized with functional record update,
3292 e.g. `static foo: Foo = Foo { a: 5, .. bar };`.
3293 * `cfg!` can be used to conditionally execute code based on the crate
3294 configuration, similarly to `#[cfg(...)]`.
3295 * The `unnecessary_qualification` lint detects unneeded module
3296 prefixes (default: allow).
3297 * Arithmetic operations have been implemented on the SIMD types in
3298 `std::unstable::simd`.
3299 * Exchange allocation headers were removed, reducing memory usage.
3300 * `format!` implements a completely new, extensible, and higher-performance
3301 string formatting system. It will replace `fmt!`.
3302 * `print!` and `println!` write formatted strings (using the `format!`
3303 extension) to stdout.
3304 * `write!` and `writeln!` write formatted strings (using the `format!`
3305 extension) to the new Writers in `std::rt::io`.
3306 * The library section in which a function or static is placed may
3307 be specified with `#[link_section = "..."]`.
3308 * The `proto!` syntax extension for defining bounded message protocols
3310 * `macro_rules!` is hygienic for `let` declarations.
3311 * The `#[export_name]` attribute specifies the name of a symbol.
3312 * `unreachable!` can be used to indicate unreachable code, and fails
3316 * std: Transitioned to the new runtime, written in Rust.
3317 * std: Added an experimental I/O library, `rt::io`, based on the new
3319 * std: A new generic `range` function was added to the prelude, replacing
3320 `uint::range` and friends.
3321 * std: `range_rev` no longer exists. Since range is an iterator it can be
3322 reversed with `range(lo, hi).invert()`.
3323 * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default`
3324 renamed to `unwrap_or`.
3325 * std: The `iterator` module was renamed to `iter`.
3326 * std: Integral types now support the `checked_add`, `checked_sub`, and
3327 `checked_mul` operations for detecting overflow.
3328 * std: Many methods in `str`, `vec`, `option, `result` were renamed for
3330 * std: Methods are standardizing on conventions for casting methods:
3331 `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary
3333 * std: The `CString` type in `c_str` provides new ways to convert to and
3335 * std: `DoubleEndedIterator` can yield elements in two directions.
3336 * std: The `mut_split` method on vectors partitions an `&mut [T]` into
3338 * std: `str::from_bytes` renamed to `str::from_utf8`.
3339 * std: `pop_opt` and `shift_opt` methods added to vectors.
3340 * std: The task-local data interface no longer uses @, and keys are
3341 no longer function pointers.
3342 * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`.
3343 * std: Added `SharedPort` to `comm`.
3344 * std: `Eq` has a default method for `ne`; only `eq` is required
3346 * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt`
3347 is required in implementations.
3348 * std: `is_utf8` performance is improved, impacting many string functions.
3349 * std: `os::MemoryMap` provides cross-platform mmap.
3350 * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that
3351 are not 'in-bounds' are considered undefined.
3352 * std: Many freestanding functions in `vec` removed in favor of methods.
3353 * std: Many freestanding functions on scalar types removed in favor of
3355 * std: Many options to task builders were removed since they don't make
3356 sense in the new scheduler design.
3357 * std: More containers implement `FromIterator` so can be created by the
3359 * std: More complete atomic types in `unstable::atomics`.
3360 * std: `comm::PortSet` removed.
3361 * std: Mutating methods in the `Set` and `Map` traits have been moved into
3362 the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
3363 `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
3364 default implementations.
3365 * std: Various `from_str` functions were removed in favor of a generic
3366 `from_str` which is available in the prelude.
3367 * std: `util::unreachable` removed in favor of the `unreachable!` macro.
3368 * extra: `dlist`, the doubly-linked list was modernized.
3369 * extra: Added a `hex` module with `ToHex` and `FromHex` traits.
3370 * extra: Added `glob` module, replacing `std::os::glob`.
3371 * extra: `rope` was removed.
3372 * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`.
3373 * extra: `net`, and `timer` were removed. The experimental replacements
3374 are `std::rt::io::net` and `std::rt::io::timer`.
3375 * extra: Iterators implemented for `SmallIntMap`.
3376 * extra: Iterators implemented for `Bitv` and `BitvSet`.
3377 * extra: `SmallIntSet` removed. Use `BitvSet`.
3378 * extra: Performance of JSON parsing greatly improved.
3379 * extra: `semver` updated to SemVer 2.0.0.
3380 * extra: `term` handles more terminals correctly.
3381 * extra: `dbg` module removed.
3382 * extra: `par` module removed.
3383 * extra: `future` was cleaned up, with some method renames.
3384 * extra: Most free functions in `getopts` were converted to methods.
3387 * rustc's debug info generation (`-Z debug-info`) is greatly improved.
3388 * rustc accepts `--target-cpu` to compile to a specific CPU architecture,
3389 similarly to gcc's `--march` flag.
3390 * rustc's performance compiling small crates is much better.
3391 * rustpkg has received many improvements.
3392 * rustpkg supports git tags as package IDs.
3393 * rustpkg builds into target-specific directories so it can be used for
3395 * The number of concurrent test tasks is controlled by the environment
3396 variable RUST_TEST_TASKS.
3397 * The test harness can now report metrics for benchmarks.
3398 * All tools have man pages.
3399 * Programs compiled with `--test` now support the `-h` and `--help` flags.
3400 * The runtime uses jemalloc for allocations.
3401 * Segmented stacks are temporarily disabled as part of the transition to
3402 the new runtime. Stack overflows are possible!
3403 * A new documentation backend, rustdoc_ng, is available for use. It is
3404 still invoked through the normal `rustdoc` command.
3407 Version 0.7 (2013-07-03)
3408 =======================
3410 * ~2000 changes, numerous bugfixes
3413 * `impl`s no longer accept a visibility qualifier. Put them on methods
3415 * The borrow checker has been rewritten with flow-sensitivity, fixing
3416 many bugs and inconveniences.
3417 * The `self` parameter no longer implicitly means `&'self self`,
3418 and can be explicitly marked with a lifetime.
3419 * Overloadable compound operators (`+=`, etc.) have been temporarily
3420 removed due to bugs.
3421 * The `for` loop protocol now requires `for`-iterators to return `bool`
3422 so they compose better.
3423 * The `Durable` trait is replaced with the `'static` bounds.
3424 * Trait default methods work more often.
3425 * Structs with the `#[packed]` attribute have byte alignment and
3426 no padding between fields.
3427 * Type parameters bound by `Copy` must now be copied explicitly with
3429 * It is now illegal to move out of a dereferenced unsafe pointer.
3430 * `Option<~T>` is now represented as a nullable pointer.
3431 * `@mut` does dynamic borrow checks correctly.
3432 * The `main` function is only detected at the topmost level of the crate.
3433 The `#[main]` attribute is still valid anywhere.
3434 * Struct fields may no longer be mutable. Use inherited mutability.
3435 * The `#[no_send]` attribute makes a type that would otherwise be
3437 * The `#[no_freeze]` attribute makes a type that would otherwise be
3439 * Unbounded recursion will abort the process after reaching the limit
3440 specified by the `RUST_MAX_STACK` environment variable (default: 1GB).
3441 * The `vecs_implicitly_copyable` lint mode has been removed. Vectors
3442 are never implicitly copyable.
3443 * `#[static_assert]` makes compile-time assertions about static bools.
3444 * At long last, 'argument modes' no longer exist.
3445 * The rarely used `use mod` statement no longer exists.
3448 * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
3450 * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
3451 `Rand`, `Zero` and `ToStr` can all be automatically derived with
3453 * The `bytes!` macro returns a vector of bytes for string, u8, char,
3454 and unsuffixed integer literals.
3457 * The `core` crate was renamed to `std`.
3458 * The `std` crate was renamed to `extra`.
3459 * More and improved documentation.
3460 * std: `iterator` module for external iterator objects.
3461 * Many old-style (internal, higher-order function) iterators replaced by
3462 implementations of `Iterator`.
3463 * std: Many old internal vector and string iterators,
3464 incl. `any`, `all`. removed.
3465 * std: The `finalize` method of `Drop` renamed to `drop`.
3466 * std: The `drop` method now takes `&mut self` instead of `&self`.
3467 * std: The prelude no longer reexports any modules, only types and traits.
3468 * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
3469 `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
3470 * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,
3471 `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`.
3472 * std: Tuple traits and accessors defined for up to 12-tuples, e.g.
3473 `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
3474 * std: Many types implement `Clone`.
3475 * std: `path` type renamed to `Path`.
3476 * std: `mut` module and `Mut` type removed.
3477 * std: Many standalone functions removed in favor of methods and iterators
3478 in `vec`, `str`. In the future methods will also work as functions.
3479 * std: `reinterpret_cast` removed. Use `transmute`.
3480 * std: ascii string handling in `std::ascii`.
3481 * std: `Rand` is implemented for ~/@.
3482 * std: `run` module for spawning processes overhauled.
3483 * std: Various atomic types added to `unstable::atomic`.
3484 * std: Various types implement `Zero`.
3485 * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`.
3486 * std: Borrowed pointer functions moved from `ptr` to `borrow`.
3487 * std: Added `os::mkdir_recursive`.
3488 * std: Added `os::glob` function performs filesystems globs.
3489 * std: `FuzzyEq` renamed to `ApproxEq`.
3490 * std: `Map` now defines `pop` and `swap` methods.
3491 * std: `Cell` constructors converted to static methods.
3492 * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
3493 * extra: `flate` module moved from `std` to `extra`.
3494 * extra: `fileinput` module for iterating over a series of files.
3495 * extra: `Complex` number type and `complex` module.
3496 * extra: `Rational` number type and `rational` module.
3497 * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
3498 * extra: `term` uses terminfo now, is more correct.
3499 * extra: `arc` functions converted to methods.
3500 * extra: Implementation of fixed output size variations of SHA-2.
3503 * `unused_variable` lint mode for unused variables (default: warn).
3504 * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
3506 * `unused_mut` lint mode for identifying unused `mut` qualifiers
3508 * `dead_assignment` lint mode for unread variables (default: warn).
3509 * `unnecessary_allocation` lint mode detects some heap allocations that are
3510 immediately borrowed so could be written without allocating (default: warn).
3511 * `missing_doc` lint mode (default: allow).
3512 * `unreachable_code` lint mode (default: warn).
3513 * The `rusti` command has been rewritten and a number of bugs addressed.
3514 * rustc outputs in color on more terminals.
3515 * rustc accepts a `--link-args` flag to pass arguments to the linker.
3516 * rustc accepts a `-Z print-link-args` flag for debugging linkage.
3517 * Compiling with `-g` will make the binary record information about
3518 dynamic borrowcheck failures for debugging.
3519 * rustdoc has a nicer stylesheet.
3520 * Various improvements to rustdoc.
3521 * Improvements to rustpkg (see the detailed release notes).
3524 Version 0.6 (2013-04-03)
3525 ========================
3527 * ~2100 changes, numerous bugfixes
3530 * The self type parameter in traits is now spelled `Self`
3531 * The `self` parameter in trait and impl methods must now be explicitly
3532 named (for example: `fn f(&self) { }`). Implicit self is deprecated.
3533 * Static methods no longer require the `static` keyword and instead
3534 are distinguished by the lack of a `self` parameter
3535 * Replaced the `Durable` trait with the `'static` lifetime
3536 * The old closure type syntax with the trailing sigil has been
3537 removed in favor of the more consistent leading sigil
3538 * `super` is a keyword, and may be prefixed to paths
3539 * Trait bounds are separated with `+` instead of whitespace
3540 * Traits are implemented with `impl Trait for Type`
3541 instead of `impl Type: Trait`
3542 * Lifetime syntax is now `&'l foo` instead of `&l/foo`
3543 * The `export` keyword has finally been removed
3544 * The `move` keyword has been removed (see "Semantic changes")
3545 * The interior mutability qualifier on vectors, `[mut T]`, has been
3546 removed. Use `&mut [T]`, etc.
3547 * `mut` is no longer valid in `~mut T`. Use inherited mutability
3548 * `fail` is no longer a keyword. Use `fail!()`
3549 * `assert` is no longer a keyword. Use `assert!()`
3550 * `log` is no longer a keyword. use `debug!`, etc.
3551 * 1-tuples may be represented as `(T,)`
3552 * Struct fields may no longer be `mut`. Use inherited mutability,
3553 `@mut T`, `core::mut` or `core::cell`
3554 * `extern mod { ... }` is no longer valid syntax for foreign
3555 function modules. Use extern blocks: `extern { ... }`
3556 * Newtype enums removed. Use tuple-structs.
3557 * Trait implementations no longer support visibility modifiers
3558 * Pattern matching over vectors improved and expanded
3559 * `const` renamed to `static` to correspond to lifetime name,
3560 and make room for future `static mut` unsafe mutable globals.
3561 * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
3562 * `Clone` implementations can be automatically generated with
3563 `#[deriving(Clone)]`
3564 * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
3565 instead of `foo as Bar`.
3566 * Fixed length vector types are now written as `[int, .. 3]`
3567 instead of `[int * 3]`.
3568 * Fixed length vector types can express the length as a constant
3569 expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`)
3572 * Types with owned pointers or custom destructors move by default,
3573 eliminating the `move` keyword
3574 * All foreign functions are considered unsafe
3575 * &mut is now unaliasable
3576 * Writes to borrowed @mut pointers are prevented dynamically
3578 * The name of the main function can be customized using #[main]
3579 * The default type of an inferred closure is &fn instead of @fn
3580 * `use` statements may no longer be "chained" - they cannot import
3581 identifiers imported by previous `use` statements
3582 * `use` statements are crate relative, importing from the "top"
3583 of the crate by default. Paths may be prefixed with `super::`
3584 or `self::` to change the search behavior.
3585 * Method visibility is inherited from the implementation declaration
3586 * Structural records have been removed
3587 * Many more types can be used in static items, including enums
3588 'static-lifetime pointers and vectors
3589 * Pattern matching over vectors improved and expanded
3590 * Typechecking of closure types has been overhauled to
3591 improve inference and eliminate unsoundness
3592 * Macros leave scope at the end of modules, unless that module is
3593 tagged with #[macro_escape]
3596 * Added big integers to `std::bigint`
3597 * Removed `core::oldcomm` module
3598 * Added pipe-based `core::comm` module
3599 * Numeric traits have been reorganized under `core::num`
3600 * `vec::slice` finally returns a slice
3601 * `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
3602 * Containers reorganized around traits in `core::container`
3603 * `core::dvec` removed, `~[T]` is a drop-in replacement
3604 * `core::send_map` renamed to `core::hashmap`
3605 * `std::map` removed; replaced with `core::hashmap`
3606 * `std::treemap` reimplemented as an owned balanced tree
3607 * `std::deque` and `std::smallintmap` reimplemented as owned containers
3608 * `core::trie` added as a fast ordered map for integer keys
3609 * Set types added to `core::hashmap`, `core::trie` and `std::treemap`
3610 * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
3611 overload the comparison operators, whereas `TotalOrd` is used
3612 by certain container types
3615 * Replaced the 'cargo' package manager with 'rustpkg'
3616 * Added all-purpose 'rust' tool
3617 * `rustc --test` now supports benchmarks with the `#[bench]` attribute
3618 * rustc now *attempts* to offer spelling suggestions
3619 * Improved support for ARM and Android
3620 * Preliminary MIPS backend
3621 * Improved foreign function ABI implementation for x86, x86_64
3622 * Various memory usage improvements
3623 * Rust code may be embedded in foreign code under limited circumstances
3624 * Inline assembler supported by new asm!() syntax extension.
3627 Version 0.5 (2012-12-21)
3628 ===========================
3630 * ~900 changes, numerous bugfixes
3633 * Removed `<-` move operator
3634 * Completed the transition from the `#fmt` extension syntax to `fmt!`
3635 * Removed old fixed length vector syntax - `[T]/N`
3636 * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc.
3637 * Macros may now expand to items and statements
3638 * `a.b()` is always parsed as a method call, never as a field projection
3639 * `Eq` and `IterBytes` implementations can be automatically generated
3640 with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively
3641 * Removed the special crate language for `.rc` files
3642 * Function arguments may consist of any irrefutable pattern
3645 * `&` and `~` pointers may point to objects
3646 * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums.
3647 * Enum variants may be structs
3648 * Destructors can be added to all nominal types with the Drop trait
3649 * Structs and nullary enum variants may be constants
3650 * Values that cannot be implicitly copied are now automatically moved
3651 without writing `move` explicitly
3652 * `&T` may now be coerced to `*T`
3653 * Coercions happen in `let` statements as well as function calls
3654 * `use` statements now take crate-relative paths
3655 * The module and type namespaces have been merged so that static
3656 method names can be resolved under the trait in which they are
3659 * Improved support for language features
3660 * Trait inheritance works in many scenarios
3661 * More support for explicit self arguments in methods - `self`, `&self`
3662 `@self`, and `~self` all generally work as expected
3663 * Static methods work in more situations
3664 * Experimental: Traits may declare default methods for the implementations
3668 * New condition handling system in `core::condition`
3669 * Timsort added to `std::sort`
3670 * New priority queue, `std::priority_queue`
3671 * Pipes for serializable types, `std::flatpipes'
3672 * Serialization overhauled to be trait-based
3673 * Expanded `getopts` definitions
3674 * Moved futures to `std`
3675 * More functions are pure now
3676 * `core::comm` renamed to `oldcomm`. Still deprecated
3677 * `rustdoc` and `cargo` are libraries now
3680 * Added a preliminary REPL, `rusti`
3681 * License changed from MIT to dual MIT/APL2
3684 Version 0.4 (2012-10-15)
3685 ==========================
3687 * ~2000 changes, numerous bugfixes
3690 * All keywords are now strict and may not be used as identifiers anywhere
3691 * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send',
3692 'of', 'with', 'to', 'class'.
3693 * Classes are replaced with simpler structs
3694 * Explicit method self types
3695 * `ret` became `return` and `alt` became `match`
3696 * `import` is now `use`; `use is now `extern mod`
3697 * `extern mod { ... }` is now `extern { ... }`
3698 * `use mod` is the recommended way to import modules
3699 * `pub` and `priv` replace deprecated export lists
3700 * The syntax of `match` pattern arms now uses fat arrow (=>)
3701 * `main` no longer accepts an args vector; use `os::args` instead
3704 * Trait implementations are now coherent, ala Haskell typeclasses
3705 * Trait methods may be static
3706 * Argument modes are deprecated
3707 * Borrowed pointers are much more mature and recommended for use
3708 * Strings and vectors in the static region are stored in constant memory
3709 * Typestate was removed
3710 * Resolution rewritten to be more reliable
3711 * Support for 'dual-mode' data structures (freezing and thawing)
3714 * Most binary operators can now be overloaded via the traits in
3716 * `std::net::url` for representing URLs
3717 * Sendable hash maps in `core::send_map`
3718 * `core::task' gained a (currently unsafe) task-local storage API
3721 * An efficient new intertask communication primitive called the pipe,
3722 along with a number of higher-level channel types, in `core::pipes`
3723 * `std::arc`, an atomically reference counted, immutable, shared memory
3725 * `std::sync`, various exotic synchronization tools based on arcs and pipes
3726 * Futures are now based on pipes and sendable
3727 * More robust linked task failure
3728 * Improved task builder API
3731 * Improved error reporting
3732 * Preliminary JIT support
3733 * Preliminary work on precise GC
3734 * Extensive architectural improvements to rustc
3735 * Begun a transition away from buggy C++-based reflection (shape) code to
3736 Rust-based (visitor) code
3737 * All hash functions and tables converted to secure, randomized SipHash
3740 Version 0.3 (2012-07-12)
3741 ========================
3743 * ~1900 changes, numerous bugfixes
3745 * New coding conveniences
3746 * Integer-literal suffix inference
3747 * Per-item control over warnings, errors
3748 * #[cfg(windows)] and #[cfg(unix)] attributes
3749 * Documentation comments
3750 * More compact closure syntax
3751 * 'do' expressions for treating higher-order functions as
3753 * *-patterns (wildcard extended to all constructor fields)
3756 * Name resolution pass and exhaustiveness checker rewritten
3757 * Region pointers and borrow checking supersede alias
3759 * Init-ness checking is now provided by a region-based liveness
3760 pass instead of the typestate pass; same for last-use analysis
3761 * Extensive work on region pointers
3763 * Experimental new language features
3764 * Slices and fixed-size, interior-allocated vectors
3765 * #!-comments for lang versioning, shell execution
3766 * Destructors and iface implementation for classes;
3767 type-parameterized classes and class methods
3768 * 'const' type kind for types that can be used to implement
3769 shared-memory concurrency patterns
3773 * Removal of various obsolete features
3774 * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind',
3775 'crust', 'native' (now 'extern'), 'cont' (now 'again')
3777 * Constructs: do-while loops ('do' repurposed), fn binding,
3778 resources (replaced by destructors)
3780 * Compiler reorganization
3781 * Syntax-layer of compiler split into separate crate
3782 * Clang (from LLVM project) integrated into build
3783 * Typechecker split into sub-modules
3786 * New time functions
3787 * Extension methods for many built-in types
3788 * Arc: atomic-refcount read-only / exclusive-use shared cells
3789 * Par: parallel map and search routines
3790 * Extensive work on libuv interface
3791 * Much vector code moved to libraries
3792 * Syntax extensions: #line, #col, #file, #mod, #stringify,
3793 #include, #include_str, #include_bin
3796 * Cargo automatically resolves dependencies
3799 Version 0.2 (2012-03-29)
3800 =========================
3802 * >1500 changes, numerous bugfixes
3804 * New docs and doc tooling
3806 * New port: FreeBSD x86_64
3808 * Compilation model enhancements
3809 * Generics now specialized, multiply instantiated
3810 * Functions now inlined across separate crates
3812 * Scheduling, stack and threading fixes
3813 * Noticeably improved message-passing performance
3814 * Explicit schedulers
3818 * Experimental new language features
3819 * Operator overloading
3823 * Various language extensions
3824 * C-callback function types: 'crust fn ...'
3825 * Infinite-loop construct: 'loop { ... }'
3826 * Shorten 'mutable' to 'mut'
3827 * Required mutable-local qualifier: 'let mut ...'
3828 * Basic glob-exporting: 'export foo::*;'
3829 * Alt now exhaustive, 'alt check' for runtime-checked
3830 * Block-function form of 'for' loop, with 'break' and 'ret'.
3833 * AST quasi-quote syntax extension
3834 * Revived libuv interface
3835 * New modules: core::{future, iter}, std::arena
3836 * Merged per-platform std::{os*, fs*} to core::{libc, os}
3837 * Extensive cleanup, regularization in libstd, libcore
3840 Version 0.1 (2012-01-20)
3841 ===============================
3843 * Most language features work, including:
3844 * Unique pointers, unique closures, move semantics
3845 * Interface-constrained generics
3846 * Static interface dispatch
3848 * Multithread task scheduling
3849 * Typestate predicates
3850 * Failure unwinding, destructors
3851 * Pattern matching and destructuring assignment
3852 * Lightweight block-lambda syntax
3853 * Preliminary macro-by-example
3855 * Compiler works with the following configurations:
3856 * Linux: x86 and x86_64 hosts and targets
3857 * MacOS: x86 and x86_64 hosts and targets
3858 * Windows: x86 hosts and targets
3860 * Cross compilation / multi-target configuration supported.
3862 * Preliminary API-documentation and package-management tools included.
3866 * Documentation is incomplete.
3868 * Performance is below intended target.
3870 * Standard library APIs are subject to extensive change, reorganization.
3872 * Language-level versioning is not yet operational - future code will