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