From b38e308e7bcb65126fcc8da396c6e4ae9ac93606d8a0ca2260057fce32684375 Mon Sep 17 00:00:00 2001 From: Luke Jones Date: Fri, 17 Mar 2017 06:03:21 +0000 Subject: [PATCH] - Update to 1.16.0 - Language updates * Lifetimes in statics and consts default to `'static`. [RFC 1623] * [The compiler's `dead_code` lint now accounts for type aliases][38051]. * [Uninhabitable enums (those without any variants) no longer permit wildcard match patterns][38069] * [Clean up semantics of `self` in an import list][38313] * [`Self` may appear in `impl` headers][38920] * [`Self` may appear in struct expressions][39282] - Compiler updates * [`rustc` now supports `--emit=metadata`, which causes rustc to emit a `.rmeta` file containing only crate metadata][38571]. This can be used by tools like the Rust Language Service to perform metadata-only builds. * [Levenshtein based typo suggestions now work in most places, while previously they worked only for fields and sometimes for local variables][38927]. Together with the overhaul of "no resolution"/"unexpected resolution" errors (#[38154]) they result in large and systematic improvement in resolution diagnostics. * [Fix `transmute::` where `T` requires a bigger alignment than `U`][38670] * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798] * [`rustc` no longer attempts to provide "consider using an explicit lifetime" suggestions][37057]. They were inaccurate. - Stabilized APIs * [`VecDeque::truncate`] * [`VecDeque::resize`] * [`String::insert_str`] * [`Duration::checked_add`] OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=80 --- rust.changes | 98 +++++++++++++++++++++++++++++++++++++++++ rust.spec | 4 +- rustc-1.15.1-src.tar.gz | 3 -- rustc-1.16.0-src.tar.gz | 3 ++ 4 files changed, 103 insertions(+), 5 deletions(-) delete mode 100644 rustc-1.15.1-src.tar.gz create mode 100644 rustc-1.16.0-src.tar.gz diff --git a/rust.changes b/rust.changes index b6465bb..2229809 100644 --- a/rust.changes +++ b/rust.changes @@ -1,3 +1,101 @@ +------------------------------------------------------------------- +Fri Mar 17 05:59:18 UTC 2017 - luke.nukem.jones@gmail.com + +- Update to 1.16.0 + +- Language updates + * Lifetimes in statics and consts default to `'static`. [RFC 1623] + * [The compiler's `dead_code` lint now accounts for type aliases][38051]. + * [Uninhabitable enums (those without any variants) no longer permit wildcard + match patterns][38069] + * [Clean up semantics of `self` in an import list][38313] + * [`Self` may appear in `impl` headers][38920] + * [`Self` may appear in struct expressions][39282] + +- Compiler updates + * [`rustc` now supports `--emit=metadata`, which causes rustc to emit + a `.rmeta` file containing only crate metadata][38571]. This can be + used by tools like the Rust Language Service to perform + metadata-only builds. + * [Levenshtein based typo suggestions now work in most places, while + previously they worked only for fields and sometimes for local + variables][38927]. Together with the overhaul of "no + resolution"/"unexpected resolution" errors (#[38154]) they result in + large and systematic improvement in resolution diagnostics. + * [Fix `transmute::` where `T` requires a bigger alignment than + `U`][38670] + * [rustc: use -Xlinker when specifying an rpath with ',' in it][38798] + * [`rustc` no longer attempts to provide "consider using an explicit + lifetime" suggestions][37057]. They were inaccurate. + +- Stabilized APIs + * [`VecDeque::truncate`] + * [`VecDeque::resize`] + * [`String::insert_str`] + * [`Duration::checked_add`] + * [`Duration::checked_sub`] + * [`Duration::checked_div`] + * [`Duration::checked_mul`] + * [`str::replacen`] + * [`str::repeat`] + * [`SocketAddr::is_ipv4`] + * [`SocketAddr::is_ipv6`] + * [`IpAddr::is_ipv4`] + * [`IpAddr::is_ipv6`] + * [`Vec::dedup_by`] + * [`Vec::dedup_by_key`] + * [`Result::unwrap_or_default`] + * [`<*const T>::wrapping_offset`] + * [`<*mut T>::wrapping_offset`] + * `CommandExt::creation_flags` + * [`File::set_permissions`] + * [`String::split_off`] + +- Library updates + * [`[T]::binary_search` and `[T]::binary_search_by_key` now take + their argument by `Borrow` parameter][37761] + * [All public types in std implement `Debug`][38006] + * [`IpAddr` implements `From` and `From`][38327] + * [`Ipv6Addr` implements `From<[u16; 8]>`][38131] + * [Ctrl-Z returns from `Stdin.read()` when reading from the console on + Windows][38274] + * [std: Fix partial writes in `LineWriter`][38062] + * [std: Clamp max read/write sizes on Unix][38062] + * [Use more specific panic message for `&str` slicing errors][38066] + * [`TcpListener::set_only_v6` is deprecated][38304]. This + functionality cannot be achieved in std currently. + * [`writeln!`, like `println!`, now accepts a form with no string + or formatting arguments, to just print a newline][38469] + * [Implement `iter::Sum` and `iter::Product` for `Result`][38580] + * [Reduce the size of static data in `std_unicode::tables`][38781] + * [`char::EscapeDebug`, `EscapeDefault`, `EscapeUnicode`, + `CaseMappingIter`, `ToLowercase`, `ToUppercase`, implement + `Display`][38909] + * [`Duration` implements `Sum`][38712] + * [`String` implements `ToSocketAddrs`][39048] + +- Misc fixes + * [`rustdoc` has a `--sysroot` argument that, like `rustc`, specifies + the path to the Rust implementation][38589] + * [The `armv7-linux-androideabi` target no longer enables NEON + extensions, per Google's ABI guide][38413] + * [The stock standard library can be compiled for Redox OS][38401] + * [Rust has initial SPARC support][38726]. Tier 3. No builds + available. + * [Rust has experimental support for Nvidia PTX][38559]. Tier 3. No + builds available. + * [Fix backtraces on i686-pc-windows-gnu by disabling FPO][39379] + +- Compatibility notes + * [Uninhabitable enums (those without any variants) no longer permit wildcard + match patterns][38069] + * In this release, references to uninhabited types can not be + pattern-matched. This was accidentally allowed in 1.15. + * [The compiler's `dead_code` lint now accounts for type aliases][38051]. + * [Ctrl-Z returns from `Stdin.read()` when reading from the console on + Windows][38274] + * [Clean up semantics of `self` in an import list][38313] + ------------------------------------------------------------------- Mon Mar 13 10:14:21 UTC 2017 - dimstar@opensuse.org diff --git a/rust.spec b/rust.spec index 3614014..49350a3 100644 --- a/rust.spec +++ b/rust.spec @@ -17,7 +17,7 @@ # -%global prev_version 1.14.0 +%global prev_version 1.15.0 %global abi gnu %ifarch s390x %global _arch s390x @@ -41,7 +41,7 @@ %global rust_triple %{_arch}-unknown-linux-%{abi} %bcond_with bootstrap Name: rust -Version: 1.15.1 +Version: 1.16.0 Release: 0 Summary: A systems programming language License: MIT or Apache-2.0 diff --git a/rustc-1.15.1-src.tar.gz b/rustc-1.15.1-src.tar.gz deleted file mode 100644 index 59ecf1a..0000000 --- a/rustc-1.15.1-src.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e7daad418a830b45b977cd7ecf181b65f30f73df63ff36e124ea5fe5d1af327 -size 28100203 diff --git a/rustc-1.16.0-src.tar.gz b/rustc-1.16.0-src.tar.gz new file mode 100644 index 0000000..6b51559 --- /dev/null +++ b/rustc-1.16.0-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f966b31eb1cd9bd2df817c391a338eeb5b9253ae0a19bf8a11960c560f96e8b4 +size 28470372