红联Linux门户
Linux帮助

Rust 1.23.0发布,Mozilla开发的系统编程语言

发布时间:2018-01-05 09:10:08来源:红联作者:baihuo
Rust 1.23.0 发布了。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。

更新内容:

语言:

Arbitrary auto traits are now permitted in trait objects.

rustc now uses subtyping on the left hand side of binary operations. Which should fix some confusing errors in some operations.

编译器:

Enabled TrapUnreachable in LLVM which should mitigate the impact of undefined behaviour.

rustc now suggests renaming import if names clash.

Display errors/warnings correctly when there are zero-width or wide characters.

rustc now avoids unnecessary copies of arguments that are simple bindings This should improve memory usage on average by 5-10%.

Updated musl used to build musl rustc to 1.1.17

库:

Allow a trailing comma in assert_eq/ne macro

Implement Hash for raw pointers to unsized types

impl From<*mut T> for AtomicPtr

impl From for AtomicUsize/AtomicIsize.

Removed the T: Sync requirement for RwLock: Send

Removed T: Sized requirement for {<*const T>, <*mut T>}::as_ref and <*mut T>::as_mut

Optimized Thread::{park, unpark} implementation

Improved SliceExt::binary_search performance.

impl FromIterator<()> for ()

Copied AsciiExt trait methods to primitive types. Use of AsciiExt is now deprecated.

软件详情:https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1230-2018-01-04

下载地址:https://github.com/rust-lang/rust/archive/1.23.0.zip

来自:开源中国社区
文章评论

共有 0 条评论