Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
b8d35ded
R
Rust
项目概览
int
/
Rust
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Rust
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b8d35ded
编写于
2月 18, 2015
作者:
A
Alex Crichton
浏览文件
操作
浏览文件
下载
差异文件
rollup merge of #22517: brson/relnotes
p=1 please
上级
b7c0813e
c4bb064b
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
215 addition
and
11 deletion
+215
-11
AUTHORS.txt
AUTHORS.txt
+116
-11
RELEASES.md
RELEASES.md
+99
-0
未找到文件。
AUTHORS.txt
浏览文件 @
b8d35ded
此差异已折叠。
点击以展开。
RELEASES.md
浏览文件 @
b8d35ded
Version 1.0.0-alpha.2 (February 2015)
-------------------------------------
*
~1300 changes, numerous bugfixes
*
Highlights
* The various I/O modules were [overhauled][io-rfc] to reduce
unncessary abstractions and provide better interoperation with
the underlying platform. The old `io` module remains temporarily
at `std::old_io`.
* The standard library now [partipates in feature gating][feat],
so use of unstable libraries now requires a `#![feature(...)]`
attribute. The impact of this change is [described on the
forum][feat-forum]. [RFC][feat-rfc].
*
Language
* `for` loops [now operate on the `IntoIterator` trait][into],
which eliminates the need to call `.iter()`, etc. to iterate
over collections. There are some new subtleties to remember
though regarding what sort of iterators various types yield, in
particular that `for foo in bar { }` yields values from a move
iterator, destroying the original collection. [RFC][into-rfc].
* Objects now have [default lifetime bounds][obj], so you don't
have to write `Box<Trait+'static>` when you don't care about
storing references. [RFC][obj-rfc].
* In types that implement `Drop`, [lifetimes must outlive the
value][drop]. This will soon make it possible to safely
implement `Drop` for types where `#[unsafe_destructor]` is now
required. Read the [gorgeous RFC][drop-rfc] for details.
* The fully qualified <T as Trait>::X syntax lets you set the Self
type for a trait method or associated type. [RFC][ufcs-rfc].
* References to types that implement `Deref<U>` now [automatically
coerce to references][deref] to the dereferenced type `U`,
e.g. `&T where T: Deref<U>` automatically coerces to `&U`. This
should eliminate many unsightly uses of `&*`, as when converting
from references to vectors into references to
slices. [RFC][deref-rfc].
* The explicit [closure kind syntax][close] (`|&:|`, `|&mut:|`,
`|:|`) is obsolete and closure kind is inferred from context.
* [`Self` is a keyword][Self].
*
Libraries
* The `Show` and `String` formatting traits [have been
renamed][fmt] to `Debug` and `Display` to more clearly reflect
their related purposes. Automatically getting a string
conversion to use with `format!("{:?}", something_to_debug)` is
now written `#[derive(Debug)]`.
* Abstract [OS-specific string types][osstr], `std::ff::{OsString,
OsStr}`, provide strings in platform-specific encodings for easier
interop with system APIs. [RFC][osstr-rfc].
* The `boxed::into_raw` and `Box::frow_raw` functions [convert
between `Box<T>` and `*mut T`][boxraw], a common pattern for
creating raw pointers.
*
Tooling
* Certain long error messages of the form 'expected foo found bar'
are now [split neatly across multiple
lines][multiline]. Examples in the PR.
* On Unix Rust can be [uninstalled][un] by running
`/usr/local/lib/rustlib/uninstall.sh`.
* The `#[rustc_on_unimplemented]` attribute, requiring the
'on_unimplemented' feature, lets rustc [display custom error
messages when a trait is expected to be implemented for a type
but is not][onun].
*
Misc
* Rust is tested against a [LALR grammar][lalr], which parses
almost all the Rust files that rustc does.
[
boxraw
]:
https://github.com/rust-lang/rust/pull/21318
[
close
]:
https://github.com/rust-lang/rust/pull/21843
[
deref
]:
https://github.com/rust-lang/rust/pull/21351
[
deref-rfc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0241-deref-conversions.md
[
drop
]:
https://github.com/rust-lang/rust/pull/21972
[
drop-rfc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0769-sound-generic-drop.md
[
feat
]:
https://github.com/rust-lang/rust/pull/21248
[
feat-forum
]:
http://users.rust-lang.org/t/psa-important-info-about-rustcs-new-feature-staging/82/5
[
feat-rfc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
[
fmt
]:
https://github.com/rust-lang/rust/pull/21457
[
into
]:
https://github.com/rust-lang/rust/pull/20790
[
into-rfc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0235-collections-conventions.md#intoiterator-and-iterable
[
io-rfc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
[
lalr
]:
https://github.com/rust-lang/rust/pull/21452
[
multiline
]:
https://github.com/rust-lang/rust/pull/19870
[
obj
]:
https://github.com/rust-lang/rust/pull/22230
[
obj-rfc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
[
onun
]:
https://github.com/rust-lang/rust/pull/20889
[
osstr
]:
https://github.com/rust-lang/rust/pull/21488
[
osstr-rfc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0517-io-os-reform.md
[
Self
]:
https://github.com/rust-lang/rust/pull/22158
[
ufcs
]:
https://github.com/rust-lang/rust/pull/21077
[
ufcs-rfc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
[
un
]:
https://github.com/rust-lang/rust/pull/22256
Version 1.0.0-alpha (January 2015)
----------------------------------
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录