PageRenderTime 111ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 1ms

/RELEASES.md

http://github.com/eholk/rust
Markdown | 5076 lines | 4654 code | 422 blank | 0 comment | 0 complexity | 8e10bc4b852562d05a5c5673b4fa9304 MD5 | raw file
Possible License(s): AGPL-1.0, BSD-2-Clause, 0BSD, Apache-2.0, MIT, LGPL-2.0
  1. Version 1.17.0 (2017-04-27)
  2. ===========================
  3. Language
  4. --------
  5. * [The lifetime of statics and consts defaults to `'static`][39265]. [RFC 1623]
  6. * [Fields of structs may be initialized without duplicating the field/variable
  7. names][39761]. [RFC 1682]
  8. * [`Self` may be included in the `where` clause of `impls`][38864]. [RFC 1647]
  9. * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
  10. there is no subtyping between `T` and `U` when `T: Unsize<U>`. For example,
  11. coercing `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to
  12. `'b`. Soundness fix.
  13. * [Values passed to the indexing operator, `[]`, automatically coerce][40166]
  14. * [Static variables may contain references to other statics][40027]
  15. Compiler
  16. --------
  17. * [Exit quickly on only `--emit dep-info`][40336]
  18. * [Make `-C relocation-model` more correctly determine whether the linker
  19. creates a position-independent executable][40245]
  20. * [Add `-C overflow-checks` to directly control whether integer overflow
  21. panics][40037]
  22. * [The rustc type checker now checks items on demand instead of in a single
  23. in-order pass][40008]. This is mostly an internal refactoring in support of
  24. future work, including incremental type checking, but also resolves [RFC
  25. 1647], allowing `Self` to appear in `impl` `where` clauses.
  26. * [Optimize vtable loads][39995]
  27. * [Turn off vectorization for Emscripten targets][39990]
  28. * [Provide suggestions for unknown macros imported with `use`][39953]
  29. * [Fix ICEs in path resolution][39939]
  30. * [Strip exception handling code on Emscripten when `panic=abort`][39193]
  31. * [Add clearer error message using `&str + &str`][39116]
  32. Stabilized APIs
  33. ---------------
  34. * [`Arc::into_raw`]
  35. * [`Arc::from_raw`]
  36. * [`Arc::ptr_eq`]
  37. * [`Rc::into_raw`]
  38. * [`Rc::from_raw`]
  39. * [`Rc::ptr_eq`]
  40. * [`Ordering::then`]
  41. * [`Ordering::then_with`]
  42. * [`BTreeMap::range`]
  43. * [`BTreeMap::range_mut`]
  44. * [`collections::Bound`]
  45. * [`process::abort`]
  46. * [`ptr::read_unaligned`]
  47. * [`ptr::write_unaligned`]
  48. * [`Result::expect_err`]
  49. * [`Cell::swap`]
  50. * [`Cell::replace`]
  51. * [`Cell::into_inner`]
  52. * [`Cell::take`]
  53. Libraries
  54. ---------
  55. * [`BTreeMap` and `BTreeSet` can iterate over ranges][27787]
  56. * [`Cell` can store non-`Copy` types][39793]. [RFC 1651]
  57. * [`String` implements `FromIterator<&char>`][40028]
  58. * `Box` [implements][40009] a number of new conversions:
  59. `From<Box<str>> for String`,
  60. `From<Box<[T]>> for Vec<T>`,
  61. `From<Box<CStr>> for CString`,
  62. `From<Box<OsStr>> for OsString`,
  63. `From<Box<Path>> for PathBuf`,
  64. `Into<Box<str>> for String`,
  65. `Into<Box<[T]>> for Vec<T>`,
  66. `Into<Box<CStr>> for CString`,
  67. `Into<Box<OsStr>> for OsString`,
  68. `Into<Box<Path>> for PathBuf`,
  69. `Default for Box<str>`,
  70. `Default for Box<CStr>`,
  71. `Default for Box<OsStr>`,
  72. `From<&CStr> for Box<CStr>`,
  73. `From<&OsStr> for Box<OsStr>`,
  74. `From<&Path> for Box<Path>`
  75. * [`ffi::FromBytesWithNulError` implements `Error` and `Display`][39960]
  76. * [Specialize `PartialOrd<A> for [A] where A: Ord`][39642]
  77. * [Slightly optimize `slice::sort`][39538]
  78. * [Add `ToString` trait specialization for `Cow<'a, str>` and `String`][39440]
  79. * [`Box<[T]>` implements `From<&[T]> where T: Copy`,
  80. `Box<str>` implements `From<&str>`][39438]
  81. * [`IpAddr` implements `From` for various arrays. `SocketAddr` implements
  82. `From<(I, u16)> where I: Into<IpAddr>`][39372]
  83. * [`format!` estimates the needed capacity before writing a string][39356]
  84. * [Support unprivileged symlink creation in Windows][38921]
  85. * [`PathBuf` implements `Default`][38764]
  86. * [Implement `PartialEq<[A]>` for `VecDeque<A>`][38661]
  87. * [`HashMap` resizes adaptively][38368] to guard against DOS attacks
  88. and poor hash functions.
  89. Cargo
  90. -----
  91. * [Add `cargo check --all`][cargo/3731]
  92. * [Add an option to ignore SSL revocation checking][cargo/3699]
  93. * [Add `cargo run --package`][cargo/3691]
  94. * [Add `required_features`][cargo/3667]
  95. * [Assume `build.rs` is a build script][cargo/3664]
  96. * [Find workspace via `workspace_root` link in containing member][cargo/3562]
  97. Misc
  98. ----
  99. * [Documentation is rendered with mdbook instead of the obsolete, in-tree
  100. `rustbook`][39633]
  101. * [The "Unstable Book" documents nightly-only features][ubook]
  102. * [Improve the style of the sidebar in rustdoc output][40265]
  103. * [Configure build correctly on 64-bit CPU's with the armhf ABI][40261]
  104. * [Fix MSP430 breakage due to `i128`][40257]
  105. * [Preliminary Solaris/SPARCv9 support][39903]
  106. * [`rustc` is linked statically on Windows MSVC targets][39837], allowing it to
  107. run without installing the MSVC runtime.
  108. * [`rustdoc --test` includes file names in test names][39788]
  109. * This release includes builds of `std` for `sparc64-unknown-linux-gnu`,
  110. `aarch64-unknown-linux-fuchsia`, and `x86_64-unknown-linux-fuchsia`.
  111. * [Initial support for `aarch64-unknown-freebsd`][39491]
  112. * [Initial support for `i686-unknown-netbsd`][39426]
  113. * [This release no longer includes the old makefile build system][39431]. Rust
  114. is built with a custom build system, written in Rust, and with Cargo.
  115. * [Add Debug implementations for libcollection structs][39002]
  116. * [`TypeId` implements `PartialOrd` and `Ord`][38981]
  117. * [`--test-threads=0` produces an error][38945]
  118. * [`rustup` installs documentation by default][40526]
  119. * [The Rust source includes NatVis visualizations][39843]. These can be used by
  120. WinDbg and Visual Studio to improve the debugging experience.
  121. Compatibility Notes
  122. -------------------
  123. * [Rust 1.17 does not correctly detect the MSVC 2017 linker][38584]. As a
  124. workaround, either use MSVC 2015 or run vcvars.bat.
  125. * [When coercing to an unsized type lifetimes must be equal][40319]. That is,
  126. disallow subtyping between `T` and `U` when `T: Unsize<U>`, e.g. coercing
  127. `&mut [&'a X; N]` to `&mut [&'b X]` requires `'a` be equal to `'b`. Soundness
  128. fix.
  129. * [`format!` and `Display::to_string` panic if an underlying formatting
  130. implementation returns an error][40117]. Previously the error was silently
  131. ignored. It is incorrect for `write_fmt` to return an error when writing
  132. to a string.
  133. * [In-tree crates are verified to be unstable][39851]. Previously, some minor
  134. crates were marked stable and could be accessed from the stable toolchain.
  135. * [Rust git source no longer includes vendored crates][39728]. Those that need
  136. to build with vendored crates should build from release tarballs.
  137. * [Fix inert attributes from `proc_macro_derives`][39572]
  138. * [During crate resolution, rustc prefers a crate in the sysroot if two crates
  139. are otherwise identical][39518]. Unlikely to be encountered outside the Rust
  140. build system.
  141. * [Fixed bugs around how type inference interacts with dead-code][39485]. The
  142. existing code generally ignores the type of dead-code unless a type-hint is
  143. provided; this can cause surprising inference interactions particularly around
  144. defaulting. The new code uniformly ignores the result type of dead-code.
  145. * [Tuple-struct constructors with private fields are no longer visible][38932]
  146. * [Lifetime parameters that do not appear in the arguments are now considered
  147. early-bound][38897], resolving a soundness bug (#[32330]). The
  148. `hr_lifetime_in_assoc_type` future-compatibility lint has been in effect since
  149. April of 2016.
  150. * [rustdoc: fix doctests with non-feature crate attributes][38161]
  151. * [Make transmuting from fn item types to pointer-sized types a hard
  152. error][34198]
  153. [27787]: https://github.com/rust-lang/rust/issues/27787
  154. [32330]: https://github.com/rust-lang/rust/issues/32330
  155. [34198]: https://github.com/rust-lang/rust/pull/34198
  156. [38161]: https://github.com/rust-lang/rust/pull/38161
  157. [38368]: https://github.com/rust-lang/rust/pull/38368
  158. [38584]: https://github.com/rust-lang/rust/issues/38584
  159. [38661]: https://github.com/rust-lang/rust/pull/38661
  160. [38764]: https://github.com/rust-lang/rust/pull/38764
  161. [38864]: https://github.com/rust-lang/rust/issues/38864
  162. [38897]: https://github.com/rust-lang/rust/pull/38897
  163. [38921]: https://github.com/rust-lang/rust/pull/38921
  164. [38932]: https://github.com/rust-lang/rust/pull/38932
  165. [38945]: https://github.com/rust-lang/rust/pull/38945
  166. [38981]: https://github.com/rust-lang/rust/pull/38981
  167. [39002]: https://github.com/rust-lang/rust/pull/39002
  168. [39116]: https://github.com/rust-lang/rust/pull/39116
  169. [39193]: https://github.com/rust-lang/rust/pull/39193
  170. [39265]: https://github.com/rust-lang/rust/pull/39265
  171. [39356]: https://github.com/rust-lang/rust/pull/39356
  172. [39372]: https://github.com/rust-lang/rust/pull/39372
  173. [39426]: https://github.com/rust-lang/rust/pull/39426
  174. [39431]: https://github.com/rust-lang/rust/pull/39431
  175. [39438]: https://github.com/rust-lang/rust/pull/39438
  176. [39440]: https://github.com/rust-lang/rust/pull/39440
  177. [39485]: https://github.com/rust-lang/rust/pull/39485
  178. [39491]: https://github.com/rust-lang/rust/pull/39491
  179. [39518]: https://github.com/rust-lang/rust/pull/39518
  180. [39538]: https://github.com/rust-lang/rust/pull/39538
  181. [39572]: https://github.com/rust-lang/rust/pull/39572
  182. [39633]: https://github.com/rust-lang/rust/pull/39633
  183. [39642]: https://github.com/rust-lang/rust/pull/39642
  184. [39728]: https://github.com/rust-lang/rust/pull/39728
  185. [39761]: https://github.com/rust-lang/rust/pull/39761
  186. [39788]: https://github.com/rust-lang/rust/pull/39788
  187. [39793]: https://github.com/rust-lang/rust/pull/39793
  188. [39837]: https://github.com/rust-lang/rust/pull/39837
  189. [39843]: https://github.com/rust-lang/rust/pull/39843
  190. [39851]: https://github.com/rust-lang/rust/pull/39851
  191. [39903]: https://github.com/rust-lang/rust/pull/39903
  192. [39939]: https://github.com/rust-lang/rust/pull/39939
  193. [39953]: https://github.com/rust-lang/rust/pull/39953
  194. [39960]: https://github.com/rust-lang/rust/pull/39960
  195. [39990]: https://github.com/rust-lang/rust/pull/39990
  196. [39995]: https://github.com/rust-lang/rust/pull/39995
  197. [40008]: https://github.com/rust-lang/rust/pull/40008
  198. [40009]: https://github.com/rust-lang/rust/pull/40009
  199. [40027]: https://github.com/rust-lang/rust/pull/40027
  200. [40028]: https://github.com/rust-lang/rust/pull/40028
  201. [40037]: https://github.com/rust-lang/rust/pull/40037
  202. [40117]: https://github.com/rust-lang/rust/pull/40117
  203. [40166]: https://github.com/rust-lang/rust/pull/40166
  204. [40245]: https://github.com/rust-lang/rust/pull/40245
  205. [40257]: https://github.com/rust-lang/rust/pull/40257
  206. [40261]: https://github.com/rust-lang/rust/pull/40261
  207. [40265]: https://github.com/rust-lang/rust/pull/40265
  208. [40319]: https://github.com/rust-lang/rust/pull/40319
  209. [40336]: https://github.com/rust-lang/rust/pull/40336
  210. [40526]: https://github.com/rust-lang/rust/pull/40526
  211. [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
  212. [RFC 1647]: https://github.com/rust-lang/rfcs/blob/master/text/1647-allow-self-in-where-clauses.md
  213. [RFC 1651]: https://github.com/rust-lang/rfcs/blob/master/text/1651-movecell.md
  214. [RFC 1682]: https://github.com/rust-lang/rfcs/blob/master/text/1682-field-init-shorthand.md
  215. [`Arc::from_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.from_raw
  216. [`Arc::into_raw`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.into_raw
  217. [`Arc::ptr_eq`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.ptr_eq
  218. [`BTreeMap::range_mut`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range_mut
  219. [`BTreeMap::range`]: https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.range
  220. [`Cell::into_inner`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.into_inner
  221. [`Cell::replace`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.replace
  222. [`Cell::swap`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.swap
  223. [`Cell::take`]: https://doc.rust-lang.org/std/cell/struct.Cell.html#method.take
  224. [`Ordering::then_with`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then_with
  225. [`Ordering::then`]: https://doc.rust-lang.org/std/cmp/enum.Ordering.html#method.then
  226. [`Rc::from_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.from_raw
  227. [`Rc::into_raw`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.into_raw
  228. [`Rc::ptr_eq`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.ptr_eq
  229. [`Result::expect_err`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.expect_err
  230. [`collections::Bound`]: https://doc.rust-lang.org/std/collections/enum.Bound.html
  231. [`process::abort`]: https://doc.rust-lang.org/std/process/fn.abort.html
  232. [`ptr::read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
  233. [`ptr::write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
  234. [cargo/3562]: https://github.com/rust-lang/cargo/pull/3562
  235. [cargo/3664]: https://github.com/rust-lang/cargo/pull/3664
  236. [cargo/3667]: https://github.com/rust-lang/cargo/pull/3667
  237. [cargo/3691]: https://github.com/rust-lang/cargo/pull/3691
  238. [cargo/3699]: https://github.com/rust-lang/cargo/pull/3699
  239. [cargo/3731]: https://github.com/rust-lang/cargo/pull/3731
  240. [mdbook]: https://crates.io/crates/mdbook
  241. [ubook]: https://doc.rust-lang.org/unstable-book/
  242. Version 1.16.0 (2017-03-16)
  243. ===========================
  244. Language
  245. --------
  246. * [The compiler's `dead_code` lint now accounts for type aliases][38051].
  247. * [Uninhabitable enums (those without any variants) no longer permit wildcard
  248. match patterns][38069]
  249. * [Clean up semantics of `self` in an import list][38313]
  250. * [`Self` may appear in `impl` headers][38920]
  251. * [`Self` may appear in struct expressions][39282]
  252. Compiler
  253. --------
  254. * [`rustc` now supports `--emit=metadata`, which causes rustc to emit
  255. a `.rmeta` file containing only crate metadata][38571]. This can be
  256. used by tools like the Rust Language Service to perform
  257. metadata-only builds.
  258. * [Levenshtein based typo suggestions now work in most places, while
  259. previously they worked only for fields and sometimes for local
  260. variables][38927]. Together with the overhaul of "no
  261. resolution"/"unexpected resolution" errors (#[38154]) they result in
  262. large and systematic improvement in resolution diagnostics.
  263. * [Fix `transmute::<T, U>` where `T` requires a bigger alignment than
  264. `U`][38670]
  265. * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798]
  266. * [`rustc` no longer attempts to provide "consider using an explicit
  267. lifetime" suggestions][37057]. They were inaccurate.
  268. Stabilized APIs
  269. ---------------
  270. * [`VecDeque::truncate`]
  271. * [`VecDeque::resize`]
  272. * [`String::insert_str`]
  273. * [`Duration::checked_add`]
  274. * [`Duration::checked_sub`]
  275. * [`Duration::checked_div`]
  276. * [`Duration::checked_mul`]
  277. * [`str::replacen`]
  278. * [`str::repeat`]
  279. * [`SocketAddr::is_ipv4`]
  280. * [`SocketAddr::is_ipv6`]
  281. * [`IpAddr::is_ipv4`]
  282. * [`IpAddr::is_ipv6`]
  283. * [`Vec::dedup_by`]
  284. * [`Vec::dedup_by_key`]
  285. * [`Result::unwrap_or_default`]
  286. * [`<*const T>::wrapping_offset`]
  287. * [`<*mut T>::wrapping_offset`]
  288. * `CommandExt::creation_flags`
  289. * [`File::set_permissions`]
  290. * [`String::split_off`]
  291. Libraries
  292. ---------
  293. * [`[T]::binary_search` and `[T]::binary_search_by_key` now take
  294. their argument by `Borrow` parameter][37761]
  295. * [All public types in std implement `Debug`][38006]
  296. * [`IpAddr` implements `From<Ipv4Addr>` and `From<Ipv6Addr>`][38327]
  297. * [`Ipv6Addr` implements `From<[u16; 8]>`][38131]
  298. * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
  299. Windows][38274]
  300. * [std: Fix partial writes in `LineWriter`][38062]
  301. * [std: Clamp max read/write sizes on Unix][38062]
  302. * [Use more specific panic message for `&str` slicing errors][38066]
  303. * [`TcpListener::set_only_v6` is deprecated][38304]. This
  304. functionality cannot be achieved in std currently.
  305. * [`writeln!`, like `println!`, now accepts a form with no string
  306. or formatting arguments, to just print a newline][38469]
  307. * [Implement `iter::Sum` and `iter::Product` for `Result`][38580]
  308. * [Reduce the size of static data in `std_unicode::tables`][38781]
  309. * [`char::EscapeDebug`, `EscapeDefault`, `EscapeUnicode`,
  310. `CaseMappingIter`, `ToLowercase`, `ToUppercase`, implement
  311. `Display`][38909]
  312. * [`Duration` implements `Sum`][38712]
  313. * [`String` implements `ToSocketAddrs`][39048]
  314. Cargo
  315. -----
  316. * [The `cargo check` command does a type check of a project without
  317. building it][cargo/3296]
  318. * [crates.io will display CI badges from Travis and AppVeyor, if
  319. specified in Cargo.toml][cargo/3546]
  320. * [crates.io will display categories listed in Cargo.toml][cargo/3301]
  321. * [Compilation profiles accept integer values for `debug`, in addition
  322. to `true` and `false`. These are passed to `rustc` as the value to
  323. `-C debuginfo`][cargo/3534]
  324. * [Implement `cargo --version --verbose`][cargo/3604]
  325. * [All builds now output 'dep-info' build dependencies compatible with
  326. make and ninja][cargo/3557]
  327. * [Build all workspace members with `build --all`][cargo/3511]
  328. * [Document all workspace members with `doc --all`][cargo/3515]
  329. * [Path deps outside workspace are not members][cargo/3443]
  330. Misc
  331. ----
  332. * [`rustdoc` has a `--sysroot` argument that, like `rustc`, specifies
  333. the path to the Rust implementation][38589]
  334. * [The `armv7-linux-androideabi` target no longer enables NEON
  335. extensions, per Google's ABI guide][38413]
  336. * [The stock standard library can be compiled for Redox OS][38401]
  337. * [Rust has initial SPARC support][38726]. Tier 3. No builds
  338. available.
  339. * [Rust has experimental support for Nvidia PTX][38559]. Tier 3. No
  340. builds available.
  341. * [Fix backtraces on i686-pc-windows-gnu by disabling FPO][39379]
  342. Compatibility Notes
  343. -------------------
  344. * [Uninhabitable enums (those without any variants) no longer permit wildcard
  345. match patterns][38069]
  346. * In this release, references to uninhabited types can not be
  347. pattern-matched. This was accidentally allowed in 1.15.
  348. * [The compiler's `dead_code` lint now accounts for type aliases][38051].
  349. * [Ctrl-Z returns from `Stdin.read()` when reading from the console on
  350. Windows][38274]
  351. * [Clean up semantics of `self` in an import list][38313]
  352. [37057]: https://github.com/rust-lang/rust/pull/37057
  353. [37761]: https://github.com/rust-lang/rust/pull/37761
  354. [38006]: https://github.com/rust-lang/rust/pull/38006
  355. [38051]: https://github.com/rust-lang/rust/pull/38051
  356. [38062]: https://github.com/rust-lang/rust/pull/38062
  357. [38062]: https://github.com/rust-lang/rust/pull/38622
  358. [38066]: https://github.com/rust-lang/rust/pull/38066
  359. [38069]: https://github.com/rust-lang/rust/pull/38069
  360. [38131]: https://github.com/rust-lang/rust/pull/38131
  361. [38154]: https://github.com/rust-lang/rust/pull/38154
  362. [38274]: https://github.com/rust-lang/rust/pull/38274
  363. [38304]: https://github.com/rust-lang/rust/pull/38304
  364. [38313]: https://github.com/rust-lang/rust/pull/38313
  365. [38314]: https://github.com/rust-lang/rust/pull/38314
  366. [38327]: https://github.com/rust-lang/rust/pull/38327
  367. [38401]: https://github.com/rust-lang/rust/pull/38401
  368. [38413]: https://github.com/rust-lang/rust/pull/38413
  369. [38469]: https://github.com/rust-lang/rust/pull/38469
  370. [38559]: https://github.com/rust-lang/rust/pull/38559
  371. [38571]: https://github.com/rust-lang/rust/pull/38571
  372. [38580]: https://github.com/rust-lang/rust/pull/38580
  373. [38589]: https://github.com/rust-lang/rust/pull/38589
  374. [38670]: https://github.com/rust-lang/rust/pull/38670
  375. [38712]: https://github.com/rust-lang/rust/pull/38712
  376. [38726]: https://github.com/rust-lang/rust/pull/38726
  377. [38781]: https://github.com/rust-lang/rust/pull/38781
  378. [38798]: https://github.com/rust-lang/rust/pull/38798
  379. [38909]: https://github.com/rust-lang/rust/pull/38909
  380. [38920]: https://github.com/rust-lang/rust/pull/38920
  381. [38927]: https://github.com/rust-lang/rust/pull/38927
  382. [39048]: https://github.com/rust-lang/rust/pull/39048
  383. [39282]: https://github.com/rust-lang/rust/pull/39282
  384. [39379]: https://github.com/rust-lang/rust/pull/39379
  385. [`<*const T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
  386. [`<*mut T>::wrapping_offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.wrapping_offset
  387. [`Duration::checked_add`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_add
  388. [`Duration::checked_div`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_div
  389. [`Duration::checked_mul`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_mul
  390. [`Duration::checked_sub`]: https://doc.rust-lang.org/std/time/struct.Duration.html#method.checked_sub
  391. [`File::set_permissions`]: https://doc.rust-lang.org/std/fs/struct.File.html#method.set_permissions
  392. [`IpAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv4
  393. [`IpAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_ipv6
  394. [`Result::unwrap_or_default`]: https://doc.rust-lang.org/std/result/enum.Result.html#method.unwrap_or_default
  395. [`SocketAddr::is_ipv4`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv4
  396. [`SocketAddr::is_ipv6`]: https://doc.rust-lang.org/std/net/enum.SocketAddr.html#method.is_ipv6
  397. [`String::insert_str`]: https://doc.rust-lang.org/std/string/struct.String.html#method.insert_str
  398. [`String::split_off`]: https://doc.rust-lang.org/std/string/struct.String.html#method.split_off
  399. [`Vec::dedup_by_key`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by_key
  400. [`Vec::dedup_by`]: https://doc.rust-lang.org/std/vec/struct.Vec.html#method.dedup_by
  401. [`VecDeque::resize`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.resize
  402. [`VecDeque::truncate`]: https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.truncate
  403. [`str::repeat`]: https://doc.rust-lang.org/std/primitive.str.html#method.repeat
  404. [`str::replacen`]: https://doc.rust-lang.org/std/primitive.str.html#method.replacen
  405. [cargo/3296]: https://github.com/rust-lang/cargo/pull/3296
  406. [cargo/3301]: https://github.com/rust-lang/cargo/pull/3301
  407. [cargo/3443]: https://github.com/rust-lang/cargo/pull/3443
  408. [cargo/3511]: https://github.com/rust-lang/cargo/pull/3511
  409. [cargo/3515]: https://github.com/rust-lang/cargo/pull/3515
  410. [cargo/3534]: https://github.com/rust-lang/cargo/pull/3534
  411. [cargo/3546]: https://github.com/rust-lang/cargo/pull/3546
  412. [cargo/3557]: https://github.com/rust-lang/cargo/pull/3557
  413. [cargo/3604]: https://github.com/rust-lang/cargo/pull/3604
  414. [RFC 1623]: https://github.com/rust-lang/rfcs/blob/master/text/1623-static.md
  415. Version 1.15.1 (2017-02-09)
  416. ===========================
  417. * [Fix IntoIter::as_mut_slice's signature][39466]
  418. * [Compile compiler builtins with `-fPIC` on 32-bit platforms][39523]
  419. [39466]: https://github.com/rust-lang/rust/pull/39466
  420. [39523]: https://github.com/rust-lang/rust/pull/39523
  421. Version 1.15.0 (2017-02-02)
  422. ===========================
  423. Language
  424. --------
  425. * Basic procedural macros allowing custom `#[derive]`, aka "macros 1.1", are
  426. stable. This allows popular code-generating crates like Serde and Diesel to
  427. work ergonomically. [RFC 1681].
  428. * [Tuple structs may be empty. Unary and empty tuple structs may be instantiated
  429. with curly braces][36868]. Part of [RFC 1506].
  430. * [A number of minor changes to name resolution have been activated][37127].
  431. They add up to more consistent semantics, allowing for future evolution of
  432. Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
  433. details of what is different. The breaking changes here have been transitioned
  434. through the [`legacy_imports`] lint since 1.14, with no known regressions.
  435. * [In `macro_rules`, `path` fragments can now be parsed as type parameter
  436. bounds][38279]
  437. * [`?Sized` can be used in `where` clauses][37791]
  438. * [There is now a limit on the size of monomorphized types and it can be
  439. modified with the `#![type_size_limit]` crate attribute, similarly to
  440. the `#![recursion_limit]` attribute][37789]
  441. Compiler
  442. --------
  443. * [On Windows, the compiler will apply dllimport attributes when linking to
  444. extern functions][37973]. Additional attributes and flags can control which
  445. library kind is linked and its name. [RFC 1717].
  446. * [Rust-ABI symbols are no longer exported from cdylibs][38117]
  447. * [The `--test` flag works with procedural macro crates][38107]
  448. * [Fix `extern "aapcs" fn` ABI][37814]
  449. * [The `-C no-stack-check` flag is deprecated][37636]. It does nothing.
  450. * [The `format!` expander recognizes incorrect `printf` and shell-style
  451. formatting directives and suggests the correct format][37613].
  452. * [Only report one error for all unused imports in an import list][37456]
  453. Compiler Performance
  454. --------------------
  455. * [Avoid unnecessary `mk_ty` calls in `Ty::super_fold_with`][37705]
  456. * [Avoid more unnecessary `mk_ty` calls in `Ty::super_fold_with`][37979]
  457. * [Don't clone in `UnificationTable::probe`][37848]
  458. * [Remove `scope_auxiliary` to cut RSS by 10%][37764]
  459. * [Use small vectors in type walker][37760]
  460. * [Macro expansion performance was improved][37701]
  461. * [Change `HirVec<P<T>>` to `HirVec<T>` in `hir::Expr`][37642]
  462. * [Replace FNV with a faster hash function][37229]
  463. Stabilized APIs
  464. ---------------
  465. * [`std::iter::Iterator::min_by`]
  466. * [`std::iter::Iterator::max_by`]
  467. * [`std::os::*::fs::FileExt`]
  468. * [`std::sync::atomic::Atomic*::get_mut`]
  469. * [`std::sync::atomic::Atomic*::into_inner`]
  470. * [`std::vec::IntoIter::as_slice`]
  471. * [`std::vec::IntoIter::as_mut_slice`]
  472. * [`std::sync::mpsc::Receiver::try_iter`]
  473. * [`std::os::unix::process::CommandExt::before_exec`]
  474. * [`std::rc::Rc::strong_count`]
  475. * [`std::rc::Rc::weak_count`]
  476. * [`std::sync::Arc::strong_count`]
  477. * [`std::sync::Arc::weak_count`]
  478. * [`std::char::encode_utf8`]
  479. * [`std::char::encode_utf16`]
  480. * [`std::cell::Ref::clone`]
  481. * [`std::io::Take::into_inner`]
  482. Libraries
  483. ---------
  484. * [The standard sorting algorithm has been rewritten for dramatic performance
  485. improvements][38192]. It is a hybrid merge sort, drawing influences from
  486. Timsort. Previously it was a naive merge sort.
  487. * [`Iterator::nth` no longer has a `Sized` bound][38134]
  488. * [`Extend<&T>` is specialized for `Vec` where `T: Copy`][38182] to improve
  489. performance.
  490. * [`chars().count()` is much faster][37888] and so are [`chars().last()`
  491. and `char_indices().last()`][37882]
  492. * [Fix ARM Objective-C ABI in `std::env::args`][38146]
  493. * [Chinese characters display correctly in `fmt::Debug`][37855]
  494. * [Derive `Default` for `Duration`][37699]
  495. * [Support creation of anonymous pipes on WinXP/2k][37677]
  496. * [`mpsc::RecvTimeoutError` implements `Error`][37527]
  497. * [Don't pass overlapped handles to processes][38835]
  498. Cargo
  499. -----
  500. * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
  501. environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
  502. should instead check the variable at runtime with `std::env`. That the value
  503. was set at build time was a bug, and incorrect when cross-compiling. This
  504. change is known to cause breakage.
  505. * [Add `--all` flag to `cargo test`][cargo/3221]
  506. * [Compile statically against the MSVC CRT][cargo/3363]
  507. * [Mix feature flags into fingerprint/metadata shorthash][cargo/3102]
  508. * [Link OpenSSL statically on OSX][cargo/3311]
  509. * [Apply new fingerprinting to build dir outputs][cargo/3310]
  510. * [Test for bad path overrides with summaries][cargo/3336]
  511. * [Require `cargo install --vers` to take a semver version][cargo/3338]
  512. * [Fix retrying crate downloads for network errors][cargo/3348]
  513. * [Implement string lookup for `build.rustflags` config key][cargo/3356]
  514. * [Emit more info on --message-format=json][cargo/3319]
  515. * [Assume `build.rs` in the same directory as `Cargo.toml` is a build script][cargo/3361]
  516. * [Don't ignore errors in workspace manifest][cargo/3409]
  517. * [Fix `--message-format JSON` when rustc emits non-JSON warnings][cargo/3410]
  518. Tooling
  519. -------
  520. * [Test runners (binaries built with `--test`) now support a `--list` argument
  521. that lists the tests it contains][38185]
  522. * [Test runners now support a `--exact` argument that makes the test filter
  523. match exactly, instead of matching only a substring of the test name][38181]
  524. * [rustdoc supports a `--playground-url` flag][37763]
  525. * [rustdoc provides more details about `#[should_panic]` errors][37749]
  526. Misc
  527. ----
  528. * [The Rust build system is now written in Rust][37817]. The Makefiles may
  529. continue to be used in this release by passing `--disable-rustbuild` to the
  530. configure script, but they will be deleted soon. Note that the new build
  531. system uses a different on-disk layout that will likely affect any scripts
  532. building Rust.
  533. * [Rust supports i686-unknown-openbsd][38086]. Tier 3 support. No testing or
  534. releases.
  535. * [Rust supports the MSP430][37627]. Tier 3 support. No testing or releases.
  536. * [Rust supports the ARMv5TE architecture][37615]. Tier 3 support. No testing or
  537. releases.
  538. Compatibility Notes
  539. -------------------
  540. * [A number of minor changes to name resolution have been activated][37127].
  541. They add up to more consistent semantics, allowing for future evolution of
  542. Rust macros. Specified in [RFC 1560], see its section on ["changes"] for
  543. details of what is different. The breaking changes here have been transitioned
  544. through the [`legacy_imports`] lint since 1.14, with no known regressions.
  545. * [In this release, Cargo build scripts no longer have access to the `OUT_DIR`
  546. environment variable at build time via `env!("OUT_DIR")`][cargo/3368]. They
  547. should instead check the variable at runtime with `std::env`. That the value
  548. was set at build time was a bug, and incorrect when cross-compiling. This
  549. change is known to cause breakage.
  550. * [Higher-ranked lifetimes are no longer allowed to appear _only_ in associated
  551. types][33685]. The [`hr_lifetime_in_assoc_type` lint] has been a warning since
  552. 1.10 and is now an error by default. It will become a hard error in the near
  553. future.
  554. * [The semantics relating modules to file system directories are changing in
  555. minor ways][37602]. This is captured in the new `legacy_directory_ownership`
  556. lint, which is a warning in this release, and will become a hard error in the
  557. future.
  558. * [Rust-ABI symbols are no longer exported from cdylibs][38117]
  559. * [Once `Peekable` peeks a `None` it will return that `None` without re-querying
  560. the underlying iterator][37834]
  561. ["changes"]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md#changes-to-name-resolution-rules
  562. [33685]: https://github.com/rust-lang/rust/issues/33685
  563. [36868]: https://github.com/rust-lang/rust/pull/36868
  564. [37127]: https://github.com/rust-lang/rust/pull/37127
  565. [37229]: https://github.com/rust-lang/rust/pull/37229
  566. [37456]: https://github.com/rust-lang/rust/pull/37456
  567. [37527]: https://github.com/rust-lang/rust/pull/37527
  568. [37602]: https://github.com/rust-lang/rust/pull/37602
  569. [37613]: https://github.com/rust-lang/rust/pull/37613
  570. [37615]: https://github.com/rust-lang/rust/pull/37615
  571. [37636]: https://github.com/rust-lang/rust/pull/37636
  572. [37627]: https://github.com/rust-lang/rust/pull/37627
  573. [37642]: https://github.com/rust-lang/rust/pull/37642
  574. [37677]: https://github.com/rust-lang/rust/pull/37677
  575. [37699]: https://github.com/rust-lang/rust/pull/37699
  576. [37701]: https://github.com/rust-lang/rust/pull/37701
  577. [37705]: https://github.com/rust-lang/rust/pull/37705
  578. [37749]: https://github.com/rust-lang/rust/pull/37749
  579. [37760]: https://github.com/rust-lang/rust/pull/37760
  580. [37763]: https://github.com/rust-lang/rust/pull/37763
  581. [37764]: https://github.com/rust-lang/rust/pull/37764
  582. [37789]: https://github.com/rust-lang/rust/pull/37789
  583. [37791]: https://github.com/rust-lang/rust/pull/37791
  584. [37814]: https://github.com/rust-lang/rust/pull/37814
  585. [37817]: https://github.com/rust-lang/rust/pull/37817
  586. [37834]: https://github.com/rust-lang/rust/pull/37834
  587. [37848]: https://github.com/rust-lang/rust/pull/37848
  588. [37855]: https://github.com/rust-lang/rust/pull/37855
  589. [37882]: https://github.com/rust-lang/rust/pull/37882
  590. [37888]: https://github.com/rust-lang/rust/pull/37888
  591. [37973]: https://github.com/rust-lang/rust/pull/37973
  592. [37979]: https://github.com/rust-lang/rust/pull/37979
  593. [38086]: https://github.com/rust-lang/rust/pull/38086
  594. [38107]: https://github.com/rust-lang/rust/pull/38107
  595. [38117]: https://github.com/rust-lang/rust/pull/38117
  596. [38134]: https://github.com/rust-lang/rust/pull/38134
  597. [38146]: https://github.com/rust-lang/rust/pull/38146
  598. [38181]: https://github.com/rust-lang/rust/pull/38181
  599. [38182]: https://github.com/rust-lang/rust/pull/38182
  600. [38185]: https://github.com/rust-lang/rust/pull/38185
  601. [38192]: https://github.com/rust-lang/rust/pull/38192
  602. [38279]: https://github.com/rust-lang/rust/pull/38279
  603. [38835]: https://github.com/rust-lang/rust/pull/38835
  604. [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
  605. [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
  606. [RFC 1560]: https://github.com/rust-lang/rfcs/blob/master/text/1560-name-resolution.md
  607. [RFC 1681]: https://github.com/rust-lang/rfcs/blob/master/text/1681-macros-1.1.md
  608. [RFC 1717]: https://github.com/rust-lang/rfcs/blob/master/text/1717-dllimport.md
  609. [`hr_lifetime_in_assoc_type` lint]: https://github.com/rust-lang/rust/issues/33685
  610. [`legacy_imports`]: https://github.com/rust-lang/rust/pull/38271
  611. [cargo/3102]: https://github.com/rust-lang/cargo/pull/3102
  612. [cargo/3221]: https://github.com/rust-lang/cargo/pull/3221
  613. [cargo/3310]: https://github.com/rust-lang/cargo/pull/3310
  614. [cargo/3311]: https://github.com/rust-lang/cargo/pull/3311
  615. [cargo/3319]: https://github.com/rust-lang/cargo/pull/3319
  616. [cargo/3336]: https://github.com/rust-lang/cargo/pull/3336
  617. [cargo/3338]: https://github.com/rust-lang/cargo/pull/3338
  618. [cargo/3348]: https://github.com/rust-lang/cargo/pull/3348
  619. [cargo/3356]: https://github.com/rust-lang/cargo/pull/3356
  620. [cargo/3361]: https://github.com/rust-lang/cargo/pull/3361
  621. [cargo/3363]: https://github.com/rust-lang/cargo/pull/3363
  622. [cargo/3368]: https://github.com/rust-lang/cargo/issues/3368
  623. [cargo/3409]: https://github.com/rust-lang/cargo/pull/3409
  624. [cargo/3410]: https://github.com/rust-lang/cargo/pull/3410
  625. [`std::iter::Iterator::min_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.min_by
  626. [`std::iter::Iterator::max_by`]: https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.max_by
  627. [`std::os::*::fs::FileExt`]: https://doc.rust-lang.org/std/os/unix/fs/trait.FileExt.html
  628. [`std::sync::atomic::Atomic*::get_mut`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.get_mut
  629. [`std::sync::atomic::Atomic*::into_inner`]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU8.html#method.into_inner
  630. [`std::vec::IntoIter::as_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_slice
  631. [`std::vec::IntoIter::as_mut_slice`]: https://doc.rust-lang.org/std/vec/struct.IntoIter.html#method.as_mut_slice
  632. [`std::sync::mpsc::Receiver::try_iter`]: https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.try_iter
  633. [`std::os::unix::process::CommandExt::before_exec`]: https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html#tymethod.before_exec
  634. [`std::rc::Rc::strong_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.strong_count
  635. [`std::rc::Rc::weak_count`]: https://doc.rust-lang.org/std/rc/struct.Rc.html#method.weak_count
  636. [`std::sync::Arc::strong_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.strong_count
  637. [`std::sync::Arc::weak_count`]: https://doc.rust-lang.org/std/sync/struct.Arc.html#method.weak_count
  638. [`std::char::encode_utf8`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf8
  639. [`std::char::encode_utf16`]: https://doc.rust-lang.org/std/primitive.char.html#method.encode_utf16
  640. [`std::cell::Ref::clone`]: https://doc.rust-lang.org/std/cell/struct.Ref.html#method.clone
  641. [`std::io::Take::into_inner`]: https://doc.rust-lang.org/std/io/struct.Take.html#method.into_inner
  642. Version 1.14.0 (2016-12-22)
  643. ===========================
  644. Language
  645. --------
  646. * [`..` matches multiple tuple fields in enum variants, structs
  647. and tuples][36843]. [RFC 1492].
  648. * [Safe `fn` items can be coerced to `unsafe fn` pointers][37389]
  649. * [`use *` and `use ::*` both glob-import from the crate root][37367]
  650. * [It's now possible to call a `Vec<Box<Fn()>>` without explicit
  651. dereferencing][36822]
  652. Compiler
  653. --------
  654. * [Mark enums with non-zero discriminant as non-zero][37224]
  655. * [Lower-case `static mut` names are linted like other
  656. statics and consts][37162]
  657. * [Fix ICE on some macros in const integer positions
  658. (e.g. `[u8; m!()]`)][36819]
  659. * [Improve error message and snippet for "did you mean `x`"][36798]
  660. * [Add a panic-strategy field to the target specification][36794]
  661. * [Include LLVM version in `--version --verbose`][37200]
  662. Compile-time Optimizations
  663. --------------------------
  664. * [Improve macro expansion performance][37569]
  665. * [Shrink `Expr_::ExprInlineAsm`][37445]
  666. * [Replace all uses of SHA-256 with BLAKE2b][37439]
  667. * [Reduce the number of bytes hashed by `IchHasher`][37427]
  668. * [Avoid more allocations when compiling html5ever][37373]
  669. * [Use `SmallVector` in `CombineFields::instantiate`][37322]
  670. * [Avoid some allocations in the macro parser][37318]
  671. * [Use a faster deflate setting][37298]
  672. * [Add `ArrayVec` and `AccumulateVec` to reduce heap allocations
  673. during interning of slices][37270]
  674. * [Optimize `write_metadata`][37267]
  675. * [Don't process obligation forest cycles when stalled][37231]
  676. * [Avoid many `CrateConfig` clones][37161]
  677. * [Optimize `Substs::super_fold_with`][37108]
  678. * [Optimize `ObligationForest`'s `NodeState` handling][36993]
  679. * [Speed up `plug_leaks`][36917]
  680. Libraries
  681. ---------
  682. * [`println!()`, with no arguments, prints newline][36825].
  683. Previously, an empty string was required to achieve the same.
  684. * [`Wrapping` impls standard binary and unary operators, as well as
  685. the `Sum` and `Product` iterators][37356]
  686. * [Implement `From<Cow<str>> for String` and `From<Cow<[T]>> for
  687. Vec<T>`][37326]
  688. * [Improve `fold` performance for `chain`, `cloned`, `map`, and
  689. `VecDeque` iterators][37315]
  690. * [Improve `SipHasher` performance on small values][37312]
  691. * [Add Iterator trait TrustedLen to enable better FromIterator /
  692. Extend][37306]
  693. * [Expand `.zip()` specialization to `.map()` and `.cloned()`][37230]
  694. * [`ReadDir` implements `Debug`][37221]
  695. * [Implement `RefUnwindSafe` for atomic types][37178]
  696. * [Specialize `Vec::extend` to `Vec::extend_from_slice`][37094]
  697. * [Avoid allocations in `Decoder::read_str`][37064]
  698. * [`io::Error` implements `From<io::ErrorKind>`][37037]
  699. * [Impl `Debug` for raw pointers to unsized data][36880]
  700. * [Don't reuse `HashMap` random seeds][37470]
  701. * [The internal memory layout of `HashMap` is more cache-friendly, for
  702. significant improvements in some operations][36692]
  703. * [`HashMap` uses less memory on 32-bit architectures][36595]
  704. * [Impl `Add<{str, Cow<str>}>` for `Cow<str>`][36430]
  705. Cargo
  706. -----
  707. * [Expose rustc cfg values to build scripts][cargo/3243]
  708. * [Allow cargo to work with read-only `CARGO_HOME`][cargo/3259]
  709. * [Fix passing --features when testing multiple packages][cargo/3280]
  710. * [Use a single profile set per workspace][cargo/3249]
  711. * [Load `replace` sections from lock files][cargo/3220]
  712. * [Ignore `panic` configuration for test/bench profiles][cargo/3175]
  713. Tooling
  714. -------
  715. * [rustup is the recommended Rust installation method][1.14rustup]
  716. * This release includes host (rustc) builds for Linux on MIPS, PowerPC, and
  717. S390x. These are [tier 2] platforms and may have major defects. Follow the
  718. instructions on the website to install, or add the targets to an existing
  719. installation with `rustup target add`. The new target triples are:
  720. - `mips-unknown-linux-gnu`
  721. - `mipsel-unknown-linux-gnu`
  722. - `mips64-unknown-linux-gnuabi64`
  723. - `mips64el-unknown-linux-gnuabi64 `
  724. - `powerpc-unknown-linux-gnu`
  725. - `powerpc64-unknown-linux-gnu`
  726. - `powerpc64le-unknown-linux-gnu`
  727. - `s390x-unknown-linux-gnu `
  728. * This release includes target (std) builds for ARM Linux running MUSL
  729. libc. These are [tier 2] platforms and may have major defects. Add the
  730. following triples to an existing rustup installation with `rustup target add`:
  731. - `arm-unknown-linux-musleabi`
  732. - `arm-unknown-linux-musleabihf`
  733. - `armv7-unknown-linux-musleabihf`
  734. * This release includes [experimental support for WebAssembly][1.14wasm], via
  735. the `wasm32-unknown-emscripten` target. This target is known to have major
  736. defects. Please test, report, and fix.
  737. * rustup no longer installs documentation by default. Run `rustup
  738. component add rust-docs` to install.
  739. * [Fix line stepping in debugger][37310]
  740. * [Enable line number debuginfo in releases][37280]
  741. Misc
  742. ----
  743. * [Disable jemalloc on aarch64/powerpc/mips][37392]
  744. * [Add support for Fuchsia OS][37313]
  745. * [Detect local-rebuild by only MAJOR.MINOR version][37273]
  746. Compatibility Notes
  747. -------------------
  748. * [A number of forward-compatibility lints used by the compiler
  749. to gradually introduce language changes have been converted
  750. to deny by default][36894]:
  751. - ["use of inaccessible extern crate erroneously allowed"][36886]
  752. - ["type parameter default erroneously allowed in invalid location"][36887]
  753. - ["detects super or self keywords at the beginning of global path"][36888]
  754. - ["two overlapping inherent impls define an item with the same name
  755. were erroneously allowed"][36889]
  756. - ["floating-point constants cannot be used in patterns"][36890]
  757. - ["constants of struct or enum type can only be used in a pattern if
  758. the struct or enum has `#[derive(PartialEq, Eq)]`"][36891]
  759. - ["lifetimes or labels named `'_` were erroneously allowed"][36892]
  760. * [Prohibit patterns in trait methods without bodies][37378]
  761. * [The atomic `Ordering` enum may not be matched exhaustively][37351]
  762. * [Future-proofing `#[no_link]` breaks some obscure cases][37247]
  763. * [The `$crate` macro variable is accepted in fewer locations][37213]
  764. * [Impls specifying extra region requirements beyond the trait
  765. they implement are rejected][37167]
  766. * [Enums may not be unsized][37111]. Unsized enums are intended to
  767. work but never have. For now they are forbidden.
  768. * [Enforce the shadowing restrictions from RFC 1560 for today's macros][36767]
  769. [tier 2]: https://forge.rust-lang.org/platform-support.html
  770. [1.14rustup]: https://internals.rust-lang.org/t/beta-testing-rustup-rs/3316/204
  771. [1.14wasm]: https://users.rust-lang.org/t/compiling-to-the-web-with-rust-and-emscripten/7627
  772. [36430]: https://github.com/rust-lang/rust/pull/36430
  773. [36595]: https://github.com/rust-lang/rust/pull/36595
  774. [36595]: https://github.com/rust-lang/rust/pull/36595
  775. [36692]: https://github.com/rust-lang/rust/pull/36692
  776. [36767]: https://github.com/rust-lang/rust/pull/36767
  777. [36794]: https://github.com/rust-lang/rust/pull/36794
  778. [36798]: https://github.com/rust-lang/rust/pull/36798
  779. [36819]: https://github.com/rust-lang/rust/pull/36819
  780. [36822]: https://github.com/rust-lang/rust/pull/36822
  781. [36825]: https://github.com/rust-lang/rust/pull/36825
  782. [36843]: https://github.com/rust-lang/rust/pull/36843
  783. [36880]: https://github.com/rust-lang/rust/pull/36880
  784. [36886]: https://github.com/rust-lang/rust/issues/36886
  785. [36887]: https://github.com/rust-lang/rust/issues/36887
  786. [36888]: https://github.com/rust-lang/rust/issues/36888
  787. [36889]: https://github.com/rust-lang/rust/issues/36889
  788. [36890]: https://github.com/rust-lang/rust/issues/36890
  789. [36891]: https://github.com/rust-lang/rust/issues/36891
  790. [36892]: https://github.com/rust-lang/rust/issues/36892
  791. [36894]: https://github.com/rust-lang/rust/pull/36894
  792. [36917]: https://github.com/rust-lang/rust/pull/36917
  793. [36993]: https://github.com/rust-lang/rust/pull/36993
  794. [37037]: https://github.com/rust-lang/rust/pull/37037
  795. [37064]: https://github.com/rust-lang/rust/pull/37064
  796. [37094]: https://github.com/rust-lang/rust/pull/37094
  797. [37108]: https://github.com/rust-lang/rust/pull/37108
  798. [37111]: https://github.com/rust-lang/rust/pull/37111
  799. [37161]: https://github.com/rust-lang/rust/pull/37161
  800. [37162]: https://github.com/rust-lang/rust/pull/37162
  801. [37167]: https://github.com/rust-lang/rust/pull/37167
  802. [37178]: https://github.com/rust-lang/rust/pull/37178
  803. [37200]: https://github.com/rust-lang/rust/pull/37200
  804. [37213]: https://github.com/rust-lang/rust/pull/37213
  805. [37221]: https://github.com/rust-lang/rust/pull/37221
  806. [37224]: https://github.com/rust-lang/rust/pull/37224
  807. [37230]: https://github.com/rust-lang/rust/pull/37230
  808. [37231]: https://github.com/rust-lang/rust/pull/37231
  809. [37247]: https://github.com/rust-lang/rust/pull/37247
  810. [37267]: https://github.com/rust-lang/rust/pull/37267
  811. [37270]: https://github.com/rust-lang/rust/pull/37270
  812. [37273]: https://github.com/rust-lang/rust/pull/37273
  813. [37280]: https://github.com/rust-lang/rust/pull/37280
  814. [37298]: https://github.com/rust-lang/rust/pull/37298
  815. [37306]: https://github.com/rust-lang/rust/pull/37306
  816. [37310]: https://github.com/rust-lang/rust/pull/37310
  817. [37312]: https://github.com/rust-lang/rust/pull/37312
  818. [37313]: https://github.com/rust-lang/rust/pull/37313
  819. [37315]: https://github.com/rust-lang/rust/pull/37315
  820. [37318]: https://github.com/rust-lang/rust/pull/37318
  821. [37322]: https://github.com/rust-lang/rust/pull/37322
  822. [37326]: https://github.com/rust-lang/rust/pull/37326
  823. [37351]: https://github.com/rust-lang/rust/pull/37351
  824. [37356]: https://github.com/rust-lang/rust/pull/37356
  825. [37367]: https://github.com/rust-lang/rust/pull/37367
  826. [37373]: https://github.com/rust-lang/rust/pull/37373
  827. [37378]: https://github.com/rust-lang/rust/pull/37378
  828. [37389]: https://github.com/rust-lang/rust/pull/37389
  829. [37392]: https://github.com/rust-lang/rust/pull/37392
  830. [37427]: https://github.com/rust-lang/rust/pull/37427
  831. [37439]: https://github.com/rust-lang/rust/pull/37439
  832. [37445]: https://github.com/rust-lang/rust/pull/37445
  833. [37470]: https://github.com/rust-lang/rust/pull/37470
  834. [37569]: https://github.com/rust-lang/rust/pull/37569
  835. [RFC 1492]: https://github.com/rust-lang/rfcs/blob/master/text/1492-dotdot-in-patterns.md
  836. [cargo/3175]: https://github.com/rust-lang/cargo/pull/3175
  837. [cargo/3220]: https://github.com/rust-lang/cargo/pull/3220
  838. [cargo/3243]: https://github.com/rust-lang/cargo/pull/3243
  839. [cargo/3249]: https://github.com/rust-lang/cargo/pull/3249
  840. [cargo/3259]: https://github.com/rust-lang/cargo/pull/3259
  841. [cargo/3280]: https://github.com/rust-lang/cargo/pull/3280
  842. Version 1.13.0 (2016-11-10)
  843. ===========================
  844. Language
  845. --------
  846. * [Stabilize the `?` operator][36995]. `?` is a simple way to propagate
  847. errors, like the `try!` macro, described in [RFC 0243].
  848. * [Stabilize macros in type position][36014]. Described in [RFC 873].
  849. * [Stabilize attributes on statements][36995]. Described in [RFC 0016].
  850. * [Fix `#[derive]` for empty tuple structs/variants][35728]
  851. * [Fix lifetime rules for 'if' conditions][36029]
  852. * [Avoid loading and parsing unconfigured non-inline modules][36482]
  853. Compiler
  854. --------
  855. * [Add the `-C link-arg` argument][36574]
  856. * [Remove the old AST-based backend from rustc_trans][35764]
  857. * [Don't enable NEON by default on armv7 Linux][35814]
  858. * [Fix debug line number info for macro expansions][35238]
  859. * [Do not emit "class method" debuginfo for types that are not
  860. DICompositeType][36008]
  861. * [Warn about multiple conflicting #[repr] hints][34623]
  862. * [When sizing DST, don't double-count nested struct prefixes][36351]
  863. * [Default RUST_MIN_STACK to 16MiB for now][36505]
  864. * [Improve rlib metadata format][36551]. Reduces rlib size significantly.
  865. * [Reject macros with empty repetitions to avoid infinite loop][36721]
  866. * [Expand macros without recursing to avoid stack overflows][36214]
  867. Diagnostics
  868. -----------
  869. * [Replace macro backtraces with labeled local uses][35702]
  870. * [Improve error message for missplaced doc comments][33922]
  871. * [Buffer unix and lock windows to prevent message interleaving][35975]
  872. * [Update lifetime errors to specifically note temporaries][36171]
  873. * [Special case a few colors for Windows][36178]
  874. * [Suggest `use self` when such an import resolves][36289]
  875. * [Be more specific when type parameter shadows primitive type][36338]
  876. * Many minor improvements
  877. Compile-time Optimizations
  878. --------------------------
  879. * [Compute and cache HIR hashes at beginning][35854]
  880. * [Don't hash types in loan paths][36004]
  881. * [Cache projections in trans][35761]
  882. * [Optimize the parser's last token handling][36527]
  883. * [Only instantiate #[inline] functions in codegen units referencing
  884. them][36524]. This leads to big improvements in cases where crates export
  885. define many inline functions without using them directly.
  886. * [Lazily allocate TypedArena's first chunk][36592]
  887. * [Don't allocate during default HashSet creation][36734]
  888. Stabilized APIs
  889. ---------------
  890. * [`checked_abs`]
  891. * [`wrapping_abs`]
  892. * [`overflowing_abs`]
  893. * [`RefCell::try_borrow`]
  894. * [`RefCell::try_borrow_mut`]
  895. Libraries
  896. ---------
  897. * [Add `assert_ne!` and `debug_assert_ne!`][35074]
  898. * [Make `vec_deque::Drain`, `hash_map::Drain`, and `hash_set::Drain`
  899. covariant][35354]
  900. * [Implement `AsRef<[T]>` for `std::slice::Iter`][35559]
  901. * [Implement `Debug` for `std::vec::IntoIter`][35707]
  902. * [`CString`: avoid excessive growth just to 0-terminate][35871]
  903. * [Implement `CoerceUnsized` for `{Cell, RefCell, UnsafeCell}`][35627]
  904. * [Use arc4rand on FreeBSD][35884]
  905. * [memrchr: Correct aligned offset computation][35969]
  906. * [Improve Demangling of Rust Symbols][36059]
  907. * [Use monotonic time in condition variables][35048]
  908. * [Implement `Debug` for `std::path::{Components,Iter}`][36101]
  909. * [Implement conversion traits for `char`][35755]
  910. * [Fix illegal instruction caused by overflow in channel cloning][36104]
  911. * [Zero first byte of CString on drop][36264]
  912. * [Inherit overflow checks for sum and product][36372]
  913. * [Add missing Eq implementations][36423]
  914. * [Implement `Debug` for `DirEntry`][36631]
  915. * [When `getaddrinfo` returns `EAI_SYSTEM` retrieve actual error from
  916. `errno`][36754]
  917. * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
  918. * [Implement more traits for `std::io::ErrorKind`][35911]
  919. * [Optimize BinaryHeap bounds checking][36072]
  920. * [Work around pointer aliasing issue in `Vec::extend_from_slice`,
  921. `extend_with_element`][36355]
  922. * [Fix overflow checking in unsigned pow()][34942]
  923. Cargo
  924. -----
  925. * This release includes security fixes to both curl and OpenSSL.
  926. * [Fix transitive doctests when panic=abort][cargo/3021]
  927. * [Add --all-features flag to cargo][cargo/3038]
  928. * [Reject path-based dependencies in `cargo package`][cargo/3060]
  929. * [Don't parse the home directory more than once][cargo/3078]
  930. * [Don't try to generate Cargo.lock on empty workspaces][cargo/3092]
  931. * [Update OpenSSL to 1.0.2j][cargo/3121]
  932. * [Add license and license_file to cargo metadata output][cargo/3110]
  933. * [Make crates-io registry URL optional in config; ignore all changes to
  934. source.crates-io][cargo/3089]
  935. * [Don't download dependencies from other platforms][cargo/3123]
  936. * [Build transitive dev-dependencies when needed][cargo/3125]
  937. * [Add support for per-target rustflags in .cargo/config][cargo/3157]
  938. * [Avoid updating registry when adding existing deps][cargo/3144]
  939. * [Warn about path overrides that won't work][cargo/3136]
  940. * [Use workspaces during `cargo install`][cargo/3146]
  941. * [Leak mspdbsrv.exe processes on Windows][cargo/3162]
  942. * [Add --message-format flag][cargo/3000]
  943. * [Pass target environment for rustdoc][cargo/3205]
  944. * [Use `CommandExt::exec` for `cargo run` on Unix][cargo/2818]
  945. * [Update curl and curl-sys][cargo/3241]
  946. * [Call rustdoc test with the correct cfg flags of a package][cargo/3242]
  947. Tooling
  948. -------
  949. * [rustdoc: Add the `--sysroot` argument][36586]
  950. * [rustdoc: Fix a couple of issues with the search results][35655]
  951. * [rustdoc: remove the `!` from macro URLs and titles][35234]
  952. * [gdb: Fix pretty-printing special-cased Rust types][35585]
  953. * [rustdoc: Filter more incorrect methods inherited through Deref][36266]
  954. Misc
  955. ----
  956. * [Remove unmaintained style guide][35124]
  957. * [Add s390x support][36369]
  958. * [Initial work at Haiku OS support][36727]
  959. * [Add mips-uclibc targets][35734]
  960. * [Crate-ify compiler-rt into compiler-builtins][35021]
  961. * [Add rustc version info (git hash + date) to dist tarball][36213]
  962. * Many documentation improvements
  963. Compatibility Notes
  964. -------------------
  965. * [`SipHasher`] is deprecated. Use [`DefaultHasher`].
  966. * [Deny (by default) transmuting from fn item types to pointer-sized
  967. types][34923]. Continuing the long transition to zero-sized fn items,
  968. per [RFC 401].
  969. * [Fix `#[derive]` for empty tuple structs/variants][35728].
  970. Part of [RFC 1506].
  971. * [Issue deprecation warnings for safe accesses to extern statics][36173]
  972. * [Fix lifetime rules for 'if' conditions][36029].
  973. * [Inherit overflow checks for sum and product][36372].
  974. * [Forbid user-defined macros named "macro_rules"][36730].
  975. [33922]: https://github.com/rust-lang/rust/pull/33922
  976. [34623]: https://github.com/rust-lang/rust/pull/34623
  977. [34923]: https://github.com/rust-lang/rust/pull/34923
  978. [34942]: https://github.com/rust-lang/rust/pull/34942
  979. [34982]: https://github.com/rust-lang/rust/pull/34982
  980. [35021]: https://github.com/rust-lang/rust/pull/35021
  981. [35048]: https://github.com/rust-lang/rust/pull/35048
  982. [35074]: https://github.com/rust-lang/rust/pull/35074
  983. [35124]: https://github.com/rust-lang/rust/pull/35124
  984. [35234]: https://github.com/rust-lang/rust/pull/35234
  985. [35238]: https://github.com/rust-lang/rust/pull/35238
  986. [35354]: https://github.com/rust-lang/rust/pull/35354
  987. [35559]: https://github.com/rust-lang/rust/pull/35559
  988. [35585]: https://github.com/rust-lang/rust/pull/35585
  989. [35627]: https://github.com/rust-lang/rust/pull/35627
  990. [35655]: https://github.com/rust-lang/rust/pull/35655
  991. [35702]: https://github.com/rust-lang/rust/pull/35702
  992. [35707]: https://github.com/rust-lang/rust/pull/35707
  993. [35728]: https://github.com/rust-lang/rust/pull/35728
  994. [35734]: https://github.com/rust-lang/rust/pull/35734
  995. [35755]: https://github.com/rust-lang/rust/pull/35755
  996. [35761]: https://github.com/rust-lang/rust/pull/35761
  997. [35764]: https://github.com/rust-lang/rust/pull/35764
  998. [35814]: https://github.com/rust-lang/rust/pull/35814
  999. [35854]: https://github.com/rust-lang/rust/pull/35854
  1000. [35871]: https://github.com/rust-lang/rust/pull/35871
  1001. [35884]: https://github.com/rust-lang/rust/pull/35884
  1002. [35911]: https://github.com/rust-lang/rust/pull/35911
  1003. [35969]: https://github.com/rust-lang/rust/pull/35969
  1004. [35975]: https://github.com/rust-lang/rust/pull/35975
  1005. [36004]: https://github.com/rust-lang/rust/pull/36004
  1006. [36008]: https://github.com/rust-lang/rust/pull/36008
  1007. [36014]: https://github.com/rust-lang/rust/pull/36014
  1008. [36029]: https://github.com/rust-lang/rust/pull/36029
  1009. [36059]: https://github.com/rust-lang/rust/pull/36059
  1010. [36072]: https://github.com/rust-lang/rust/pull/36072
  1011. [36101]: https://github.com/rust-lang/rust/pull/36101
  1012. [36104]: https://github.com/rust-lang/rust/pull/36104
  1013. [36171]: https://github.com/rust-lang/rust/pull/36171
  1014. [36173]: https://github.com/rust-lang/rust/pull/36173
  1015. [36178]: https://github.com/rust-lang/rust/pull/36178
  1016. [36213]: https://github.com/rust-lang/rust/pull/36213
  1017. [36214]: https://github.com/rust-lang/rust/pull/36214
  1018. [36264]: https://github.com/rust-lang/rust/pull/36264
  1019. [36266]: https://github.com/rust-lang/rust/pull/36266
  1020. [36289]: https://github.com/rust-lang/rust/pull/36289
  1021. [36338]: https://github.com/rust-lang/rust/pull/36338
  1022. [36351]: https://github.com/rust-lang/rust/pull/36351
  1023. [36355]: https://github.com/rust-lang/rust/pull/36355
  1024. [36369]: https://github.com/rust-lang/rust/pull/36369
  1025. [36372]: https://github.com/rust-lang/rust/pull/36372
  1026. [36423]: https://github.com/rust-lang/rust/pull/36423
  1027. [36482]: https://github.com/rust-lang/rust/pull/36482
  1028. [36505]: https://github.com/rust-lang/rust/pull/36505
  1029. [36524]: https://github.com/rust-lang/rust/pull/36524
  1030. [36527]: https://github.com/rust-lang/rust/pull/36527
  1031. [36551]: https://github.com/rust-lang/rust/pull/36551
  1032. [36574]: https://github.com/rust-lang/rust/pull/36574
  1033. [36586]: https://github.com/rust-lang/rust/pull/36586
  1034. [36592]: https://github.com/rust-lang/rust/pull/36592
  1035. [36631]: https://github.com/rust-lang/rust/pull/36631
  1036. [36639]: https://github.com/rust-lang/rust/pull/36639
  1037. [36721]: https://github.com/rust-lang/rust/pull/36721
  1038. [36727]: https://github.com/rust-lang/rust/pull/36727
  1039. [36730]: https://github.com/rust-lang/rust/pull/36730
  1040. [36734]: https://github.com/rust-lang/rust/pull/36734
  1041. [36754]: https://github.com/rust-lang/rust/pull/36754
  1042. [36995]: https://github.com/rust-lang/rust/pull/36995
  1043. [RFC 0016]: https://github.com/rust-lang/rfcs/blob/master/text/0016-more-attributes.md
  1044. [RFC 0243]: https://github.com/rust-lang/rfcs/blob/master/text/0243-trait-based-exception-handling.md
  1045. [RFC 1506]: https://github.com/rust-lang/rfcs/blob/master/text/1506-adt-kinds.md
  1046. [RFC 401]: https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md
  1047. [RFC 873]: https://github.com/rust-lang/rfcs/blob/master/text/0873-type-macros.md
  1048. [cargo/2818]: https://github.com/rust-lang/cargo/pull/2818
  1049. [cargo/3000]: https://github.com/rust-lang/cargo/pull/3000
  1050. [cargo/3021]: https://github.com/rust-lang/cargo/pull/3021
  1051. [cargo/3038]: https://github.com/rust-lang/cargo/pull/3038
  1052. [cargo/3060]: https://github.com/rust-lang/cargo/pull/3060
  1053. [cargo/3078]: https://github.com/rust-lang/cargo/pull/3078
  1054. [cargo/3089]: https://github.com/rust-lang/cargo/pull/3089
  1055. [cargo/3092]: https://github.com/rust-lang/cargo/pull/3092
  1056. [cargo/3110]: https://github.com/rust-lang/cargo/pull/3110
  1057. [cargo/3121]: https://github.com/rust-lang/cargo/pull/3121
  1058. [cargo/3123]: https://github.com/rust-lang/cargo/pull/3123
  1059. [cargo/3125]: https://github.com/rust-lang/cargo/pull/3125
  1060. [cargo/3136]: https://github.com/rust-lang/cargo/pull/3136
  1061. [cargo/3144]: https://github.com/rust-lang/cargo/pull/3144
  1062. [cargo/3146]: https://github.com/rust-lang/cargo/pull/3146
  1063. [cargo/3157]: https://github.com/rust-lang/cargo/pull/3157
  1064. [cargo/3162]: https://github.com/rust-lang/cargo/pull/3162
  1065. [cargo/3205]: https://github.com/rust-lang/cargo/pull/3205
  1066. [cargo/3241]: https://github.com/rust-lang/cargo/pull/3241
  1067. [cargo/3242]: https://github.com/rust-lang/cargo/pull/3242
  1068. [rustup]: https://www.rustup.rs
  1069. [`checked_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.checked_abs
  1070. [`wrapping_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.wrapping_abs
  1071. [`overflowing_abs`]: https://doc.rust-lang.org/std/primitive.i32.html#method.overflowing_abs
  1072. [`RefCell::try_borrow`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow
  1073. [`RefCell::try_borrow_mut`]: https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.try_borrow_mut
  1074. [`SipHasher`]: https://doc.rust-lang.org/std/hash/struct.SipHasher.html
  1075. [`DefaultHasher`]: https://doc.rust-lang.org/std/collections/hash_map/struct.DefaultHasher.html
  1076. Version 1.12.1 (2016-10-20)
  1077. ===========================
  1078. Regression Fixes
  1079. ----------------
  1080. * [ICE: 'rustc' panicked at 'assertion failed: concrete_substs.is_normalized_for_trans()' #36381][36381]
  1081. * [Confusion with double negation and booleans][36856]
  1082. * [rustc 1.12.0 fails with SIGSEGV in release mode (syn crate 0.8.0)][36875]
  1083. * [Rustc 1.12.0 Windows build of `ethcore` crate fails with LLVM error][36924]
  1084. * [1.12.0: High memory usage when linking in release mode with debug info][36926]
  1085. * [Corrupted memory after updated to 1.12][36936]
  1086. * ["Let NullaryConstructor = something;" causes internal compiler error: "tried to overwrite interned AdtDef"][37026]
  1087. * [Fix ICE: inject bitcast if types mismatch for invokes/calls/stores][37112]
  1088. * [debuginfo: Handle spread_arg case in MIR-trans in a more stable way.][37153]
  1089. [36381]: https://github.com/rust-lang/rust/issues/36381
  1090. [36856]: https://github.com/rust-lang/rust/issues/36856
  1091. [36875]: https://github.com/rust-lang/rust/issues/36875
  1092. [36924]: https://github.com/rust-lang/rust/issues/36924
  1093. [36926]: https://github.com/rust-lang/rust/issues/36926
  1094. [36936]: https://github.com/rust-lang/rust/issues/36936
  1095. [37026]: https://github.com/rust-lang/rust/issues/37026
  1096. [37112]: https://github.com/rust-lang/rust/issues/37112
  1097. [37153]: https://github.com/rust-lang/rust/issues/37153
  1098. Version 1.12.0 (2016-09-29)
  1099. ===========================
  1100. Highlights
  1101. ----------
  1102. * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
  1103. This translation pass is far simpler than the previous AST->LLVM pass, and
  1104. creates opportunities to perform new optimizations directly on the MIR. It
  1105. was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
  1106. * [`rustc` presents a new, more readable error format, along with
  1107. machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
  1108. Most common editors supporting Rust have been updated to work with it. It was
  1109. previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
  1110. Compiler
  1111. --------
  1112. * [`rustc` translates code to LLVM IR via its own "middle" IR (MIR)](https://github.com/rust-lang/rust/pull/34096).
  1113. This translation pass is far simpler than the previous AST->LLVM pass, and
  1114. creates opportunities to perform new optimizations directly on the MIR. It
  1115. was previously described [on the Rust blog](https://blog.rust-lang.org/2016/04/19/MIR.html).
  1116. * [Print the Rust target name, not the LLVM target name, with
  1117. `--print target-list`](https://github.com/rust-lang/rust/pull/35489)
  1118. * [The computation of `TypeId` is correct in some cases where it was previously
  1119. producing inconsistent results](https://github.com/rust-lang/rust/pull/35267)
  1120. * [The `mips-unknown-linux-gnu` target uses hardware floating point by default](https://github.com/rust-lang/rust/pull/34910)
  1121. * [The `rustc` arguments, `--print target-cpus`, `--print target-features`,
  1122. `--print relocation-models`, and `--print code-models` print the available
  1123. options to the `-C target-cpu`, `-C target-feature`, `-C relocation-model` and
  1124. `-C code-model` code generation arguments](https://github.com/rust-lang/rust/pull/34845)
  1125. * [`rustc` supports three new MUSL targets on ARM: `arm-unknown-linux-musleabi`,
  1126. `arm-unknown-linux-musleabihf`, and `armv7-unknown-linux-musleabihf`](https://github.com/rust-lang/rust/pull/35060).
  1127. These targets produce statically-linked binaries. There are no binary release
  1128. builds yet though.
  1129. Diagnostics
  1130. -----------
  1131. * [`rustc` presents a new, more readable error format, along with
  1132. machine-readable JSON error output for use by IDEs](https://github.com/rust-lang/rust/pull/35401).
  1133. Most common editors supporting Rust have been updated to work with it. It was
  1134. previously described [on the Rust blog](https://blog.rust-lang.org/2016/08/10/Shape-of-errors-to-come.html).
  1135. * [In error descriptions, references are now described in plain English,
  1136. instead of as "&-ptr"](https://github.com/rust-lang/rust/pull/35611)
  1137. * [In error type descriptions, unknown numeric types are named `{integer}` or
  1138. `{float}` instead of `_`](https://github.com/rust-lang/rust/pull/35080)
  1139. * [`rustc` emits a clearer error when inner attributes follow a doc comment](https://github.com/rust-lang/rust/pull/34676)
  1140. Language
  1141. --------
  1142. * [`macro_rules!` invocations can be made within `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34925)
  1143. * [`macro_rules!` meta-variables are hygienic](https://github.com/rust-lang/rust/pull/35453)
  1144. * [`macro_rules!` `tt` matchers can be reparsed correctly, making them much more
  1145. useful](https://github.com/rust-lang/rust/pull/34908)
  1146. * [`macro_rules!` `stmt` matchers correctly consume the entire contents when
  1147. inside non-braces invocations](https://github.com/rust-lang/rust/pull/34886)
  1148. * [Semicolons are properly required as statement delimeters inside
  1149. `macro_rules!` invocations](https://github.com/rust-lang/rust/pull/34660)
  1150. * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
  1151. Stabilized APIs
  1152. ---------------
  1153. * [`Cell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.as_ptr)
  1154. * [`RefCell::as_ptr`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.as_ptr)
  1155. * [`IpAddr::is_unspecified`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_unspecified)
  1156. * [`IpAddr::is_loopback`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_loopback)
  1157. * [`IpAddr::is_multicast`](https://doc.rust-lang.org/std/net/enum.IpAddr.html#method.is_multicast)
  1158. * [`Ipv4Addr::is_unspecified`](https://doc.rust-lang.org/std/net/struct.Ipv4Addr.html#method.is_unspecified)
  1159. * [`Ipv6Addr::octets`](https://doc.rust-lang.org/std/net/struct.Ipv6Addr.html#method.octets)
  1160. * [`LinkedList::contains`](https://doc.rust-lang.org/std/collections/linked_list/struct.LinkedList.html#method.contains)
  1161. * [`VecDeque::contains`](https://doc.rust-lang.org/std/collections/vec_deque/struct.VecDeque.html#method.contains)
  1162. * [`ExitStatusExt::from_raw`](https://doc.rust-lang.org/std/os/unix/process/trait.ExitStatusExt.html#tymethod.from_raw).
  1163. Both on Unix and Windows.
  1164. * [`Receiver::recv_timeout`](https://doc.rust-lang.org/std/sync/mpsc/struct.Receiver.html#method.recv_timeout)
  1165. * [`RecvTimeoutError`](https://doc.rust-lang.org/std/sync/mpsc/enum.RecvTimeoutError.html)
  1166. * [`BinaryHeap::peek_mut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.peek_mut)
  1167. * [`PeekMut`](https://doc.rust-lang.org/std/collections/binary_heap/struct.PeekMut.html)
  1168. * [`iter::Product`](https://doc.rust-lang.org/std/iter/trait.Product.html)
  1169. * [`iter::Sum`](https://doc.rust-lang.org/std/iter/trait.Sum.html)
  1170. * [`OccupiedEntry::remove_entry`](https://doc.rust-lang.org/std/collections/btree_map/struct.OccupiedEntry.html#method.remove_entry)
  1171. * [`VacantEntry::into_key`](https://doc.rust-lang.org/std/collections/btree_map/struct.VacantEntry.html#method.into_key)
  1172. Libraries
  1173. ---------
  1174. * [The `format!` macro and friends now allow a single argument to be formatted
  1175. in multiple styles](https://github.com/rust-lang/rust/pull/33642)
  1176. * [The lifetime bounds on `[T]::binary_search_by` and
  1177. `[T]::binary_search_by_key` have been adjusted to be more flexible](https://github.com/rust-lang/rust/pull/34762)
  1178. * [`Option` implements `From` for its contained type](https://github.com/rust-lang/rust/pull/34828)
  1179. * [`Cell`, `RefCell` and `UnsafeCell` implement `From` for their contained type](https://github.com/rust-lang/rust/pull/35392)
  1180. * [`RwLock` panics if the reader count overflows](https://github.com/rust-lang/rust/pull/35378)
  1181. * [`vec_deque::Drain`, `hash_map::Drain` and `hash_set::Drain` are covariant](https://github.com/rust-lang/rust/pull/35354)
  1182. * [`vec::Drain` and `binary_heap::Drain` are covariant](https://github.com/rust-lang/rust/pull/34951)
  1183. * [`Cow<str>` implements `FromIterator` for `char`, `&str` and `String`](https://github.com/rust-lang/rust/pull/35064)
  1184. * [Sockets on Linux are correctly closed in subprocesses via `SOCK_CLOEXEC`](https://github.com/rust-lang/rust/pull/34946)
  1185. * [`hash_map::Entry`, `hash_map::VacantEntry` and `hash_map::OccupiedEntry`
  1186. implement `Debug`](https://github.com/rust-lang/rust/pull/34937)
  1187. * [`btree_map::Entry`, `btree_map::VacantEntry` and `btree_map::OccupiedEntry`
  1188. implement `Debug`](https://github.com/rust-lang/rust/pull/34885)
  1189. * [`String` implements `AddAssign`](https://github.com/rust-lang/rust/pull/34890)
  1190. * [Variadic `extern fn` pointers implement the `Clone`, `PartialEq`, `Eq`,
  1191. `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and `fmt::Debug` traits](https://github.com/rust-lang/rust/pull/34879)
  1192. * [`FileType` implements `Debug`](https://github.com/rust-lang/rust/pull/34757)
  1193. * [References to `Mutex` and `RwLock` are unwind-safe](https://github.com/rust-lang/rust/pull/34756)
  1194. * [`mpsc::sync_channel` `Receiver`s return any available message before
  1195. reporting a disconnect](https://github.com/rust-lang/rust/pull/34731)
  1196. * [Unicode definitions have been updated to 9.0](https://github.com/rust-lang/rust/pull/34599)
  1197. * [`env` iterators implement `DoubleEndedIterator`](https://github.com/rust-lang/rust/pull/33312)
  1198. Cargo
  1199. -----
  1200. * [Support local mirrors of registries](https://github.com/rust-lang/cargo/pull/2857)
  1201. * [Add support for command aliases](https://github.com/rust-lang/cargo/pull/2679)
  1202. * [Allow `opt-level="s"` / `opt-level="z"` in profile overrides](https://github.com/rust-lang/cargo/pull/3007)
  1203. * [Make `cargo doc --open --target` work as expected](https://github.com/rust-lang/cargo/pull/2988)
  1204. * [Speed up noop registry updates](https://github.com/rust-lang/cargo/pull/2974)
  1205. * [Update OpenSSL](https://github.com/rust-lang/cargo/pull/2971)
  1206. * [Fix `--panic=abort` with plugins](https://github.com/rust-lang/cargo/pull/2954)
  1207. * [Always pass `-C metadata` to the compiler](https://github.com/rust-lang/cargo/pull/2946)
  1208. * [Fix depending on git repos with workspaces](https://github.com/rust-lang/cargo/pull/2938)
  1209. * [Add a `--lib` flag to `cargo new`](https://github.com/rust-lang/cargo/pull/2921)
  1210. * [Add `http.cainfo` for custom certs](https://github.com/rust-lang/cargo/pull/2917)
  1211. * [Indicate the compilation profile after compiling](https://github.com/rust-lang/cargo/pull/2909)
  1212. * [Allow enabling features for dependencies with `--features`](https://github.com/rust-lang/cargo/pull/2876)
  1213. * [Add `--jobs` flag to `cargo package`](https://github.com/rust-lang/cargo/pull/2867)
  1214. * [Add `--dry-run` to `cargo publish`](https://github.com/rust-lang/cargo/pull/2849)
  1215. * [Add support for `RUSTDOCFLAGS`](https://github.com/rust-lang/cargo/pull/2794)
  1216. Performance
  1217. -----------
  1218. * [`panic::catch_unwind` is more optimized](https://github.com/rust-lang/rust/pull/35444)
  1219. * [`panic::catch_unwind` no longer accesses thread-local storage on entry](https://github.com/rust-lang/rust/pull/34866)
  1220. Tooling
  1221. -------
  1222. * [Test binaries now support a `--test-threads` argument to specify the number
  1223. of threads used to run tests, and which acts the same as the
  1224. `RUST_TEST_THREADS` environment variable](https://github.com/rust-lang/rust/pull/35414)
  1225. * [The test runner now emits a warning when tests run over 60 seconds](https://github.com/rust-lang/rust/pull/35405)
  1226. * [rustdoc: Fix methods in search results](https://github.com/rust-lang/rust/pull/34752)
  1227. * [`rust-lldb` warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
  1228. * [Rust releases now come with source packages that can be installed by rustup
  1229. via `rustup component add rust-src`](https://github.com/rust-lang/rust/pull/34366).
  1230. The resulting source code can be used by tools and IDES, located in the
  1231. sysroot under `lib/rustlib/src`.
  1232. Misc
  1233. ----
  1234. * [The compiler can now be built against LLVM 3.9](https://github.com/rust-lang/rust/pull/35594)
  1235. * Many minor improvements to the documentation.
  1236. * [The Rust exception handling "personality" routine is now written in Rust](https://github.com/rust-lang/rust/pull/34832)
  1237. Compatibility Notes
  1238. -------------------
  1239. * [When printing Windows `OsStr`s, unpaired surrogate codepoints are escaped
  1240. with the lowercase format instead of the uppercase](https://github.com/rust-lang/rust/pull/35084)
  1241. * [When formatting strings, if "precision" is specified, the "fill",
  1242. "align" and "width" specifiers are no longer ignored](https://github.com/rust-lang/rust/pull/34544)
  1243. * [The `Debug` impl for strings no longer escapes all non-ASCII characters](https://github.com/rust-lang/rust/pull/34485)
  1244. Version 1.11.0 (2016-08-18)
  1245. ===========================
  1246. Language
  1247. --------
  1248. * [`cfg_attr` works on `path` attributes](https://github.com/rust-lang/rust/pull/34546)
  1249. * [Support nested `cfg_attr` attributes](https://github.com/rust-lang/rust/pull/34216)
  1250. * [Allow statement-generating braced macro invocations at the end of blocks](https://github.com/rust-lang/rust/pull/34436)
  1251. * [Macros can be expanded inside of trait definitions](https://github.com/rust-lang/rust/pull/34213)
  1252. * [`#[macro_use]` works properly when it is itself expanded from a macro](https://github.com/rust-lang/rust/pull/34032)
  1253. Stabilized APIs
  1254. ---------------
  1255. * [`BinaryHeap::append`](https://doc.rust-lang.org/std/collections/binary_heap/struct.BinaryHeap.html#method.append)
  1256. * [`BTreeMap::append`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.append)
  1257. * [`BTreeMap::split_off`](https://doc.rust-lang.org/std/collections/btree_map/struct.BTreeMap.html#method.split_off)
  1258. * [`BTreeSet::append`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.append)
  1259. * [`BTreeSet::split_off`](https://doc.rust-lang.org/std/collections/btree_set/struct.BTreeSet.html#method.split_off)
  1260. * [`f32::to_degrees`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_degrees)
  1261. (in libcore - previously stabilized in libstd)
  1262. * [`f32::to_radians`](https://doc.rust-lang.org/std/primitive.f32.html#method.to_radians)
  1263. (in libcore - previously stabilized in libstd)
  1264. * [`f64::to_degrees`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_degrees)
  1265. (in libcore - previously stabilized in libstd)
  1266. * [`f64::to_radians`](https://doc.rust-lang.org/std/primitive.f64.html#method.to_radians)
  1267. (in libcore - previously stabilized in libstd)
  1268. * [`Iterator::sum`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
  1269. * [`Iterator::product`](https://doc.rust-lang.org/std/iter/trait.Iterator.html#method.sum)
  1270. * [`Cell::get_mut`](https://doc.rust-lang.org/std/cell/struct.Cell.html#method.get_mut)
  1271. * [`RefCell::get_mut`](https://doc.rust-lang.org/std/cell/struct.RefCell.html#method.get_mut)
  1272. Libraries
  1273. ---------
  1274. * [The `thread_local!` macro supports multiple definitions in a single
  1275. invocation, and can apply attributes](https://github.com/rust-lang/rust/pull/34077)
  1276. * [`Cow` implements `Default`](https://github.com/rust-lang/rust/pull/34305)
  1277. * [`Wrapping` implements binary, octal, lower-hex and upper-hex
  1278. `Display` formatting](https://github.com/rust-lang/rust/pull/34190)
  1279. * [The range types implement `Hash`](https://github.com/rust-lang/rust/pull/34180)
  1280. * [`lookup_host` ignores unknown address types](https://github.com/rust-lang/rust/pull/34067)
  1281. * [`assert_eq!` accepts a custom error message, like `assert!` does](https://github.com/rust-lang/rust/pull/33976)
  1282. * [The main thread is now called "main" instead of "&lt;main&gt;"](https://github.com/rust-lang/rust/pull/33803)
  1283. Cargo
  1284. -----
  1285. * [Disallow specifying features of transitive deps](https://github.com/rust-lang/cargo/pull/2821)
  1286. * [Add color support for Windows consoles](https://github.com/rust-lang/cargo/pull/2804)
  1287. * [Fix `harness = false` on `[lib]` sections](https://github.com/rust-lang/cargo/pull/2795)
  1288. * [Don't panic when `links` contains a '.'](https://github.com/rust-lang/cargo/pull/2787)
  1289. * [Build scripts can emit warnings](https://github.com/rust-lang/cargo/pull/2630),
  1290. and `-vv` prints warnings for all crates.
  1291. * [Ignore file locks on OS X NFS mounts](https://github.com/rust-lang/cargo/pull/2720)
  1292. * [Don't warn about `package.metadata` keys](https://github.com/rust-lang/cargo/pull/2668).
  1293. This provides room for expansion by arbitrary tools.
  1294. * [Add support for cdylib crate types](https://github.com/rust-lang/cargo/pull/2741)
  1295. * [Prevent publishing crates when files are dirty](https://github.com/rust-lang/cargo/pull/2781)
  1296. * [Don't fetch all crates on clean](https://github.com/rust-lang/cargo/pull/2704)
  1297. * [Propagate --color option to rustc](https://github.com/rust-lang/cargo/pull/2779)
  1298. * [Fix `cargo doc --open` on Windows](https://github.com/rust-lang/cargo/pull/2780)
  1299. * [Improve autocompletion](https://github.com/rust-lang/cargo/pull/2772)
  1300. * [Configure colors of stderr as well as stdout](https://github.com/rust-lang/cargo/pull/2739)
  1301. Performance
  1302. -----------
  1303. * [Caching projections speeds up type check dramatically for some
  1304. workloads](https://github.com/rust-lang/rust/pull/33816)
  1305. * [The default `HashMap` hasher is SipHash 1-3 instead of SipHash 2-4](https://github.com/rust-lang/rust/pull/33940)
  1306. This hasher is faster, but is believed to provide sufficient
  1307. protection from collision attacks.
  1308. * [Comparison of `Ipv4Addr` is 10x faster](https://github.com/rust-lang/rust/pull/33891)
  1309. Rustdoc
  1310. -------
  1311. * [Fix empty implementation section on some module pages](https://github.com/rust-lang/rust/pull/34536)
  1312. * [Fix inlined renamed reexports in import lists](https://github.com/rust-lang/rust/pull/34479)
  1313. * [Fix search result layout for enum variants and struct fields](https://github.com/rust-lang/rust/pull/34477)
  1314. * [Fix issues with source links to external crates](https://github.com/rust-lang/rust/pull/34387)
  1315. * [Fix redirect pages for renamed reexports](https://github.com/rust-lang/rust/pull/34245)
  1316. Tooling
  1317. -------
  1318. * [rustc is better at finding the MSVC toolchain](https://github.com/rust-lang/rust/pull/34492)
  1319. * [When emitting debug info, rustc emits frame pointers for closures,
  1320. shims and glue, as it does for all other functions](https://github.com/rust-lang/rust/pull/33909)
  1321. * [rust-lldb warns about unsupported versions of LLDB](https://github.com/rust-lang/rust/pull/34646)
  1322. * Many more errors have been given error codes and extended
  1323. explanations
  1324. * API documentation continues to be improved, with many new examples
  1325. Misc
  1326. ----
  1327. * [rustc no longer hangs when dependencies recursively re-export
  1328. submodules](https://github.com/rust-lang/rust/pull/34542)
  1329. * [rustc requires LLVM 3.7+](https://github.com/rust-lang/rust/pull/34104)
  1330. * [The 'How Safe and Unsafe Interact' chapter of The Rustonomicon was
  1331. rewritten](https://github.com/rust-lang/rust/pull/33895)
  1332. * [rustc support 16-bit pointer sizes](https://github.com/rust-lang/rust/pull/33460).
  1333. No targets use this yet, but it works toward AVR support.
  1334. Compatibility Notes
  1335. -------------------
  1336. * [`const`s and `static`s may not have unsized types](https://github.com/rust-lang/rust/pull/34443)
  1337. * [The new follow-set rules that place restrictions on `macro_rules!`
  1338. in order to ensure syntax forward-compatibility have been enabled](https://github.com/rust-lang/rust/pull/33982)
  1339. This was an [ammendment to RFC 550](https://github.com/rust-lang/rfcs/pull/1384),
  1340. and has been a warning since 1.10.
  1341. * [`cfg` attribute process has been refactored to fix various bugs](https://github.com/rust-lang/rust/pull/33706).
  1342. This causes breakage in some corner cases.
  1343. Version 1.10.0 (2016-07-07)
  1344. ===========================
  1345. Language
  1346. --------
  1347. * [Allow `concat_idents!` in type positions as well as in expression
  1348. positions](https://github.com/rust-lang/rust/pull/33735).
  1349. * [`Copy` types are required to have a trivial implementation of `Clone`](https://github.com/rust-lang/rust/pull/33420).
  1350. [RFC 1521](https://github.com/rust-lang/rfcs/blob/master/text/1521-copy-clone-semantics.md).
  1351. * [Single-variant enums support the `#[repr(..)]` attribute](https://github.com/rust-lang/rust/pull/33355).
  1352. * [Fix `#[derive(RustcEncodable)]` in the presence of other `encode` methods](https://github.com/rust-lang/rust/pull/32908).
  1353. * [`panic!` can be converted to a runtime abort with the
  1354. `-C panic=abort` flag](https://github.com/rust-lang/rust/pull/32900).
  1355. [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
  1356. * [Add a new crate type, 'cdylib'](https://github.com/rust-lang/rust/pull/33553).
  1357. cdylibs are dynamic libraries suitable for loading by non-Rust hosts.
  1358. [RFC 1510](https://github.com/rust-lang/rfcs/blob/master/text/1510-rdylib.md).
  1359. Note that Cargo does not yet directly support cdylibs.
  1360. Stabilized APIs
  1361. ---------------
  1362. * `os::windows::fs::OpenOptionsExt::access_mode`
  1363. * `os::windows::fs::OpenOptionsExt::share_mode`
  1364. * `os::windows::fs::OpenOptionsExt::custom_flags`
  1365. * `os::windows::fs::OpenOptionsExt::attributes`
  1366. * `os::windows::fs::OpenOptionsExt::security_qos_flags`
  1367. * `os::unix::fs::OpenOptionsExt::custom_flags`
  1368. * [`sync::Weak::new`](http://doc.rust-lang.org/alloc/arc/struct.Weak.html#method.new)
  1369. * `Default for sync::Weak`
  1370. * [`panic::set_hook`](http://doc.rust-lang.org/std/panic/fn.set_hook.html)
  1371. * [`panic::take_hook`](http://doc.rust-lang.org/std/panic/fn.take_hook.html)
  1372. * [`panic::PanicInfo`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html)
  1373. * [`panic::PanicInfo::payload`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.payload)
  1374. * [`panic::PanicInfo::location`](http://doc.rust-lang.org/std/panic/struct.PanicInfo.html#method.location)
  1375. * [`panic::Location`](http://doc.rust-lang.org/std/panic/struct.Location.html)
  1376. * [`panic::Location::file`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.file)
  1377. * [`panic::Location::line`](http://doc.rust-lang.org/std/panic/struct.Location.html#method.line)
  1378. * [`ffi::CStr::from_bytes_with_nul`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul)
  1379. * [`ffi::CStr::from_bytes_with_nul_unchecked`](http://doc.rust-lang.org/std/ffi/struct.CStr.html#method.from_bytes_with_nul_unchecked)
  1380. * [`ffi::FromBytesWithNulError`](http://doc.rust-lang.org/std/ffi/struct.FromBytesWithNulError.html)
  1381. * [`fs::Metadata::modified`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.modified)
  1382. * [`fs::Metadata::accessed`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.accessed)
  1383. * [`fs::Metadata::created`](http://doc.rust-lang.org/std/fs/struct.Metadata.html#method.created)
  1384. * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange`
  1385. * `sync::atomic::Atomic{Usize,Isize,Bool,Ptr}::compare_exchange_weak`
  1386. * `collections::{btree,hash}_map::{Occupied,Vacant,}Entry::key`
  1387. * `os::unix::net::{UnixStream, UnixListener, UnixDatagram, SocketAddr}`
  1388. * [`SocketAddr::is_unnamed`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.is_unnamed)
  1389. * [`SocketAddr::as_pathname`](http://doc.rust-lang.org/std/os/unix/net/struct.SocketAddr.html#method.as_pathname)
  1390. * [`UnixStream::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.connect)
  1391. * [`UnixStream::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.pair)
  1392. * [`UnixStream::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.try_clone)
  1393. * [`UnixStream::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.local_addr)
  1394. * [`UnixStream::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.peer_addr)
  1395. * [`UnixStream::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
  1396. * [`UnixStream::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
  1397. * [`UnixStream::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.read_timeout)
  1398. * [`UnixStream::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.write_timeout)
  1399. * [`UnixStream::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.set_nonblocking)
  1400. * [`UnixStream::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.take_error)
  1401. * [`UnixStream::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixStream.html#method.shutdown)
  1402. * Read/Write/RawFd impls for `UnixStream`
  1403. * [`UnixListener::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.bind)
  1404. * [`UnixListener::accept`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.accept)
  1405. * [`UnixListener::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.try_clone)
  1406. * [`UnixListener::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.local_addr)
  1407. * [`UnixListener::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.set_nonblocking)
  1408. * [`UnixListener::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.take_error)
  1409. * [`UnixListener::incoming`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixListener.html#method.incoming)
  1410. * RawFd impls for `UnixListener`
  1411. * [`UnixDatagram::bind`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.bind)
  1412. * [`UnixDatagram::unbound`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.unbound)
  1413. * [`UnixDatagram::pair`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.pair)
  1414. * [`UnixDatagram::connect`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.connect)
  1415. * [`UnixDatagram::try_clone`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.try_clone)
  1416. * [`UnixDatagram::local_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.local_addr)
  1417. * [`UnixDatagram::peer_addr`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.peer_addr)
  1418. * [`UnixDatagram::recv_from`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv_from)
  1419. * [`UnixDatagram::recv`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.recv)
  1420. * [`UnixDatagram::send_to`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send_to)
  1421. * [`UnixDatagram::send`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.send)
  1422. * [`UnixDatagram::set_read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_read_timeout)
  1423. * [`UnixDatagram::set_write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_write_timeout)
  1424. * [`UnixDatagram::read_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.read_timeout)
  1425. * [`UnixDatagram::write_timeout`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.write_timeout)
  1426. * [`UnixDatagram::set_nonblocking`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.set_nonblocking)
  1427. * [`UnixDatagram::take_error`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.take_error)
  1428. * [`UnixDatagram::shutdown`](http://doc.rust-lang.org/std/os/unix/net/struct.UnixDatagram.html#method.shutdown)
  1429. * RawFd impls for `UnixDatagram`
  1430. * `{BTree,Hash}Map::values_mut`
  1431. * [`<[_]>::binary_search_by_key`](http://doc.rust-lang.org/beta/std/primitive.slice.html#method.binary_search_by_key)
  1432. Libraries
  1433. ---------
  1434. * [The `abs_sub` method of floats is deprecated](https://github.com/rust-lang/rust/pull/33664).
  1435. The semantics of this minor method are subtle and probably not what
  1436. most people want.
  1437. * [Add implementation of Ord for Cell<T> and RefCell<T> where T: Ord](https://github.com/rust-lang/rust/pull/33306).
  1438. * [On Linux, if `HashMap`s can't be initialized with `getrandom` they
  1439. will fall back to `/dev/urandom` temporarily to avoid blocking
  1440. during early boot](https://github.com/rust-lang/rust/pull/33086).
  1441. * [Implemented negation for wrapping numerals](https://github.com/rust-lang/rust/pull/33067).
  1442. * [Implement `Clone` for `binary_heap::IntoIter`](https://github.com/rust-lang/rust/pull/33050).
  1443. * [Implement `Display` and `Hash` for `std::num::Wrapping`](https://github.com/rust-lang/rust/pull/33023).
  1444. * [Add `Default` implementation for `&CStr`, `CString`](https://github.com/rust-lang/rust/pull/32990).
  1445. * [Implement `From<Vec<T>>` and `Into<Vec<T>>` for `VecDeque<T>`](https://github.com/rust-lang/rust/pull/32866).
  1446. * [Implement `Default` for `UnsafeCell`, `fmt::Error`, `Condvar`,
  1447. `Mutex`, `RwLock`](https://github.com/rust-lang/rust/pull/32785).
  1448. Cargo
  1449. -----
  1450. * [Cargo.toml supports the `profile.*.panic` option](https://github.com/rust-lang/cargo/pull/2687).
  1451. This controls the runtime behavior of the `panic!` macro
  1452. and can be either "unwind" (the default), or "abort".
  1453. [RFC 1513](https://github.com/rust-lang/rfcs/blob/master/text/1513-less-unwinding.md).
  1454. * [Don't throw away errors with `-p` arguments](https://github.com/rust-lang/cargo/pull/2723).
  1455. * [Report status to stderr instead of stdout](https://github.com/rust-lang/cargo/pull/2693).
  1456. * [Build scripts are passed a `CARGO_MANIFEST_LINKS` environment
  1457. variable that corresponds to the `links` field of the manifest](https://github.com/rust-lang/cargo/pull/2710).
  1458. * [Ban keywords from crate names](https://github.com/rust-lang/cargo/pull/2707).
  1459. * [Canonicalize `CARGO_HOME` on Windows](https://github.com/rust-lang/cargo/pull/2604).
  1460. * [Retry network requests](https://github.com/rust-lang/cargo/pull/2396).
  1461. By default they are retried twice, which can be customized with the
  1462. `net.retry` value in `.cargo/config`.
  1463. * [Don't print extra error info for failing subcommands](https://github.com/rust-lang/cargo/pull/2674).
  1464. * [Add `--force` flag to `cargo install`](https://github.com/rust-lang/cargo/pull/2405).
  1465. * [Don't use `flock` on NFS mounts](https://github.com/rust-lang/cargo/pull/2623).
  1466. * [Prefer building `cargo install` artifacts in temporary directories](https://github.com/rust-lang/cargo/pull/2610).
  1467. Makes it possible to install multiple crates in parallel.
  1468. * [Add `cargo test --doc`](https://github.com/rust-lang/cargo/pull/2578).
  1469. * [Add `cargo --explain`](https://github.com/rust-lang/cargo/pull/2551).
  1470. * [Don't print warnings when `-q` is passed](https://github.com/rust-lang/cargo/pull/2576).
  1471. * [Add `cargo doc --lib` and `--bin`](https://github.com/rust-lang/cargo/pull/2577).
  1472. * [Don't require build script output to be UTF-8](https://github.com/rust-lang/cargo/pull/2560).
  1473. * [Correctly attempt multiple git usernames](https://github.com/rust-lang/cargo/pull/2584).
  1474. Performance
  1475. -----------
  1476. * [rustc memory usage was reduced by refactoring the context used for
  1477. type checking](https://github.com/rust-lang/rust/pull/33425).
  1478. * [Speed up creation of `HashMap`s by caching the random keys used
  1479. to initialize the hash state](https://github.com/rust-lang/rust/pull/33318).
  1480. * [The `find` implementation for `Chain` iterators is 2x faster](https://github.com/rust-lang/rust/pull/33289).
  1481. * [Trait selection optimizations speed up type checking by 15%](https://github.com/rust-lang/rust/pull/33138).
  1482. * [Efficient trie lookup for boolean Unicode properties](https://github.com/rust-lang/rust/pull/33098).
  1483. 10x faster than the previous lookup tables.
  1484. * [Special case `#[derive(Copy, Clone)]` to avoid bloat](https://github.com/rust-lang/rust/pull/31414).
  1485. Usability
  1486. ---------
  1487. * Many incremental improvements to documentation and rustdoc.
  1488. * [rustdoc: List blanket trait impls](https://github.com/rust-lang/rust/pull/33514).
  1489. * [rustdoc: Clean up ABI rendering](https://github.com/rust-lang/rust/pull/33151).
  1490. * [Indexing with the wrong type produces a more informative error](https://github.com/rust-lang/rust/pull/33401).
  1491. * [Improve diagnostics for constants being used in irrefutable patterns](https://github.com/rust-lang/rust/pull/33406).
  1492. * [When many method candidates are in scope limit the suggestions to 10](https://github.com/rust-lang/rust/pull/33338).
  1493. * [Remove confusing suggestion when calling a `fn` type](https://github.com/rust-lang/rust/pull/33325).
  1494. * [Do not suggest changing `&mut self` to `&mut mut self`](https://github.com/rust-lang/rust/pull/33319).
  1495. Misc
  1496. ----
  1497. * [Update i686-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33651).
  1498. * [Update aarch64-linux-android features to match Android ABI](https://github.com/rust-lang/rust/pull/33500).
  1499. * [`std` no longer prints backtraces on platforms where the running
  1500. module must be loaded with `env::current_exe`, which can't be relied
  1501. on](https://github.com/rust-lang/rust/pull/33554).
  1502. * This release includes std binaries for the i586-unknown-linux-gnu,
  1503. i686-unknown-linux-musl, and armv7-linux-androideabi targets. The
  1504. i586 target is for old x86 hardware without SSE2, and the armv7
  1505. target is for Android running on modern ARM architectures.
  1506. * [The `rust-gdb` and `rust-lldb` scripts are distributed on all
  1507. Unix platforms](https://github.com/rust-lang/rust/pull/32835).
  1508. * [On Unix the runtime aborts by calling `libc::abort` instead of
  1509. generating an illegal instruction](https://github.com/rust-lang/rust/pull/31457).
  1510. * [Rust is now bootstrapped from the previous release of Rust,
  1511. instead of a snapshot from an arbitrary commit](https://github.com/rust-lang/rust/pull/32942).
  1512. Compatibility Notes
  1513. -------------------
  1514. * [`AtomicBool` is now bool-sized, not word-sized](https://github.com/rust-lang/rust/pull/33579).
  1515. * [`target_env` for Linux ARM targets is just `gnu`, not
  1516. `gnueabihf`, `gnueabi`, etc](https://github.com/rust-lang/rust/pull/33403).
  1517. * [Consistently panic on overflow in `Duration::new`](https://github.com/rust-lang/rust/pull/33072).
  1518. * [Change `String::truncate` to panic less](https://github.com/rust-lang/rust/pull/32977).
  1519. * [Add `:block` to the follow set for `:ty` and `:path`](https://github.com/rust-lang/rust/pull/32945).
  1520. Affects how macros are parsed.
  1521. * [Fix macro hygiene bug](https://github.com/rust-lang/rust/pull/32923).
  1522. * [Feature-gated attributes on macro-generated macro invocations are
  1523. now rejected](https://github.com/rust-lang/rust/pull/32791).
  1524. * [Suppress fallback and ambiguity errors during type inference](https://github.com/rust-lang/rust/pull/32258).
  1525. This caused some minor changes to type inference.
  1526. Version 1.9.0 (2016-05-26)
  1527. ==========================
  1528. Language
  1529. --------
  1530. * The `#[deprecated]` attribute when applied to an API will generate
  1531. warnings when used. The warnings may be suppressed with
  1532. `#[allow(deprecated)]`. [RFC 1270].
  1533. * [`fn` item types are zero sized, and each `fn` names a unique
  1534. type][1.9fn]. This will break code that transmutes `fn`s, so calling
  1535. `transmute` on a `fn` type will generate a warning for a few cycles,
  1536. then will be converted to an error.
  1537. * [Field and method resolution understand visibility, so private
  1538. fields and methods cannot prevent the proper use of public fields
  1539. and methods][1.9fv].
  1540. * [The parser considers unicode codepoints in the
  1541. `PATTERN_WHITE_SPACE` category to be whitespace][1.9ws].
  1542. Stabilized APIs
  1543. ---------------
  1544. * [`std::panic`]
  1545. * [`std::panic::catch_unwind`][] (renamed from `recover`)
  1546. * [`std::panic::resume_unwind`][] (renamed from `propagate`)
  1547. * [`std::panic::AssertUnwindSafe`][] (renamed from `AssertRecoverSafe`)
  1548. * [`std::panic::UnwindSafe`][] (renamed from `RecoverSafe`)
  1549. * [`str::is_char_boundary`]
  1550. * [`<*const T>::as_ref`]
  1551. * [`<*mut T>::as_ref`]
  1552. * [`<*mut T>::as_mut`]
  1553. * [`AsciiExt::make_ascii_uppercase`]
  1554. * [`AsciiExt::make_ascii_lowercase`]
  1555. * [`char::decode_utf16`]
  1556. * [`char::DecodeUtf16`]
  1557. * [`char::DecodeUtf16Error`]
  1558. * [`char::DecodeUtf16Error::unpaired_surrogate`]
  1559. * [`BTreeSet::take`]
  1560. * [`BTreeSet::replace`]
  1561. * [`BTreeSet::get`]
  1562. * [`HashSet::take`]
  1563. * [`HashSet::replace`]
  1564. * [`HashSet::get`]
  1565. * [`OsString::with_capacity`]
  1566. * [`OsString::clear`]
  1567. * [`OsString::capacity`]
  1568. * [`OsString::reserve`]
  1569. * [`OsString::reserve_exact`]
  1570. * [`OsStr::is_empty`]
  1571. * [`OsStr::len`]
  1572. * [`std::os::unix::thread`]
  1573. * [`RawPthread`]
  1574. * [`JoinHandleExt`]
  1575. * [`JoinHandleExt::as_pthread_t`]
  1576. * [`JoinHandleExt::into_pthread_t`]
  1577. * [`HashSet::hasher`]
  1578. * [`HashMap::hasher`]
  1579. * [`CommandExt::exec`]
  1580. * [`File::try_clone`]
  1581. * [`SocketAddr::set_ip`]
  1582. * [`SocketAddr::set_port`]
  1583. * [`SocketAddrV4::set_ip`]
  1584. * [`SocketAddrV4::set_port`]
  1585. * [`SocketAddrV6::set_ip`]
  1586. * [`SocketAddrV6::set_port`]
  1587. * [`SocketAddrV6::set_flowinfo`]
  1588. * [`SocketAddrV6::set_scope_id`]
  1589. * [`slice::copy_from_slice`]
  1590. * [`ptr::read_volatile`]
  1591. * [`ptr::write_volatile`]
  1592. * [`OpenOptions::create_new`]
  1593. * [`TcpStream::set_nodelay`]
  1594. * [`TcpStream::nodelay`]
  1595. * [`TcpStream::set_ttl`]
  1596. * [`TcpStream::ttl`]
  1597. * [`TcpStream::set_only_v6`]
  1598. * [`TcpStream::only_v6`]
  1599. * [`TcpStream::take_error`]
  1600. * [`TcpStream::set_nonblocking`]
  1601. * [`TcpListener::set_ttl`]
  1602. * [`TcpListener::ttl`]
  1603. * [`TcpListener::set_only_v6`]
  1604. * [`TcpListener::only_v6`]
  1605. * [`TcpListener::take_error`]
  1606. * [`TcpListener::set_nonblocking`]
  1607. * [`UdpSocket::set_broadcast`]
  1608. * [`UdpSocket::broadcast`]
  1609. * [`UdpSocket::set_multicast_loop_v4`]
  1610. * [`UdpSocket::multicast_loop_v4`]
  1611. * [`UdpSocket::set_multicast_ttl_v4`]
  1612. * [`UdpSocket::multicast_ttl_v4`]
  1613. * [`UdpSocket::set_multicast_loop_v6`]
  1614. * [`UdpSocket::multicast_loop_v6`]
  1615. * [`UdpSocket::set_multicast_ttl_v6`]
  1616. * [`UdpSocket::multicast_ttl_v6`]
  1617. * [`UdpSocket::set_ttl`]
  1618. * [`UdpSocket::ttl`]
  1619. * [`UdpSocket::set_only_v6`]
  1620. * [`UdpSocket::only_v6`]
  1621. * [`UdpSocket::join_multicast_v4`]
  1622. * [`UdpSocket::join_multicast_v6`]
  1623. * [`UdpSocket::leave_multicast_v4`]
  1624. * [`UdpSocket::leave_multicast_v6`]
  1625. * [`UdpSocket::take_error`]
  1626. * [`UdpSocket::connect`]
  1627. * [`UdpSocket::send`]
  1628. * [`UdpSocket::recv`]
  1629. * [`UdpSocket::set_nonblocking`]
  1630. Libraries
  1631. ---------
  1632. * [`std::sync::Once` is poisoned if its initialization function
  1633. fails][1.9o].
  1634. * [`cell::Ref` and `cell::RefMut` can contain unsized types][1.9cu].
  1635. * [Most types implement `fmt::Debug`][1.9db].
  1636. * [The default buffer size used by `BufReader` and `BufWriter` was
  1637. reduced to 8K, from 64K][1.9bf]. This is in line with the buffer size
  1638. used by other languages.
  1639. * [`Instant`, `SystemTime` and `Duration` implement `+=` and `-=`.
  1640. `Duration` additionally implements `*=` and `/=`][1.9ta].
  1641. * [`Skip` is a `DoubleEndedIterator`][1.9sk].
  1642. * [`From<[u8; 4]>` is implemented for `Ipv4Addr`][1.9fi].
  1643. * [`Chain` implements `BufRead`][1.9ch].
  1644. * [`HashMap`, `HashSet` and iterators are covariant][1.9hc].
  1645. Cargo
  1646. -----
  1647. * [Cargo can now run concurrently][1.9cc].
  1648. * [Top-level overrides allow specific revisions of crates to be
  1649. overridden through the entire crate graph][1.9ct]. This is intended
  1650. to make upgrades easier for large projects, by allowing crates to be
  1651. forked temporarily until they've been upgraded and republished.
  1652. * [Cargo exports a `CARGO_PKG_AUTHORS` environment variable][1.9cp].
  1653. * [Cargo will pass the contents of the `RUSTFLAGS` variable to `rustc`
  1654. on the commandline][1.9cf]. `rustc` arguments can also be specified
  1655. in the `build.rustflags` configuration key.
  1656. Performance
  1657. -----------
  1658. * [The time complexity of comparing variables for equivalence during type
  1659. unification is reduced from _O_(_n_!) to _O_(_n_)][1.9tu]. This leads
  1660. to major compilation time improvement in some scenarios.
  1661. * [`ToString` is specialized for `str`, giving it the same performance
  1662. as `to_owned`][1.9ts].
  1663. * [Spawning processes with `Command::output` no longer creates extra
  1664. threads][1.9sp].
  1665. * [`#[derive(PartialEq)]` and `#[derive(PartialOrd)]` emit less code
  1666. for C-like enums][1.9cl].
  1667. Misc
  1668. ----
  1669. * [Passing the `--quiet` flag to a test runner will produce
  1670. much-abbreviated output][1.9q].
  1671. * The Rust Project now publishes std binaries for the
  1672. `mips-unknown-linux-musl`, `mipsel-unknown-linux-musl`, and
  1673. `i586-pc-windows-msvc` targets.
  1674. Compatibility Notes
  1675. -------------------
  1676. * [`std::sync::Once` is poisoned if its initialization function
  1677. fails][1.9o].
  1678. * [It is illegal to define methods with the same name in overlapping
  1679. inherent `impl` blocks][1.9sn].
  1680. * [`fn` item types are zero sized, and each `fn` names a unique
  1681. type][1.9fn]. This will break code that transmutes `fn`s, so calling
  1682. `transmute` on a `fn` type will generate a warning for a few cycles,
  1683. then will be converted to an error.
  1684. * [Improvements to const evaluation may trigger new errors when integer
  1685. literals are out of range][1.9ce].
  1686. [1.9bf]: https://github.com/rust-lang/rust/pull/32695
  1687. [1.9cc]: https://github.com/rust-lang/cargo/pull/2486
  1688. [1.9ce]: https://github.com/rust-lang/rust/pull/30587
  1689. [1.9cf]: https://github.com/rust-lang/cargo/pull/2241
  1690. [1.9ch]: https://github.com/rust-lang/rust/pull/32541
  1691. [1.9cl]: https://github.com/rust-lang/rust/pull/31977
  1692. [1.9cp]: https://github.com/rust-lang/cargo/pull/2465
  1693. [1.9ct]: https://github.com/rust-lang/cargo/pull/2385
  1694. [1.9cu]: https://github.com/rust-lang/rust/pull/32652
  1695. [1.9db]: https://github.com/rust-lang/rust/pull/32054
  1696. [1.9fi]: https://github.com/rust-lang/rust/pull/32050
  1697. [1.9fn]: https://github.com/rust-lang/rust/pull/31710
  1698. [1.9fv]: https://github.com/rust-lang/rust/pull/31938
  1699. [1.9hc]: https://github.com/rust-lang/rust/pull/32635
  1700. [1.9o]: https://github.com/rust-lang/rust/pull/32325
  1701. [1.9q]: https://github.com/rust-lang/rust/pull/31887
  1702. [1.9sk]: https://github.com/rust-lang/rust/pull/31700
  1703. [1.9sn]: https://github.com/rust-lang/rust/pull/31925
  1704. [1.9sp]: https://github.com/rust-lang/rust/pull/31618
  1705. [1.9ta]: https://github.com/rust-lang/rust/pull/32448
  1706. [1.9ts]: https://github.com/rust-lang/rust/pull/32586
  1707. [1.9tu]: https://github.com/rust-lang/rust/pull/32062
  1708. [1.9ws]: https://github.com/rust-lang/rust/pull/29734
  1709. [RFC 1270]: https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
  1710. [`<*const T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
  1711. [`<*mut T>::as_mut`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_mut
  1712. [`<*mut T>::as_ref`]: http://doc.rust-lang.org/nightly/std/primitive.pointer.html#method.as_ref
  1713. [`slice::copy_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.copy_from_slice
  1714. [`AsciiExt::make_ascii_lowercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_lowercase
  1715. [`AsciiExt::make_ascii_uppercase`]: http://doc.rust-lang.org/nightly/std/ascii/trait.AsciiExt.html#tymethod.make_ascii_uppercase
  1716. [`BTreeSet::get`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.get
  1717. [`BTreeSet::replace`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.replace
  1718. [`BTreeSet::take`]: http://doc.rust-lang.org/nightly/collections/btree/set/struct.BTreeSet.html#method.take
  1719. [`CommandExt::exec`]: http://doc.rust-lang.org/nightly/std/os/unix/process/trait.CommandExt.html#tymethod.exec
  1720. [`File::try_clone`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html#method.try_clone
  1721. [`HashMap::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.hasher
  1722. [`HashSet::get`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.get
  1723. [`HashSet::hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.hasher
  1724. [`HashSet::replace`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.replace
  1725. [`HashSet::take`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.take
  1726. [`JoinHandleExt::as_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.as_pthread_t
  1727. [`JoinHandleExt::into_pthread_t`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html#tymethod.into_pthread_t
  1728. [`JoinHandleExt`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/trait.JoinHandleExt.html
  1729. [`OpenOptions::create_new`]: http://doc.rust-lang.org/nightly/std/fs/struct.OpenOptions.html#method.create_new
  1730. [`OsStr::is_empty`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.is_empty
  1731. [`OsStr::len`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsStr.html#method.len
  1732. [`OsString::capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.capacity
  1733. [`OsString::clear`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.clear
  1734. [`OsString::reserve_exact`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve_exact
  1735. [`OsString::reserve`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.reserve
  1736. [`OsString::with_capacity`]: http://doc.rust-lang.org/nightly/std/ffi/struct.OsString.html#method.with_capacity
  1737. [`RawPthread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/type.RawPthread.html
  1738. [`SocketAddr::set_ip`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_ip
  1739. [`SocketAddr::set_port`]: http://doc.rust-lang.org/nightly/std/net/enum.SocketAddr.html#method.set_port
  1740. [`SocketAddrV4::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_ip
  1741. [`SocketAddrV4::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV4.html#method.set_port
  1742. [`SocketAddrV6::set_flowinfo`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_flowinfo
  1743. [`SocketAddrV6::set_ip`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_ip
  1744. [`SocketAddrV6::set_port`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_port
  1745. [`SocketAddrV6::set_scope_id`]: http://doc.rust-lang.org/nightly/std/net/struct.SocketAddrV6.html#method.set_scope_id
  1746. [`TcpListener::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
  1747. [`TcpListener::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
  1748. [`TcpListener::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
  1749. [`TcpListener::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
  1750. [`TcpListener::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
  1751. [`TcpListener::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
  1752. [`TcpStream::nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.nodelay
  1753. [`TcpStream::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.only_v6
  1754. [`TcpStream::set_nodelay`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nodelay
  1755. [`TcpStream::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_nonblocking
  1756. [`TcpStream::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_only_v6
  1757. [`TcpStream::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_ttl
  1758. [`TcpStream::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.take_error
  1759. [`TcpStream::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.ttl
  1760. [`UdpSocket::broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.broadcast
  1761. [`UdpSocket::connect`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.connect
  1762. [`UdpSocket::join_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v4
  1763. [`UdpSocket::join_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.join_multicast_v6
  1764. [`UdpSocket::leave_multicast_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v4
  1765. [`UdpSocket::leave_multicast_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.leave_multicast_v6
  1766. [`UdpSocket::multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v4
  1767. [`UdpSocket::multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_loop_v6
  1768. [`UdpSocket::multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v4
  1769. [`UdpSocket::multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.multicast_ttl_v6
  1770. [`UdpSocket::only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.only_v6
  1771. [`UdpSocket::recv`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.recv
  1772. [`UdpSocket::send`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.send
  1773. [`UdpSocket::set_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_broadcast
  1774. [`UdpSocket::set_multicast_loop_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v4
  1775. [`UdpSocket::set_multicast_loop_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_loop_v6
  1776. [`UdpSocket::set_multicast_ttl_v4`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v4
  1777. [`UdpSocket::set_multicast_ttl_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_multicast_ttl_v6
  1778. [`UdpSocket::set_nonblocking`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_nonblocking
  1779. [`UdpSocket::set_only_v6`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_only_v6
  1780. [`UdpSocket::set_ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.set_ttl
  1781. [`UdpSocket::take_error`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.take_error
  1782. [`UdpSocket::ttl`]: http://doc.rust-lang.org/nightly/std/net/struct.UdpSocket.html#method.ttl
  1783. [`char::DecodeUtf16Error::unpaired_surrogate`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html#method.unpaired_surrogate
  1784. [`char::DecodeUtf16Error`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16Error.html
  1785. [`char::DecodeUtf16`]: http://doc.rust-lang.org/nightly/std/char/struct.DecodeUtf16.html
  1786. [`char::decode_utf16`]: http://doc.rust-lang.org/nightly/std/char/fn.decode_utf16.html
  1787. [`ptr::read_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.read_volatile.html
  1788. [`ptr::write_volatile`]: http://doc.rust-lang.org/nightly/std/ptr/fn.write_volatile.html
  1789. [`std::os::unix::thread`]: http://doc.rust-lang.org/nightly/std/os/unix/thread/index.html
  1790. [`std::panic::AssertUnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/struct.AssertUnwindSafe.html
  1791. [`std::panic::UnwindSafe`]: http://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html
  1792. [`std::panic::catch_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.catch_unwind.html
  1793. [`std::panic::resume_unwind`]: http://doc.rust-lang.org/nightly/std/panic/fn.resume_unwind.html
  1794. [`std::panic`]: http://doc.rust-lang.org/nightly/std/panic/index.html
  1795. [`str::is_char_boundary`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.is_char_boundary
  1796. Version 1.8.0 (2016-04-14)
  1797. ==========================
  1798. Language
  1799. --------
  1800. * Rust supports overloading of compound assignment statements like
  1801. `+=` by implementing the [`AddAssign`], [`SubAssign`],
  1802. [`MulAssign`], [`DivAssign`], [`RemAssign`], [`BitAndAssign`],
  1803. [`BitOrAssign`], [`BitXorAssign`], [`ShlAssign`], or [`ShrAssign`]
  1804. traits. [RFC 953].
  1805. * Empty structs can be defined with braces, as in `struct Foo { }`, in
  1806. addition to the non-braced form, `struct Foo;`. [RFC 218].
  1807. Libraries
  1808. ---------
  1809. * Stabilized APIs:
  1810. * [`str::encode_utf16`][] (renamed from `utf16_units`)
  1811. * [`str::EncodeUtf16`][] (renamed from `Utf16Units`)
  1812. * [`Ref::map`]
  1813. * [`RefMut::map`]
  1814. * [`ptr::drop_in_place`]
  1815. * [`time::Instant`]
  1816. * [`time::SystemTime`]
  1817. * [`Instant::now`]
  1818. * [`Instant::duration_since`][] (renamed from `duration_from_earlier`)
  1819. * [`Instant::elapsed`]
  1820. * [`SystemTime::now`]
  1821. * [`SystemTime::duration_since`][] (renamed from `duration_from_earlier`)
  1822. * [`SystemTime::elapsed`]
  1823. * Various `Add`/`Sub` impls for `Time` and `SystemTime`
  1824. * [`SystemTimeError`]
  1825. * [`SystemTimeError::duration`]
  1826. * Various impls for `SystemTimeError`
  1827. * [`UNIX_EPOCH`]
  1828. * [`AddAssign`], [`SubAssign`], [`MulAssign`], [`DivAssign`],
  1829. [`RemAssign`], [`BitAndAssign`], [`BitOrAssign`],
  1830. [`BitXorAssign`], [`ShlAssign`], [`ShrAssign`].
  1831. * [The `write!` and `writeln!` macros correctly emit errors if any of
  1832. their arguments can't be formatted][1.8w].
  1833. * [Various I/O functions support large files on 32-bit Linux][1.8l].
  1834. * [The Unix-specific `raw` modules, which contain a number of
  1835. redefined C types are deprecated][1.8r], including `os::raw::unix`,
  1836. `os::raw::macos`, and `os::raw::linux`. These modules defined types
  1837. such as `ino_t` and `dev_t`. The inconsistency of these definitions
  1838. across platforms was making it difficult to implement `std`
  1839. correctly. Those that need these definitions should use the `libc`
  1840. crate. [RFC 1415].
  1841. * The Unix-specific `MetadataExt` traits, including
  1842. `os::unix::fs::MetadataExt`, which expose values such as inode
  1843. numbers [no longer return platform-specific types][1.8r], but
  1844. instead return widened integers. [RFC 1415].
  1845. * [`btree_set::{IntoIter, Iter, Range}` are covariant][1.8cv].
  1846. * [Atomic loads and stores are not volatile][1.8a].
  1847. * [All types in `sync::mpsc` implement `fmt::Debug`][1.8mp].
  1848. Performance
  1849. -----------
  1850. * [Inlining hash functions lead to a 3% compile-time improvement in
  1851. some workloads][1.8h].
  1852. * When using jemalloc, its symbols are [unprefixed so that it
  1853. overrides the libc malloc implementation][1.8h]. This means that for
  1854. rustc, LLVM is now using jemalloc, which results in a 6%
  1855. compile-time improvement on a specific workload.
  1856. * [Avoid quadratic growth in function size due to cleanups][1.8cu].
  1857. Misc
  1858. ----
  1859. * [32-bit MSVC builds finally implement unwinding][1.8ms].
  1860. i686-pc-windows-msvc is now considered a tier-1 platform.
  1861. * [The `--print targets` flag prints a list of supported targets][1.8t].
  1862. * [The `--print cfg` flag prints the `cfg`s defined for the current
  1863. target][1.8cf].
  1864. * [`rustc` can be built with an new Cargo-based build system, written
  1865. in Rust][1.8b]. It will eventually replace Rust's Makefile-based
  1866. build system. To enable it configure with `configure --rustbuild`.
  1867. * [Errors for non-exhaustive `match` patterns now list up to 3 missing
  1868. variants while also indicating the total number of missing variants
  1869. if more than 3][1.8m].
  1870. * [Executable stacks are disabled on Linux and BSD][1.8nx].
  1871. * The Rust Project now publishes binary releases of the standard
  1872. library for a number of tier-2 targets:
  1873. `armv7-unknown-linux-gnueabihf`, `powerpc-unknown-linux-gnu`,
  1874. `powerpc64-unknown-linux-gnu`, `powerpc64le-unknown-linux-gnu`
  1875. `x86_64-rumprun-netbsd`. These can be installed with
  1876. tools such as [multirust][1.8mr].
  1877. Cargo
  1878. -----
  1879. * [`cargo init` creates a new Cargo project in the current
  1880. directory][1.8ci]. It is otherwise like `cargo new`.
  1881. * [Cargo has configuration keys for `-v` and
  1882. `--color`][1.8cc]. `verbose` and `color`, respectively, go in the
  1883. `[term]` section of `.cargo/config`.
  1884. * [Configuration keys that evaluate to strings or integers can be set
  1885. via environment variables][1.8ce]. For example the `build.jobs` key
  1886. can be set via `CARGO_BUILD_JOBS`. Environment variables take
  1887. precedence over config files.
  1888. * [Target-specific dependencies support Rust `cfg` syntax for
  1889. describing targets][1.8cfg] so that dependencies for multiple
  1890. targets can be specified together. [RFC 1361].
  1891. * [The environment variables `CARGO_TARGET_ROOT`, `RUSTC`, and
  1892. `RUSTDOC` take precedence over the `build.target-dir`,
  1893. `build.rustc`, and `build.rustdoc` configuration values][1.8cv].
  1894. * [The child process tree is killed on Windows when Cargo is
  1895. killed][1.8ck].
  1896. * [The `build.target` configuration value sets the target platform,
  1897. like `--target`][1.8ct].
  1898. Compatibility Notes
  1899. -------------------
  1900. * [Unstable compiler flags have been further restricted][1.8u]. Since
  1901. 1.0 `-Z` flags have been considered unstable, and other flags that
  1902. were considered unstable additionally required passing `-Z
  1903. unstable-options` to access. Unlike unstable language and library
  1904. features though, these options have been accessible on the stable
  1905. release channel. Going forward, *new unstable flags will not be
  1906. available on the stable release channel*, and old unstable flags
  1907. will warn about their usage. In the future, all unstable flags will
  1908. be unavailable on the stable release channel.
  1909. * [It is no longer possible to `match` on empty enum variants using
  1910. the `Variant(..)` syntax][1.8v]. This has been a warning since 1.6.
  1911. * The Unix-specific `MetadataExt` traits, including
  1912. `os::unix::fs::MetadataExt`, which expose values such as inode
  1913. numbers [no longer return platform-specific types][1.8r], but
  1914. instead return widened integers. [RFC 1415].
  1915. * [Modules sourced from the filesystem cannot appear within arbitrary
  1916. blocks, but only within other modules][1.8mf].
  1917. * [`--cfg` compiler flags are parsed strictly as identifiers][1.8c].
  1918. * On Unix, [stack overflow triggers a runtime abort instead of a
  1919. SIGSEGV][1.8so].
  1920. * [`Command::spawn` and its equivalents return an error if any of
  1921. its command-line arguments contain interior `NUL`s][1.8n].
  1922. * [Tuple and unit enum variants from other crates are in the type
  1923. namespace][1.8tn].
  1924. * [On Windows `rustc` emits `.lib` files for the `staticlib` library
  1925. type instead of `.a` files][1.8st]. Additionally, for the MSVC
  1926. toolchain, `rustc` emits import libraries named `foo.dll.lib`
  1927. instead of `foo.lib`.
  1928. [1.8a]: https://github.com/rust-lang/rust/pull/30962
  1929. [1.8b]: https://github.com/rust-lang/rust/pull/31123
  1930. [1.8c]: https://github.com/rust-lang/rust/pull/31530
  1931. [1.8cc]: https://github.com/rust-lang/cargo/pull/2397
  1932. [1.8ce]: https://github.com/rust-lang/cargo/pull/2398
  1933. [1.8cf]: https://github.com/rust-lang/rust/pull/31278
  1934. [1.8cfg]: https://github.com/rust-lang/cargo/pull/2328
  1935. [1.8ci]: https://github.com/rust-lang/cargo/pull/2081
  1936. [1.8ck]: https://github.com/rust-lang/cargo/pull/2370
  1937. [1.8ct]: https://github.com/rust-lang/cargo/pull/2335
  1938. [1.8cu]: https://github.com/rust-lang/rust/pull/31390
  1939. [1.8cv]: https://github.com/rust-lang/cargo/issues/2365
  1940. [1.8cv]: https://github.com/rust-lang/rust/pull/30998
  1941. [1.8h]: https://github.com/rust-lang/rust/pull/31460
  1942. [1.8l]: https://github.com/rust-lang/rust/pull/31668
  1943. [1.8m]: https://github.com/rust-lang/rust/pull/31020
  1944. [1.8mf]: https://github.com/rust-lang/rust/pull/31534
  1945. [1.8mp]: https://github.com/rust-lang/rust/pull/30894
  1946. [1.8mr]: https://users.rust-lang.org/t/multirust-0-8-with-cross-std-installation/4901
  1947. [1.8ms]: https://github.com/rust-lang/rust/pull/30448
  1948. [1.8n]: https://github.com/rust-lang/rust/pull/31056
  1949. [1.8nx]: https://github.com/rust-lang/rust/pull/30859
  1950. [1.8r]: https://github.com/rust-lang/rust/pull/31551
  1951. [1.8so]: https://github.com/rust-lang/rust/pull/31333
  1952. [1.8st]: https://github.com/rust-lang/rust/pull/29520
  1953. [1.8t]: https://github.com/rust-lang/rust/pull/31358
  1954. [1.8tn]: https://github.com/rust-lang/rust/pull/30882
  1955. [1.8u]: https://github.com/rust-lang/rust/pull/31793
  1956. [1.8v]: https://github.com/rust-lang/rust/pull/31757
  1957. [1.8w]: https://github.com/rust-lang/rust/pull/31904
  1958. [RFC 1361]: https://github.com/rust-lang/rfcs/blob/master/text/1361-cargo-cfg-dependencies.md
  1959. [RFC 1415]: https://github.com/rust-lang/rfcs/blob/master/text/1415-trim-std-os.md
  1960. [RFC 218]: https://github.com/rust-lang/rfcs/blob/master/text/0218-empty-struct-with-braces.md
  1961. [RFC 953]: https://github.com/rust-lang/rfcs/blob/master/text/0953-op-assign.md
  1962. [`AddAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.AddAssign.html
  1963. [`BitAndAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitAndAssign.html
  1964. [`BitOrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitOrAssign.html
  1965. [`BitXorAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.BitXorAssign.html
  1966. [`DivAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.DivAssign.html
  1967. [`Instant::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.duration_since
  1968. [`Instant::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.elapsed
  1969. [`Instant::now`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html#method.now
  1970. [`MulAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.MulAssign.html
  1971. [`Ref::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.Ref.html#method.map
  1972. [`RefMut::map`]: http://doc.rust-lang.org/nightly/std/cell/struct.RefMut.html#method.map
  1973. [`RemAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.RemAssign.html
  1974. [`ShlAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShlAssign.html
  1975. [`ShrAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.ShrAssign.html
  1976. [`SubAssign`]: http://doc.rust-lang.org/nightly/std/ops/trait.SubAssign.html
  1977. [`SystemTime::duration_since`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.duration_since
  1978. [`SystemTime::elapsed`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.elapsed
  1979. [`SystemTime::now`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html#method.now
  1980. [`SystemTimeError::duration`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html#method.duration
  1981. [`SystemTimeError`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTimeError.html
  1982. [`UNIX_EPOCH`]: http://doc.rust-lang.org/nightly/std/time/constant.UNIX_EPOCH.html
  1983. [`ptr::drop_in_place`]: http://doc.rust-lang.org/nightly/std/ptr/fn.drop_in_place.html
  1984. [`str::EncodeUtf16`]: http://doc.rust-lang.org/nightly/std/str/struct.EncodeUtf16.html
  1985. [`str::encode_utf16`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.encode_utf16
  1986. [`time::Instant`]: http://doc.rust-lang.org/nightly/std/time/struct.Instant.html
  1987. [`time::SystemTime`]: http://doc.rust-lang.org/nightly/std/time/struct.SystemTime.html
  1988. Version 1.7.0 (2016-03-03)
  1989. ==========================
  1990. Libraries
  1991. ---------
  1992. * Stabilized APIs
  1993. * `Path`
  1994. * [`Path::strip_prefix`][] (renamed from relative_from)
  1995. * [`path::StripPrefixError`][] (new error type returned from strip_prefix)
  1996. * `Ipv4Addr`
  1997. * [`Ipv4Addr::is_loopback`]
  1998. * [`Ipv4Addr::is_private`]
  1999. * [`Ipv4Addr::is_link_local`]
  2000. * [`Ipv4Addr::is_multicast`]
  2001. * [`Ipv4Addr::is_broadcast`]
  2002. * [`Ipv4Addr::is_documentation`]
  2003. * `Ipv6Addr`
  2004. * [`Ipv6Addr::is_unspecified`]
  2005. * [`Ipv6Addr::is_loopback`]
  2006. * [`Ipv6Addr::is_multicast`]
  2007. * `Vec`
  2008. * [`Vec::as_slice`]
  2009. * [`Vec::as_mut_slice`]
  2010. * `String`
  2011. * [`String::as_str`]
  2012. * [`String::as_mut_str`]
  2013. * Slices
  2014. * `<[T]>::`[`clone_from_slice`], which now requires the two slices to
  2015. be the same length
  2016. * `<[T]>::`[`sort_by_key`]
  2017. * checked, saturated, and overflowing operations
  2018. * [`i32::checked_rem`], [`i32::checked_neg`], [`i32::checked_shl`], [`i32::checked_shr`]
  2019. * [`i32::saturating_mul`]
  2020. * [`i32::overflowing_add`], [`i32::overflowing_sub`], [`i32::overflowing_mul`], [`i32::overflowing_div`]
  2021. * [`i32::overflowing_rem`], [`i32::overflowing_neg`], [`i32::overflowing_shl`], [`i32::overflowing_shr`]
  2022. * [`u32::checked_rem`], [`u32::checked_neg`], [`u32::checked_shl`], [`u32::checked_shl`]
  2023. * [`u32::saturating_mul`]
  2024. * [`u32::overflowing_add`], [`u32::overflowing_sub`], [`u32::overflowing_mul`], [`u32::overflowing_div`]
  2025. * [`u32::overflowing_rem`], [`u32::overflowing_neg`], [`u32::overflowing_shl`], [`u32::overflowing_shr`]
  2026. * and checked, saturated, and overflowing operations for other primitive types
  2027. * FFI
  2028. * [`ffi::IntoStringError`]
  2029. * [`CString::into_string`]
  2030. * [`CString::into_bytes`]
  2031. * [`CString::into_bytes_with_nul`]
  2032. * `From<CString> for Vec<u8>`
  2033. * `IntoStringError`
  2034. * [`IntoStringError::into_cstring`]
  2035. * [`IntoStringError::utf8_error`]
  2036. * `Error for IntoStringError`
  2037. * Hashing
  2038. * [`std::hash::BuildHasher`]
  2039. * [`BuildHasher::Hasher`]
  2040. * [`BuildHasher::build_hasher`]
  2041. * [`std::hash::BuildHasherDefault`]
  2042. * [`HashMap::with_hasher`]
  2043. * [`HashMap::with_capacity_and_hasher`]
  2044. * [`HashSet::with_hasher`]
  2045. * [`HashSet::with_capacity_and_hasher`]
  2046. * [`std::collections::hash_map::RandomState`]
  2047. * [`RandomState::new`]
  2048. * [Validating UTF-8 is faster by a factor of between 7 and 14x for
  2049. ASCII input][1.7utf8]. This means that creating `String`s and `str`s
  2050. from bytes is faster.
  2051. * [The performance of `LineWriter` (and thus `io::stdout`) was
  2052. improved by using `memchr` to search for newlines][1.7m].
  2053. * [`f32::to_degrees` and `f32::to_radians` are stable][1.7f]. The
  2054. `f64` variants were stabilized previously.
  2055. * [`BTreeMap` was rewritten to use less memory and improve the performance
  2056. of insertion and iteration, the latter by as much as 5x][1.7bm].
  2057. * [`BTreeSet` and its iterators, `Iter`, `IntoIter`, and `Range` are
  2058. covariant over their contained type][1.7bt].
  2059. * [`LinkedList` and its iterators, `Iter` and `IntoIter` are covariant
  2060. over their contained type][1.7ll].
  2061. * [`str::replace` now accepts a `Pattern`][1.7rp], like other string
  2062. searching methods.
  2063. * [`Any` is implemented for unsized types][1.7a].
  2064. * [`Hash` is implemented for `Duration`][1.7h].
  2065. Misc
  2066. ----
  2067. * [When running tests with `--test`, rustdoc will pass `--cfg`
  2068. arguments to the compiler][1.7dt].
  2069. * [The compiler is built with RPATH information by default][1.7rpa].
  2070. This means that it will be possible to run `rustc` when installed in
  2071. unusual configurations without configuring the dynamic linker search
  2072. path explicitly.
  2073. * [`rustc` passes `--enable-new-dtags` to GNU ld][1.7dta]. This makes
  2074. any RPATH entries (emitted with `-C rpath`) *not* take precedence
  2075. over `LD_LIBRARY_PATH`.
  2076. Cargo
  2077. -----
  2078. * [`cargo rustc` accepts a `--profile` flag that runs `rustc` under
  2079. any of the compilation profiles, 'dev', 'bench', or 'test'][1.7cp].
  2080. * [The `rerun-if-changed` build script directive no longer causes the
  2081. build script to incorrectly run twice in certain scenarios][1.7rr].
  2082. Compatibility Notes
  2083. -------------------
  2084. * Soundness fixes to the interactions between associated types and
  2085. lifetimes, specified in [RFC 1214], [now generate errors][1.7sf] for
  2086. code that violates the new rules. This is a significant change that
  2087. is known to break existing code, so it has emitted warnings for the
  2088. new error cases since 1.4 to give crate authors time to adapt. The
  2089. details of what is changing are subtle; read the RFC for more.
  2090. * [Several bugs in the compiler's visibility calculations were
  2091. fixed][1.7v]. Since this was found to break significant amounts of
  2092. code, the new errors will be emitted as warnings for several release
  2093. cycles, under the `private_in_public` lint.
  2094. * Defaulted type parameters were accidentally accepted in positions
  2095. that were not intended. In this release, [defaulted type parameters
  2096. appearing outside of type definitions will generate a
  2097. warning][1.7d], which will become an error in future releases.
  2098. * [Parsing "." as a float results in an error instead of 0][1.7p].
  2099. That is, `".".parse::<f32>()` returns `Err`, not `Ok(0.0)`.
  2100. * [Borrows of closure parameters may not outlive the closure][1.7bc].
  2101. [1.7a]: https://github.com/rust-lang/rust/pull/30928
  2102. [1.7bc]: https://github.com/rust-lang/rust/pull/30341
  2103. [1.7bm]: https://github.com/rust-lang/rust/pull/30426
  2104. [1.7bt]: https://github.com/rust-lang/rust/pull/30998
  2105. [1.7cp]: https://github.com/rust-lang/cargo/pull/2224
  2106. [1.7d]: https://github.com/rust-lang/rust/pull/30724
  2107. [1.7dt]: https://github.com/rust-lang/rust/pull/30372
  2108. [1.7dta]: https://github.com/rust-lang/rust/pull/30394
  2109. [1.7f]: https://github.com/rust-lang/rust/pull/30672
  2110. [1.7h]: https://github.com/rust-lang/rust/pull/30818
  2111. [1.7ll]: https://github.com/rust-lang/rust/pull/30663
  2112. [1.7m]: https://github.com/rust-lang/rust/pull/30381
  2113. [1.7p]: https://github.com/rust-lang/rust/pull/30681
  2114. [1.7rp]: https://github.com/rust-lang/rust/pull/29498
  2115. [1.7rpa]: https://github.com/rust-lang/rust/pull/30353
  2116. [1.7rr]: https://github.com/rust-lang/cargo/pull/2279
  2117. [1.7sf]: https://github.com/rust-lang/rust/pull/30389
  2118. [1.7utf8]: https://github.com/rust-lang/rust/pull/30740
  2119. [1.7v]: https://github.com/rust-lang/rust/pull/29973
  2120. [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
  2121. [`BuildHasher::Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
  2122. [`BuildHasher::build_hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html#tymethod.build_hasher
  2123. [`CString::into_bytes_with_nul`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes_with_nul
  2124. [`CString::into_bytes`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_bytes
  2125. [`CString::into_string`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_string
  2126. [`HashMap::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_capacity_and_hasher
  2127. [`HashMap::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashMap.html#method.with_hasher
  2128. [`HashSet::with_capacity_and_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_capacity_and_hasher
  2129. [`HashSet::with_hasher`]: http://doc.rust-lang.org/nightly/std/collections/struct.HashSet.html#method.with_hasher
  2130. [`IntoStringError::into_cstring`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.into_cstring
  2131. [`IntoStringError::utf8_error`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html#method.utf8_error
  2132. [`Ipv4Addr::is_broadcast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_broadcast
  2133. [`Ipv4Addr::is_documentation`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_documentation
  2134. [`Ipv4Addr::is_link_local`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_link_local
  2135. [`Ipv4Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_loopback
  2136. [`Ipv4Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_multicast
  2137. [`Ipv4Addr::is_private`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv4Addr.html#method.is_private
  2138. [`Ipv6Addr::is_loopback`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_loopback
  2139. [`Ipv6Addr::is_multicast`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_multicast
  2140. [`Ipv6Addr::is_unspecified`]: http://doc.rust-lang.org/nightly/std/net/struct.Ipv6Addr.html#method.is_unspecified
  2141. [`Path::strip_prefix`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.strip_prefix
  2142. [`RandomState::new`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html#method.new
  2143. [`String::as_mut_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_mut_str
  2144. [`String::as_str`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.as_str
  2145. [`Vec::as_mut_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_mut_slice
  2146. [`Vec::as_slice`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.as_slice
  2147. [`clone_from_slice`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.clone_from_slice
  2148. [`ffi::IntoStringError`]: http://doc.rust-lang.org/nightly/std/ffi/struct.IntoStringError.html
  2149. [`i32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_neg
  2150. [`i32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_rem
  2151. [`i32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shl
  2152. [`i32::checked_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.checked_shr
  2153. [`i32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_add
  2154. [`i32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_div
  2155. [`i32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_mul
  2156. [`i32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_neg
  2157. [`i32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_rem
  2158. [`i32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shl
  2159. [`i32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_shr
  2160. [`i32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.overflowing_sub
  2161. [`i32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.i32.html#method.saturating_mul
  2162. [`path::StripPrefixError`]: http://doc.rust-lang.org/nightly/std/path/struct.StripPrefixError.html
  2163. [`sort_by_key`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.sort_by_key
  2164. [`std::collections::hash_map::RandomState`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.RandomState.html
  2165. [`std::hash::BuildHasherDefault`]: http://doc.rust-lang.org/nightly/std/hash/struct.BuildHasherDefault.html
  2166. [`std::hash::BuildHasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.BuildHasher.html
  2167. [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
  2168. [`u32::checked_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_rem
  2169. [`u32::checked_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_neg
  2170. [`u32::checked_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.checked_shl
  2171. [`u32::overflowing_add`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_add
  2172. [`u32::overflowing_div`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_div
  2173. [`u32::overflowing_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_mul
  2174. [`u32::overflowing_neg`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_neg
  2175. [`u32::overflowing_rem`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_rem
  2176. [`u32::overflowing_shl`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shl
  2177. [`u32::overflowing_shr`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_shr
  2178. [`u32::overflowing_sub`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.overflowing_sub
  2179. [`u32::saturating_mul`]: http://doc.rust-lang.org/nightly/std/primitive.u32.html#method.saturating_mul
  2180. Version 1.6.0 (2016-01-21)
  2181. ==========================
  2182. Language
  2183. --------
  2184. * The `#![no_std]` attribute causes a crate to not be linked to the
  2185. standard library, but only the [core library][1.6co], as described
  2186. in [RFC 1184]. The core library defines common types and traits but
  2187. has no platform dependencies whatsoever, and is the basis for Rust
  2188. software in environments that cannot support a full port of the
  2189. standard library, such as operating systems. Most of the core
  2190. library is now stable.
  2191. Libraries
  2192. ---------
  2193. * Stabilized APIs:
  2194. [`Read::read_exact`],
  2195. [`ErrorKind::UnexpectedEof`][] (renamed from `UnexpectedEOF`),
  2196. [`fs::DirBuilder`], [`fs::DirBuilder::new`],
  2197. [`fs::DirBuilder::recursive`], [`fs::DirBuilder::create`],
  2198. [`os::unix::fs::DirBuilderExt`],
  2199. [`os::unix::fs::DirBuilderExt::mode`], [`vec::Drain`],
  2200. [`vec::Vec::drain`], [`string::Drain`], [`string::String::drain`],
  2201. [`vec_deque::Drain`], [`vec_deque::VecDeque::drain`],
  2202. [`collections::hash_map::Drain`],
  2203. [`collections::hash_map::HashMap::drain`],
  2204. [`collections::hash_set::Drain`],
  2205. [`collections::hash_set::HashSet::drain`],
  2206. [`collections::binary_heap::Drain`],
  2207. [`collections::binary_heap::BinaryHeap::drain`],
  2208. [`Vec::extend_from_slice`][] (renamed from `push_all`),
  2209. [`Mutex::get_mut`], [`Mutex::into_inner`], [`RwLock::get_mut`],
  2210. [`RwLock::into_inner`],
  2211. [`Iterator::min_by_key`][] (renamed from `min_by`),
  2212. [`Iterator::max_by_key`][] (renamed from `max_by`).
  2213. * The [core library][1.6co] is stable, as are most of its APIs.
  2214. * [The `assert_eq!` macro supports arguments that don't implement
  2215. `Sized`][1.6ae], such as arrays. In this way it behaves more like
  2216. `assert!`.
  2217. * Several timer functions that take duration in milliseconds [are
  2218. deprecated in favor of those that take `Duration`][1.6ms]. These
  2219. include `Condvar::wait_timeout_ms`, `thread::sleep_ms`, and
  2220. `thread::park_timeout_ms`.
  2221. * The algorithm by which `Vec` reserves additional elements was
  2222. [tweaked to not allocate excessive space][1.6a] while still growing
  2223. exponentially.
  2224. * `From` conversions are [implemented from integers to floats][1.6f]
  2225. in cases where the conversion is lossless. Thus they are not
  2226. implemented for 32-bit ints to `f32`, nor for 64-bit ints to `f32`
  2227. or `f64`. They are also not implemented for `isize` and `usize`
  2228. because the implementations would be platform-specific. `From` is
  2229. also implemented from `f32` to `f64`.
  2230. * `From<&Path>` and `From<PathBuf>` are implemented for `Cow<Path>`.
  2231. * `From<T>` is implemented for `Box<T>`, `Rc<T>` and `Arc<T>`.
  2232. * `IntoIterator` is implemented for `&PathBuf` and `&Path`.
  2233. * [`BinaryHeap` was refactored][1.6bh] for modest performance
  2234. improvements.
  2235. * Sorting slices that are already sorted [is 50% faster in some
  2236. cases][1.6s].
  2237. Cargo
  2238. -----
  2239. * Cargo will look in `$CARGO_HOME/bin` for subcommands [by default][1.6c].
  2240. * Cargo build scripts can specify their dependencies by emitting the
  2241. [`rerun-if-changed`][1.6rr] key.
  2242. * crates.io will reject publication of crates with dependencies that
  2243. have a wildcard version constraint. Crates with wildcard
  2244. dependencies were seen to cause a variety of problems, as described
  2245. in [RFC 1241]. Since 1.5 publication of such crates has emitted a
  2246. warning.
  2247. * `cargo clean` [accepts a `--release` flag][1.6cc] to clean the
  2248. release folder. A variety of artifacts that Cargo failed to clean
  2249. are now correctly deleted.
  2250. Misc
  2251. ----
  2252. * The `unreachable_code` lint [warns when a function call's argument
  2253. diverges][1.6dv].
  2254. * The parser indicates [failures that may be caused by
  2255. confusingly-similar Unicode characters][1.6uc]
  2256. * Certain macro errors [are reported at definition time][1.6m], not
  2257. expansion.
  2258. Compatibility Notes
  2259. -------------------
  2260. * The compiler no longer makes use of the [`RUST_PATH`][1.6rp]
  2261. environment variable when locating crates. This was a pre-cargo
  2262. feature for integrating with the package manager that was
  2263. accidentally never removed.
  2264. * [A number of bugs were fixed in the privacy checker][1.6p] that
  2265. could cause previously-accepted code to break.
  2266. * [Modules and unit/tuple structs may not share the same name][1.6ts].
  2267. * [Bugs in pattern matching unit structs were fixed][1.6us]. The tuple
  2268. struct pattern syntax (`Foo(..)`) can no longer be used to match
  2269. unit structs. This is a warning now, but will become an error in
  2270. future releases. Patterns that share the same name as a const are
  2271. now an error.
  2272. * A bug was fixed that causes [rustc not to apply default type
  2273. parameters][1.6xc] when resolving certain method implementations of
  2274. traits defined in other crates.
  2275. [1.6a]: https://github.com/rust-lang/rust/pull/29454
  2276. [1.6ae]: https://github.com/rust-lang/rust/pull/29770
  2277. [1.6bh]: https://github.com/rust-lang/rust/pull/29811
  2278. [1.6c]: https://github.com/rust-lang/cargo/pull/2192
  2279. [1.6cc]: https://github.com/rust-lang/cargo/pull/2131
  2280. [1.6co]: http://doc.rust-lang.org/beta/core/index.html
  2281. [1.6dv]: https://github.com/rust-lang/rust/pull/30000
  2282. [1.6f]: https://github.com/rust-lang/rust/pull/29129
  2283. [1.6m]: https://github.com/rust-lang/rust/pull/29828
  2284. [1.6ms]: https://github.com/rust-lang/rust/pull/29604
  2285. [1.6p]: https://github.com/rust-lang/rust/pull/29726
  2286. [1.6rp]: https://github.com/rust-lang/rust/pull/30034
  2287. [1.6rr]: https://github.com/rust-lang/cargo/pull/2134
  2288. [1.6s]: https://github.com/rust-lang/rust/pull/29675
  2289. [1.6ts]: https://github.com/rust-lang/rust/issues/21546
  2290. [1.6uc]: https://github.com/rust-lang/rust/pull/29837
  2291. [1.6us]: https://github.com/rust-lang/rust/pull/29383
  2292. [1.6xc]: https://github.com/rust-lang/rust/issues/30123
  2293. [RFC 1184]: https://github.com/rust-lang/rfcs/blob/master/text/1184-stabilize-no_std.md
  2294. [RFC 1241]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
  2295. [`ErrorKind::UnexpectedEof`]: http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html#variant.UnexpectedEof
  2296. [`Iterator::max_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.max_by_key
  2297. [`Iterator::min_by_key`]: http://doc.rust-lang.org/nightly/std/iter/trait.Iterator.html#method.min_by_key
  2298. [`Mutex::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.get_mut
  2299. [`Mutex::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html#method.into_inner
  2300. [`Read::read_exact`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact
  2301. [`RwLock::get_mut`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.get_mut
  2302. [`RwLock::into_inner`]: http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html#method.into_inner
  2303. [`Vec::extend_from_slice`]: http://doc.rust-lang.org/nightly/collections/vec/struct.Vec.html#method.extend_from_slice
  2304. [`collections::binary_heap::BinaryHeap::drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.BinaryHeap.html#method.drain
  2305. [`collections::binary_heap::Drain`]: http://doc.rust-lang.org/nightly/std/collections/binary_heap/struct.Drain.html
  2306. [`collections::hash_map::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.Drain.html
  2307. [`collections::hash_map::HashMap::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_map/struct.HashMap.html#method.drain
  2308. [`collections::hash_set::Drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.Drain.html
  2309. [`collections::hash_set::HashSet::drain`]: http://doc.rust-lang.org/nightly/std/collections/hash_set/struct.HashSet.html#method.drain
  2310. [`fs::DirBuilder::create`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.create
  2311. [`fs::DirBuilder::new`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.new
  2312. [`fs::DirBuilder::recursive`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html#method.recursive
  2313. [`fs::DirBuilder`]: http://doc.rust-lang.org/nightly/std/fs/struct.DirBuilder.html
  2314. [`os::unix::fs::DirBuilderExt::mode`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html#tymethod.mode
  2315. [`os::unix::fs::DirBuilderExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.DirBuilderExt.html
  2316. [`string::Drain`]: http://doc.rust-lang.org/nightly/std/string/struct.Drain.html
  2317. [`string::String::drain`]: http://doc.rust-lang.org/nightly/std/string/struct.String.html#method.drain
  2318. [`vec::Drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Drain.html
  2319. [`vec::Vec::drain`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.drain
  2320. [`vec_deque::Drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.Drain.html
  2321. [`vec_deque::VecDeque::drain`]: http://doc.rust-lang.org/nightly/std/collections/vec_deque/struct.VecDeque.html#method.drain
  2322. Version 1.5.0 (2015-12-10)
  2323. ==========================
  2324. * ~700 changes, numerous bugfixes
  2325. Highlights
  2326. ----------
  2327. * Stabilized APIs:
  2328. [`BinaryHeap::from`], [`BinaryHeap::into_sorted_vec`],
  2329. [`BinaryHeap::into_vec`], [`Condvar::wait_timeout`],
  2330. [`FileTypeExt::is_block_device`], [`FileTypeExt::is_char_device`],
  2331. [`FileTypeExt::is_fifo`], [`FileTypeExt::is_socket`],
  2332. [`FileTypeExt`], [`Formatter::alternate`], [`Formatter::fill`],
  2333. [`Formatter::precision`], [`Formatter::sign_aware_zero_pad`],
  2334. [`Formatter::sign_minus`], [`Formatter::sign_plus`],
  2335. [`Formatter::width`], [`Iterator::cmp`], [`Iterator::eq`],
  2336. [`Iterator::ge`], [`Iterator::gt`], [`Iterator::le`],
  2337. [`Iterator::lt`], [`Iterator::ne`], [`Iterator::partial_cmp`],
  2338. [`Path::canonicalize`], [`Path::exists`], [`Path::is_dir`],
  2339. [`Path::is_file`], [`Path::metadata`], [`Path::read_dir`],
  2340. [`Path::read_link`], [`Path::symlink_metadata`],
  2341. [`Utf8Error::valid_up_to`], [`Vec::resize`],
  2342. [`VecDeque::as_mut_slices`], [`VecDeque::as_slices`],
  2343. [`VecDeque::insert`], [`VecDeque::shrink_to_fit`],
  2344. [`VecDeque::swap_remove_back`], [`VecDeque::swap_remove_front`],
  2345. [`slice::split_first_mut`], [`slice::split_first`],
  2346. [`slice::split_last_mut`], [`slice::split_last`],
  2347. [`char::from_u32_unchecked`], [`fs::canonicalize`],
  2348. [`str::MatchIndices`], [`str::RMatchIndices`],
  2349. [`str::match_indices`], [`str::rmatch_indices`],
  2350. [`str::slice_mut_unchecked`], [`string::ParseError`].
  2351. * Rust applications hosted on crates.io can be installed locally to
  2352. `~/.cargo/bin` with the [`cargo install`] command. Among other
  2353. things this makes it easier to augment Cargo with new subcommands:
  2354. when a binary named e.g. `cargo-foo` is found in `$PATH` it can be
  2355. invoked as `cargo foo`.
  2356. * Crates with wildcard (`*`) dependencies will [emit warnings when
  2357. published][1.5w]. In 1.6 it will no longer be possible to publish
  2358. crates with wildcard dependencies.
  2359. Breaking Changes
  2360. ----------------
  2361. * The rules determining when a particular lifetime must outlive
  2362. a particular value (known as '[dropck]') have been [modified
  2363. to not rely on parametricity][1.5p].
  2364. * [Implementations of `AsRef` and `AsMut` were added to `Box`, `Rc`,
  2365. and `Arc`][1.5a]. Because these smart pointer types implement
  2366. `Deref`, this causes breakage in cases where the interior type
  2367. contains methods of the same name.
  2368. * [Correct a bug in Rc/Arc][1.5c] that caused [dropck] to be unaware
  2369. that they could drop their content. Soundness fix.
  2370. * All method invocations are [properly checked][1.5wf1] for
  2371. [well-formedness][1.5wf2]. Soundness fix.
  2372. * Traits whose supertraits contain `Self` are [not object
  2373. safe][1.5o]. Soundness fix.
  2374. * Target specifications support a [`no_default_libraries`][1.5nd]
  2375. setting that controls whether `-nodefaultlibs` is passed to the
  2376. linker, and in turn the `is_like_windows` setting no longer affects
  2377. the `-nodefaultlibs` flag.
  2378. * `#[derive(Show)]`, long-deprecated, [has been removed][1.5ds].
  2379. * The `#[inline]` and `#[repr]` attributes [can only appear
  2380. in valid locations][1.5at].
  2381. * Native libraries linked from the local crate are [passed to
  2382. the linker before native libraries from upstream crates][1.5nl].
  2383. * Two rarely-used attributes, `#[no_debug]` and
  2384. `#[omit_gdb_pretty_printer_section]` [are feature gated][1.5fg].
  2385. * Negation of unsigned integers, which has been a warning for
  2386. several releases, [is now behind a feature gate and will
  2387. generate errors][1.5nu].
  2388. * The parser accidentally accepted visibility modifiers on
  2389. enum variants, a bug [which has been fixed][1.5ev].
  2390. * [A bug was fixed that allowed `use` statements to import unstable
  2391. features][1.5use].
  2392. Language
  2393. --------
  2394. * When evaluating expressions at compile-time that are not
  2395. compile-time constants (const-evaluating expressions in non-const
  2396. contexts), incorrect code such as overlong bitshifts and arithmetic
  2397. overflow will [generate a warning instead of an error][1.5ce],
  2398. delaying the error until runtime. This will allow the
  2399. const-evaluator to be expanded in the future backwards-compatibly.
  2400. * The `improper_ctypes` lint [no longer warns about using `isize` and
  2401. `usize` in FFI][1.5ict].
  2402. Libraries
  2403. ---------
  2404. * `Arc<T>` and `Rc<T>` are [covariant with respect to `T` instead of
  2405. invariant][1.5c].
  2406. * `Default` is [implemented for mutable slices][1.5d].
  2407. * `FromStr` is [implemented for `SockAddrV4` and `SockAddrV6`][1.5s].
  2408. * There are now `From` conversions [between floating point
  2409. types][1.5f] where the conversions are lossless.
  2410. * Thera are now `From` conversions [between integer types][1.5i] where
  2411. the conversions are lossless.
  2412. * [`fs::Metadata` implements `Clone`][1.5fs].
  2413. * The `parse` method [accepts a leading "+" when parsing
  2414. integers][1.5pi].
  2415. * [`AsMut` is implemented for `Vec`][1.5am].
  2416. * The `clone_from` implementations for `String` and `BinaryHeap` [have
  2417. been optimized][1.5cf] and no longer rely on the default impl.
  2418. * The `extern "Rust"`, `extern "C"`, `unsafe extern "Rust"` and
  2419. `unsafe extern "C"` function types now [implement `Clone`,
  2420. `PartialEq`, `Eq`, `PartialOrd`, `Ord`, `Hash`, `fmt::Pointer`, and
  2421. `fmt::Debug` for up to 12 arguments][1.5fp].
  2422. * [Dropping `Vec`s is much faster in unoptimized builds when the
  2423. element types don't implement `Drop`][1.5dv].
  2424. * A bug that caused in incorrect behavior when [combining `VecDeque`
  2425. with zero-sized types][1.5vdz] was resolved.
  2426. * [`PartialOrd` for slices is faster][1.5po].
  2427. Miscellaneous
  2428. -------------
  2429. * [Crate metadata size was reduced by 20%][1.5md].
  2430. * [Improvements to code generation reduced the size of libcore by 3.3
  2431. MB and rustc's memory usage by 18MB][1.5m].
  2432. * [Improvements to deref translation increased performance in
  2433. unoptimized builds][1.5dr].
  2434. * Various errors in trait resolution [are deduplicated to only be
  2435. reported once][1.5te].
  2436. * Rust has preliminary [support for rumprun kernels][1.5rr].
  2437. * Rust has preliminary [support for NetBSD on amd64][1.5na].
  2438. [1.5use]: https://github.com/rust-lang/rust/pull/28364
  2439. [1.5po]: https://github.com/rust-lang/rust/pull/28436
  2440. [1.5ev]: https://github.com/rust-lang/rust/pull/28442
  2441. [1.5nu]: https://github.com/rust-lang/rust/pull/28468
  2442. [1.5dr]: https://github.com/rust-lang/rust/pull/28491
  2443. [1.5vdz]: https://github.com/rust-lang/rust/pull/28494
  2444. [1.5md]: https://github.com/rust-lang/rust/pull/28521
  2445. [1.5fg]: https://github.com/rust-lang/rust/pull/28522
  2446. [1.5dv]: https://github.com/rust-lang/rust/pull/28531
  2447. [1.5na]: https://github.com/rust-lang/rust/pull/28543
  2448. [1.5fp]: https://github.com/rust-lang/rust/pull/28560
  2449. [1.5rr]: https://github.com/rust-lang/rust/pull/28593
  2450. [1.5cf]: https://github.com/rust-lang/rust/pull/28602
  2451. [1.5nl]: https://github.com/rust-lang/rust/pull/28605
  2452. [1.5te]: https://github.com/rust-lang/rust/pull/28645
  2453. [1.5at]: https://github.com/rust-lang/rust/pull/28650
  2454. [1.5am]: https://github.com/rust-lang/rust/pull/28663
  2455. [1.5m]: https://github.com/rust-lang/rust/pull/28778
  2456. [1.5ict]: https://github.com/rust-lang/rust/pull/28779
  2457. [1.5a]: https://github.com/rust-lang/rust/pull/28811
  2458. [1.5pi]: https://github.com/rust-lang/rust/pull/28826
  2459. [1.5ce]: https://github.com/rust-lang/rfcs/blob/master/text/1229-compile-time-asserts.md
  2460. [1.5p]: https://github.com/rust-lang/rfcs/blob/master/text/1238-nonparametric-dropck.md
  2461. [1.5i]: https://github.com/rust-lang/rust/pull/28921
  2462. [1.5fs]: https://github.com/rust-lang/rust/pull/29021
  2463. [1.5f]: https://github.com/rust-lang/rust/pull/29129
  2464. [1.5ds]: https://github.com/rust-lang/rust/pull/29148
  2465. [1.5s]: https://github.com/rust-lang/rust/pull/29190
  2466. [1.5d]: https://github.com/rust-lang/rust/pull/29245
  2467. [1.5o]: https://github.com/rust-lang/rust/pull/29259
  2468. [1.5nd]: https://github.com/rust-lang/rust/pull/28578
  2469. [1.5wf2]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
  2470. [1.5wf1]: https://github.com/rust-lang/rust/pull/28669
  2471. [dropck]: https://doc.rust-lang.org/nightly/nomicon/dropck.html
  2472. [1.5c]: https://github.com/rust-lang/rust/pull/29110
  2473. [1.5w]: https://github.com/rust-lang/rfcs/blob/master/text/1241-no-wildcard-deps.md
  2474. [`cargo install`]: https://github.com/rust-lang/rfcs/blob/master/text/1200-cargo-install.md
  2475. [`BinaryHeap::from`]: http://doc.rust-lang.org/nightly/std/convert/trait.From.html#method.from
  2476. [`BinaryHeap::into_sorted_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_sorted_vec
  2477. [`BinaryHeap::into_vec`]: http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html#method.into_vec
  2478. [`Condvar::wait_timeout`]: http://doc.rust-lang.org/nightly/std/sync/struct.Condvar.html#method.wait_timeout
  2479. [`FileTypeExt::is_block_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_block_device
  2480. [`FileTypeExt::is_char_device`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_char_device
  2481. [`FileTypeExt::is_fifo`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_fifo
  2482. [`FileTypeExt::is_socket`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html#tymethod.is_socket
  2483. [`FileTypeExt`]: http://doc.rust-lang.org/nightly/std/os/unix/fs/trait.FileTypeExt.html
  2484. [`Formatter::alternate`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.alternate
  2485. [`Formatter::fill`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.fill
  2486. [`Formatter::precision`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.precision
  2487. [`Formatter::sign_aware_zero_pad`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_aware_zero_pad
  2488. [`Formatter::sign_minus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_minus
  2489. [`Formatter::sign_plus`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.sign_plus
  2490. [`Formatter::width`]: http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.width
  2491. [`Iterator::cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.cmp
  2492. [`Iterator::eq`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.eq
  2493. [`Iterator::ge`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ge
  2494. [`Iterator::gt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.gt
  2495. [`Iterator::le`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.le
  2496. [`Iterator::lt`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.lt
  2497. [`Iterator::ne`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.ne
  2498. [`Iterator::partial_cmp`]: http://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html#method.partial_cmp
  2499. [`Path::canonicalize`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.canonicalize
  2500. [`Path::exists`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.exists
  2501. [`Path::is_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_dir
  2502. [`Path::is_file`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.is_file
  2503. [`Path::metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.metadata
  2504. [`Path::read_dir`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_dir
  2505. [`Path::read_link`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.read_link
  2506. [`Path::symlink_metadata`]: http://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.symlink_metadata
  2507. [`Utf8Error::valid_up_to`]: http://doc.rust-lang.org/nightly/core/str/struct.Utf8Error.html#method.valid_up_to
  2508. [`Vec::resize`]: http://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#method.resize
  2509. [`VecDeque::as_mut_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_mut_slices
  2510. [`VecDeque::as_slices`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.as_slices
  2511. [`VecDeque::insert`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.insert
  2512. [`VecDeque::shrink_to_fit`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.shrink_to_fit
  2513. [`VecDeque::swap_remove_back`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_back
  2514. [`VecDeque::swap_remove_front`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.swap_remove_front
  2515. [`slice::split_first_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first_mut
  2516. [`slice::split_first`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_first
  2517. [`slice::split_last_mut`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last_mut
  2518. [`slice::split_last`]: http://doc.rust-lang.org/nightly/std/primitive.slice.html#method.split_last
  2519. [`char::from_u32_unchecked`]: http://doc.rust-lang.org/nightly/std/char/fn.from_u32_unchecked.html
  2520. [`fs::canonicalize`]: http://doc.rust-lang.org/nightly/std/fs/fn.canonicalize.html
  2521. [`str::MatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.MatchIndices.html
  2522. [`str::RMatchIndices`]: http://doc.rust-lang.org/nightly/std/str/struct.RMatchIndices.html
  2523. [`str::match_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.match_indices
  2524. [`str::rmatch_indices`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatch_indices
  2525. [`str::slice_mut_unchecked`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.slice_mut_unchecked
  2526. [`string::ParseError`]: http://doc.rust-lang.org/nightly/std/string/enum.ParseError.html
  2527. Version 1.4.0 (2015-10-29)
  2528. ==========================
  2529. * ~1200 changes, numerous bugfixes
  2530. Highlights
  2531. ----------
  2532. * Windows builds targeting the 64-bit MSVC ABI and linker (instead of
  2533. GNU) are now supported and recommended for use.
  2534. Breaking Changes
  2535. ----------------
  2536. * [Several changes have been made to fix type soundness and improve
  2537. the behavior of associated types][sound]. See [RFC 1214]. Although
  2538. we have mostly introduced these changes as warnings this release, to
  2539. become errors next release, there are still some scenarios that will
  2540. see immediate breakage.
  2541. * [The `str::lines` and `BufRead::lines` iterators treat `\r\n` as
  2542. line breaks in addition to `\n`][crlf].
  2543. * [Loans of `'static` lifetime extend to the end of a function][stat].
  2544. * [`str::parse` no longer introduces avoidable rounding error when
  2545. parsing floating point numbers. Together with earlier changes to
  2546. float formatting/output, "round trips" like f.to_string().parse()
  2547. now preserve the value of f exactly. Additionally, leading plus
  2548. signs are now accepted][fp3].
  2549. Language
  2550. --------
  2551. * `use` statements that import multiple items [can now rename
  2552. them][i], as in `use foo::{bar as kitten, baz as puppy}`.
  2553. * [Binops work correctly on fat pointers][binfat].
  2554. * `pub extern crate`, which does not behave as expected, [issues a
  2555. warning][pec] until a better solution is found.
  2556. Libraries
  2557. ---------
  2558. * [Many APIs were stabilized][stab]: `<Box<str>>::into_string`,
  2559. [`Arc::downgrade`], [`Arc::get_mut`], [`Arc::make_mut`],
  2560. [`Arc::try_unwrap`], [`Box::from_raw`], [`Box::into_raw`], [`CStr::to_str`],
  2561. [`CStr::to_string_lossy`], [`CString::from_raw`], [`CString::into_raw`],
  2562. [`IntoRawFd::into_raw_fd`], [`IntoRawFd`],
  2563. `IntoRawHandle::into_raw_handle`, `IntoRawHandle`,
  2564. `IntoRawSocket::into_raw_socket`, `IntoRawSocket`, [`Rc::downgrade`],
  2565. [`Rc::get_mut`], [`Rc::make_mut`], [`Rc::try_unwrap`], [`Result::expect`],
  2566. [`String::into_boxed_str`], [`TcpStream::read_timeout`],
  2567. [`TcpStream::set_read_timeout`], [`TcpStream::set_write_timeout`],
  2568. [`TcpStream::write_timeout`], [`UdpSocket::read_timeout`],
  2569. [`UdpSocket::set_read_timeout`], [`UdpSocket::set_write_timeout`],
  2570. [`UdpSocket::write_timeout`], `Vec::append`, `Vec::split_off`,
  2571. [`VecDeque::append`], [`VecDeque::retain`], [`VecDeque::split_off`],
  2572. [`rc::Weak::upgrade`], [`rc::Weak`], [`slice::Iter::as_slice`],
  2573. [`slice::IterMut::into_slice`], [`str::CharIndices::as_str`],
  2574. [`str::Chars::as_str`], [`str::split_at_mut`], [`str::split_at`],
  2575. [`sync::Weak::upgrade`], [`sync::Weak`], [`thread::park_timeout`],
  2576. [`thread::sleep`].
  2577. * [Some APIs were deprecated][dep]: `BTreeMap::with_b`,
  2578. `BTreeSet::with_b`, `Option::as_mut_slice`, `Option::as_slice`,
  2579. `Result::as_mut_slice`, `Result::as_slice`, `f32::from_str_radix`,
  2580. `f64::from_str_radix`.
  2581. * [Reverse-searching strings is faster with the 'two-way'
  2582. algorithm][s].
  2583. * [`std::io::copy` allows `?Sized` arguments][cc].
  2584. * The `Windows`, `Chunks`, and `ChunksMut` iterators over slices all
  2585. [override `count`, `nth` and `last` with an O(1)
  2586. implementation][it].
  2587. * [`Default` is implemented for arrays up to `[T; 32]`][d].
  2588. * [`IntoRawFd` has been added to the Unix-specific prelude,
  2589. `IntoRawSocket` and `IntoRawHandle` to the Windows-specific
  2590. prelude][pr].
  2591. * [`Extend<String>` and `FromIterator<String` are both implemented for
  2592. `String`][es].
  2593. * [`IntoIterator` is implemented for references to `Option` and
  2594. `Result`][into2].
  2595. * [`HashMap` and `HashSet` implement `Extend<&T>` where `T:
  2596. Copy`][ext] as part of [RFC 839]. This will cause type inferance
  2597. breakage in rare situations.
  2598. * [`BinaryHeap` implements `Debug`][bh2].
  2599. * [`Borrow` and `BorrowMut` are implemented for fixed-size
  2600. arrays][bm].
  2601. * [`extern fn`s with the "Rust" and "C" ABIs implement common
  2602. traits including `Eq`, `Ord`, `Debug`, `Hash`][fp].
  2603. * [String comparison is faster][faststr].
  2604. * `&mut T` where `T: std::fmt::Write` [also implements
  2605. `std::fmt::Write`][mutw].
  2606. * [A stable regression in `VecDeque::push_back` and other
  2607. capicity-altering methods that caused panics for zero-sized types
  2608. was fixed][vd].
  2609. * [Function pointers implement traits for up to 12 parameters][fp2].
  2610. Miscellaneous
  2611. -------------
  2612. * The compiler [no longer uses the 'morestack' feature to prevent
  2613. stack overflow][mm]. Instead it uses guard pages and stack
  2614. probes (though stack probes are not yet implemented on any platform
  2615. but Windows).
  2616. * [The compiler matches traits faster when projections are involved][p].
  2617. * The 'improper_ctypes' lint [no longer warns about use of `isize` and
  2618. `usize`][ffi].
  2619. * [Cargo now displays useful information about what its doing during
  2620. `cargo update`][cu].
  2621. [`Arc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.downgrade
  2622. [`Arc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.make_mut
  2623. [`Arc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.get_mut
  2624. [`Arc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html#method.try_unwrap
  2625. [`Box::from_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.from_raw
  2626. [`Box::into_raw`]: http://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html#method.into_raw
  2627. [`CStr::to_str`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_str
  2628. [`CStr::to_string_lossy`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html#method.to_string_lossy
  2629. [`CString::from_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.from_raw
  2630. [`CString::into_raw`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html#method.into_raw
  2631. [`IntoRawFd::into_raw_fd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html#tymethod.into_raw_fd
  2632. [`IntoRawFd`]: http://doc.rust-lang.org/nightly/std/os/unix/io/trait.IntoRawFd.html
  2633. [`Rc::downgrade`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.downgrade
  2634. [`Rc::get_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.get_mut
  2635. [`Rc::make_mut`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.make_mut
  2636. [`Rc::try_unwrap`]: http://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html#method.try_unwrap
  2637. [`Result::expect`]: http://doc.rust-lang.org/nightly/core/result/enum.Result.html#method.expect
  2638. [`String::into_boxed_str`]: http://doc.rust-lang.org/nightly/collections/string/struct.String.html#method.into_boxed_str
  2639. [`TcpStream::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
  2640. [`TcpStream::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
  2641. [`TcpStream::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
  2642. [`TcpStream::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
  2643. [`UdpSocket::read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.read_timeout
  2644. [`UdpSocket::set_read_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_read_timeout
  2645. [`UdpSocket::write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.write_timeout
  2646. [`UdpSocket::set_write_timeout`]: http://doc.rust-lang.org/nightly/std/net/struct.TcpStream.html#method.set_write_timeout
  2647. [`VecDeque::append`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.append
  2648. [`VecDeque::retain`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.retain
  2649. [`VecDeque::split_off`]: http://doc.rust-lang.org/nightly/std/collections/struct.VecDeque.html#method.split_off
  2650. [`rc::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html#method.upgrade
  2651. [`rc::Weak`]: http://doc.rust-lang.org/nightly/std/rc/struct.Weak.html
  2652. [`slice::Iter::as_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.Iter.html#method.as_slice
  2653. [`slice::IterMut::into_slice`]: http://doc.rust-lang.org/nightly/std/slice/struct.IterMut.html#method.into_slice
  2654. [`str::CharIndices::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.CharIndices.html#method.as_str
  2655. [`str::Chars::as_str`]: http://doc.rust-lang.org/nightly/std/str/struct.Chars.html#method.as_str
  2656. [`str::split_at_mut`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at_mut
  2657. [`str::split_at`]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_at
  2658. [`sync::Weak::upgrade`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html#method.upgrade
  2659. [`sync::Weak`]: http://doc.rust-lang.org/nightly/std/sync/struct.Weak.html
  2660. [`thread::park_timeout`]: http://doc.rust-lang.org/nightly/std/thread/fn.park_timeout.html
  2661. [`thread::sleep`]: http://doc.rust-lang.org/nightly/std/thread/fn.sleep.html
  2662. [bh2]: https://github.com/rust-lang/rust/pull/28156
  2663. [binfat]: https://github.com/rust-lang/rust/pull/28270
  2664. [bm]: https://github.com/rust-lang/rust/pull/28197
  2665. [cc]: https://github.com/rust-lang/rust/pull/27531
  2666. [crlf]: https://github.com/rust-lang/rust/pull/28034
  2667. [cu]: https://github.com/rust-lang/cargo/pull/1931
  2668. [d]: https://github.com/rust-lang/rust/pull/27825
  2669. [dep]: https://github.com/rust-lang/rust/pull/28339
  2670. [es]: https://github.com/rust-lang/rust/pull/27956
  2671. [ext]: https://github.com/rust-lang/rust/pull/28094
  2672. [faststr]: https://github.com/rust-lang/rust/pull/28338
  2673. [ffi]: https://github.com/rust-lang/rust/pull/28779
  2674. [fp]: https://github.com/rust-lang/rust/pull/28268
  2675. [fp2]: https://github.com/rust-lang/rust/pull/28560
  2676. [fp3]: https://github.com/rust-lang/rust/pull/27307
  2677. [i]: https://github.com/rust-lang/rust/pull/27451
  2678. [into2]: https://github.com/rust-lang/rust/pull/28039
  2679. [it]: https://github.com/rust-lang/rust/pull/27652
  2680. [mm]: https://github.com/rust-lang/rust/pull/27338
  2681. [mutw]: https://github.com/rust-lang/rust/pull/28368
  2682. [sound]: https://github.com/rust-lang/rust/pull/27641
  2683. [p]: https://github.com/rust-lang/rust/pull/27866
  2684. [pec]: https://github.com/rust-lang/rust/pull/28486
  2685. [pr]: https://github.com/rust-lang/rust/pull/27896
  2686. [RFC 839]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
  2687. [RFC 1214]: https://github.com/rust-lang/rfcs/blob/master/text/1214-projections-lifetimes-and-wf.md
  2688. [s]: https://github.com/rust-lang/rust/pull/27474
  2689. [stab]: https://github.com/rust-lang/rust/pull/28339
  2690. [stat]: https://github.com/rust-lang/rust/pull/28321
  2691. [vd]: https://github.com/rust-lang/rust/pull/28494
  2692. Version 1.3.0 (2015-09-17)
  2693. ==============================
  2694. * ~900 changes, numerous bugfixes
  2695. Highlights
  2696. ----------
  2697. * The [new object lifetime defaults][nold] have been [turned
  2698. on][nold2] after a cycle of warnings about the change. Now types
  2699. like `&'a Box<Trait>` (or `&'a Rc<Trait>`, etc) will change from
  2700. being interpreted as `&'a Box<Trait+'a>` to `&'a
  2701. Box<Trait+'static>`.
  2702. * [The Rustonomicon][nom] is a new book in the official documentation
  2703. that dives into writing unsafe Rust.
  2704. * The [`Duration`] API, [has been stabilized][ds]. This basic unit of
  2705. timekeeping is employed by other std APIs, as well as out-of-tree
  2706. time crates.
  2707. Breaking Changes
  2708. ----------------
  2709. * The [new object lifetime defaults][nold] have been [turned
  2710. on][nold2] after a cycle of warnings about the change.
  2711. * There is a known [regression][lr] in how object lifetime elision is
  2712. interpreted, the proper solution for which is undetermined.
  2713. * The `#[prelude_import]` attribute, an internal implementation
  2714. detail, was accidentally stabilized previously. [It has been put
  2715. behind the `prelude_import` feature gate][pi]. This change is
  2716. believed to break no existing code.
  2717. * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
  2718. [more sane for dynamically sized types][dst3]. Code that relied on
  2719. the previous behavior is thought to be broken.
  2720. * The `dropck` rules, which checks that destructors can't access
  2721. destroyed values, [have been updated][dropck] to match the
  2722. [RFC][dropckrfc]. This fixes some soundness holes, and as such will
  2723. cause some previously-compiling code to no longer build.
  2724. Language
  2725. --------
  2726. * The [new object lifetime defaults][nold] have been [turned
  2727. on][nold2] after a cycle of warnings about the change.
  2728. * Semicolons may [now follow types and paths in
  2729. macros](https://github.com/rust-lang/rust/pull/27000).
  2730. * The behavior of [`size_of_val`][dst1] and [`align_of_val`][dst2] is
  2731. [more sane for dynamically sized types][dst3]. Code that relied on
  2732. the previous behavior is not known to exist, and suspected to be
  2733. broken.
  2734. * `'static` variables [may now be recursive][st].
  2735. * `ref` bindings choose between [`Deref`] and [`DerefMut`]
  2736. implementations correctly.
  2737. * The `dropck` rules, which checks that destructors can't access
  2738. destroyed values, [have been updated][dropck] to match the
  2739. [RFC][dropckrfc].
  2740. Libraries
  2741. ---------
  2742. * The [`Duration`] API, [has been stabilized][ds], as well as the
  2743. `std::time` module, which presently contains only `Duration`.
  2744. * `Box<str>` and `Box<[T]>` both implement `Clone`.
  2745. * The owned C string, [`CString`], implements [`Borrow`] and the
  2746. borrowed C string, [`CStr`], implements [`ToOwned`]. The two of
  2747. these allow C strings to be borrowed and cloned in generic code.
  2748. * [`CStr`] implements [`Debug`].
  2749. * [`AtomicPtr`] implements [`Debug`].
  2750. * [`Error`] trait objects [can be downcast to their concrete types][e]
  2751. in many common configurations, using the [`is`], [`downcast`],
  2752. [`downcast_ref`] and [`downcast_mut`] methods, similarly to the
  2753. [`Any`] trait.
  2754. * Searching for substrings now [employs the two-way algorithm][search]
  2755. instead of doing a naive search. This gives major speedups to a
  2756. number of methods, including [`contains`][sc], [`find`][sf],
  2757. [`rfind`][srf], [`split`][ss]. [`starts_with`][ssw] and
  2758. [`ends_with`][sew] are also faster.
  2759. * The performance of `PartialEq` for slices is [much faster][ps].
  2760. * The [`Hash`] trait offers the default method, [`hash_slice`], which
  2761. is overridden and optimized by the implementations for scalars.
  2762. * The [`Hasher`] trait now has a number of specialized `write_*`
  2763. methods for primitive types, for efficiency.
  2764. * The I/O-specific error type, [`std::io::Error`][ie], gained a set of
  2765. methods for accessing the 'inner error', if any: [`get_ref`][iegr],
  2766. [`get_mut`][iegm], [`into_inner`][ieii]. As well, the implementation
  2767. of [`std::error::Error::cause`][iec] also delegates to the inner
  2768. error.
  2769. * [`process::Child`][pc] gained the [`id`] method, which returns a
  2770. `u32` representing the platform-specific process identifier.
  2771. * The [`connect`] method on slices is deprecated, replaced by the new
  2772. [`join`] method (note that both of these are on the *unstable*
  2773. [`SliceConcatExt`] trait, but through the magic of the prelude are
  2774. available to stable code anyway).
  2775. * The [`Div`] operator is implemented for [`Wrapping`] types.
  2776. * [`DerefMut` is implemented for `String`][dms].
  2777. * Performance of SipHash (the default hasher for `HashMap`) is
  2778. [better for long data][sh].
  2779. * [`AtomicPtr`] implements [`Send`].
  2780. * The [`read_to_end`] implementations for [`Stdin`] and [`File`]
  2781. are now [specialized to use uninitalized buffers for increased
  2782. performance][rte].
  2783. * Lifetime parameters of foreign functions [are now resolved
  2784. properly][f].
  2785. Misc
  2786. ----
  2787. * Rust can now, with some coercion, [produce programs that run on
  2788. Windows XP][xp], though XP is not considered a supported platform.
  2789. * Porting Rust on Windows from the GNU toolchain to MSVC continues
  2790. ([1][win1], [2][win2], [3][win3], [4][win4]). It is still not
  2791. recommended for use in 1.3, though should be fully-functional
  2792. in the [64-bit 1.4 beta][b14].
  2793. * On Fedora-based systems installation will [properly configure the
  2794. dynamic linker][fl].
  2795. * The compiler gained many new extended error descriptions, which can
  2796. be accessed with the `--explain` flag.
  2797. * The `dropck` pass, which checks that destructors can't access
  2798. destroyed values, [has been rewritten][dropck]. This fixes some
  2799. soundness holes, and as such will cause some previously-compiling
  2800. code to no longer build.
  2801. * `rustc` now uses [LLVM to write archive files where possible][ar].
  2802. Eventually this will eliminate the compiler's dependency on the ar
  2803. utility.
  2804. * Rust has [preliminary support for i686 FreeBSD][fb] (it has long
  2805. supported FreeBSD on x86_64).
  2806. * The [`unused_mut`][lum], [`unconditional_recursion`][lur],
  2807. [`improper_ctypes`][lic], and [`negate_unsigned`][lnu] lints are
  2808. more strict.
  2809. * If landing pads are disabled (with `-Z no-landing-pads`), [`panic!`
  2810. will kill the process instead of leaking][nlp].
  2811. [`Any`]: http://doc.rust-lang.org/nightly/std/any/trait.Any.html
  2812. [`AtomicPtr`]: http://doc.rust-lang.org/nightly/std/sync/atomic/struct.AtomicPtr.html
  2813. [`Borrow`]: http://doc.rust-lang.org/nightly/std/borrow/trait.Borrow.html
  2814. [`CStr`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CStr.html
  2815. [`CString`]: http://doc.rust-lang.org/nightly/std/ffi/struct.CString.html
  2816. [`Debug`]: http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
  2817. [`DerefMut`]: http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
  2818. [`Deref`]: http://doc.rust-lang.org/nightly/std/ops/trait.Deref.html
  2819. [`Div`]: http://doc.rust-lang.org/nightly/std/ops/trait.Div.html
  2820. [`Duration`]: http://doc.rust-lang.org/nightly/std/time/struct.Duration.html
  2821. [`Error`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html
  2822. [`File`]: http://doc.rust-lang.org/nightly/std/fs/struct.File.html
  2823. [`Hash`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html
  2824. [`Hasher`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hasher.html
  2825. [`Send`]: http://doc.rust-lang.org/nightly/std/marker/trait.Send.html
  2826. [`SliceConcatExt`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html
  2827. [`Stdin`]: http://doc.rust-lang.org/nightly/std/io/struct.Stdin.html
  2828. [`ToOwned`]: http://doc.rust-lang.org/nightly/std/borrow/trait.ToOwned.html
  2829. [`Wrapping`]: http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
  2830. [`connect`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.connect
  2831. [`downcast_mut`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_mut
  2832. [`downcast_ref`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast_ref
  2833. [`downcast`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.downcast
  2834. [`hash_slice`]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
  2835. [`id`]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html#method.id
  2836. [`is`]: http://doc.rust-lang.org/nightly/std/error/trait.Error.html#method.is
  2837. [`join`]: http://doc.rust-lang.org/nightly/std/slice/trait.SliceConcatExt.html#method.join
  2838. [`read_to_end`]: http://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end
  2839. [ar]: https://github.com/rust-lang/rust/pull/26926
  2840. [b14]: https://static.rust-lang.org/dist/rust-beta-x86_64-pc-windows-msvc.msi
  2841. [dms]: https://github.com/rust-lang/rust/pull/26241
  2842. [dropck]: https://github.com/rust-lang/rust/pull/27261
  2843. [dropckrfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
  2844. [ds]: https://github.com/rust-lang/rust/pull/26818
  2845. [dst1]: http://doc.rust-lang.org/nightly/std/mem/fn.size_of_val.html
  2846. [dst2]: http://doc.rust-lang.org/nightly/std/mem/fn.align_of_val.html
  2847. [dst3]: https://github.com/rust-lang/rust/pull/27351
  2848. [e]: https://github.com/rust-lang/rust/pull/24793
  2849. [f]: https://github.com/rust-lang/rust/pull/26588
  2850. [fb]: https://github.com/rust-lang/rust/pull/26959
  2851. [fl]: https://github.com/rust-lang/rust-installer/pull/41
  2852. [hs]: http://doc.rust-lang.org/nightly/std/hash/trait.Hash.html#method.hash_slice
  2853. [ie]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html
  2854. [iec]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.cause
  2855. [iegm]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_mut
  2856. [iegr]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.get_ref
  2857. [ieii]: http://doc.rust-lang.org/nightly/std/io/struct.Error.html#method.into_inner
  2858. [lic]: https://github.com/rust-lang/rust/pull/26583
  2859. [lnu]: https://github.com/rust-lang/rust/pull/27026
  2860. [lr]: https://github.com/rust-lang/rust/issues/27248
  2861. [lum]: https://github.com/rust-lang/rust/pull/26378
  2862. [lur]: https://github.com/rust-lang/rust/pull/26783
  2863. [nlp]: https://github.com/rust-lang/rust/pull/27176
  2864. [nold2]: https://github.com/rust-lang/rust/pull/27045
  2865. [nold]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
  2866. [nom]: http://doc.rust-lang.org/nightly/nomicon/
  2867. [pc]: http://doc.rust-lang.org/nightly/std/process/struct.Child.html
  2868. [pi]: https://github.com/rust-lang/rust/pull/26699
  2869. [ps]: https://github.com/rust-lang/rust/pull/26884
  2870. [rte]: https://github.com/rust-lang/rust/pull/26950
  2871. [sc]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.contains
  2872. [search]: https://github.com/rust-lang/rust/pull/26327
  2873. [sew]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.ends_with
  2874. [sf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.find
  2875. [sh]: https://github.com/rust-lang/rust/pull/27280
  2876. [srf]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rfind
  2877. [ss]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split
  2878. [ssw]: http://doc.rust-lang.org/nightly/std/primitive.str.html#method.starts_with
  2879. [st]: https://github.com/rust-lang/rust/pull/26630
  2880. [win1]: https://github.com/rust-lang/rust/pull/26569
  2881. [win2]: https://github.com/rust-lang/rust/pull/26741
  2882. [win3]: https://github.com/rust-lang/rust/pull/26741
  2883. [win4]: https://github.com/rust-lang/rust/pull/27210
  2884. [xp]: https://github.com/rust-lang/rust/pull/26569
  2885. Version 1.2.0 (2015-08-07)
  2886. ==========================
  2887. * ~1200 changes, numerous bugfixes
  2888. Highlights
  2889. ----------
  2890. * [Dynamically-sized-type coercions][dst] allow smart pointer types
  2891. like `Rc` to contain types without a fixed size, arrays and trait
  2892. objects, finally enabling use of `Rc<[T]>` and completing the
  2893. implementation of DST.
  2894. * [Parallel codegen][parcodegen] is now working again, which can
  2895. substantially speed up large builds in debug mode; It also gets
  2896. another ~33% speedup when bootstrapping on a 4 core machine (using 8
  2897. jobs). It's not enabled by default, but will be "in the near
  2898. future". It can be activated with the `-C codegen-units=N` flag to
  2899. `rustc`.
  2900. * This is the first release with [experimental support for linking
  2901. with the MSVC linker and lib C on Windows (instead of using the GNU
  2902. variants via MinGW)][win]. It is yet recommended only for the most
  2903. intrepid Rusticians.
  2904. * Benchmark compilations are showing a 30% improvement in
  2905. bootstrapping over 1.1.
  2906. Breaking Changes
  2907. ----------------
  2908. * The [`to_uppercase`] and [`to_lowercase`] methods on `char` now do
  2909. unicode case mapping, which is a previously-planned change in
  2910. behavior and considered a bugfix.
  2911. * [`mem::align_of`] now specifies [the *minimum alignment* for
  2912. T][align], which is usually the alignment programs are interested
  2913. in, and the same value reported by clang's
  2914. `alignof`. [`mem::min_align_of`] is deprecated. This is not known to
  2915. break real code.
  2916. * [The `#[packed]` attribute is no longer silently accepted by the
  2917. compiler][packed]. This attribute did nothing and code that
  2918. mentioned it likely did not work as intended.
  2919. * Associated type defaults are [now behind the
  2920. `associated_type_defaults` feature gate][ad]. In 1.1 associated type
  2921. defaults *did not work*, but could be mentioned syntactically. As
  2922. such this breakage has minimal impact.
  2923. Language
  2924. --------
  2925. * Patterns with `ref mut` now correctly invoke [`DerefMut`] when
  2926. matching against dereferencable values.
  2927. Libraries
  2928. ---------
  2929. * The [`Extend`] trait, which grows a collection from an iterator, is
  2930. implemented over iterators of references, for `String`, `Vec`,
  2931. `LinkedList`, `VecDeque`, `EnumSet`, `BinaryHeap`, `VecMap`,
  2932. `BTreeSet` and `BTreeMap`. [RFC][extend-rfc].
  2933. * The [`iter::once`] function returns an iterator that yields a single
  2934. element, and [`iter::empty`] returns an iterator that yields no
  2935. elements.
  2936. * The [`matches`] and [`rmatches`] methods on `str` return iterators
  2937. over substring matches.
  2938. * [`Cell`] and [`RefCell`] both implement `Eq`.
  2939. * A number of methods for wrapping arithmetic are added to the
  2940. integral types, [`wrapping_div`], [`wrapping_rem`],
  2941. [`wrapping_neg`], [`wrapping_shl`], [`wrapping_shr`]. These are in
  2942. addition to the existing [`wrapping_add`], [`wrapping_sub`], and
  2943. [`wrapping_mul`] methods, and alternatives to the [`Wrapping`]
  2944. type.. It is illegal for the default arithmetic operations in Rust
  2945. to overflow; the desire to wrap must be explicit.
  2946. * The `{:#?}` formatting specifier [displays the alternate,
  2947. pretty-printed][debugfmt] form of the `Debug` formatter. This
  2948. feature was actually introduced prior to 1.0 with little
  2949. fanfare.
  2950. * [`fmt::Formatter`] implements [`fmt::Write`], a `fmt`-specific trait
  2951. for writing data to formatted strings, similar to [`io::Write`].
  2952. * [`fmt::Formatter`] adds 'debug builder' methods, [`debug_struct`],
  2953. [`debug_tuple`], [`debug_list`], [`debug_set`], [`debug_map`]. These
  2954. are used by code generators to emit implementations of [`Debug`].
  2955. * `str` has new [`to_uppercase`][strup] and [`to_lowercase`][strlow]
  2956. methods that convert case, following Unicode case mapping.
  2957. * It is now easier to handle poisoned locks. The [`PoisonError`]
  2958. type, returned by failing lock operations, exposes `into_inner`,
  2959. `get_ref`, and `get_mut`, which all give access to the inner lock
  2960. guard, and allow the poisoned lock to continue to operate. The
  2961. `is_poisoned` method of [`RwLock`] and [`Mutex`] can poll for a
  2962. poisoned lock without attempting to take the lock.
  2963. * On Unix the [`FromRawFd`] trait is implemented for [`Stdio`], and
  2964. [`AsRawFd`] for [`ChildStdin`], [`ChildStdout`], [`ChildStderr`].
  2965. On Windows the `FromRawHandle` trait is implemented for `Stdio`,
  2966. and `AsRawHandle` for `ChildStdin`, `ChildStdout`,
  2967. `ChildStderr`.
  2968. * [`io::ErrorKind`] has a new variant, `InvalidData`, which indicates
  2969. malformed input.
  2970. Misc
  2971. ----
  2972. * `rustc` employs smarter heuristics for guessing at [typos].
  2973. * `rustc` emits more efficient code for [no-op conversions between
  2974. unsafe pointers][nop].
  2975. * Fat pointers are now [passed in pairs of immediate arguments][fat],
  2976. resulting in faster compile times and smaller code.
  2977. [`Extend`]: https://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
  2978. [extend-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
  2979. [`iter::once`]: https://doc.rust-lang.org/nightly/std/iter/fn.once.html
  2980. [`iter::empty`]: https://doc.rust-lang.org/nightly/std/iter/fn.empty.html
  2981. [`matches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
  2982. [`rmatches`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
  2983. [`Cell`]: https://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
  2984. [`RefCell`]: https://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
  2985. [`wrapping_add`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
  2986. [`wrapping_sub`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
  2987. [`wrapping_mul`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
  2988. [`wrapping_div`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
  2989. [`wrapping_rem`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
  2990. [`wrapping_neg`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
  2991. [`wrapping_shl`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
  2992. [`wrapping_shr`]: https://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
  2993. [`Wrapping`]: https://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
  2994. [`fmt::Formatter`]: https://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
  2995. [`fmt::Write`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
  2996. [`io::Write`]: https://doc.rust-lang.org/nightly/std/io/trait.Write.html
  2997. [`debug_struct`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
  2998. [`debug_tuple`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
  2999. [`debug_list`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
  3000. [`debug_set`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
  3001. [`debug_map`]: https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
  3002. [`Debug`]: https://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
  3003. [strup]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
  3004. [strlow]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
  3005. [`to_uppercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
  3006. [`to_lowercase`]: https://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
  3007. [`PoisonError`]: https://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
  3008. [`RwLock`]: https://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
  3009. [`Mutex`]: https://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
  3010. [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
  3011. [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
  3012. [`Stdio`]: https://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
  3013. [`ChildStdin`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
  3014. [`ChildStdout`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
  3015. [`ChildStderr`]: https://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
  3016. [`io::ErrorKind`]: https://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
  3017. [debugfmt]: https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
  3018. [`DerefMut`]: https://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
  3019. [`mem::align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
  3020. [align]: https://github.com/rust-lang/rust/pull/25646
  3021. [`mem::min_align_of`]: https://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
  3022. [typos]: https://github.com/rust-lang/rust/pull/26087
  3023. [nop]: https://github.com/rust-lang/rust/pull/26336
  3024. [fat]: https://github.com/rust-lang/rust/pull/26411
  3025. [dst]: https://github.com/rust-lang/rfcs/blob/master/text/0982-dst-coercion.md
  3026. [parcodegen]: https://github.com/rust-lang/rust/pull/26018
  3027. [packed]: https://github.com/rust-lang/rust/pull/25541
  3028. [ad]: https://github.com/rust-lang/rust/pull/27382
  3029. [win]: https://github.com/rust-lang/rust/pull/25350
  3030. Version 1.1.0 (2015-06-25)
  3031. =========================
  3032. * ~850 changes, numerous bugfixes
  3033. Highlights
  3034. ----------
  3035. * The [`std::fs` module has been expanded][fs] to expand the set of
  3036. functionality exposed:
  3037. * `DirEntry` now supports optimizations like `file_type` and `metadata` which
  3038. don't incur a syscall on some platforms.
  3039. * A `symlink_metadata` function has been added.
  3040. * The `fs::Metadata` structure now lowers to its OS counterpart, providing
  3041. access to all underlying information.
  3042. * The compiler now contains extended explanations of many errors. When an error
  3043. with an explanation occurs the compiler suggests using the `--explain` flag
  3044. to read the explanation. Error explanations are also [available online][err-index].
  3045. * Thanks to multiple [improvements][sk] to [type checking][pre], as
  3046. well as other work, the time to bootstrap the compiler decreased by
  3047. 32%.
  3048. Libraries
  3049. ---------
  3050. * The [`str::split_whitespace`] method splits a string on unicode
  3051. whitespace boundaries.
  3052. * On both Windows and Unix, new extension traits provide conversion of
  3053. I/O types to and from the underlying system handles. On Unix, these
  3054. traits are [`FromRawFd`] and [`AsRawFd`], on Windows `FromRawHandle`
  3055. and `AsRawHandle`. These are implemented for `File`, `TcpStream`,
  3056. `TcpListener`, and `UpdSocket`. Further implementations for
  3057. `std::process` will be stabilized later.
  3058. * On Unix, [`std::os::unix::symlink`] creates symlinks. On
  3059. Windows, symlinks can be created with
  3060. `std::os::windows::symlink_dir` and
  3061. `std::os::windows::symlink_file`.
  3062. * The `mpsc::Receiver` type can now be converted into an iterator with
  3063. `into_iter` on the [`IntoIterator`] trait.
  3064. * `Ipv4Addr` can be created from `u32` with the `From<u32>`
  3065. implementation of the [`From`] trait.
  3066. * The `Debug` implementation for `RangeFull` [creates output that is
  3067. more consistent with other implementations][rf].
  3068. * [`Debug` is implemented for `File`][file].
  3069. * The `Default` implementation for `Arc` [no longer requires `Sync +
  3070. Send`][arc].
  3071. * [The `Iterator` methods `count`, `nth`, and `last` have been
  3072. overridden for slices to have O(1) performance instead of O(n)][si].
  3073. * Incorrect handling of paths on Windows has been improved in both the
  3074. compiler and the standard library.
  3075. * [`AtomicPtr` gained a `Default` implementation][ap].
  3076. * In accordance with Rust's policy on arithmetic overflow `abs` now
  3077. [panics on overflow when debug assertions are enabled][abs].
  3078. * The [`Cloned`] iterator, which was accidentally left unstable for
  3079. 1.0 [has been stabilized][c].
  3080. * The [`Incoming`] iterator, which iterates over incoming TCP
  3081. connections, and which was accidentally unnamable in 1.0, [is now
  3082. properly exported][inc].
  3083. * [`BinaryHeap`] no longer corrupts itself [when functions called by
  3084. `sift_up` or `sift_down` panic][bh].
  3085. * The [`split_off`] method of `LinkedList` [no longer corrupts
  3086. the list in certain scenarios][ll].
  3087. Misc
  3088. ----
  3089. * Type checking performance [has improved notably][sk] with
  3090. [multiple improvements][pre].
  3091. * The compiler [suggests code changes][ch] for more errors.
  3092. * rustc and it's build system have experimental support for [building
  3093. toolchains against MUSL][m] instead of glibc on Linux.
  3094. * The compiler defines the `target_env` cfg value, which is used for
  3095. distinguishing toolchains that are otherwise for the same
  3096. platform. Presently this is set to `gnu` for common GNU Linux
  3097. targets and for MinGW targets, and `musl` for MUSL Linux targets.
  3098. * The [`cargo rustc`][crc] command invokes a build with custom flags
  3099. to rustc.
  3100. * [Android executables are always position independent][pie].
  3101. * [The `drop_with_repr_extern` lint warns about mixing `repr(C)`
  3102. with `Drop`][drop].
  3103. [`str::split_whitespace`]: https://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
  3104. [`FromRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
  3105. [`AsRawFd`]: https://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
  3106. [`std::os::unix::symlink`]: https://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
  3107. [`IntoIterator`]: https://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
  3108. [`From`]: https://doc.rust-lang.org/nightly/std/convert/trait.From.html
  3109. [rf]: https://github.com/rust-lang/rust/pull/24491
  3110. [err-index]: https://doc.rust-lang.org/error-index.html
  3111. [sk]: https://github.com/rust-lang/rust/pull/24615
  3112. [pre]: https://github.com/rust-lang/rust/pull/25323
  3113. [file]: https://github.com/rust-lang/rust/pull/24598
  3114. [ch]: https://github.com/rust-lang/rust/pull/24683
  3115. [arc]: https://github.com/rust-lang/rust/pull/24695
  3116. [si]: https://github.com/rust-lang/rust/pull/24701
  3117. [ap]: https://github.com/rust-lang/rust/pull/24834
  3118. [m]: https://github.com/rust-lang/rust/pull/24777
  3119. [fs]: https://github.com/rust-lang/rfcs/blob/master/text/1044-io-fs-2.1.md
  3120. [crc]: https://github.com/rust-lang/cargo/pull/1568
  3121. [pie]: https://github.com/rust-lang/rust/pull/24953
  3122. [abs]: https://github.com/rust-lang/rust/pull/25441
  3123. [c]: https://github.com/rust-lang/rust/pull/25496
  3124. [`Cloned`]: https://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
  3125. [`Incoming`]: https://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
  3126. [inc]: https://github.com/rust-lang/rust/pull/25522
  3127. [bh]: https://github.com/rust-lang/rust/pull/25856
  3128. [`BinaryHeap`]: https://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
  3129. [ll]: https://github.com/rust-lang/rust/pull/26022
  3130. [`split_off`]: https://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
  3131. [drop]: https://github.com/rust-lang/rust/pull/24935
  3132. Version 1.0.0 (2015-05-15)
  3133. ========================
  3134. * ~1500 changes, numerous bugfixes
  3135. Highlights
  3136. ----------
  3137. * The vast majority of the standard library is now `#[stable]`. It is
  3138. no longer possible to use unstable features with a stable build of
  3139. the compiler.
  3140. * Many popular crates on [crates.io] now work on the stable release
  3141. channel.
  3142. * Arithmetic on basic integer types now [checks for overflow in debug
  3143. builds][overflow].
  3144. Language
  3145. --------
  3146. * Several [restrictions have been added to trait coherence][coh] in
  3147. order to make it easier for upstream authors to change traits
  3148. without breaking downstream code.
  3149. * Digits of binary and octal literals are [lexed more eagerly][lex] to
  3150. improve error messages and macro behavior. For example, `0b1234` is
  3151. now lexed as `0b1234` instead of two tokens, `0b1` and `234`.
  3152. * Trait bounds [are always invariant][inv], eliminating the need for
  3153. the `PhantomFn` and `MarkerTrait` lang items, which have been
  3154. removed.
  3155. * ["-" is no longer a valid character in crate names][cr], the `extern crate
  3156. "foo" as bar` syntax has been replaced with `extern crate foo as
  3157. bar`, and Cargo now automatically translates "-" in *package* names
  3158. to underscore for the crate name.
  3159. * [Lifetime shadowing is an error][lt].
  3160. * [`Send` no longer implies `'static`][send-rfc].
  3161. * [UFCS now supports trait-less associated paths][moar-ufcs] like
  3162. `MyType::default()`.
  3163. * Primitive types [now have inherent methods][prim-inherent],
  3164. obviating the need for extension traits like `SliceExt`.
  3165. * Methods with `Self: Sized` in their `where` clause are [considered
  3166. object-safe][self-sized], allowing many extension traits like
  3167. `IteratorExt` to be merged into the traits they extended.
  3168. * You can now [refer to associated types][assoc-where] whose
  3169. corresponding trait bounds appear only in a `where` clause.
  3170. * The final bits of [OIBIT landed][oibit-final], meaning that traits
  3171. like `Send` and `Sync` are now library-defined.
  3172. * A [Reflect trait][reflect] was introduced, which means that
  3173. downcasting via the `Any` trait is effectively limited to concrete
  3174. types. This helps retain the potentially-important "parametricity"
  3175. property: generic code cannot behave differently for different type
  3176. arguments except in minor ways.
  3177. * The `unsafe_destructor` feature is now deprecated in favor of the
  3178. [new `dropck`][dropck]. This change is a major reduction in unsafe
  3179. code.
  3180. Libraries
  3181. ---------
  3182. * The `thread_local` module [has been renamed to `std::thread`][th].
  3183. * The methods of `IteratorExt` [have been moved to the `Iterator`
  3184. trait itself][ie].
  3185. * Several traits that implement Rust's conventions for type
  3186. conversions, `AsMut`, `AsRef`, `From`, and `Into` have been
  3187. [centralized in the `std::convert` module][con].
  3188. * The `FromError` trait [was removed in favor of `From`][fe].
  3189. * The basic sleep function [has moved to
  3190. `std::thread::sleep_ms`][slp].
  3191. * The `splitn` function now takes an `n` parameter that represents the
  3192. number of items yielded by the returned iterator [instead of the
  3193. number of 'splits'][spl].
  3194. * [On Unix, all file descriptors are `CLOEXEC` by default][clo].
  3195. * [Derived implementations of `PartialOrd` now order enums according
  3196. to their explicitly-assigned discriminants][po].
  3197. * [Methods for searching strings are generic over `Pattern`s][pat],
  3198. implemented presently by `&char`, `&str`, `FnMut(char) -> bool` and
  3199. some others.
  3200. * [In method resolution, object methods are resolved before inherent
  3201. methods][meth].
  3202. * [`String::from_str` has been deprecated in favor of the `From` impl,
  3203. `String::from`][sf].
  3204. * [`io::Error` implements `Sync`][ios].
  3205. * [The `words` method on `&str` has been replaced with
  3206. `split_whitespace`][sw], to avoid answering the tricky question, 'what is
  3207. a word?'
  3208. * The new path and IO modules are complete and `#[stable]`. This
  3209. was the major library focus for this cycle.
  3210. * The path API was [revised][path-normalize] to normalize `.`,
  3211. adjusting the tradeoffs in favor of the most common usage.
  3212. * A large number of remaining APIs in `std` were also stabilized
  3213. during this cycle; about 75% of the non-deprecated API surface
  3214. is now stable.
  3215. * The new [string pattern API][string-pattern] landed, which makes
  3216. the string slice API much more internally consistent and flexible.
  3217. * A new set of [generic conversion traits][conversion] replaced
  3218. many existing ad hoc traits.
  3219. * Generic numeric traits were [completely removed][num-traits]. This
  3220. was made possible thanks to inherent methods for primitive types,
  3221. and the removal gives maximal flexibility for designing a numeric
  3222. hierarchy in the future.
  3223. * The `Fn` traits are now related via [inheritance][fn-inherit]
  3224. and provide ergonomic [blanket implementations][fn-blanket].
  3225. * The `Index` and `IndexMut` traits were changed to
  3226. [take the index by value][index-value], enabling code like
  3227. `hash_map["string"]` to work.
  3228. * `Copy` now [inherits][copy-clone] from `Clone`, meaning that all
  3229. `Copy` data is known to be `Clone` as well.
  3230. Misc
  3231. ----
  3232. * Many errors now have extended explanations that can be accessed with
  3233. the `--explain` flag to `rustc`.
  3234. * Many new examples have been added to the standard library
  3235. documentation.
  3236. * rustdoc has received a number of improvements focused on completion
  3237. and polish.
  3238. * Metadata was tuned, shrinking binaries [by 27%][metadata-shrink].
  3239. * Much headway was made on ecosystem-wide CI, making it possible
  3240. to [compare builds for breakage][ci-compare].
  3241. [crates.io]: http://crates.io
  3242. [clo]: https://github.com/rust-lang/rust/pull/24034
  3243. [coh]: https://github.com/rust-lang/rfcs/blob/master/text/1023-rebalancing-coherence.md
  3244. [con]: https://github.com/rust-lang/rust/pull/23875
  3245. [cr]: https://github.com/rust-lang/rust/pull/23419
  3246. [fe]: https://github.com/rust-lang/rust/pull/23879
  3247. [ie]: https://github.com/rust-lang/rust/pull/23300
  3248. [inv]: https://github.com/rust-lang/rust/pull/23938
  3249. [ios]: https://github.com/rust-lang/rust/pull/24133
  3250. [lex]: https://github.com/rust-lang/rfcs/blob/master/text/0879-small-base-lexing.md
  3251. [lt]: https://github.com/rust-lang/rust/pull/24057
  3252. [meth]: https://github.com/rust-lang/rust/pull/24056
  3253. [pat]: https://github.com/rust-lang/rfcs/blob/master/text/0528-string-patterns.md
  3254. [po]: https://github.com/rust-lang/rust/pull/24270
  3255. [sf]: https://github.com/rust-lang/rust/pull/24517
  3256. [slp]: https://github.com/rust-lang/rust/pull/23949
  3257. [spl]: https://github.com/rust-lang/rfcs/blob/master/text/0979-align-splitn-with-other-languages.md
  3258. [sw]: https://github.com/rust-lang/rfcs/blob/master/text/1054-str-words.md
  3259. [th]: https://github.com/rust-lang/rfcs/blob/master/text/0909-move-thread-local-to-std-thread.md
  3260. [send-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0458-send-improvements.md
  3261. [moar-ufcs]: https://github.com/rust-lang/rust/pull/22172
  3262. [prim-inherent]: https://github.com/rust-lang/rust/pull/23104
  3263. [overflow]: https://github.com/rust-lang/rfcs/blob/master/text/0560-integer-overflow.md
  3264. [metadata-shrink]: https://github.com/rust-lang/rust/pull/22971
  3265. [self-sized]: https://github.com/rust-lang/rust/pull/22301
  3266. [assoc-where]: https://github.com/rust-lang/rust/pull/22512
  3267. [string-pattern]: https://github.com/rust-lang/rust/pull/22466
  3268. [oibit-final]: https://github.com/rust-lang/rust/pull/21689
  3269. [reflect]: https://github.com/rust-lang/rust/pull/23712
  3270. [conversion]: https://github.com/rust-lang/rfcs/pull/529
  3271. [num-traits]: https://github.com/rust-lang/rust/pull/23549
  3272. [index-value]: https://github.com/rust-lang/rust/pull/23601
  3273. [dropck]: https://github.com/rust-lang/rfcs/pull/769
  3274. [ci-compare]: https://gist.github.com/brson/a30a77836fbec057cbee
  3275. [fn-inherit]: https://github.com/rust-lang/rust/pull/23282
  3276. [fn-blanket]: https://github.com/rust-lang/rust/pull/23895
  3277. [copy-clone]: https://github.com/rust-lang/rust/pull/23860
  3278. [path-normalize]: https://github.com/rust-lang/rust/pull/23229
  3279. Version 1.0.0-alpha.2 (2015-02-20)
  3280. =====================================
  3281. * ~1300 changes, numerous bugfixes
  3282. * Highlights
  3283. * The various I/O modules were [overhauled][io-rfc] to reduce
  3284. unnecessary abstractions and provide better interoperation with
  3285. the underlying platform. The old `io` module remains temporarily
  3286. at `std::old_io`.
  3287. * The standard library now [participates in feature gating][feat],
  3288. so use of unstable libraries now requires a `#![feature(...)]`
  3289. attribute. The impact of this change is [described on the
  3290. forum][feat-forum]. [RFC][feat-rfc].
  3291. * Language
  3292. * `for` loops [now operate on the `IntoIterator` trait][into],
  3293. which eliminates the need to call `.iter()`, etc. to iterate
  3294. over collections. There are some new subtleties to remember
  3295. though regarding what sort of iterators various types yield, in
  3296. particular that `for foo in bar { }` yields values from a move
  3297. iterator, destroying the original collection. [RFC][into-rfc].
  3298. * Objects now have [default lifetime bounds][obj], so you don't
  3299. have to write `Box<Trait+'static>` when you don't care about
  3300. storing references. [RFC][obj-rfc].
  3301. * In types that implement `Drop`, [lifetimes must outlive the
  3302. value][drop]. This will soon make it possible to safely
  3303. implement `Drop` for types where `#[unsafe_destructor]` is now
  3304. required. Read the [gorgeous RFC][drop-rfc] for details.
  3305. * The fully qualified <T as Trait>::X syntax lets you set the Self
  3306. type for a trait method or associated type. [RFC][ufcs-rfc].
  3307. * References to types that implement `Deref<U>` now [automatically
  3308. coerce to references][deref] to the dereferenced type `U`,
  3309. e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This
  3310. should eliminate many unsightly uses of `&*`, as when converting
  3311. from references to vectors into references to
  3312. slices. [RFC][deref-rfc].
  3313. * The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`,
  3314. `|:|`) is obsolete and closure kind is inferred from context.
  3315. * [`Self` is a keyword][Self].
  3316. * Libraries
  3317. * The `Show` and `String` formatting traits [have been
  3318. renamed][fmt] to `Debug` and `Display` to more clearly reflect
  3319. their related purposes. Automatically getting a string
  3320. conversion to use with `format!("{:?}", something_to_debug)` is
  3321. now written `#[derive(Debug)]`.
  3322. * Abstract [OS-specific string types][osstr], `std::ff::{OsString,
  3323. OsStr}`, provide strings in platform-specific encodings for easier
  3324. interop with system APIs. [RFC][osstr-rfc].
  3325. * The `boxed::into_raw` and `Box::from_raw` functions [convert
  3326. between `Box<T>` and `*mut T`][boxraw], a common pattern for
  3327. creating raw pointers.
  3328. * Tooling
  3329. * Certain long error messages of the form 'expected foo found bar'
  3330. are now [split neatly across multiple
  3331. lines][multiline]. Examples in the PR.
  3332. * On Unix Rust can be [uninstalled][un] by running
  3333. `/usr/local/lib/rustlib/uninstall.sh`.
  3334. * The `#[rustc_on_unimplemented]` attribute, requiring the
  3335. 'on_unimplemented' feature, lets rustc [display custom error
  3336. messages when a trait is expected to be implemented for a type
  3337. but is not][onun].
  3338. * Misc
  3339. * Rust is tested against a [LALR grammar][lalr], which parses
  3340. almost all the Rust files that rustc does.
  3341. [boxraw]: https://github.com/rust-lang/rust/pull/21318
  3342. [close]: https://github.com/rust-lang/rust/pull/21843
  3343. [deref]: https://github.com/rust-lang/rust/pull/21351
  3344. [deref-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md
  3345. [drop]: https://github.com/rust-lang/rust/pull/21972
  3346. [drop-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
  3347. [feat]: https://github.com/rust-lang/rust/pull/21248
  3348. [feat-forum]: https://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
  3349. [feat-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
  3350. [fmt]: https://github.com/rust-lang/rust/pull/21457
  3351. [into]: https://github.com/rust-lang/rust/pull/20790
  3352. [into-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable
  3353. [io-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
  3354. [lalr]: https://github.com/rust-lang/rust/pull/21452
  3355. [multiline]: https://github.com/rust-lang/rust/pull/19870
  3356. [obj]: https://github.com/rust-lang/rust/pull/22230
  3357. [obj-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
  3358. [onun]: https://github.com/rust-lang/rust/pull/20889
  3359. [osstr]: https://github.com/rust-lang/rust/pull/21488
  3360. [osstr-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
  3361. [Self]: https://github.com/rust-lang/rust/pull/22158
  3362. [ufcs-rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
  3363. [un]: https://github.com/rust-lang/rust/pull/22256
  3364. Version 1.0.0-alpha (2015-01-09)
  3365. ==================================
  3366. * ~2400 changes, numerous bugfixes
  3367. * Highlights
  3368. * The language itself is considered feature complete for 1.0,
  3369. though there will be many usability improvements and bugfixes
  3370. before the final release.
  3371. * Nearly 50% of the public API surface of the standard library has
  3372. been declared 'stable'. Those interfaces are unlikely to change
  3373. before 1.0.
  3374. * The long-running debate over integer types has been
  3375. [settled][ints]: Rust will ship with types named `isize` and
  3376. `usize`, rather than `int` and `uint`, for pointer-sized
  3377. integers. Guidelines will be rolled out during the alpha cycle.
  3378. * Most crates that are not `std` have been moved out of the Rust
  3379. distribution into the Cargo ecosystem so they can evolve
  3380. separately and don't need to be stabilized as quickly, including
  3381. 'time', 'getopts', 'num', 'regex', and 'term'.
  3382. * Documentation continues to be expanded with more API coverage, more
  3383. examples, and more in-depth explanations. The guides have been
  3384. consolidated into [The Rust Programming Language][trpl].
  3385. * "[Rust By Example][rbe]" is now maintained by the Rust team.
  3386. * All official Rust binary installers now come with [Cargo], the
  3387. Rust package manager.
  3388. * Language
  3389. * Closures have been [completely redesigned][unboxed] to be
  3390. implemented in terms of traits, can now be used as generic type
  3391. bounds and thus monomorphized and inlined, or via an opaque
  3392. pointer (boxed) as in the old system. The new system is often
  3393. referred to as 'unboxed' closures.
  3394. * Traits now support [associated types][assoc], allowing families
  3395. of related types to be defined together and used generically in
  3396. powerful ways.
  3397. * Enum variants are [namespaced by their type names][enum].
  3398. * [`where` clauses][where] provide a more versatile and attractive
  3399. syntax for specifying generic bounds, though the previous syntax
  3400. remains valid.
  3401. * Rust again picks a [fallback][fb] (either i32 or f64) for uninferred
  3402. numeric types.
  3403. * Rust [no longer has a runtime][rt] of any description, and only
  3404. supports OS threads, not green threads.
  3405. * At long last, Rust has been overhauled for 'dynamically-sized
  3406. types' ([DST]), which integrates 'fat pointers' (object types,
  3407. arrays, and `str`) more deeply into the type system, making it
  3408. more consistent.
  3409. * Rust now has a general [range syntax][range], `i..j`, `i..`, and
  3410. `..j` that produce range types and which, when combined with the
  3411. `Index` operator and multidispatch, leads to a convenient slice
  3412. notation, `[i..j]`.
  3413. * The new range syntax revealed an ambiguity in the fixed-length
  3414. array syntax, so now fixed length arrays [are written `[T;
  3415. N]`][arrays].
  3416. * The `Copy` trait is no longer implemented automatically. Unsafe
  3417. pointers no longer implement `Sync` and `Send` so types
  3418. containing them don't automatically either. `Sync` and `Send`
  3419. are now 'unsafe traits' so one can "forcibly" implement them via
  3420. `unsafe impl` if a type confirms to the requirements for them
  3421. even though the internals do not (e.g. structs containing unsafe
  3422. pointers like `Arc`). These changes are intended to prevent some
  3423. footguns and are collectively known as [opt-in built-in
  3424. traits][oibit] (though `Sync` and `Send` will soon become pure
  3425. library types unknown to the compiler).
  3426. * Operator traits now take their operands [by value][ops], and
  3427. comparison traits can use multidispatch to compare one type
  3428. against multiple other types, allowing e.g. `String` to be
  3429. compared with `&str`.
  3430. * `if let` and `while let` are no longer feature-gated.
  3431. * Rust has adopted a more [uniform syntax for escaping unicode
  3432. characters][unicode].
  3433. * `macro_rules!` [has been declared stable][mac]. Though it is a
  3434. flawed system it is sufficiently popular that it must be usable
  3435. for 1.0. Effort has gone into [future-proofing][mac-future] it
  3436. in ways that will allow other macro systems to be developed in
  3437. parallel, and won't otherwise impact the evolution of the
  3438. language.
  3439. * The prelude has been [pared back significantly][prelude] such
  3440. that it is the minimum necessary to support the most pervasive
  3441. code patterns, and through [generalized where clauses][where]
  3442. many of the prelude extension traits have been consolidated.
  3443. * Rust's rudimentary reflection [has been removed][refl], as it
  3444. incurred too much code generation for little benefit.
  3445. * [Struct variants][structvars] are no longer feature-gated.
  3446. * Trait bounds can be [polymorphic over lifetimes][hrtb]. Also
  3447. known as 'higher-ranked trait bounds', this crucially allows
  3448. unboxed closures to work.
  3449. * Macros invocations surrounded by parens or square brackets and
  3450. not terminated by a semicolon are [parsed as
  3451. expressions][macros], which makes expressions like `vec![1i32,
  3452. 2, 3].len()` work as expected.
  3453. * Trait objects now implement their traits automatically, and
  3454. traits that can be coerced to objects now must be [object
  3455. safe][objsafe].
  3456. * Automatically deriving traits is now done with `#[derive(...)]`
  3457. not `#[deriving(...)]` for [consistency with other naming
  3458. conventions][derive].
  3459. * Importing the containing module or enum at the same time as
  3460. items or variants they contain is [now done with `self` instead
  3461. of `mod`][self], as in use `foo::{self, bar}`
  3462. * Glob imports are no longer feature-gated.
  3463. * The `box` operator and `box` patterns have been feature-gated
  3464. pending a redesign. For now unique boxes should be allocated
  3465. like other containers, with `Box::new`.
  3466. * Libraries
  3467. * A [series][coll1] of [efforts][coll2] to establish
  3468. [conventions][coll3] for collections types has resulted in API
  3469. improvements throughout the standard library.
  3470. * New [APIs for error handling][err] provide ergonomic interop
  3471. between error types, and [new conventions][err-conv] describe
  3472. more clearly the recommended error handling strategies in Rust.
  3473. * The `fail!` macro has been renamed to [`panic!`][panic] so that
  3474. it is easier to discuss failure in the context of error handling
  3475. without making clarifications as to whether you are referring to
  3476. the 'fail' macro or failure more generally.
  3477. * On Linux, `OsRng` prefers the new, more reliable `getrandom`
  3478. syscall when available.
  3479. * The 'serialize' crate has been renamed 'rustc-serialize' and
  3480. moved out of the distribution to Cargo. Although it is widely
  3481. used now, it is expected to be superseded in the near future.
  3482. * The `Show` formatter, typically implemented with
  3483. `#[derive(Show)]` is [now requested with the `{:?}`
  3484. specifier][show] and is intended for use by all types, for uses
  3485. such as `println!` debugging. The new `String` formatter must be
  3486. implemented by hand, uses the `{}` specifier, and is intended
  3487. for full-fidelity conversions of things that can logically be
  3488. represented as strings.
  3489. * Tooling
  3490. * [Flexible target specification][flex] allows rustc's code
  3491. generation to be configured to support otherwise-unsupported
  3492. platforms.
  3493. * Rust comes with rust-gdb and rust-lldb scripts that launch their
  3494. respective debuggers with Rust-appropriate pretty-printing.
  3495. * The Windows installation of Rust is distributed with the
  3496. MinGW components currently required to link binaries on that
  3497. platform.
  3498. * Misc
  3499. * Nullable enum optimizations have been extended to more types so
  3500. that e.g. `Option<Vec<T>>` and `Option<String>` take up no more
  3501. space than the inner types themselves.
  3502. * Work has begun on supporting AArch64.
  3503. [Cargo]: https://crates.io
  3504. [unboxed]: http://smallcultfollowing.com/babysteps/blog/2014/11/26/purging-proc/
  3505. [enum]: https://github.com/rust-lang/rfcs/blob/master/text/0390-enum-namespacing.md
  3506. [flex]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md
  3507. [err]: https://github.com/rust-lang/rfcs/blob/master/text/0201-error-chaining.md
  3508. [err-conv]: https://github.com/rust-lang/rfcs/blob/master/text/0236-error-conventions.md
  3509. [rt]: https://github.com/rust-lang/rfcs/blob/master/text/0230-remove-runtime.md
  3510. [mac]: https://github.com/rust-lang/rfcs/blob/master/text/0453-macro-reform.md
  3511. [mac-future]: https://github.com/rust-lang/rfcs/pull/550
  3512. [DST]: http://smallcultfollowing.com/babysteps/blog/2014/01/05/dst-take-5/
  3513. [coll1]: https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md
  3514. [coll2]: https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
  3515. [coll3]: https://github.com/rust-lang/rfcs/blob/master/text/0216-collection-views.md
  3516. [ops]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md
  3517. [prelude]: https://github.com/rust-lang/rfcs/blob/master/text/0503-prelude-stabilization.md
  3518. [where]: https://github.com/rust-lang/rfcs/blob/master/text/0135-where.md
  3519. [refl]: https://github.com/rust-lang/rfcs/blob/master/text/0379-remove-reflection.md
  3520. [panic]: https://github.com/rust-lang/rfcs/blob/master/text/0221-panic.md
  3521. [structvars]: https://github.com/rust-lang/rfcs/blob/master/text/0418-struct-variants.md
  3522. [hrtb]: https://github.com/rust-lang/rfcs/blob/master/text/0387-higher-ranked-trait-bounds.md
  3523. [unicode]: https://github.com/rust-lang/rfcs/blob/master/text/0446-es6-unicode-escapes.md
  3524. [oibit]: https://github.com/rust-lang/rfcs/blob/master/text/0019-opt-in-builtin-traits.md
  3525. [macros]: https://github.com/rust-lang/rfcs/blob/master/text/0378-expr-macros.md
  3526. [range]: https://github.com/rust-lang/rfcs/blob/master/text/0439-cmp-ops-reform.md#indexing-and-slicing
  3527. [arrays]: https://github.com/rust-lang/rfcs/blob/master/text/0520-new-array-repeat-syntax.md
  3528. [show]: https://github.com/rust-lang/rfcs/blob/master/text/0504-show-stabilization.md
  3529. [derive]: https://github.com/rust-lang/rfcs/blob/master/text/0534-deriving2derive.md
  3530. [self]: https://github.com/rust-lang/rfcs/blob/master/text/0532-self-in-use.md
  3531. [fb]: https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md
  3532. [objsafe]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
  3533. [assoc]: https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
  3534. [ints]: https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
  3535. [trpl]: https://doc.rust-lang.org/book/index.html
  3536. [rbe]: http://rustbyexample.com/
  3537. Version 0.12.0 (2014-10-09)
  3538. =============================
  3539. * ~1900 changes, numerous bugfixes
  3540. * Highlights
  3541. * The introductory documentation (now called The Rust Guide) has
  3542. been completely rewritten, as have a number of supplementary
  3543. guides.
  3544. * Rust's package manager, Cargo, continues to improve and is
  3545. sometimes considered to be quite awesome.
  3546. * Many API's in `std` have been reviewed and updated for
  3547. consistency with the in-development Rust coding
  3548. guidelines. The standard library documentation tracks
  3549. stabilization progress.
  3550. * Minor libraries have been moved out-of-tree to the rust-lang org
  3551. on GitHub: uuid, semver, glob, num, hexfloat, fourcc. They can
  3552. be installed with Cargo.
  3553. * Lifetime elision allows lifetime annotations to be left off of
  3554. function declarations in many common scenarios.
  3555. * Rust now works on 64-bit Windows.
  3556. * Language
  3557. * Indexing can be overloaded with the `Index` and `IndexMut`
  3558. traits.
  3559. * The `if let` construct takes a branch only if the `let` pattern
  3560. matches, currently behind the 'if_let' feature gate.
  3561. * 'where clauses', a more flexible syntax for specifying trait
  3562. bounds that is more aesthetic, have been added for traits and
  3563. free functions. Where clauses will in the future make it
  3564. possible to constrain associated types, which would be
  3565. impossible with the existing syntax.
  3566. * A new slicing syntax (e.g. `[0..4]`) has been introduced behind
  3567. the 'slicing_syntax' feature gate, and can be overloaded with
  3568. the `Slice` or `SliceMut` traits.
  3569. * The syntax for matching of sub-slices has been changed to use a
  3570. postfix `..` instead of prefix (.e.g. `[a, b, c..]`), for
  3571. consistency with other uses of `..` and to future-proof
  3572. potential additional uses of the syntax.
  3573. * The syntax for matching inclusive ranges in patterns has changed
  3574. from `0..3` to `0...4` to be consistent with the exclusive range
  3575. syntax for slicing.
  3576. * Matching of sub-slices in non-tail positions (e.g. `[a.., b,
  3577. c]`) has been put behind the 'advanced_slice_patterns' feature
  3578. gate and may be removed in the future.
  3579. * Components of tuples and tuple structs can be extracted using
  3580. the `value.0` syntax, currently behind the `tuple_indexing`
  3581. feature gate.
  3582. * The `#[crate_id]` attribute is no longer supported; versioning
  3583. is handled by the package manager.
  3584. * Renaming crate imports are now written `extern crate foo as bar`
  3585. instead of `extern crate bar = foo`.
  3586. * Renaming use statements are now written `use foo as bar` instead
  3587. of `use bar = foo`.
  3588. * `let` and `match` bindings and argument names in macros are now
  3589. hygienic.
  3590. * The new, more efficient, closure types ('unboxed closures') have
  3591. been added under a feature gate, 'unboxed_closures'. These will
  3592. soon replace the existing closure types, once higher-ranked
  3593. trait lifetimes are added to the language.
  3594. * `move` has been added as a keyword, for indicating closures
  3595. that capture by value.
  3596. * Mutation and assignment is no longer allowed in pattern guards.
  3597. * Generic structs and enums can now have trait bounds.
  3598. * The `Share` trait is now called `Sync` to free up the term
  3599. 'shared' to refer to 'shared reference' (the default reference
  3600. type.
  3601. * Dynamically-sized types have been mostly implemented,
  3602. unifying the behavior of fat-pointer types with the rest of the
  3603. type system.
  3604. * As part of dynamically-sized types, the `Sized` trait has been
  3605. introduced, which qualifying types implement by default, and
  3606. which type parameters expect by default. To specify that a type
  3607. parameter does not need to be sized, write `<Sized? T>`. Most
  3608. types are `Sized`, notable exceptions being unsized arrays
  3609. (`[T]`) and trait types.
  3610. * Closures can return `!`, as in `|| -> !` or `proc() -> !`.
  3611. * Lifetime bounds can now be applied to type parameters and object
  3612. types.
  3613. * The old, reference counted GC type, `Gc<T>` which was once
  3614. denoted by the `@` sigil, has finally been removed. GC will be
  3615. revisited in the future.
  3616. * Libraries
  3617. * Library documentation has been improved for a number of modules.
  3618. * Bit-vectors, collections::bitv has been modernized.
  3619. * The url crate is deprecated in favor of
  3620. http://github.com/servo/rust-url, which can be installed with
  3621. Cargo.
  3622. * Most I/O stream types can be cloned and subsequently closed from
  3623. a different thread.
  3624. * A `std::time::Duration` type has been added for use in I/O
  3625. methods that rely on timers, as well as in the 'time' crate's
  3626. `Timespec` arithmetic.
  3627. * The runtime I/O abstraction layer that enabled the green thread
  3628. scheduler to do non-thread-blocking I/O has been removed, along
  3629. with the libuv-based implementation employed by the green thread
  3630. scheduler. This will greatly simplify the future I/O work.
  3631. * `collections::btree` has been rewritten to have a more
  3632. idiomatic and efficient design.
  3633. * Tooling
  3634. * rustdoc output now indicates the stability levels of API's.
  3635. * The `--crate-name` flag can specify the name of the crate
  3636. being compiled, like `#[crate_name]`.
  3637. * The `-C metadata` specifies additional metadata to hash into
  3638. symbol names, and `-C extra-filename` specifies additional
  3639. information to put into the output filename, for use by the
  3640. package manager for versioning.
  3641. * debug info generation has continued to improve and should be
  3642. more reliable under both gdb and lldb.
  3643. * rustc has experimental support for compiling in parallel
  3644. using the `-C codegen-units` flag.
  3645. * rustc no longer encodes rpath information into binaries by
  3646. default.
  3647. * Misc
  3648. * Stack usage has been optimized with LLVM lifetime annotations.
  3649. * Official Rust binaries on Linux are more compatible with older
  3650. kernels and distributions, built on CentOS 5.10.
  3651. Version 0.11.0 (2014-07-02)
  3652. ==========================
  3653. * ~1700 changes, numerous bugfixes
  3654. * Language
  3655. * ~[T] has been removed from the language. This type is superseded by
  3656. the Vec<T> type.
  3657. * ~str has been removed from the language. This type is superseded by
  3658. the String type.
  3659. * ~T has been removed from the language. This type is superseded by the
  3660. Box<T> type.
  3661. * @T has been removed from the language. This type is superseded by the
  3662. standard library's std::gc::Gc<T> type.
  3663. * Struct fields are now all private by default.
  3664. * Vector indices and shift amounts are both required to be a `uint`
  3665. instead of any integral type.
  3666. * Byte character, byte string, and raw byte string literals are now all
  3667. supported by prefixing the normal literal with a `b`.
  3668. * Multiple ABIs are no longer allowed in an ABI string
  3669. * The syntax for lifetimes on closures/procedures has been tweaked
  3670. slightly: `<'a>|A, B|: 'b + K -> T`
  3671. * Floating point modulus has been removed from the language; however it
  3672. is still provided by a library implementation.
  3673. * Private enum variants are now disallowed.
  3674. * The `priv` keyword has been removed from the language.
  3675. * A closure can no longer be invoked through a &-pointer.
  3676. * The `use foo, bar, baz;` syntax has been removed from the language.
  3677. * The transmute intrinsic no longer works on type parameters.
  3678. * Statics now allow blocks/items in their definition.
  3679. * Trait bounds are separated from objects with + instead of : now.
  3680. * Objects can no longer be read while they are mutably borrowed.
  3681. * The address of a static is now marked as insignificant unless the
  3682. #[inline(never)] attribute is placed it.
  3683. * The #[unsafe_destructor] attribute is now behind a feature gate.
  3684. * Struct literals are no longer allowed in ambiguous positions such as
  3685. if, while, match, and for..in.
  3686. * Declaration of lang items and intrinsics are now feature-gated by
  3687. default.
  3688. * Integral literals no longer default to `int`, and floating point
  3689. literals no longer default to `f64`. Literals must be suffixed with an
  3690. appropriate type if inference cannot determine the type of the
  3691. literal.
  3692. * The Box<T> type is no longer implicitly borrowed to &mut T.
  3693. * Procedures are now required to not capture borrowed references.
  3694. * Libraries
  3695. * The standard library is now a "facade" over a number of underlying
  3696. libraries. This means that development on the standard library should
  3697. be speeder due to smaller crates, as well as a clearer line between
  3698. all dependencies.
  3699. * A new library, libcore, lives under the standard library's facade
  3700. which is Rust's "0-assumption" library, suitable for embedded and
  3701. kernel development for example.
  3702. * A regex crate has been added to the standard distribution. This crate
  3703. includes statically compiled regular expressions.
  3704. * The unwrap/unwrap_err methods on Result require a Show bound for
  3705. better error messages.
  3706. * The return types of the std::comm primitives have been centralized
  3707. around the Result type.
  3708. * A number of I/O primitives have gained the ability to time out their
  3709. operations.
  3710. * A number of I/O primitives have gained the ability to close their
  3711. reading/writing halves to cancel pending operations.
  3712. * Reverse iterator methods have been removed in favor of `rev()` on
  3713. their forward-iteration counterparts.
  3714. * A bitflags! macro has been added to enable easy interop with C and
  3715. management of bit flags.
  3716. * A debug_assert! macro is now provided which is disabled when
  3717. `--cfg ndebug` is passed to the compiler.
  3718. * A graphviz crate has been added for creating .dot files.
  3719. * The std::cast module has been migrated into std::mem.
  3720. * The std::local_data api has been migrated from freestanding functions
  3721. to being based on methods.
  3722. * The Pod trait has been renamed to Copy.
  3723. * jemalloc has been added as the default allocator for types.
  3724. * The API for allocating memory has been changed to use proper alignment
  3725. and sized deallocation
  3726. * Connecting a TcpStream or binding a TcpListener is now based on a
  3727. string address and a u16 port. This allows connecting to a hostname as
  3728. opposed to an IP.
  3729. * The Reader trait now contains a core method, read_at_least(), which
  3730. correctly handles many repeated 0-length reads.
  3731. * The process-spawning API is now centered around a builder-style
  3732. Command struct.
  3733. * The :? printing qualifier has been moved from the standard library to
  3734. an external libdebug crate.
  3735. * Eq/Ord have been renamed to PartialEq/PartialOrd. TotalEq/TotalOrd
  3736. have been renamed to Eq/Ord.
  3737. * The select/plural methods have been removed from format!. The escapes
  3738. for { and } have also changed from \{ and \} to {{ and }},
  3739. respectively.
  3740. * The TaskBuilder API has been re-worked to be a true builder, and
  3741. extension traits for spawning native/green tasks have been added.
  3742. * Tooling
  3743. * All breaking changes to the language or libraries now have their
  3744. commit message annotated with `[breaking-change]` to allow for easy
  3745. discovery of breaking changes.
  3746. * The compiler will now try to suggest how to annotate lifetimes if a
  3747. lifetime-related error occurs.
  3748. * Debug info continues to be improved greatly with general bug fixes and
  3749. better support for situations like link time optimization (LTO).
  3750. * Usage of syntax extensions when cross-compiling has been fixed.
  3751. * Functionality equivalent to GCC & Clang's -ffunction-sections,
  3752. -fdata-sections and --gc-sections has been enabled by default
  3753. * The compiler is now stricter about where it will load module files
  3754. from when a module is declared via `mod foo;`.
  3755. * The #[phase(syntax)] attribute has been renamed to #[phase(plugin)].
  3756. Syntax extensions are now discovered via a "plugin registrar" type
  3757. which will be extended in the future to other various plugins.
  3758. * Lints have been restructured to allow for dynamically loadable lints.
  3759. * A number of rustdoc improvements:
  3760. * The HTML output has been visually redesigned.
  3761. * Markdown is now powered by hoedown instead of sundown.
  3762. * Searching heuristics have been greatly improved.
  3763. * The search index has been reduced in size by a great amount.
  3764. * Cross-crate documentation via `pub use` has been greatly improved.
  3765. * Primitive types are now hyperlinked and documented.
  3766. * Documentation has been moved from static.rust-lang.org/doc to
  3767. doc.rust-lang.org
  3768. * A new sandbox, play.rust-lang.org, is available for running and
  3769. sharing rust code examples on-line.
  3770. * Unused attributes are now more robustly warned about.
  3771. * The dead_code lint now warns about unused struct fields.
  3772. * Cross-compiling to iOS is now supported.
  3773. * Cross-compiling to mipsel is now supported.
  3774. * Stability attributes are now inherited by default and no longer apply
  3775. to intra-crate usage, only inter-crate usage.
  3776. * Error message related to non-exhaustive match expressions have been
  3777. greatly improved.
  3778. Version 0.10 (2014-04-03)
  3779. =========================
  3780. * ~1500 changes, numerous bugfixes
  3781. * Language
  3782. * A new RFC process is now in place for modifying the language.
  3783. * Patterns with `@`-pointers have been removed from the language.
  3784. * Patterns with unique vectors (`~[T]`) have been removed from the
  3785. language.
  3786. * Patterns with unique strings (`~str`) have been removed from the
  3787. language.
  3788. * `@str` has been removed from the language.
  3789. * `@[T]` has been removed from the language.
  3790. * `@self` has been removed from the language.
  3791. * `@Trait` has been removed from the language.
  3792. * Headers on `~` allocations which contain `@` boxes inside the type for
  3793. reference counting have been removed.
  3794. * The semantics around the lifetimes of temporary expressions have changed,
  3795. see #3511 and #11585 for more information.
  3796. * Cross-crate syntax extensions are now possible, but feature gated. See
  3797. #11151 for more information. This includes both `macro_rules!` macros as
  3798. well as syntax extensions such as `format!`.
  3799. * New lint modes have been added, and older ones have been turned on to be
  3800. warn-by-default.
  3801. * Unnecessary parentheses
  3802. * Uppercase statics
  3803. * Camel Case types
  3804. * Uppercase variables
  3805. * Publicly visible private types
  3806. * `#[deriving]` with raw pointers
  3807. * Unsafe functions can no longer be coerced to closures.
  3808. * Various obscure macros such as `log_syntax!` are now behind feature gates.
  3809. * The `#[simd]` attribute is now behind a feature gate.
  3810. * Visibility is no longer allowed on `extern crate` statements, and
  3811. unnecessary visibility (`priv`) is no longer allowed on `use` statements.
  3812. * Trailing commas are now allowed in argument lists and tuple patterns.
  3813. * The `do` keyword has been removed, it is now a reserved keyword.
  3814. * Default type parameters have been implemented, but are feature gated.
  3815. * Borrowed variables through captures in closures are now considered soundly.
  3816. * `extern mod` is now `extern crate`
  3817. * The `Freeze` trait has been removed.
  3818. * The `Share` trait has been added for types that can be shared among
  3819. threads.
  3820. * Labels in macros are now hygienic.
  3821. * Expression/statement macro invocations can be delimited with `{}` now.
  3822. * Treatment of types allowed in `static mut` locations has been tweaked.
  3823. * The `*` and `.` operators are now overloadable through the `Deref` and
  3824. `DerefMut` traits.
  3825. * `~Trait` and `proc` no longer have `Send` bounds by default.
  3826. * Partial type hints are now supported with the `_` type marker.
  3827. * An `Unsafe` type was introduced for interior mutability. It is now
  3828. considered undefined to transmute from `&T` to `&mut T` without using the
  3829. `Unsafe` type.
  3830. * The #[linkage] attribute was implemented for extern statics/functions.
  3831. * The inner attribute syntax has changed from `#[foo];` to `#![foo]`.
  3832. * `Pod` was renamed to `Copy`.
  3833. * Libraries
  3834. * The `libextra` library has been removed. It has now been decomposed into
  3835. component libraries with smaller and more focused nuggets of
  3836. functionality. The full list of libraries can be found on the
  3837. documentation index page.
  3838. * std: `std::condition` has been removed. All I/O errors are now propagated
  3839. through the `Result` type. In order to assist with error handling, a
  3840. `try!` macro for unwrapping errors with an early return and a lint for
  3841. unused results has been added. See #12039 for more information.
  3842. * std: The `vec` module has been renamed to `slice`.
  3843. * std: A new vector type, `Vec<T>`, has been added in preparation for DST.
  3844. This will become the only growable vector in the future.
  3845. * std: `std::io` now has more public-reexports. Types such as `BufferedReader`
  3846. are now found at `std::io::BufferedReader` instead of
  3847. `std::io::buffered::BufferedReader`.
  3848. * std: `print` and `println` are no longer in the prelude, the `print!` and
  3849. `println!` macros are intended to be used instead.
  3850. * std: `Rc` now has a `Weak` pointer for breaking cycles, and it no longer
  3851. attempts to statically prevent cycles.
  3852. * std: The standard distribution is adopting the policy of pushing failure
  3853. to the user rather than failing in libraries. Many functions (such as
  3854. `slice::last()`) now return `Option<T>` instead of `T` + failing.
  3855. * std: `fmt::Default` has been renamed to `fmt::Show`, and it now has a new
  3856. deriving mode: `#[deriving(Show)]`.
  3857. * std: `ToStr` is now implemented for all types implementing `Show`.
  3858. * std: The formatting trait methods now take `&self` instead of `&T`
  3859. * std: The `invert()` method on iterators has been renamed to `rev()`
  3860. * std: `std::num` has seen a reduction in the genericity of its traits,
  3861. consolidating functionality into a few core traits.
  3862. * std: Backtraces are now printed on task failure if the environment
  3863. variable `RUST_BACKTRACE` is present.
  3864. * std: Naming conventions for iterators have been standardized. More details
  3865. can be found on the wiki's style guide.
  3866. * std: `eof()` has been removed from the `Reader` trait. Specific types may
  3867. still implement the function.
  3868. * std: Networking types are now cloneable to allow simultaneous reads/writes.
  3869. * std: `assert_approx_eq!` has been removed
  3870. * std: The `e` and `E` formatting specifiers for floats have been added to
  3871. print them in exponential notation.
  3872. * std: The `Times` trait has been removed
  3873. * std: Indications of variance and opting out of builtin bounds is done
  3874. through marker types in `std::kinds::marker` now
  3875. * std: `hash` has been rewritten, `IterBytes` has been removed, and
  3876. `#[deriving(Hash)]` is now possible.
  3877. * std: `SharedChan` has been removed, `Sender` is now cloneable.
  3878. * std: `Chan` and `Port` were renamed to `Sender` and `Receiver`.
  3879. * std: `Chan::new` is now `channel()`.
  3880. * std: A new synchronous channel type has been implemented.
  3881. * std: A `select!` macro is now provided for selecting over `Receiver`s.
  3882. * std: `hashmap` and `trie` have been moved to `libcollections`
  3883. * std: `run` has been rolled into `io::process`
  3884. * std: `assert_eq!` now uses `{}` instead of `{:?}`
  3885. * std: The equality and comparison traits have seen some reorganization.
  3886. * std: `rand` has moved to `librand`.
  3887. * std: `to_{lower,upper}case` has been implemented for `char`.
  3888. * std: Logging has been moved to `liblog`.
  3889. * collections: `HashMap` has been rewritten for higher performance and less
  3890. memory usage.
  3891. * native: The default runtime is now `libnative`. If `libgreen` is desired,
  3892. it can be booted manually. The runtime guide has more information and
  3893. examples.
  3894. * native: All I/O functionality except signals has been implemented.
  3895. * green: Task spawning with `libgreen` has been optimized with stack caching
  3896. and various trimming of code.
  3897. * green: Tasks spawned by `libgreen` now have an unmapped guard page.
  3898. * sync: The `extra::sync` module has been updated to modern rust (and moved
  3899. to the `sync` library), tweaking and improving various interfaces while
  3900. dropping redundant functionality.
  3901. * sync: A new `Barrier` type has been added to the `sync` library.
  3902. * sync: An efficient mutex for native and green tasks has been implemented.
  3903. * serialize: The `base64` module has seen some improvement. It treats
  3904. newlines better, has non-string error values, and has seen general
  3905. cleanup.
  3906. * fourcc: A `fourcc!` macro was introduced
  3907. * hexfloat: A `hexfloat!` macro was implemented for specifying floats via a
  3908. hexadecimal literal.
  3909. * Tooling
  3910. * `rustpkg` has been deprecated and removed from the main repository. Its
  3911. replacement, `cargo`, is under development.
  3912. * Nightly builds of rust are now available
  3913. * The memory usage of rustc has been improved many times throughout this
  3914. release cycle.
  3915. * The build process supports disabling rpath support for the rustc binary
  3916. itself.
  3917. * Code generation has improved in some cases, giving more information to the
  3918. LLVM optimization passes to enable more extensive optimizations.
  3919. * Debuginfo compatibility with lldb on OSX has been restored.
  3920. * The master branch is now gated on an android bot, making building for
  3921. android much more reliable.
  3922. * Output flags have been centralized into one `--emit` flag.
  3923. * Crate type flags have been centralized into one `--crate-type` flag.
  3924. * Codegen flags have been consolidated behind a `-C` flag.
  3925. * Linking against outdated crates now has improved error messages.
  3926. * Error messages with lifetimes will often suggest how to annotate the
  3927. function to fix the error.
  3928. * Many more types are documented in the standard library, and new guides
  3929. were written.
  3930. * Many `rustdoc` improvements:
  3931. * code blocks are syntax highlighted.
  3932. * render standalone markdown files.
  3933. * the --test flag tests all code blocks by default.
  3934. * exported macros are displayed.
  3935. * reexported types have their documentation inlined at the location of the
  3936. first reexport.
  3937. * search works across crates that have been rendered to the same output
  3938. directory.
  3939. Version 0.9 (2014-01-09)
  3940. ==========================
  3941. * ~1800 changes, numerous bugfixes
  3942. * Language
  3943. * The `float` type has been removed. Use `f32` or `f64` instead.
  3944. * A new facility for enabling experimental features (feature gating) has
  3945. been added, using the crate-level `#[feature(foo)]` attribute.
  3946. * Managed boxes (@) are now behind a feature gate
  3947. (`#[feature(managed_boxes)]`) in preparation for future removal. Use the
  3948. standard library's `Gc` or `Rc` types instead.
  3949. * `@mut` has been removed. Use `std::cell::{Cell, RefCell}` instead.
  3950. * Jumping back to the top of a loop is now done with `continue` instead of
  3951. `loop`.
  3952. * Strings can no longer be mutated through index assignment.
  3953. * Raw strings can be created via the basic `r"foo"` syntax or with matched
  3954. hash delimiters, as in `r###"foo"###`.
  3955. * `~fn` is now written `proc (args) -> retval { ... }` and may only be
  3956. called once.
  3957. * The `&fn` type is now written `|args| -> ret` to match the literal form.
  3958. * `@fn`s have been removed.
  3959. * `do` only works with procs in order to make it obvious what the cost
  3960. of `do` is.
  3961. * Single-element tuple-like structs can no longer be dereferenced to
  3962. obtain the inner value. A more comprehensive solution for overloading
  3963. the dereference operator will be provided in the future.
  3964. * The `#[link(...)]` attribute has been replaced with
  3965. `#[crate_id = "name#vers"]`.
  3966. * Empty `impl`s must be terminated with empty braces and may not be
  3967. terminated with a semicolon.
  3968. * Keywords are no longer allowed as lifetime names; the `self` lifetime
  3969. no longer has any special meaning.
  3970. * The old `fmt!` string formatting macro has been removed.
  3971. * `printf!` and `printfln!` (old-style formatting) removed in favor of
  3972. `print!` and `println!`.
  3973. * `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
  3974. * The `extern mod foo (name = "bar")` syntax has been removed. Use
  3975. `extern mod foo = "bar"` instead.
  3976. * New reserved keywords: `alignof`, `offsetof`, `sizeof`.
  3977. * Macros can have attributes.
  3978. * Macros can expand to items with attributes.
  3979. * Macros can expand to multiple items.
  3980. * The `asm!` macro is feature-gated (`#[feature(asm)]`).
  3981. * Comments may be nested.
  3982. * Values automatically coerce to trait objects they implement, without
  3983. an explicit `as`.
  3984. * Enum discriminants are no longer an entire word but as small as needed to
  3985. contain all the variants. The `repr` attribute can be used to override
  3986. the discriminant size, as in `#[repr(int)]` for integer-sized, and
  3987. `#[repr(C)]` to match C enums.
  3988. * Non-string literals are not allowed in attributes (they never worked).
  3989. * The FFI now supports variadic functions.
  3990. * Octal numeric literals, as in `0o7777`.
  3991. * The `concat!` syntax extension performs compile-time string concatenation.
  3992. * The `#[fixed_stack_segment]` and `#[rust_stack]` attributes have been
  3993. removed as Rust no longer uses segmented stacks.
  3994. * Non-ascii identifiers are feature-gated (`#[feature(non_ascii_idents)]`).
  3995. * Ignoring all fields of an enum variant or tuple-struct is done with `..`,
  3996. not `*`; ignoring remaining fields of a struct is also done with `..`,
  3997. not `_`; ignoring a slice of a vector is done with `..`, not `.._`.
  3998. * `rustc` supports the "win64" calling convention via `extern "win64"`.
  3999. * `rustc` supports the "system" calling convention, which defaults to the
  4000. preferred convention for the target platform, "stdcall" on 32-bit Windows,
  4001. "C" elsewhere.
  4002. * The `type_overflow` lint (default: warn) checks literals for overflow.
  4003. * The `unsafe_block` lint (default: allow) checks for usage of `unsafe`.
  4004. * The `attribute_usage` lint (default: warn) warns about unknown
  4005. attributes.
  4006. * The `unknown_features` lint (default: warn) warns about unknown
  4007. feature gates.
  4008. * The `dead_code` lint (default: warn) checks for dead code.
  4009. * Rust libraries can be linked statically to one another
  4010. * `#[link_args]` is behind the `link_args` feature gate.
  4011. * Native libraries are now linked with `#[link(name = "foo")]`
  4012. * Native libraries can be statically linked to a rust crate
  4013. (`#[link(name = "foo", kind = "static")]`).
  4014. * Native OS X frameworks are now officially supported
  4015. (`#[link(name = "foo", kind = "framework")]`).
  4016. * The `#[thread_local]` attribute creates thread-local (not task-local)
  4017. variables. Currently behind the `thread_local` feature gate.
  4018. * The `return` keyword may be used in closures.
  4019. * Types that can be copied via a memcpy implement the `Pod` kind.
  4020. * The `cfg` attribute can now be used on struct fields and enum variants.
  4021. * Libraries
  4022. * std: The `option` and `result` API's have been overhauled to make them
  4023. simpler, more consistent, and more composable.
  4024. * std: The entire `std::io` module has been replaced with one that is
  4025. more comprehensive and that properly interfaces with the underlying
  4026. scheduler. File, TCP, UDP, Unix sockets, pipes, and timers are all
  4027. implemented.
  4028. * std: `io::util` contains a number of useful implementations of
  4029. `Reader` and `Writer`, including `NullReader`, `NullWriter`,
  4030. `ZeroReader`, `TeeReader`.
  4031. * std: The reference counted pointer type `extra::rc` moved into std.
  4032. * std: The `Gc` type in the `gc` module will replace `@` (it is currently
  4033. just a wrapper around it).
  4034. * std: The `Either` type has been removed.
  4035. * std: `fmt::Default` can be implemented for any type to provide default
  4036. formatting to the `format!` macro, as in `format!("{}", myfoo)`.
  4037. * std: The `rand` API continues to be tweaked.
  4038. * std: The `rust_begin_unwind` function, useful for inserting breakpoints
  4039. on failure in gdb, is now named `rust_fail`.
  4040. * std: The `each_key` and `each_value` methods on `HashMap` have been
  4041. replaced by the `keys` and `values` iterators.
  4042. * std: Functions dealing with type size and alignment have moved from the
  4043. `sys` module to the `mem` module.
  4044. * std: The `path` module was written and API changed.
  4045. * std: `str::from_utf8` has been changed to cast instead of allocate.
  4046. * std: `starts_with` and `ends_with` methods added to vectors via the
  4047. `ImmutableEqVector` trait, which is in the prelude.
  4048. * std: Vectors can be indexed with the `get_opt` method, which returns `None`
  4049. if the index is out of bounds.
  4050. * std: Task failure no longer propagates between tasks, as the model was
  4051. complex, expensive, and incompatible with thread-based tasks.
  4052. * std: The `Any` type can be used for dynamic typing.
  4053. * std: `~Any` can be passed to the `fail!` macro and retrieved via
  4054. `task::try`.
  4055. * std: Methods that produce iterators generally do not have an `_iter`
  4056. suffix now.
  4057. * std: `cell::Cell` and `cell::RefCell` can be used to introduce mutability
  4058. roots (mutable fields, etc.). Use instead of e.g. `@mut`.
  4059. * std: `util::ignore` renamed to `prelude::drop`.
  4060. * std: Slices have `sort` and `sort_by` methods via the `MutableVector`
  4061. trait.
  4062. * std: `vec::raw` has seen a lot of cleanup and API changes.
  4063. * std: The standard library no longer includes any C++ code, and very
  4064. minimal C, eliminating the dependency on libstdc++.
  4065. * std: Runtime scheduling and I/O functionality has been factored out into
  4066. extensible interfaces and is now implemented by two different crates:
  4067. libnative, for native threading and I/O; and libgreen, for green threading
  4068. and I/O. This paves the way for using the standard library in more limited
  4069. embedded environments.
  4070. * std: The `comm` module has been rewritten to be much faster, have a
  4071. simpler, more consistent API, and to work for both native and green
  4072. threading.
  4073. * std: All libuv dependencies have been moved into the rustuv crate.
  4074. * native: New implementations of runtime scheduling on top of OS threads.
  4075. * native: New native implementations of TCP, UDP, file I/O, process spawning,
  4076. and other I/O.
  4077. * green: The green thread scheduler and message passing types are almost
  4078. entirely lock-free.
  4079. * extra: The `flatpipes` module had bitrotted and was removed.
  4080. * extra: All crypto functions have been removed and Rust now has a policy of
  4081. not reimplementing crypto in the standard library. In the future crypto
  4082. will be provided by external crates with bindings to established libraries.
  4083. * extra: `c_vec` has been modernized.
  4084. * extra: The `sort` module has been removed. Use the `sort` method on
  4085. mutable slices.
  4086. * Tooling
  4087. * The `rust` and `rusti` commands have been removed, due to lack of
  4088. maintenance.
  4089. * `rustdoc` was completely rewritten.
  4090. * `rustdoc` can test code examples in documentation.
  4091. * `rustpkg` can test packages with the argument, 'test'.
  4092. * `rustpkg` supports arbitrary dependencies, including C libraries.
  4093. * `rustc`'s support for generating debug info is improved again.
  4094. * `rustc` has better error reporting for unbalanced delimiters.
  4095. * `rustc`'s JIT support was removed due to bitrot.
  4096. * Executables and static libraries can be built with LTO (-Z lto)
  4097. * `rustc` adds a `--dep-info` flag for communicating dependencies to
  4098. build tools.
  4099. Version 0.8 (2013-09-26)
  4100. ============================
  4101. * ~2200 changes, numerous bugfixes
  4102. * Language
  4103. * The `for` loop syntax has changed to work with the `Iterator` trait.
  4104. * At long last, unwinding works on Windows.
  4105. * Default methods are ready for use.
  4106. * Many trait inheritance bugs fixed.
  4107. * Owned and borrowed trait objects work more reliably.
  4108. * `copy` is no longer a keyword. It has been replaced by the `Clone` trait.
  4109. * rustc can omit emission of code for the `debug!` macro if it is passed
  4110. `--cfg ndebug`
  4111. * mod.rs is now "blessed". When loading `mod foo;`, rustc will now look
  4112. for foo.rs, then foo/mod.rs, and will generate an error when both are
  4113. present.
  4114. * Strings no longer contain trailing nulls. The new `std::c_str` module
  4115. provides new mechanisms for converting to C strings.
  4116. * The type of foreign functions is now `extern "C" fn` instead of `*u8'.
  4117. * The FFI has been overhauled such that foreign functions are called directly,
  4118. instead of through a stack-switching wrapper.
  4119. * Calling a foreign function must be done through a Rust function with the
  4120. `#[fixed_stack_segment]` attribute.
  4121. * The `externfn!` macro can be used to declare both a foreign function and
  4122. a `#[fixed_stack_segment]` wrapper at once.
  4123. * `pub` and `priv` modifiers on `extern` blocks are no longer parsed.
  4124. * `unsafe` is no longer allowed on extern fns - they are all unsafe.
  4125. * `priv` is disallowed everywhere except for struct fields and enum variants.
  4126. * `&T` (besides `&'static T`) is no longer allowed in `@T`.
  4127. * `ref` bindings in irrefutable patterns work correctly now.
  4128. * `char` is now prevented from containing invalid code points.
  4129. * Casting to `bool` is no longer allowed.
  4130. * `\0` is now accepted as an escape in chars and strings.
  4131. * `yield` is a reserved keyword.
  4132. * `typeof` is a reserved keyword.
  4133. * Crates may be imported by URL with `extern mod foo = "url";`.
  4134. * Explicit enum discriminants may be given as uints as in `enum E { V = 0u }`
  4135. * Static vectors can be initialized with repeating elements,
  4136. e.g. `static foo: [u8, .. 100]: [0, .. 100];`.
  4137. * Static structs can be initialized with functional record update,
  4138. e.g. `static foo: Foo = Foo { a: 5, .. bar };`.
  4139. * `cfg!` can be used to conditionally execute code based on the crate
  4140. configuration, similarly to `#[cfg(...)]`.
  4141. * The `unnecessary_qualification` lint detects unneeded module
  4142. prefixes (default: allow).
  4143. * Arithmetic operations have been implemented on the SIMD types in
  4144. `std::unstable::simd`.
  4145. * Exchange allocation headers were removed, reducing memory usage.
  4146. * `format!` implements a completely new, extensible, and higher-performance
  4147. string formatting system. It will replace `fmt!`.
  4148. * `print!` and `println!` write formatted strings (using the `format!`
  4149. extension) to stdout.
  4150. * `write!` and `writeln!` write formatted strings (using the `format!`
  4151. extension) to the new Writers in `std::rt::io`.
  4152. * The library section in which a function or static is placed may
  4153. be specified with `#[link_section = "..."]`.
  4154. * The `proto!` syntax extension for defining bounded message protocols
  4155. was removed.
  4156. * `macro_rules!` is hygienic for `let` declarations.
  4157. * The `#[export_name]` attribute specifies the name of a symbol.
  4158. * `unreachable!` can be used to indicate unreachable code, and fails
  4159. if executed.
  4160. * Libraries
  4161. * std: Transitioned to the new runtime, written in Rust.
  4162. * std: Added an experimental I/O library, `rt::io`, based on the new
  4163. runtime.
  4164. * std: A new generic `range` function was added to the prelude, replacing
  4165. `uint::range` and friends.
  4166. * std: `range_rev` no longer exists. Since range is an iterator it can be
  4167. reversed with `range(lo, hi).invert()`.
  4168. * std: The `chain` method on option renamed to `and_then`; `unwrap_or_default`
  4169. renamed to `unwrap_or`.
  4170. * std: The `iterator` module was renamed to `iter`.
  4171. * std: Integral types now support the `checked_add`, `checked_sub`, and
  4172. `checked_mul` operations for detecting overflow.
  4173. * std: Many methods in `str`, `vec`, `option, `result` were renamed for
  4174. consistency.
  4175. * std: Methods are standardizing on conventions for casting methods:
  4176. `to_foo` for copying, `into_foo` for moving, `as_foo` for temporary
  4177. and cheap casts.
  4178. * std: The `CString` type in `c_str` provides new ways to convert to and
  4179. from C strings.
  4180. * std: `DoubleEndedIterator` can yield elements in two directions.
  4181. * std: The `mut_split` method on vectors partitions an `&mut [T]` into
  4182. two splices.
  4183. * std: `str::from_bytes` renamed to `str::from_utf8`.
  4184. * std: `pop_opt` and `shift_opt` methods added to vectors.
  4185. * std: The task-local data interface no longer uses @, and keys are
  4186. no longer function pointers.
  4187. * std: The `swap_unwrap` method of `Option` renamed to `take_unwrap`.
  4188. * std: Added `SharedPort` to `comm`.
  4189. * std: `Eq` has a default method for `ne`; only `eq` is required
  4190. in implementations.
  4191. * std: `Ord` has default methods for `le`, `gt` and `ge`; only `lt`
  4192. is required in implementations.
  4193. * std: `is_utf8` performance is improved, impacting many string functions.
  4194. * std: `os::MemoryMap` provides cross-platform mmap.
  4195. * std: `ptr::offset` is now unsafe, but also more optimized. Offsets that
  4196. are not 'in-bounds' are considered undefined.
  4197. * std: Many freestanding functions in `vec` removed in favor of methods.
  4198. * std: Many freestanding functions on scalar types removed in favor of
  4199. methods.
  4200. * std: Many options to task builders were removed since they don't make
  4201. sense in the new scheduler design.
  4202. * std: More containers implement `FromIterator` so can be created by the
  4203. `collect` method.
  4204. * std: More complete atomic types in `unstable::atomics`.
  4205. * std: `comm::PortSet` removed.
  4206. * std: Mutating methods in the `Set` and `Map` traits have been moved into
  4207. the `MutableSet` and `MutableMap` traits. `Container::is_empty`,
  4208. `Map::contains_key`, `MutableMap::insert`, and `MutableMap::remove` have
  4209. default implementations.
  4210. * std: Various `from_str` functions were removed in favor of a generic
  4211. `from_str` which is available in the prelude.
  4212. * std: `util::unreachable` removed in favor of the `unreachable!` macro.
  4213. * extra: `dlist`, the doubly-linked list was modernized.
  4214. * extra: Added a `hex` module with `ToHex` and `FromHex` traits.
  4215. * extra: Added `glob` module, replacing `std::os::glob`.
  4216. * extra: `rope` was removed.
  4217. * extra: `deque` was renamed to `ringbuf`. `RingBuf` implements `Deque`.
  4218. * extra: `net`, and `timer` were removed. The experimental replacements
  4219. are `std::rt::io::net` and `std::rt::io::timer`.
  4220. * extra: Iterators implemented for `SmallIntMap`.
  4221. * extra: Iterators implemented for `Bitv` and `BitvSet`.
  4222. * extra: `SmallIntSet` removed. Use `BitvSet`.
  4223. * extra: Performance of JSON parsing greatly improved.
  4224. * extra: `semver` updated to SemVer 2.0.0.
  4225. * extra: `term` handles more terminals correctly.
  4226. * extra: `dbg` module removed.
  4227. * extra: `par` module removed.
  4228. * extra: `future` was cleaned up, with some method renames.
  4229. * extra: Most free functions in `getopts` were converted to methods.
  4230. * Other
  4231. * rustc's debug info generation (`-Z debug-info`) is greatly improved.
  4232. * rustc accepts `--target-cpu` to compile to a specific CPU architecture,
  4233. similarly to gcc's `--march` flag.
  4234. * rustc's performance compiling small crates is much better.
  4235. * rustpkg has received many improvements.
  4236. * rustpkg supports git tags as package IDs.
  4237. * rustpkg builds into target-specific directories so it can be used for
  4238. cross-compiling.
  4239. * The number of concurrent test tasks is controlled by the environment
  4240. variable RUST_TEST_TASKS.
  4241. * The test harness can now report metrics for benchmarks.
  4242. * All tools have man pages.
  4243. * Programs compiled with `--test` now support the `-h` and `--help` flags.
  4244. * The runtime uses jemalloc for allocations.
  4245. * Segmented stacks are temporarily disabled as part of the transition to
  4246. the new runtime. Stack overflows are possible!
  4247. * A new documentation backend, rustdoc_ng, is available for use. It is
  4248. still invoked through the normal `rustdoc` command.
  4249. Version 0.7 (2013-07-03)
  4250. =======================
  4251. * ~2000 changes, numerous bugfixes
  4252. * Language
  4253. * `impl`s no longer accept a visibility qualifier. Put them on methods
  4254. instead.
  4255. * The borrow checker has been rewritten with flow-sensitivity, fixing
  4256. many bugs and inconveniences.
  4257. * The `self` parameter no longer implicitly means `&'self self`,
  4258. and can be explicitly marked with a lifetime.
  4259. * Overloadable compound operators (`+=`, etc.) have been temporarily
  4260. removed due to bugs.
  4261. * The `for` loop protocol now requires `for`-iterators to return `bool`
  4262. so they compose better.
  4263. * The `Durable` trait is replaced with the `'static` bounds.
  4264. * Trait default methods work more often.
  4265. * Structs with the `#[packed]` attribute have byte alignment and
  4266. no padding between fields.
  4267. * Type parameters bound by `Copy` must now be copied explicitly with
  4268. the `copy` keyword.
  4269. * It is now illegal to move out of a dereferenced unsafe pointer.
  4270. * `Option<~T>` is now represented as a nullable pointer.
  4271. * `@mut` does dynamic borrow checks correctly.
  4272. * The `main` function is only detected at the topmost level of the crate.
  4273. The `#[main]` attribute is still valid anywhere.
  4274. * Struct fields may no longer be mutable. Use inherited mutability.
  4275. * The `#[no_send]` attribute makes a type that would otherwise be
  4276. `Send`, not.
  4277. * The `#[no_freeze]` attribute makes a type that would otherwise be
  4278. `Freeze`, not.
  4279. * Unbounded recursion will abort the process after reaching the limit
  4280. specified by the `RUST_MAX_STACK` environment variable (default: 1GB).
  4281. * The `vecs_implicitly_copyable` lint mode has been removed. Vectors
  4282. are never implicitly copyable.
  4283. * `#[static_assert]` makes compile-time assertions about static bools.
  4284. * At long last, 'argument modes' no longer exist.
  4285. * The rarely used `use mod` statement no longer exists.
  4286. * Syntax extensions
  4287. * `fail!` and `assert!` accept `~str`, `&'static str` or `fmt!`-style
  4288. argument list.
  4289. * `Encodable`, `Decodable`, `Ord`, `TotalOrd`, `TotalEq`, `DeepClone`,
  4290. `Rand`, `Zero` and `ToStr` can all be automatically derived with
  4291. `#[deriving(...)]`.
  4292. * The `bytes!` macro returns a vector of bytes for string, u8, char,
  4293. and unsuffixed integer literals.
  4294. * Libraries
  4295. * The `core` crate was renamed to `std`.
  4296. * The `std` crate was renamed to `extra`.
  4297. * More and improved documentation.
  4298. * std: `iterator` module for external iterator objects.
  4299. * Many old-style (internal, higher-order function) iterators replaced by
  4300. implementations of `Iterator`.
  4301. * std: Many old internal vector and string iterators,
  4302. incl. `any`, `all`. removed.
  4303. * std: The `finalize` method of `Drop` renamed to `drop`.
  4304. * std: The `drop` method now takes `&mut self` instead of `&self`.
  4305. * std: The prelude no longer reexports any modules, only types and traits.
  4306. * std: Prelude additions: `print`, `println`, `FromStr`, `ApproxEq`, `Equiv`,
  4307. `Iterator`, `IteratorUtil`, many numeric traits, many tuple traits.
  4308. * std: New numeric traits: `Fractional`, `Real`, `RealExt`, `Integer`, `Ratio`,
  4309. `Algebraic`, `Trigonometric`, `Exponential`, `Primitive`.
  4310. * std: Tuple traits and accessors defined for up to 12-tuples, e.g.
  4311. `(0, 1, 2).n2()` or `(0, 1, 2).n2_ref()`.
  4312. * std: Many types implement `Clone`.
  4313. * std: `path` type renamed to `Path`.
  4314. * std: `mut` module and `Mut` type removed.
  4315. * std: Many standalone functions removed in favor of methods and iterators
  4316. in `vec`, `str`. In the future methods will also work as functions.
  4317. * std: `reinterpret_cast` removed. Use `transmute`.
  4318. * std: ascii string handling in `std::ascii`.
  4319. * std: `Rand` is implemented for ~/@.
  4320. * std: `run` module for spawning processes overhauled.
  4321. * std: Various atomic types added to `unstable::atomic`.
  4322. * std: Various types implement `Zero`.
  4323. * std: `LinearMap` and `LinearSet` renamed to `HashMap` and `HashSet`.
  4324. * std: Borrowed pointer functions moved from `ptr` to `borrow`.
  4325. * std: Added `os::mkdir_recursive`.
  4326. * std: Added `os::glob` function performs filesystems globs.
  4327. * std: `FuzzyEq` renamed to `ApproxEq`.
  4328. * std: `Map` now defines `pop` and `swap` methods.
  4329. * std: `Cell` constructors converted to static methods.
  4330. * extra: `rc` module adds the reference counted pointers, `Rc` and `RcMut`.
  4331. * extra: `flate` module moved from `std` to `extra`.
  4332. * extra: `fileinput` module for iterating over a series of files.
  4333. * extra: `Complex` number type and `complex` module.
  4334. * extra: `Rational` number type and `rational` module.
  4335. * extra: `BigInt`, `BigUint` implement numeric and comparison traits.
  4336. * extra: `term` uses terminfo now, is more correct.
  4337. * extra: `arc` functions converted to methods.
  4338. * extra: Implementation of fixed output size variations of SHA-2.
  4339. * Tooling
  4340. * `unused_variable` lint mode for unused variables (default: warn).
  4341. * `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks
  4342. (default: warn).
  4343. * `unused_mut` lint mode for identifying unused `mut` qualifiers
  4344. (default: warn).
  4345. * `dead_assignment` lint mode for unread variables (default: warn).
  4346. * `unnecessary_allocation` lint mode detects some heap allocations that are
  4347. immediately borrowed so could be written without allocating (default: warn).
  4348. * `missing_doc` lint mode (default: allow).
  4349. * `unreachable_code` lint mode (default: warn).
  4350. * The `rusti` command has been rewritten and a number of bugs addressed.
  4351. * rustc outputs in color on more terminals.
  4352. * rustc accepts a `--link-args` flag to pass arguments to the linker.
  4353. * rustc accepts a `-Z print-link-args` flag for debugging linkage.
  4354. * Compiling with `-g` will make the binary record information about
  4355. dynamic borrowcheck failures for debugging.
  4356. * rustdoc has a nicer stylesheet.
  4357. * Various improvements to rustdoc.
  4358. * Improvements to rustpkg (see the detailed release notes).
  4359. Version 0.6 (2013-04-03)
  4360. ========================
  4361. * ~2100 changes, numerous bugfixes
  4362. * Syntax changes
  4363. * The self type parameter in traits is now spelled `Self`
  4364. * The `self` parameter in trait and impl methods must now be explicitly
  4365. named (for example: `fn f(&self) { }`). Implicit self is deprecated.
  4366. * Static methods no longer require the `static` keyword and instead
  4367. are distinguished by the lack of a `self` parameter
  4368. * Replaced the `Durable` trait with the `'static` lifetime
  4369. * The old closure type syntax with the trailing sigil has been
  4370. removed in favor of the more consistent leading sigil
  4371. * `super` is a keyword, and may be prefixed to paths
  4372. * Trait bounds are separated with `+` instead of whitespace
  4373. * Traits are implemented with `impl Trait for Type`
  4374. instead of `impl Type: Trait`
  4375. * Lifetime syntax is now `&'l foo` instead of `&l/foo`
  4376. * The `export` keyword has finally been removed
  4377. * The `move` keyword has been removed (see "Semantic changes")
  4378. * The interior mutability qualifier on vectors, `[mut T]`, has been
  4379. removed. Use `&mut [T]`, etc.
  4380. * `mut` is no longer valid in `~mut T`. Use inherited mutability
  4381. * `fail` is no longer a keyword. Use `fail!()`
  4382. * `assert` is no longer a keyword. Use `assert!()`
  4383. * `log` is no longer a keyword. use `debug!`, etc.
  4384. * 1-tuples may be represented as `(T,)`
  4385. * Struct fields may no longer be `mut`. Use inherited mutability,
  4386. `@mut T`, `core::mut` or `core::cell`
  4387. * `extern mod { ... }` is no longer valid syntax for foreign
  4388. function modules. Use extern blocks: `extern { ... }`
  4389. * Newtype enums removed. Use tuple-structs.
  4390. * Trait implementations no longer support visibility modifiers
  4391. * Pattern matching over vectors improved and expanded
  4392. * `const` renamed to `static` to correspond to lifetime name,
  4393. and make room for future `static mut` unsafe mutable globals.
  4394. * Replaced `#[deriving_eq]` with `#[deriving(Eq)]`, etc.
  4395. * `Clone` implementations can be automatically generated with
  4396. `#[deriving(Clone)]`
  4397. * Casts to traits must use a pointer sigil, e.g. `@foo as @Bar`
  4398. instead of `foo as Bar`.
  4399. * Fixed length vector types are now written as `[int, .. 3]`
  4400. instead of `[int * 3]`.
  4401. * Fixed length vector types can express the length as a constant
  4402. expression. (ex: `[int, .. GL_BUFFER_SIZE - 2]`)
  4403. * Semantic changes
  4404. * Types with owned pointers or custom destructors move by default,
  4405. eliminating the `move` keyword
  4406. * All foreign functions are considered unsafe
  4407. * &mut is now unaliasable
  4408. * Writes to borrowed @mut pointers are prevented dynamically
  4409. * () has size 0
  4410. * The name of the main function can be customized using #[main]
  4411. * The default type of an inferred closure is &fn instead of @fn
  4412. * `use` statements may no longer be "chained" - they cannot import
  4413. identifiers imported by previous `use` statements
  4414. * `use` statements are crate relative, importing from the "top"
  4415. of the crate by default. Paths may be prefixed with `super::`
  4416. or `self::` to change the search behavior.
  4417. * Method visibility is inherited from the implementation declaration
  4418. * Structural records have been removed
  4419. * Many more types can be used in static items, including enums
  4420. 'static-lifetime pointers and vectors
  4421. * Pattern matching over vectors improved and expanded
  4422. * Typechecking of closure types has been overhauled to
  4423. improve inference and eliminate unsoundness
  4424. * Macros leave scope at the end of modules, unless that module is
  4425. tagged with #[macro_escape]
  4426. * Libraries
  4427. * Added big integers to `std::bigint`
  4428. * Removed `core::oldcomm` module
  4429. * Added pipe-based `core::comm` module
  4430. * Numeric traits have been reorganized under `core::num`
  4431. * `vec::slice` finally returns a slice
  4432. * `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
  4433. * Containers reorganized around traits in `core::container`
  4434. * `core::dvec` removed, `~[T]` is a drop-in replacement
  4435. * `core::send_map` renamed to `core::hashmap`
  4436. * `std::map` removed; replaced with `core::hashmap`
  4437. * `std::treemap` reimplemented as an owned balanced tree
  4438. * `std::deque` and `std::smallintmap` reimplemented as owned containers
  4439. * `core::trie` added as a fast ordered map for integer keys
  4440. * Set types added to `core::hashmap`, `core::trie` and `std::treemap`
  4441. * `Ord` split into `Ord` and `TotalOrd`. `Ord` is still used to
  4442. overload the comparison operators, whereas `TotalOrd` is used
  4443. by certain container types
  4444. * Other
  4445. * Replaced the 'cargo' package manager with 'rustpkg'
  4446. * Added all-purpose 'rust' tool
  4447. * `rustc --test` now supports benchmarks with the `#[bench]` attribute
  4448. * rustc now *attempts* to offer spelling suggestions
  4449. * Improved support for ARM and Android
  4450. * Preliminary MIPS backend
  4451. * Improved foreign function ABI implementation for x86, x86_64
  4452. * Various memory usage improvements
  4453. * Rust code may be embedded in foreign code under limited circumstances
  4454. * Inline assembler supported by new asm!() syntax extension.
  4455. Version 0.5 (2012-12-21)
  4456. ===========================
  4457. * ~900 changes, numerous bugfixes
  4458. * Syntax changes
  4459. * Removed `<-` move operator
  4460. * Completed the transition from the `#fmt` extension syntax to `fmt!`
  4461. * Removed old fixed length vector syntax - `[T]/N`
  4462. * New token-based quasi-quoters, `quote_tokens!`, `quote_expr!`, etc.
  4463. * Macros may now expand to items and statements
  4464. * `a.b()` is always parsed as a method call, never as a field projection
  4465. * `Eq` and `IterBytes` implementations can be automatically generated
  4466. with `#[deriving_eq]` and `#[deriving_iter_bytes]` respectively
  4467. * Removed the special crate language for `.rc` files
  4468. * Function arguments may consist of any irrefutable pattern
  4469. * Semantic changes
  4470. * `&` and `~` pointers may point to objects
  4471. * Tuple structs - `struct Foo(Bar, Baz)`. Will replace newtype enums.
  4472. * Enum variants may be structs
  4473. * Destructors can be added to all nominal types with the Drop trait
  4474. * Structs and nullary enum variants may be constants
  4475. * Values that cannot be implicitly copied are now automatically moved
  4476. without writing `move` explicitly
  4477. * `&T` may now be coerced to `*T`
  4478. * Coercions happen in `let` statements as well as function calls
  4479. * `use` statements now take crate-relative paths
  4480. * The module and type namespaces have been merged so that static
  4481. method names can be resolved under the trait in which they are
  4482. declared
  4483. * Improved support for language features
  4484. * Trait inheritance works in many scenarios
  4485. * More support for explicit self arguments in methods - `self`, `&self`
  4486. `@self`, and `~self` all generally work as expected
  4487. * Static methods work in more situations
  4488. * Experimental: Traits may declare default methods for the implementations
  4489. to use
  4490. * Libraries
  4491. * New condition handling system in `core::condition`
  4492. * Timsort added to `std::sort`
  4493. * New priority queue, `std::priority_queue`
  4494. * Pipes for serializable types, `std::flatpipes'
  4495. * Serialization overhauled to be trait-based
  4496. * Expanded `getopts` definitions
  4497. * Moved futures to `std`
  4498. * More functions are pure now
  4499. * `core::comm` renamed to `oldcomm`. Still deprecated
  4500. * `rustdoc` and `cargo` are libraries now
  4501. * Misc
  4502. * Added a preliminary REPL, `rusti`
  4503. * License changed from MIT to dual MIT/APL2
  4504. Version 0.4 (2012-10-15)
  4505. ==========================
  4506. * ~2000 changes, numerous bugfixes
  4507. * Syntax
  4508. * All keywords are now strict and may not be used as identifiers anywhere
  4509. * Keyword removal: 'again', 'import', 'check', 'new', 'owned', 'send',
  4510. 'of', 'with', 'to', 'class'.
  4511. * Classes are replaced with simpler structs
  4512. * Explicit method self types
  4513. * `ret` became `return` and `alt` became `match`
  4514. * `import` is now `use`; `use is now `extern mod`
  4515. * `extern mod { ... }` is now `extern { ... }`
  4516. * `use mod` is the recommended way to import modules
  4517. * `pub` and `priv` replace deprecated export lists
  4518. * The syntax of `match` pattern arms now uses fat arrow (=>)
  4519. * `main` no longer accepts an args vector; use `os::args` instead
  4520. * Semantics
  4521. * Trait implementations are now coherent, ala Haskell typeclasses
  4522. * Trait methods may be static
  4523. * Argument modes are deprecated
  4524. * Borrowed pointers are much more mature and recommended for use
  4525. * Strings and vectors in the static region are stored in constant memory
  4526. * Typestate was removed
  4527. * Resolution rewritten to be more reliable
  4528. * Support for 'dual-mode' data structures (freezing and thawing)
  4529. * Libraries
  4530. * Most binary operators can now be overloaded via the traits in
  4531. `core::ops'
  4532. * `std::net::url` for representing URLs
  4533. * Sendable hash maps in `core::send_map`
  4534. * `core::task' gained a (currently unsafe) task-local storage API
  4535. * Concurrency
  4536. * An efficient new intertask communication primitive called the pipe,
  4537. along with a number of higher-level channel types, in `core::pipes`
  4538. * `std::arc`, an atomically reference counted, immutable, shared memory
  4539. type
  4540. * `std::sync`, various exotic synchronization tools based on arcs and pipes
  4541. * Futures are now based on pipes and sendable
  4542. * More robust linked task failure
  4543. * Improved task builder API
  4544. * Other
  4545. * Improved error reporting
  4546. * Preliminary JIT support
  4547. * Preliminary work on precise GC
  4548. * Extensive architectural improvements to rustc
  4549. * Begun a transition away from buggy C++-based reflection (shape) code to
  4550. Rust-based (visitor) code
  4551. * All hash functions and tables converted to secure, randomized SipHash
  4552. Version 0.3 (2012-07-12)
  4553. ========================
  4554. * ~1900 changes, numerous bugfixes
  4555. * New coding conveniences
  4556. * Integer-literal suffix inference
  4557. * Per-item control over warnings, errors
  4558. * #[cfg(windows)] and #[cfg(unix)] attributes
  4559. * Documentation comments
  4560. * More compact closure syntax
  4561. * 'do' expressions for treating higher-order functions as
  4562. control structures
  4563. * *-patterns (wildcard extended to all constructor fields)
  4564. * Semantic cleanup
  4565. * Name resolution pass and exhaustiveness checker rewritten
  4566. * Region pointers and borrow checking supersede alias
  4567. analysis
  4568. * Init-ness checking is now provided by a region-based liveness
  4569. pass instead of the typestate pass; same for last-use analysis
  4570. * Extensive work on region pointers
  4571. * Experimental new language features
  4572. * Slices and fixed-size, interior-allocated vectors
  4573. * #!-comments for lang versioning, shell execution
  4574. * Destructors and iface implementation for classes;
  4575. type-parameterized classes and class methods
  4576. * 'const' type kind for types that can be used to implement
  4577. shared-memory concurrency patterns
  4578. * Type reflection
  4579. * Removal of various obsolete features
  4580. * Keywords: 'be', 'prove', 'syntax', 'note', 'mutable', 'bind',
  4581. 'crust', 'native' (now 'extern'), 'cont' (now 'again')
  4582. * Constructs: do-while loops ('do' repurposed), fn binding,
  4583. resources (replaced by destructors)
  4584. * Compiler reorganization
  4585. * Syntax-layer of compiler split into separate crate
  4586. * Clang (from LLVM project) integrated into build
  4587. * Typechecker split into sub-modules
  4588. * New library code
  4589. * New time functions
  4590. * Extension methods for many built-in types
  4591. * Arc: atomic-refcount read-only / exclusive-use shared cells
  4592. * Par: parallel map and search routines
  4593. * Extensive work on libuv interface
  4594. * Much vector code moved to libraries
  4595. * Syntax extensions: #line, #col, #file, #mod, #stringify,
  4596. #include, #include_str, #include_bin
  4597. * Tool improvements
  4598. * Cargo automatically resolves dependencies
  4599. Version 0.2 (2012-03-29)
  4600. =========================
  4601. * >1500 changes, numerous bugfixes
  4602. * New docs and doc tooling
  4603. * New port: FreeBSD x86_64
  4604. * Compilation model enhancements
  4605. * Generics now specialized, multiply instantiated
  4606. * Functions now inlined across separate crates
  4607. * Scheduling, stack and threading fixes
  4608. * Noticeably improved message-passing performance
  4609. * Explicit schedulers
  4610. * Callbacks from C
  4611. * Helgrind clean
  4612. * Experimental new language features
  4613. * Operator overloading
  4614. * Region pointers
  4615. * Classes
  4616. * Various language extensions
  4617. * C-callback function types: 'crust fn ...'
  4618. * Infinite-loop construct: 'loop { ... }'
  4619. * Shorten 'mutable' to 'mut'
  4620. * Required mutable-local qualifier: 'let mut ...'
  4621. * Basic glob-exporting: 'export foo::*;'
  4622. * Alt now exhaustive, 'alt check' for runtime-checked
  4623. * Block-function form of 'for' loop, with 'break' and 'ret'.
  4624. * New library code
  4625. * AST quasi-quote syntax extension
  4626. * Revived libuv interface
  4627. * New modules: core::{future, iter}, std::arena
  4628. * Merged per-platform std::{os*, fs*} to core::{libc, os}
  4629. * Extensive cleanup, regularization in libstd, libcore
  4630. Version 0.1 (2012-01-20)
  4631. ===============================
  4632. * Most language features work, including:
  4633. * Unique pointers, unique closures, move semantics
  4634. * Interface-constrained generics
  4635. * Static interface dispatch
  4636. * Stack growth
  4637. * Multithread task scheduling
  4638. * Typestate predicates
  4639. * Failure unwinding, destructors
  4640. * Pattern matching and destructuring assignment
  4641. * Lightweight block-lambda syntax
  4642. * Preliminary macro-by-example
  4643. * Compiler works with the following configurations:
  4644. * Linux: x86 and x86_64 hosts and targets
  4645. * macOS: x86 and x86_64 hosts and targets
  4646. * Windows: x86 hosts and targets
  4647. * Cross compilation / multi-target configuration supported.
  4648. * Preliminary API-documentation and package-management tools included.
  4649. Known issues:
  4650. * Documentation is incomplete.
  4651. * Performance is below intended target.
  4652. * Standard library APIs are subject to extensive change, reorganization.
  4653. * Language-level versioning is not yet operational - future code will
  4654. break unexpectedly.