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

栏目: 软件资讯 · 发布时间: 6年前

内容简介:Rust 1.23.0 发布了。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。 更新内容: 语言: Arbitrary auto traits are now permitted in trait objects. rustc now uses subtyping on ...

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<T>

  • impl From<usize/isize> for AtomicUsize/AtomicIsize.

  • Removed the T: Sync requirement for RwLock<T>: 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.

完整内容请查看发行说明

下载地址:


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Node.js硬实战:115个核心技巧

Node.js硬实战:115个核心技巧

【美】Alex R. Young、【美】Marc Harter / 承竹、慕陶、邱娟、达峰 / 电子工业出版社 / 2017-1 / 109.9

《Node.js 硬实战:115 个核心技巧》是一本面向实战的Node.js 开发进阶指南。作为资深专家,《Node.js 硬实战:115 个核心技巧》作者独辟蹊径,将着眼点放在Node.js 的核心模块和网络应用,通过精心组织的丰富实例,向读者充分展示了Node.js 强大的并发处理能力,读者从中可真正掌握Node 的核心基础与高级技巧。《Node.js 硬实战:115 个核心技巧》总共有三部分......一起来看看 《Node.js硬实战:115个核心技巧》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试