Accepting request 726623 from home:luke_nukem:branches:devel:languages:rust
Update to 1.37 OBS-URL: https://build.opensuse.org/request/show/726623 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=225
This commit is contained in:
parent
9850860e3c
commit
00e7250e8a
68
rust.changes
68
rust.changes
@ -1,3 +1,71 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Aug 28 01:00:37 UTC 2019 - Luke Jones <luke@ljones.dev>
|
||||||
|
|
||||||
|
- Update to version 1.37.0
|
||||||
|
+ Language
|
||||||
|
- #[must_use] will now warn if the type is contained in a tuple,
|
||||||
|
Box, or an array and unused.
|
||||||
|
- You can now use the `cfg` and `cfg_attr` attributes on
|
||||||
|
generic parameters.
|
||||||
|
- You can now use enum variants through type alias. e.g. You can
|
||||||
|
write the following:
|
||||||
|
```
|
||||||
|
type MyOption = Option<u8>;
|
||||||
|
|
||||||
|
fn increment_or_zero(x: MyOption) -> u8 {
|
||||||
|
match x {
|
||||||
|
MyOption::Some(y) => y + 1,
|
||||||
|
MyOption::None => 0,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
- You can now use `_` as an identifier for consts. e.g. You can write
|
||||||
|
`const _: u32 = 5;`.
|
||||||
|
- You can now use `#[repr(align(X)]` on enums.
|
||||||
|
- The `?` Kleene macro operator is now available in the
|
||||||
|
2015 edition.
|
||||||
|
+ Compiler
|
||||||
|
- You can now enable Profile-Guided Optimization with the `-C profile-generate`
|
||||||
|
and `-C profile-use` flags. For more information on how to use profile
|
||||||
|
guided optimization, please refer to the rustc book.
|
||||||
|
- The `rust-lldb` wrapper script should now work again.
|
||||||
|
+ Libraries
|
||||||
|
- `mem::MaybeUninit<T>` is now ABI-compatible with `T`.
|
||||||
|
+ Stabilized APIs
|
||||||
|
- BufReader::buffer
|
||||||
|
- BufWriter::buffer
|
||||||
|
- Cell::from_mut
|
||||||
|
- Cell<[T]>::as_slice_of_cells
|
||||||
|
- Cell<slice>::as_slice_of_cells
|
||||||
|
- DoubleEndedIterator::nth_back
|
||||||
|
- Option::xor
|
||||||
|
- Wrapping::reverse_bits
|
||||||
|
- i128::reverse_bits
|
||||||
|
- i16::reverse_bits
|
||||||
|
- i32::reverse_bits
|
||||||
|
- i64::reverse_bits
|
||||||
|
- i8::reverse_bits
|
||||||
|
- isize::reverse_bits
|
||||||
|
- slice::copy_within
|
||||||
|
- u128::reverse_bits
|
||||||
|
- u16::reverse_bits
|
||||||
|
- u32::reverse_bits
|
||||||
|
- u64::reverse_bits
|
||||||
|
- u8::reverse_bits
|
||||||
|
- usize::reverse_bits
|
||||||
|
+ Cargo
|
||||||
|
- Cargo.lock files are now included by default when publishing executable crates
|
||||||
|
with executables.
|
||||||
|
- You can now specify `default-run="foo"` in `[package]` to specify the
|
||||||
|
default executable to use for `cargo run`.
|
||||||
|
- cargo-vendor is now provided as a sub-command of cargo
|
||||||
|
+ Compatibility Notes
|
||||||
|
- Using `...` for inclusive range patterns will now warn by default.
|
||||||
|
Please transition your code to using the `..=` syntax for inclusive
|
||||||
|
ranges instead.
|
||||||
|
- Using a trait object without the `dyn` will now warn by default.
|
||||||
|
Please transition your code to use `dyn Trait` for trait objects instead.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 9 09:57:46 UTC 2019 - Luke Jones <jones_ld@protonmail.com>
|
Tue Jul 9 09:57:46 UTC 2019 - Luke Jones <jones_ld@protonmail.com>
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# spec file for package rust
|
# spec file for package rust
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
# Copyright (c) 2019 Luke Jones, jones_ld@protonmail.com
|
# Copyright (c) 2019 Luke Jones, luke@ljones.dev
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -17,8 +17,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%global version_current 1.36.0
|
%global version_current 1.37.0
|
||||||
%global version_previous 1.35.0
|
%global version_previous 1.36.0
|
||||||
%global version_bootstrap 1.36.0
|
%global version_bootstrap 1.36.0
|
||||||
# some sub-packages are versioned independantly
|
# some sub-packages are versioned independantly
|
||||||
%global rustfmt_version 1.0.3
|
%global rustfmt_version 1.0.3
|
||||||
@ -293,6 +293,8 @@ Requires: %{name} = %{version}
|
|||||||
Obsoletes: cargo < %{version}
|
Obsoletes: cargo < %{version}
|
||||||
Conflicts: cargo < %{version}
|
Conflicts: cargo < %{version}
|
||||||
Provides: rustc:%{_bindir}/cargo = %{version}
|
Provides: rustc:%{_bindir}/cargo = %{version}
|
||||||
|
Obsoletes: cargo-vendor < %{version}
|
||||||
|
Conflicts: cargo-vendor < %{version}
|
||||||
|
|
||||||
%description -n cargo
|
%description -n cargo
|
||||||
Cargo downloads dependencies of Rust projects and compiles it.
|
Cargo downloads dependencies of Rust projects and compiles it.
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f51645b9f787af4a5d94db17f6af39db0c55980ed24fe366cad55b57900f8f2d
|
|
||||||
size 98707920
|
|
3
rustc-1.37.0-src.tar.xz
Normal file
3
rustc-1.37.0-src.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:10abffac50a729cf74cef6dd03193a2f4647541bd19ee9281be9e5b12ca8cdfd
|
||||||
|
size 98654252
|
Loading…
x
Reference in New Issue
Block a user