内容简介:Rust 1.22.0 已发布,该版本带来了语言、编译器、库和稳定 API 方面的更新,具体如下: Language non_snake_case lint now allows extern no-mangle functions Now accepts underscores in unicode escapes T o...
Rust 1.22.0 已发布,该版本带来了语言、编译器、库和稳定 API 方面的更新,具体如下:
Language
T op= &T
now works for numeric types. eg.let mut x = 2; x += &8;
types that impl
Drop
are now allowed inconst
andstatic
types
Compiler
rustc now defaults to having 16 codegen units at debug on supported platforms.
rustc will no longer inline in codegen units when compiling for debug This should decrease compile times for debug builds.
Libraries
Allow atomic operations up to 32 bits on
armv5te_unknown_linux_gnueabi
Option<T>
now implsTry
This allows for using?
withOption
types.
Stabilized APIs
Cargo
Changed
[root]
to[package]
inCargo.lock
Packages with the old format will continue to work and can be updated withcargo update
.
Misc
Stabilised the
compile_fail
attribute for code fences in doc-comments. This now lets you specify that a given code example will fail to compile.
Compatibility Notes
The minimum Android version that rustc can build for has been bumped to
4.0
from2.3
Allowing
T op= &T
for numeric types has broken some type inference cases
下载地址
Rust 是一种系统编程语言。 它有着惊人的运行速度,能够防止段错误,并保证线程安全。
【声明】文章转载自:开源中国社区 [http://www.oschina.net]
以上所述就是小编给大家介绍的《Rust 1.22.0 发布,Mozilla 开发的系统编程语言》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- Scala面向对象编程之Trait高级编程技术实践-JVM生态编程语言实战
- 逻辑式编程语言极简实现(使用C#) - 1. 逻辑式编程语言介绍
- 我的“第二”编程语言
- 编程语言特性:函数
- 编程语言的巅峰
- 各种编程语言对比
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Essential ActionScript 3.0
Colin Moock / Adobe Dev Library / June 22, 2007 / $34.64
ActionScript 3.0 is a huge upgrade to Flash's programming language. The enhancements to ActionScript's performance, feature set, ease of use, cleanliness, and sophistication are considerable. Essentia......一起来看看 《Essential ActionScript 3.0》 这本书的介绍吧!