Accepting request 581963 from devel:languages:rust

- Update to 1.24.0
- Language changes:
  + External `sysv64` ffi is now available. 
    eg. `extern "sysv64" fn foo () {}`
- Compiler changes:
  + rustc now uses 16 codegen units by default for release builds.
    For the fastest builds, utilize `codegen-units=1`.
- Libraries:
  + `str::find::<char>` now uses memchr. This should lead to a 10x
    improvement in performance in the majority of cases.
  + `time::{SystemTime, Instant}` now implement `Hash`.
  + impl `From<bool>` for `AtomicBool`
  + impl `From<{CString, &CStr}>` for `{Arc<CStr>, Rc<CStr>}`
  + impl `From<{OsString, &OsStr}>` for `{Arc<OsStr>, Rc<OsStr>}`
  + impl `From<{PathBuf, &Path}>` for `{Arc<Path>, Rc<Path>}`
  + float::from_bits now just uses transmute. This provides some
    optimisations from LLVM.
  + Copied `AsciiExt` methods onto `char`
  + Remove `T: Sized` requirement on `ptr::is_null()`
  + impl `From<RecvError>` for `{TryRecvError, RecvTimeoutError}`
  + Optimised `f32::{min, max}` to generate more efficient x86 
    assembly
  + `[u8]::contains` now uses memchr which provides a 3x speed
    improvement
- Compatibility Notes:
  + Floating point types `Debug` impl now always prints a decimal
    point.
  + `Ipv6Addr` now rejects superfluous `::`'s in IPv6 addresses 
    This is in accordance with IETF RFC 4291 §2.2.
  + Unwinding will no longer go past FFI boundaries, and will
    instead abort.
  + `Formatter::flags` method is now deprecated. The `sign_plus`, 
    `sign_minus`, `alternate`, and `sign_aware_zero_pad` should be
     used instead.
  + Leading zeros in tuple struct members is now an error
  + `column!()` macro is one-based instead of zero-based
  + `fmt::Arguments` can no longer be shared across threads
  + Access to `#[repr(packed)]` struct fields is now unsafe
  + Cargo sets a different working directory for the compiler

OBS-URL: https://build.opensuse.org/request/show/581963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rust?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2018-03-06 09:44:03 +00:00 committed by Git OBS Bridge
commit c5682b92dd
4 changed files with 48 additions and 5 deletions

View File

@ -1,3 +1,46 @@
-------------------------------------------------------------------
Sat Feb 24 19:26:15 UTC 2018 - mmanu84@outlook.de
- Update to 1.24.0
- Language changes:
+ External `sysv64` ffi is now available.
eg. `extern "sysv64" fn foo () {}`
- Compiler changes:
+ rustc now uses 16 codegen units by default for release builds.
For the fastest builds, utilize `codegen-units=1`.
- Libraries:
+ `str::find::<char>` now uses memchr. This should lead to a 10x
improvement in performance in the majority of cases.
+ `time::{SystemTime, Instant}` now implement `Hash`.
+ impl `From<bool>` for `AtomicBool`
+ impl `From<{CString, &CStr}>` for `{Arc<CStr>, Rc<CStr>}`
+ impl `From<{OsString, &OsStr}>` for `{Arc<OsStr>, Rc<OsStr>}`
+ impl `From<{PathBuf, &Path}>` for `{Arc<Path>, Rc<Path>}`
+ float::from_bits now just uses transmute. This provides some
optimisations from LLVM.
+ Copied `AsciiExt` methods onto `char`
+ Remove `T: Sized` requirement on `ptr::is_null()`
+ impl `From<RecvError>` for `{TryRecvError, RecvTimeoutError}`
+ Optimised `f32::{min, max}` to generate more efficient x86
assembly
+ `[u8]::contains` now uses memchr which provides a 3x speed
improvement
- Compatibility Notes:
+ Floating point types `Debug` impl now always prints a decimal
point.
+ `Ipv6Addr` now rejects superfluous `::`'s in IPv6 addresses
This is in accordance with IETF RFC 4291 §2.2.
+ Unwinding will no longer go past FFI boundaries, and will
instead abort.
+ `Formatter::flags` method is now deprecated. The `sign_plus`,
`sign_minus`, `alternate`, and `sign_aware_zero_pad` should be
used instead.
+ Leading zeros in tuple struct members is now an error
+ `column!()` macro is one-based instead of zero-based
+ `fmt::Arguments` can no longer be shared across threads
+ Access to `#[repr(packed)]` struct fields is now unsafe
+ Cargo sets a different working directory for the compiler
-------------------------------------------------------------------
Mon Feb 19 06:26:41 UTC 2018 - coolo@suse.com

View File

@ -17,7 +17,7 @@
#
%global prev_rust 1.22.1
%global prev_rust 1.23.0
%global cargo_version 0.24.0
%global rust_arch %{_arch}
%global abi gnu
@ -45,7 +45,7 @@
%global rustlibdir %{common_libdir}/rustlib
%bcond_with rust_bootstrap
Name: rust
Version: 1.23.0
Version: 1.24.0
Release: 0
Summary: A systems programming language
License: MIT OR Apache-2.0

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7464953871dcfdfa8afcc536916a686dd156a83339d8ec4d5cb4eb2fe146cb91
size 60010149

3
rustc-1.24.0-src.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bb8276f6044e877e447f29f566e4bbf820fa51fea2f912d59b73233ffd95639f
size 67506894