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

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

内容简介: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]


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

查看所有标签

猜你喜欢:

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

Effective Modern C++ 简体中文版

Effective Modern C++ 简体中文版

Scott Meyers / 高博 / 中国电力出版社 / 2018-4-23 / 99

想要彻底理解C++11和C++14,不可止步于熟悉它们引入的语言特性(例如,auto型别推导、移动语义、lambda表达式以及并发支持)。挑战在于高效地运用这些特性——从而使你的软件具备正确性、高效率、可维护性和可移植性。这正是这本实用的图书意欲达成的定位。它描述的正是使用C++11和C++14——现代C++来撰写真正卓越的软件之道。 涵盖以下主题: 大括号初始化、noexcept规格......一起来看看 《Effective Modern C++ 简体中文版》 这本书的介绍吧!

html转js在线工具
html转js在线工具

html转js在线工具

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

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具