Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
737397c5
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,发现更多精彩内容 >>
提交
737397c5
编写于
8月 11, 2015
作者:
A
Alex Crichton
浏览文件
操作
浏览文件
下载
差异文件
rollup merge of #27622: eefriedman/https-url
Also fixes a few outdated links.
上级
e132f767
7d3c4bd7
变更
57
隐藏空白更改
内联
并排
Showing
57 changed file
with
197 addition
and
215 deletion
+197
-215
CONTRIBUTING.md
CONTRIBUTING.md
+3
-3
README.md
README.md
+3
-3
RELEASES.md
RELEASES.md
+55
-55
mk/docs.mk
mk/docs.mk
+2
-2
src/doc/favicon.inc
src/doc/favicon.inc
+1
-1
src/doc/not_found.md
src/doc/not_found.md
+4
-4
src/doc/style/README.md
src/doc/style/README.md
+1
-1
src/doc/style/errors/ergonomics.md
src/doc/style/errors/ergonomics.md
+1
-1
src/doc/style/errors/signaling.md
src/doc/style/errors/signaling.md
+1
-1
src/doc/style/features/functions-and-methods/input.md
src/doc/style/features/functions-and-methods/input.md
+15
-13
src/doc/style/features/modules.md
src/doc/style/features/modules.md
+10
-10
src/doc/style/ownership/builders.md
src/doc/style/ownership/builders.md
+1
-1
src/doc/trpl/README.md
src/doc/trpl/README.md
+1
-1
src/doc/trpl/compiler-plugins.md
src/doc/trpl/compiler-plugins.md
+2
-2
src/doc/trpl/documentation.md
src/doc/trpl/documentation.md
+4
-4
src/doc/trpl/installing-rust.md
src/doc/trpl/installing-rust.md
+2
-2
src/doc/trpl/nightly-rust.md
src/doc/trpl/nightly-rust.md
+2
-2
src/doc/version_info.html.template
src/doc/version_info.html.template
+3
-3
src/liballoc/lib.rs
src/liballoc/lib.rs
+2
-2
src/libarena/lib.rs
src/libarena/lib.rs
+2
-2
src/libcollections/lib.rs
src/libcollections/lib.rs
+3
-3
src/libcore/lib.rs
src/libcore/lib.rs
+3
-3
src/libflate/lib.rs
src/libflate/lib.rs
+2
-2
src/libfmt_macros/lib.rs
src/libfmt_macros/lib.rs
+3
-3
src/libgetopts/lib.rs
src/libgetopts/lib.rs
+3
-3
src/libgraphviz/lib.rs
src/libgraphviz/lib.rs
+2
-2
src/liblibc/lib.rs
src/liblibc/lib.rs
+3
-3
src/liblog/lib.rs
src/liblog/lib.rs
+3
-3
src/librand/lib.rs
src/librand/lib.rs
+3
-3
src/librbml/lib.rs
src/librbml/lib.rs
+3
-3
src/librustc/README.md
src/librustc/README.md
+1
-1
src/librustc/lib.rs
src/librustc/lib.rs
+2
-2
src/librustc_back/lib.rs
src/librustc_back/lib.rs
+2
-2
src/librustc_borrowck/lib.rs
src/librustc_borrowck/lib.rs
+2
-2
src/librustc_data_structures/lib.rs
src/librustc_data_structures/lib.rs
+3
-3
src/librustc_driver/lib.rs
src/librustc_driver/lib.rs
+2
-2
src/librustc_lint/lib.rs
src/librustc_lint/lib.rs
+2
-2
src/librustc_llvm/lib.rs
src/librustc_llvm/lib.rs
+2
-2
src/librustc_privacy/lib.rs
src/librustc_privacy/lib.rs
+2
-2
src/librustc_resolve/diagnostics.rs
src/librustc_resolve/diagnostics.rs
+5
-5
src/librustc_resolve/lib.rs
src/librustc_resolve/lib.rs
+2
-2
src/librustc_trans/lib.rs
src/librustc_trans/lib.rs
+2
-2
src/librustc_typeck/diagnostics.rs
src/librustc_typeck/diagnostics.rs
+2
-2
src/librustc_typeck/lib.rs
src/librustc_typeck/lib.rs
+2
-2
src/librustc_unicode/lib.rs
src/librustc_unicode/lib.rs
+3
-3
src/librustdoc/html/markdown.rs
src/librustdoc/html/markdown.rs
+1
-1
src/librustdoc/lib.rs
src/librustdoc/lib.rs
+3
-3
src/libserialize/lib.rs
src/libserialize/lib.rs
+3
-3
src/libstd/lib.rs
src/libstd/lib.rs
+3
-3
src/libsyntax/diagnostics/plugin.rs
src/libsyntax/diagnostics/plugin.rs
+1
-1
src/libsyntax/lib.rs
src/libsyntax/lib.rs
+2
-2
src/libterm/lib.rs
src/libterm/lib.rs
+3
-3
src/libtest/lib.rs
src/libtest/lib.rs
+2
-2
src/rustbook/build.rs
src/rustbook/build.rs
+1
-1
src/test/compile-fail/loops-reject-duplicate-labels-2.rs
src/test/compile-fail/loops-reject-duplicate-labels-2.rs
+1
-1
src/test/run-pass/cleanup-arm-conditional.rs
src/test/run-pass/cleanup-arm-conditional.rs
+0
-10
src/test/run-pass/cleanup-shortcircuit.rs
src/test/run-pass/cleanup-shortcircuit.rs
+0
-10
未找到文件。
CONTRIBUTING.md
浏览文件 @
737397c5
...
@@ -17,8 +17,8 @@ hop on [#rust-internals][pound-rust-internals].
...
@@ -17,8 +17,8 @@ hop on [#rust-internals][pound-rust-internals].
As a reminder, all contributors are expected to follow our
[
Code of Conduct
][
coc
]
.
As a reminder, all contributors are expected to follow our
[
Code of Conduct
][
coc
]
.
[
pound-rust-internals
]:
http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
[
pound-rust-internals
]:
http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-internals
[
internals
]:
http://internals.rust-lang.org
[
internals
]:
http
s
://internals.rust-lang.org
[
coc
]:
http://www.rust-lang.org/conduct.html
[
coc
]:
http
s
://www.rust-lang.org/conduct.html
## Feature Requests
## Feature Requests
...
@@ -207,6 +207,6 @@ it to [Crates.io](http://crates.io). Easier said than done, but very, very
...
@@ -207,6 +207,6 @@ it to [Crates.io](http://crates.io). Easier said than done, but very, very
valuable!
valuable!
[
pound-rust
]:
http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
[
pound-rust
]:
http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
[
users
]:
http://users.rust-lang.org/
[
users
]:
http
s
://users.rust-lang.org/
[
so
]:
http://stackoverflow.com/questions/tagged/rust
[
so
]:
http://stackoverflow.com/questions/tagged/rust
[
community-library
]:
https://github.com/rust-lang/rfcs/labels/A-community-library
[
community-library
]:
https://github.com/rust-lang/rfcs/labels/A-community-library
README.md
浏览文件 @
737397c5
...
@@ -13,8 +13,8 @@ as standard libraries, tools and documentation for Rust.
...
@@ -13,8 +13,8 @@ as standard libraries, tools and documentation for Rust.
Read ["Installing Rust"] from [The Book].
Read ["Installing Rust"] from [The Book].
[
"Installing Rust"
]:
http://doc.rust-lang.org/book/installing-rust.html
[
"Installing Rust"
]:
http
s
://doc.rust-lang.org/book/installing-rust.html
[
The Book
]:
http://doc.rust-lang.org/book/index.html
[
The Book
]:
http
s
://doc.rust-lang.org/book/index.html
## Building from Source
## Building from Source
...
@@ -117,7 +117,7 @@ The Rust community congregates in a few places:
...
@@ -117,7 +117,7 @@ The Rust community congregates in a few places:
[
Stack Overflow
]:
http://stackoverflow.com/questions/tagged/rust
[
Stack Overflow
]:
http://stackoverflow.com/questions/tagged/rust
[
/r/rust
]:
http://reddit.com/r/rust
[
/r/rust
]:
http://reddit.com/r/rust
[
users.rust-lang.org
]:
http://users.rust-lang.org/
[
users.rust-lang.org
]:
http
s
://users.rust-lang.org/
## Contributing
## Contributing
...
...
RELEASES.md
浏览文件 @
737397c5
...
@@ -102,51 +102,51 @@ Misc
...
@@ -102,51 +102,51 @@ Misc
*
Fat pointers are now
[
passed in pairs of immediate arguments
][
fat
]
,
*
Fat pointers are now
[
passed in pairs of immediate arguments
][
fat
]
,
resulting in faster compile times and smaller code.
resulting in faster compile times and smaller code.
[
`Extend`
]:
http://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
[
`Extend`
]:
http
s
://doc.rust-lang.org/nightly/std/iter/trait.Extend.html
[
extend-rfc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
[
extend-rfc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0839-embrace-extend-extinguish.md
[
`iter::once`
]:
http://doc.rust-lang.org/nightly/std/iter/fn.once.html
[
`iter::once`
]:
http
s
://doc.rust-lang.org/nightly/std/iter/fn.once.html
[
`iter::empty`
]:
http://doc.rust-lang.org/nightly/std/iter/fn.empty.html
[
`iter::empty`
]:
http
s
://doc.rust-lang.org/nightly/std/iter/fn.empty.html
[
`matches`
]:
http://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
[
`matches`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.str.html#method.matches
[
`rmatches`
]:
http://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
[
`rmatches`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.str.html#method.rmatches
[
`Cell`
]:
http://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
[
`Cell`
]:
http
s
://doc.rust-lang.org/nightly/std/cell/struct.Cell.html
[
`RefCell`
]:
http://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
[
`RefCell`
]:
http
s
://doc.rust-lang.org/nightly/std/cell/struct.RefCell.html
[
`wrapping_add`
]:
http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
[
`wrapping_add`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_add
[
`wrapping_sub`
]:
http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
[
`wrapping_sub`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_sub
[
`wrapping_mul`
]:
http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
[
`wrapping_mul`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_mul
[
`wrapping_div`
]:
http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
[
`wrapping_div`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_div
[
`wrapping_rem`
]:
http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
[
`wrapping_rem`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_rem
[
`wrapping_neg`
]:
http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
[
`wrapping_neg`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_neg
[
`wrapping_shl`
]:
http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
[
`wrapping_shl`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shl
[
`wrapping_shr`
]:
http://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
[
`wrapping_shr`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.i8.html#method.wrapping_shr
[
`Wrapping`
]:
http://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
[
`Wrapping`
]:
http
s
://doc.rust-lang.org/nightly/std/num/struct.Wrapping.html
[
`fmt::Formatter`
]:
http://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
[
`fmt::Formatter`
]:
http
s
://doc.rust-lang.org/nightly/std/fmt/struct.Formatter.html
[
`fmt::Write`
]:
http://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
[
`fmt::Write`
]:
http
s
://doc.rust-lang.org/nightly/std/fmt/trait.Write.html
[
`io::Write`
]:
http://doc.rust-lang.org/nightly/std/io/trait.Write.html
[
`io::Write`
]:
http
s
://doc.rust-lang.org/nightly/std/io/trait.Write.html
[
`debug_struct`
]:
http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
[
`debug_struct`
]:
http
s
://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_struct
[
`debug_tuple`
]:
http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
[
`debug_tuple`
]:
http
s
://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_tuple
[
`debug_list`
]:
http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
[
`debug_list`
]:
http
s
://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_list
[
`debug_set`
]:
http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
[
`debug_set`
]:
http
s
://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_set
[
`debug_map`
]:
http://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
[
`debug_map`
]:
http
s
://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html#method.debug_map
[
`Debug`
]:
http://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
[
`Debug`
]:
http
s
://doc.rust-lang.org/nightly/std/fmt/trait.Debug.html
[
strup
]:
http://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
[
strup
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_uppercase
[
strlow
]:
http://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
[
strlow
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.str.html#method.to_lowercase
[
`to_uppercase`
]:
http://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
[
`to_uppercase`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_uppercase
[
`to_lowercase`
]:
http://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
[
`to_lowercase`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.char.html#method.to_lowercase
[
`PoisonError`
]:
http://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
[
`PoisonError`
]:
http
s
://doc.rust-lang.org/nightly/std/sync/struct.PoisonError.html
[
`RwLock`
]:
http://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
[
`RwLock`
]:
http
s
://doc.rust-lang.org/nightly/std/sync/struct.RwLock.html
[
`Mutex`
]:
http://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
[
`Mutex`
]:
http
s
://doc.rust-lang.org/nightly/std/sync/struct.Mutex.html
[
`FromRawFd`
]:
http://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
[
`FromRawFd`
]:
http
s
://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
[
`AsRawFd`
]:
http://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
[
`AsRawFd`
]:
http
s
://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
[
`Stdio`
]:
http://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
[
`Stdio`
]:
http
s
://doc.rust-lang.org/nightly/std/process/struct.Stdio.html
[
`ChildStdin`
]:
http://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
[
`ChildStdin`
]:
http
s
://doc.rust-lang.org/nightly/std/process/struct.ChildStdin.html
[
`ChildStdout`
]:
http://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
[
`ChildStdout`
]:
http
s
://doc.rust-lang.org/nightly/std/process/struct.ChildStdout.html
[
`ChildStderr`
]:
http://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
[
`ChildStderr`
]:
http
s
://doc.rust-lang.org/nightly/std/process/struct.ChildStderr.html
[
`io::ErrorKind`
]:
http://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
[
`io::ErrorKind`
]:
http
s
://doc.rust-lang.org/nightly/std/io/enum.ErrorKind.html
[
debugfmt
]:
https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
[
debugfmt
]:
https://www.reddit.com/r/rust/comments/3ceaui/psa_produces_prettyprinted_debug_output/
[
`DerefMut`
]:
http://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
[
`DerefMut`
]:
http
s
://doc.rust-lang.org/nightly/std/ops/trait.DerefMut.html
[
`mem::align_of`
]:
http://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
[
`mem::align_of`
]:
http
s
://doc.rust-lang.org/nightly/std/mem/fn.align_of.html
[
align
]:
https://github.com/rust-lang/rust/pull/25646
[
align
]:
https://github.com/rust-lang/rust/pull/25646
[
`mem::min_align_of`
]:
http://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
[
`mem::min_align_of`
]:
http
s
://doc.rust-lang.org/nightly/std/mem/fn.min_align_of.html
[
typos
]:
https://github.com/rust-lang/rust/pull/26087
[
typos
]:
https://github.com/rust-lang/rust/pull/26087
[
nop
]:
https://github.com/rust-lang/rust/pull/26336
[
nop
]:
https://github.com/rust-lang/rust/pull/26336
[
fat
]:
https://github.com/rust-lang/rust/pull/26411
[
fat
]:
https://github.com/rust-lang/rust/pull/26411
...
@@ -237,14 +237,14 @@ Misc
...
@@ -237,14 +237,14 @@ Misc
*
[
The `drop_with_repr_extern` lint warns about mixing `repr(C)`
*
[
The `drop_with_repr_extern` lint warns about mixing `repr(C)`
with `Drop`
][
drop
]
.
with `Drop`
][
drop
]
.
[
`str::split_whitespace`
]:
http://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
[
`str::split_whitespace`
]:
http
s
://doc.rust-lang.org/nightly/std/primitive.str.html#method.split_whitespace
[
`FromRawFd`
]:
http://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
[
`FromRawFd`
]:
http
s
://doc.rust-lang.org/nightly/std/os/unix/io/trait.FromRawFd.html
[
`AsRawFd`
]:
http://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
[
`AsRawFd`
]:
http
s
://doc.rust-lang.org/nightly/std/os/unix/io/trait.AsRawFd.html
[
`std::os::unix::symlink`
]:
http://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
[
`std::os::unix::symlink`
]:
http
s
://doc.rust-lang.org/nightly/std/os/unix/fs/fn.symlink.html
[
`IntoIterator`
]:
http://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
[
`IntoIterator`
]:
http
s
://doc.rust-lang.org/nightly/std/iter/trait.IntoIterator.html
[
`From`
]:
http://doc.rust-lang.org/nightly/std/convert/trait.From.html
[
`From`
]:
http
s
://doc.rust-lang.org/nightly/std/convert/trait.From.html
[
rf
]:
https://github.com/rust-lang/rust/pull/24491
[
rf
]:
https://github.com/rust-lang/rust/pull/24491
[
err-index
]:
http://doc.rust-lang.org/error-index.html
[
err-index
]:
http
s
://doc.rust-lang.org/error-index.html
[
sk
]:
https://github.com/rust-lang/rust/pull/24615
[
sk
]:
https://github.com/rust-lang/rust/pull/24615
[
pre
]:
https://github.com/rust-lang/rust/pull/25323
[
pre
]:
https://github.com/rust-lang/rust/pull/25323
[
file
]:
https://github.com/rust-lang/rust/pull/24598
[
file
]:
https://github.com/rust-lang/rust/pull/24598
...
@@ -258,13 +258,13 @@ Misc
...
@@ -258,13 +258,13 @@ Misc
[
pie
]:
https://github.com/rust-lang/rust/pull/24953
[
pie
]:
https://github.com/rust-lang/rust/pull/24953
[
abs
]:
https://github.com/rust-lang/rust/pull/25441
[
abs
]:
https://github.com/rust-lang/rust/pull/25441
[
c
]:
https://github.com/rust-lang/rust/pull/25496
[
c
]:
https://github.com/rust-lang/rust/pull/25496
[
`Cloned`
]:
http://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
[
`Cloned`
]:
http
s
://doc.rust-lang.org/nightly/std/iter/struct.Cloned.html
[
`Incoming`
]:
http://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
[
`Incoming`
]:
http
s
://doc.rust-lang.org/nightly/std/net/struct.Incoming.html
[
inc
]:
https://github.com/rust-lang/rust/pull/25522
[
inc
]:
https://github.com/rust-lang/rust/pull/25522
[
bh
]:
https://github.com/rust-lang/rust/pull/25856
[
bh
]:
https://github.com/rust-lang/rust/pull/25856
[
`BinaryHeap`
]:
http://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
[
`BinaryHeap`
]:
http
s
://doc.rust-lang.org/nightly/std/collections/struct.BinaryHeap.html
[
ll
]:
https://github.com/rust-lang/rust/pull/26022
[
ll
]:
https://github.com/rust-lang/rust/pull/26022
[
`split_off`
]:
http://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
[
`split_off`
]:
http
s
://doc.rust-lang.org/nightly/collections/linked_list/struct.LinkedList.html#method.split_off
[
drop
]:
https://github.com/rust-lang/rust/pull/24935
[
drop
]:
https://github.com/rust-lang/rust/pull/24935
Version 1.0.0 (May 2015)
Version 1.0.0 (May 2015)
...
@@ -508,7 +508,7 @@ Version 1.0.0-alpha.2 (February 2015)
...
@@ -508,7 +508,7 @@ Version 1.0.0-alpha.2 (February 2015)
[
drop
]:
https://github.com/rust-lang/rust/pull/21972
[
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
[
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
]:
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-forum
]:
http
s
://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
[
feat-rfc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0507-release-channels.md
[
fmt
]:
https://github.com/rust-lang/rust/pull/21457
[
fmt
]:
https://github.com/rust-lang/rust/pull/21457
[
into
]:
https://github.com/rust-lang/rust/pull/20790
[
into
]:
https://github.com/rust-lang/rust/pull/20790
...
@@ -709,7 +709,7 @@ Version 1.0.0-alpha (January 2015)
...
@@ -709,7 +709,7 @@ Version 1.0.0-alpha (January 2015)
[
objsafe
]:
https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
[
objsafe
]:
https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
[
assoc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
[
assoc
]:
https://github.com/rust-lang/rfcs/blob/master/text/0195-associated-items.md
[
ints
]:
https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
[
ints
]:
https://github.com/rust-lang/rfcs/pull/544#issuecomment-68760871
[
trpl
]:
http://doc.rust-lang.org/book/index.html
[
trpl
]:
http
s
://doc.rust-lang.org/book/index.html
[
rbe
]:
http://rustbyexample.com/
[
rbe
]:
http://rustbyexample.com/
...
...
mk/docs.mk
浏览文件 @
737397c5
...
@@ -48,7 +48,7 @@ L10N_LANGS := ja
...
@@ -48,7 +48,7 @@ L10N_LANGS := ja
RUSTDOC_HTML_OPTS_NO_CSS
=
--html-before-content
=
doc/version_info.html
\
RUSTDOC_HTML_OPTS_NO_CSS
=
--html-before-content
=
doc/version_info.html
\
--html-in-header
=
doc/favicon.inc
\
--html-in-header
=
doc/favicon.inc
\
--html-after-content
=
doc/footer.inc
\
--html-after-content
=
doc/footer.inc
\
--markdown-playground-url
=
'http://play.rust-lang.org/'
--markdown-playground-url
=
'http
s
://play.rust-lang.org/'
RUSTDOC_HTML_OPTS
=
$(RUSTDOC_HTML_OPTS_NO_CSS)
--markdown-css
rust.css
RUSTDOC_HTML_OPTS
=
$(RUSTDOC_HTML_OPTS_NO_CSS)
--markdown-css
rust.css
...
@@ -169,7 +169,7 @@ doc/not_found.html: $(D)/not_found.md $(HTML_DEPS) | doc/
...
@@ -169,7 +169,7 @@ doc/not_found.html: $(D)/not_found.md $(HTML_DEPS) | doc/
@
$(
call
E, rustdoc:
$@
)
@
$(
call
E, rustdoc:
$@
)
$(Q)$(RUSTDOC)
$(RUSTDOC_HTML_OPTS_NO_CSS)
\
$(Q)$(RUSTDOC)
$(RUSTDOC_HTML_OPTS_NO_CSS)
\
--markdown-no-toc
\
--markdown-no-toc
\
--markdown-css
http://doc.rust-lang.org/rust.css
$<
--markdown-css
http
s
://doc.rust-lang.org/rust.css
$<
define
DEF_DOC
define
DEF_DOC
...
...
src/doc/favicon.inc
浏览文件 @
737397c5
<link
rel=
"shortcut icon"
href=
"http://www.rust-lang.org/favicon.ico"
>
<link
rel=
"shortcut icon"
href=
"http
s
://www.rust-lang.org/favicon.ico"
>
src/doc/not_found.md
浏览文件 @
737397c5
...
@@ -21,12 +21,12 @@ Some things that might be helpful to you though:
...
@@ -21,12 +21,12 @@ Some things that might be helpful to you though:
# Reference
# Reference
*
[
The Rust official site
](
http
://
rust-lang.org
)
*
[
The Rust official site
](
http
s://www.
rust-lang.org
)
*
[
The Rust reference
](
http://doc.rust-lang.org/reference.html
)
*
[
The Rust reference
](
http
s
://doc.rust-lang.org/reference.html
)
# Docs
# Docs
*
[
The standard library
](
http://doc.rust-lang.org/std/
)
*
[
The standard library
](
http
s
://doc.rust-lang.org/std/
)
<script>
<script>
function get_url_fragments() {
function get_url_fragments() {
...
@@ -58,7 +58,7 @@ function populate_rust_search() {
...
@@ -58,7 +58,7 @@ function populate_rust_search() {
// #18540, use a single token
// #18540, use a single token
var a = document.createElement("a");
var a = document.createElement("a");
a.href = "http://doc.rust-lang.org/core/?search=" + encodeURIComponent(lt);
a.href = "http
s
://doc.rust-lang.org/core/?search=" + encodeURIComponent(lt);
a.textContent = lt;
a.textContent = lt;
var search = document.getElementById('core-search');
var search = document.getElementById('core-search');
search.innerHTML = "";
search.innerHTML = "";
...
...
src/doc/style/README.md
浏览文件 @
737397c5
...
@@ -26,7 +26,7 @@ Every guideline has a status:
...
@@ -26,7 +26,7 @@ Every guideline has a status:
One purpose of these guidelines is to reach decisions on a number of
One purpose of these guidelines is to reach decisions on a number of
cross-cutting API and stylistic choices. Discussion and development of
cross-cutting API and stylistic choices. Discussion and development of
the guidelines will happen primarily on http
://discus
s.rust-lang.org/,
the guidelines will happen primarily on http
s://internal
s.rust-lang.org/,
using the Guidelines category. Discussion can also occur on the
using the Guidelines category. Discussion can also occur on the
[
guidelines issue tracker
](
https://github.com/rust-lang/rust-guidelines
)
.
[
guidelines issue tracker
](
https://github.com/rust-lang/rust-guidelines
)
.
...
...
src/doc/style/errors/ergonomics.md
浏览文件 @
737397c5
...
@@ -57,7 +57,7 @@ fn write_info(info: &Info) -> Result<(), IoError> {
...
@@ -57,7 +57,7 @@ fn write_info(info: &Info) -> Result<(), IoError> {
```
```
See
See
[
the `result` module documentation
](
http
://static.rust-lang.org/doc/master
/std/result/index.html#the-try!-macro
)
[
the `result` module documentation
](
http
s://doc.rust-lang.org/stable
/std/result/index.html#the-try!-macro
)
for more details.
for more details.
### The `Result`-`impl` pattern [FIXME]
### The `Result`-`impl` pattern [FIXME]
...
...
src/doc/style/errors/signaling.md
浏览文件 @
737397c5
...
@@ -94,7 +94,7 @@ aspects of the input that are not covered by the contract.
...
@@ -94,7 +94,7 @@ aspects of the input that are not covered by the contract.
### For obstructions, use `Result`
### For obstructions, use `Result`
The
The
[
`Result<T,E>` type
](
http
://static.rust-lang.org/doc/master
/std/result/index.html
)
[
`Result<T,E>` type
](
http
s://doc.rust-lang.org/stable
/std/result/index.html
)
represents either a success (yielding
`T`
) or failure (yielding
`E`
). By
represents either a success (yielding
`T`
) or failure (yielding
`E`
). By
returning a
`Result`
, a function allows its clients to discover and react to
returning a
`Result`
, a function allows its clients to discover and react to
obstructions in a fine-grained way.
obstructions in a fine-grained way.
...
...
src/doc/style/features/functions-and-methods/input.md
浏览文件 @
737397c5
...
@@ -124,7 +124,7 @@ that the caller already owns, for example to re-use a buffer:
...
@@ -124,7 +124,7 @@ that the caller already owns, for example to re-use a buffer:
fn
read
(
&
mut
self
,
buf
:
&
mut
[
u8
])
->
std
::
io
::
Result
<
usize
>
fn
read
(
&
mut
self
,
buf
:
&
mut
[
u8
])
->
std
::
io
::
Result
<
usize
>
```
```
(From the
[
Read
er trait
](
http://static.rust-lang.org/doc/master/std/io/trait.Reader
.html#tymethod.read
)
.)
(From the
[
Read
trait
](
https://doc.rust-lang.org/stable/std/io/trait.Read
.html#tymethod.read
)
.)
### Consider validating arguments, statically or dynamically. [FIXME: needs RFC]
### Consider validating arguments, statically or dynamically. [FIXME: needs RFC]
...
@@ -132,7 +132,7 @@ _Note: this material is closely related to
...
@@ -132,7 +132,7 @@ _Note: this material is closely related to
[
library-level guarantees
](
../../safety/lib-guarantees.md
)
._
[
library-level guarantees
](
../../safety/lib-guarantees.md
)
._
Rust APIs do _not_ generally follow the
Rust APIs do _not_ generally follow the
[
robustness principle
](
http://en.wikipedia.org/wiki/Robustness_principle
)
: "be
[
robustness principle
](
http
s
://en.wikipedia.org/wiki/Robustness_principle
)
: "be
conservative in what you send; be liberal in what you accept".
conservative in what you send; be liberal in what you accept".
Instead, Rust code should _enforce_ the validity of input whenever practical.
Instead, Rust code should _enforce_ the validity of input whenever practical.
...
@@ -147,24 +147,26 @@ Choose an argument type that rules out bad inputs.
...
@@ -147,24 +147,26 @@ Choose an argument type that rules out bad inputs.
For example, prefer
For example, prefer
```
rust
```
rust
fn
foo
(
a
:
ascii
::
Ascii
)
{
...
}
enum
FooMode
{
Mode1
,
Mode2
,
Mode3
,
}
fn
foo
(
mode
:
FooMode
)
{
...
}
```
```
over
over
```
rust
```
rust
fn
foo
(
a
:
u8
)
{
...
}
fn
foo
(
mode2
:
bool
,
mode3
:
bool
)
{
assert
!
(
!
mode2
||
!
mode3
);
...
}
```
```
Note that
[
`ascii::Ascii`
](
http://static.rust-lang.org/doc/master/std/ascii/struct.Ascii.html
)
is a _wrapper_ around
`u8`
that guarantees the highest bit is zero; see
[
newtype patterns
](
../types/newtype.md
)
for more details on creating typesafe wrappers.
Static enforcement usually comes at little run-time cost: it pushes the
Static enforcement usually comes at little run-time cost: it pushes the
costs to the boundaries (e.g. when a
`u8`
is first converted into an
costs to the boundaries. It also catches bugs early, during compilation,
`Ascii`
). It also catches bugs early, during compilation, rather than through
rather than through run-time failures.
run-time failures.
On the other hand, some properties are difficult or impossible to
On the other hand, some properties are difficult or impossible to
express using types.
express using types.
...
@@ -177,7 +179,7 @@ downsides:
...
@@ -177,7 +179,7 @@ downsides:
1.
Runtime overhead (unless checking can be done as part of processing the input).
1.
Runtime overhead (unless checking can be done as part of processing the input).
2.
Delayed detection of bugs.
2.
Delayed detection of bugs.
3.
Introduces failure cases, either via
`
fail
!`
or
`Result`
/
`Option`
types (see
3.
Introduces failure cases, either via
`
panic
!`
or
`Result`
/
`Option`
types (see
the
[
error handling guidelines
](
../../errors/README.md
)
), which must then be
the
[
error handling guidelines
](
../../errors/README.md
)
), which must then be
dealt with by client code.
dealt with by client code.
...
...
src/doc/style/features/modules.md
浏览文件 @
737397c5
...
@@ -58,13 +58,13 @@ For modules that themselves have submodules, place the module in a separate
...
@@ -58,13 +58,13 @@ For modules that themselves have submodules, place the module in a separate
directory (e.g.,
`bar/mod.rs`
for a module
`bar`
) rather than the same directory.
directory (e.g.,
`bar/mod.rs`
for a module
`bar`
) rather than the same directory.
Note the structure of
Note the structure of
[
`std::io`
](
http://doc.rust-lang.org/std/io/
)
. Many of the submodules lack
[
`std::io`
](
http
s
://doc.rust-lang.org/std/io/
)
. Many of the submodules lack
children, like
children, like
[
`io::fs`
](
http://doc.rust-lang.org/std/io/fs/
)
[
`io::fs`
](
http
s
://doc.rust-lang.org/std/io/fs/
)
and
and
[
`io::stdio`
](
http://doc.rust-lang.org/std/io/stdio/
)
.
[
`io::stdio`
](
http
s
://doc.rust-lang.org/std/io/stdio/
)
.
On the other hand,
On the other hand,
[
`io::net`
](
http://doc.rust-lang.org/std/io/net/
)
[
`io::net`
](
http
s
://doc.rust-lang.org/std/io/net/
)
contains submodules, so it lives in a separate directory:
contains submodules, so it lives in a separate directory:
```
```
...
@@ -88,7 +88,7 @@ submodules of `io::net` easier to find.
...
@@ -88,7 +88,7 @@ submodules of `io::net` easier to find.
### Consider top-level definitions or reexports. [FIXME: needs RFC]
### Consider top-level definitions or reexports. [FIXME: needs RFC]
For modules with submodules,
For modules with submodules,
define or
[
reexport
](
http://doc.rust-lang.org/std/io/#reexports
)
commonly used
define or
[
reexport
](
http
s
://doc.rust-lang.org/std/io/#reexports
)
commonly used
definitions at the top level:
definitions at the top level:
*
Functionality relevant to the module itself or to many of its
*
Functionality relevant to the module itself or to many of its
...
@@ -98,10 +98,10 @@ definitions at the top level:
...
@@ -98,10 +98,10 @@ definitions at the top level:
common definitions.
common definitions.
For example,
For example,
[
`IoError`
](
http://doc.rust-lang.org/std/io/struct.IoError.html
)
[
`IoError`
](
http
s
://doc.rust-lang.org/std/io/struct.IoError.html
)
is defined in
`io/mod.rs`
, since it pertains to the entirety of
`io`
,
is defined in
`io/mod.rs`
, since it pertains to the entirety of
`io`
,
while
while
[
`TcpStream`
](
http://doc.rust-lang.org/std/io/net/tcp/struct.TcpStream.html
)
[
`TcpStream`
](
http
s
://doc.rust-lang.org/std/io/net/tcp/struct.TcpStream.html
)
is defined in
`io/net/tcp.rs`
and reexported in the
`io`
module.
is defined in
`io/net/tcp.rs`
and reexported in the
`io`
module.
### Use internal module hirearchies for organization. [FIXME: needs RFC]
### Use internal module hirearchies for organization. [FIXME: needs RFC]
...
@@ -113,11 +113,11 @@ is defined in `io/net/tcp.rs` and reexported in the `io` module.
...
@@ -113,11 +113,11 @@ is defined in `io/net/tcp.rs` and reexported in the `io` module.
Internal module hirearchies (i.e., private submodules) may be used to
Internal module hirearchies (i.e., private submodules) may be used to
hide implementation details that are not part of the module's API.
hide implementation details that are not part of the module's API.
For example, in
[
`std::io`
](
http://doc.rust-lang.org/std/io/
)
,
`mod mem`
For example, in
[
`std::io`
](
http
s
://doc.rust-lang.org/std/io/
)
,
`mod mem`
provides implementations for
provides implementations for
[
`BufReader`
](
http://doc.rust-lang.org/std/io/struct.BufReader.html
)
[
`BufReader`
](
http
s
://doc.rust-lang.org/std/io/struct.BufReader.html
)
and
and
[
`BufWriter`
](
http://doc.rust-lang.org/std/io/struct.BufWriter.html
)
,
[
`BufWriter`
](
http
s
://doc.rust-lang.org/std/io/struct.BufWriter.html
)
,
but these are re-exported in
`io/mod.rs`
at the top level of the module:
but these are re-exported in
`io/mod.rs`
at the top level of the module:
```
rust
```
rust
...
...
src/doc/style/ownership/builders.md
浏览文件 @
737397c5
...
@@ -32,7 +32,7 @@ treatment of ownership, as described below.
...
@@ -32,7 +32,7 @@ treatment of ownership, as described below.
In some cases, constructing the final
`T`
does not require the builder itself to
In some cases, constructing the final
`T`
does not require the builder itself to
be consumed. The follow variant on
be consumed. The follow variant on
[
`std::
io::process::Command`
](
http://static.rust-lang.org/doc/master/std/io
/process/struct.Command.html
)
[
`std::
process::Command`
](
https://doc.rust-lang.org/stable/std
/process/struct.Command.html
)
is one example:
is one example:
```
rust
```
rust
...
...
src/doc/trpl/README.md
浏览文件 @
737397c5
...
@@ -13,7 +13,7 @@ even though some of these abstractions feel like those of a high-level
...
@@ -13,7 +13,7 @@ even though some of these abstractions feel like those of a high-level
language. Even then, Rust still allows precise control like a low-level
language. Even then, Rust still allows precise control like a low-level
language would.
language would.
[
rust
]:
http
://
rust-lang.org
[
rust
]:
http
s://www.
rust-lang.org
“The Rust Programming Language” is split into eight sections. This introduction
“The Rust Programming Language” is split into eight sections. This introduction
is the first. After this:
is the first. After this:
...
...
src/doc/trpl/compiler-plugins.md
浏览文件 @
737397c5
...
@@ -115,7 +115,7 @@ In addition to procedural macros, you can define new
...
@@ -115,7 +115,7 @@ In addition to procedural macros, you can define new
extensions. See
extensions. See
[
`Registry::register_syntax_extension`
](
../rustc/plugin/registry/struct.Registry.html#method.register_syntax_extension
)
[
`Registry::register_syntax_extension`
](
../rustc/plugin/registry/struct.Registry.html#method.register_syntax_extension
)
and the
[
`SyntaxExtension`
and the
[
`SyntaxExtension`
enum
](
http://doc.rust-lang.org/syntax/ext/base/enum.SyntaxExtension.html
)
. For
enum
](
http
s
://doc.rust-lang.org/syntax/ext/base/enum.SyntaxExtension.html
)
. For
a more involved macro example, see
a more involved macro example, see
[
`regex_macros`
](
https://github.com/rust-lang/regex/blob/master/regex_macros/src/lib.rs
)
.
[
`regex_macros`
](
https://github.com/rust-lang/regex/blob/master/regex_macros/src/lib.rs
)
.
...
@@ -156,7 +156,7 @@ so that the compiler can continue and find further errors.
...
@@ -156,7 +156,7 @@ so that the compiler can continue and find further errors.
To print syntax fragments for debugging, you can use
To print syntax fragments for debugging, you can use
[
`span_note`
](
../syntax/ext/base/struct.ExtCtxt.html#method.span_note
)
together
[
`span_note`
](
../syntax/ext/base/struct.ExtCtxt.html#method.span_note
)
together
with
with
[
`syntax::print::pprust::*_to_string`
](
http://doc.rust-lang.org/syntax/print/pprust/index.html#functions
)
.
[
`syntax::print::pprust::*_to_string`
](
http
s
://doc.rust-lang.org/syntax/print/pprust/index.html#functions
)
.
The example above produced an integer literal using
The example above produced an integer literal using
[
`AstBuilder::expr_usize`
](
../syntax/ext/build/trait.AstBuilder.html#tymethod.expr_usize
)
.
[
`AstBuilder::expr_usize`
](
../syntax/ext/build/trait.AstBuilder.html#tymethod.expr_usize
)
.
...
...
src/doc/trpl/documentation.md
浏览文件 @
737397c5
...
@@ -76,7 +76,7 @@ This [unfortunate error](https://github.com/rust-lang/rust/issues/22547) is
...
@@ -76,7 +76,7 @@ This [unfortunate error](https://github.com/rust-lang/rust/issues/22547) is
correct: documentation comments apply to the thing after them, and there's no
correct: documentation comments apply to the thing after them, and there's no
thing after that last comment.
thing after that last comment.
[
rc-new
]:
http://doc.rust-lang.org/nightly/std/rc/struct.Rc.html#method.new
[
rc-new
]:
http
s
://doc.rust-lang.org/nightly/std/rc/struct.Rc.html#method.new
### Writing documentation comments
### Writing documentation comments
...
@@ -544,9 +544,9 @@ You can control a few aspects of the HTML that `rustdoc` generates through the
...
@@ -544,9 +544,9 @@ You can control a few aspects of the HTML that `rustdoc` generates through the
`#![doc]`
version of the attribute:
`#![doc]`
version of the attribute:
```
rust
```
rust
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"http://www.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"http
s
://www.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/"
)]
```
```
This sets a few different options, with a logo, favicon, and a root URL.
This sets a few different options, with a logo, favicon, and a root URL.
...
...
src/doc/trpl/installing-rust.md
浏览文件 @
737397c5
...
@@ -32,7 +32,7 @@ install dialog and on the "Product Features" page ensure "Add to PATH" is
...
@@ -32,7 +32,7 @@ install dialog and on the "Product Features" page ensure "Add to PATH" is
installed on the local hard drive.
installed on the local hard drive.
[
install-page
]:
http://www.rust-lang.org/install.html
[
install-page
]:
http
s
://www.rust-lang.org/install.html
## Uninstalling
## Uninstalling
...
@@ -112,5 +112,5 @@ resources include [the user’s forum][users], and
...
@@ -112,5 +112,5 @@ resources include [the user’s forum][users], and
[
irc
]:
irc://irc.mozilla.org/#rust
[
irc
]:
irc://irc.mozilla.org/#rust
[
mibbit
]:
http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
[
mibbit
]:
http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
[
users
]:
http://users.rust-lang.org/
[
users
]:
http
s
://users.rust-lang.org/
[
stackoverflow
]:
http://stackoverflow.com/questions/tagged/rust
[
stackoverflow
]:
http://stackoverflow.com/questions/tagged/rust
src/doc/trpl/nightly-rust.md
浏览文件 @
737397c5
...
@@ -50,7 +50,7 @@ documentation on [building Rust from Source][from-source], or [the official
...
@@ -50,7 +50,7 @@ documentation on [building Rust from Source][from-source], or [the official
binary downloads
][
install-page
]
.
binary downloads
][
install-page
]
.
[
from-source
]:
https://github.com/rust-lang/rust#building-from-source
[
from-source
]:
https://github.com/rust-lang/rust#building-from-source
[
install-page
]:
http://www.rust-lang.org/install.html
[
install-page
]:
http
s
://www.rust-lang.org/install.html
Oh, we should also mention the officially supported platforms:
Oh, we should also mention the officially supported platforms:
...
@@ -95,5 +95,5 @@ resources include [the user’s forum][users], and [Stack Overflow][stackoverflo
...
@@ -95,5 +95,5 @@ resources include [the user’s forum][users], and [Stack Overflow][stackoverflo
[
irc
]:
irc://irc.mozilla.org/#rust
[
irc
]:
irc://irc.mozilla.org/#rust
[
mibbit
]:
http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
[
mibbit
]:
http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
[
users
]:
http
://users.rust-lang.org/
[
users
]:
http
s://users.rust-lang.org/
[
stackoverflow
]:
http://stackoverflow.com/questions/tagged/rust
[
stackoverflow
]:
http://stackoverflow.com/questions/tagged/rust
src/doc/version_info.html.template
浏览文件 @
737397c5
<div id="versioninfo">
<div id="versioninfo">
<img src="http://www.rust-lang.org/logos/rust-logo-32x32-blk.png" width="32" height="32" alt><br>
<img src="http
s
://www.rust-lang.org/logos/rust-logo-32x32-blk.png" width="32" height="32" alt><br>
<span class="white-sticker"><a href="http
://
rust-lang.org">Rust</a> VERSION</span><br>
<span class="white-sticker"><a href="http
s://www.
rust-lang.org">Rust</a> VERSION</span><br>
<a href="http://github.com/rust-lang/rust/commit/STAMP"
<a href="http
s
://github.com/rust-lang/rust/commit/STAMP"
class="hash white-sticker">SHORT_HASH</a>
class="hash white-sticker">SHORT_HASH</a>
</div>
</div>
src/liballoc/lib.rs
浏览文件 @
737397c5
...
@@ -64,9 +64,9 @@
...
@@ -64,9 +64,9 @@
#![unstable(feature
=
"alloc"
,
#![unstable(feature
=
"alloc"
,
reason
=
"this library is unlikely to be stabilized in its current
\
reason
=
"this library is unlikely to be stabilized in its current
\
form or name"
)]
form or name"
)]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
test(no_crate_inject))]
test(no_crate_inject))]
#![no_std]
#![no_std]
...
...
src/libarena/lib.rs
浏览文件 @
737397c5
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(alloc)]
#![feature(alloc)]
#![feature(box_syntax)]
#![feature(box_syntax)]
...
...
src/libcollections/lib.rs
浏览文件 @
737397c5
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
#![unstable(feature
=
"collections"
,
#![unstable(feature
=
"collections"
,
reason
=
"library is unlikely to be stabilized with the current
\
reason
=
"library is unlikely to be stabilized with the current
\
layout and name, use std::collections instead"
)]
layout and name, use std::collections instead"
)]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
,
html_playground_url
=
"http
s
://play.rust-lang.org/"
,
test(no_crate_inject))]
test(no_crate_inject))]
#![allow(trivial_casts)]
#![allow(trivial_casts)]
...
...
src/libcore/lib.rs
浏览文件 @
737397c5
...
@@ -54,10 +54,10 @@
...
@@ -54,10 +54,10 @@
stabilization in terms of structure and naming"
)]
stabilization in terms of structure and naming"
)]
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
)]
html_playground_url
=
"http
s
://play.rust-lang.org/"
)]
#![doc(test(no_crate_inject))]
#![doc(test(no_crate_inject))]
#![cfg_attr(stage0,
feature(no_std))]
#![cfg_attr(stage0,
feature(no_std))]
...
...
src/libflate/lib.rs
浏览文件 @
737397c5
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(libc)]
#![feature(libc)]
#![feature(staged_api)]
#![feature(staged_api)]
...
...
src/libfmt_macros/lib.rs
浏览文件 @
737397c5
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
)]
html_playground_url
=
"http
s
://play.rust-lang.org/"
)]
#![feature(staged_api)]
#![feature(staged_api)]
#![feature(unicode)]
#![feature(unicode)]
...
...
src/libgetopts/lib.rs
浏览文件 @
737397c5
...
@@ -84,10 +84,10 @@
...
@@ -84,10 +84,10 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
)]
html_playground_url
=
"http
s
://play.rust-lang.org/"
)]
#![deny(missing_docs)]
#![deny(missing_docs)]
#![feature(staged_api)]
#![feature(staged_api)]
...
...
src/libgraphviz/lib.rs
浏览文件 @
737397c5
...
@@ -281,9 +281,9 @@
...
@@ -281,9 +281,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(into_cow)]
#![feature(into_cow)]
#![feature(str_escape)]
#![feature(str_escape)]
...
...
src/liblibc/lib.rs
浏览文件 @
737397c5
...
@@ -18,10 +18,10 @@
...
@@ -18,10 +18,10 @@
#![cfg_attr(all(not(feature
=
"cargo-build"
),
stage0),
feature(core))]
#![cfg_attr(all(not(feature
=
"cargo-build"
),
stage0),
feature(core))]
#![cfg_attr(not(feature
=
"cargo-build"
),
staged_api)]
#![cfg_attr(not(feature
=
"cargo-build"
),
staged_api)]
#![cfg_attr(not(feature
=
"cargo-build"
),
no_std)]
#![cfg_attr(not(feature
=
"cargo-build"
),
no_std)]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
)]
html_playground_url
=
"http
s
://play.rust-lang.org/"
)]
#![cfg_attr(test,
feature(test))]
#![cfg_attr(test,
feature(test))]
//! Bindings for the C standard library and other platform libraries
//! Bindings for the C standard library and other platform libraries
...
...
src/liblog/lib.rs
浏览文件 @
737397c5
...
@@ -163,10 +163,10 @@
...
@@ -163,10 +163,10 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
)]
html_playground_url
=
"http
s
://play.rust-lang.org/"
)]
#![deny(missing_docs)]
#![deny(missing_docs)]
#![feature(box_raw)]
#![feature(box_raw)]
...
...
src/librand/lib.rs
浏览文件 @
737397c5
...
@@ -20,10 +20,10 @@
...
@@ -20,10 +20,10 @@
#![cfg_attr(stage0,
feature(custom_attribute))]
#![cfg_attr(stage0,
feature(custom_attribute))]
#![crate_name
=
"rand"
]
#![crate_name
=
"rand"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
)]
html_playground_url
=
"http
s
://play.rust-lang.org/"
)]
#![no_std]
#![no_std]
#![staged_api]
#![staged_api]
#![unstable(feature
=
"rand"
,
#![unstable(feature
=
"rand"
,
...
...
src/librbml/lib.rs
浏览文件 @
737397c5
...
@@ -118,10 +118,10 @@
...
@@ -118,10 +118,10 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
)]
html_playground_url
=
"http
s
://play.rust-lang.org/"
)]
#![feature(rustc_private)]
#![feature(rustc_private)]
#![feature(staged_api)]
#![feature(staged_api)]
...
...
src/librustc/README.md
浏览文件 @
737397c5
...
@@ -4,7 +4,7 @@ An informal guide to reading and working on the rustc compiler.
...
@@ -4,7 +4,7 @@ An informal guide to reading and working on the rustc compiler.
If you wish to expand on this document, or have a more experienced
If you wish to expand on this document, or have a more experienced
Rust contributor add anything else to it, please get in touch:
Rust contributor add anything else to it, please get in touch:
*
http://internals.rust-lang.org/
*
http
s
://internals.rust-lang.org/
*
https://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
*
https://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
or file a bug:
or file a bug:
...
...
src/librustc/lib.rs
浏览文件 @
737397c5
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(append)]
#![feature(append)]
#![feature(associated_consts)]
#![feature(associated_consts)]
...
...
src/librustc_back/lib.rs
浏览文件 @
737397c5
...
@@ -28,9 +28,9 @@
...
@@ -28,9 +28,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(box_syntax)]
#![feature(box_syntax)]
#![feature(fs_canonicalize)]
#![feature(fs_canonicalize)]
...
...
src/librustc_borrowck/lib.rs
浏览文件 @
737397c5
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![allow(non_camel_case_types)]
#![allow(non_camel_case_types)]
...
...
src/librustc_data_structures/lib.rs
浏览文件 @
737397c5
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![staged_api]
#![staged_api]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"http://www.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"http
s
://www.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(rustc_private,
staged_api)]
#![feature(rustc_private,
staged_api)]
#![cfg_attr(test,
feature(test))]
#![cfg_attr(test,
feature(test))]
...
...
src/librustc_driver/lib.rs
浏览文件 @
737397c5
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(box_syntax)]
#![feature(box_syntax)]
#![feature(libc)]
#![feature(libc)]
...
...
src/librustc_lint/lib.rs
浏览文件 @
737397c5
...
@@ -26,9 +26,9 @@
...
@@ -26,9 +26,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![cfg_attr(test,
feature(test))]
#![cfg_attr(test,
feature(test))]
#![feature(box_patterns)]
#![feature(box_patterns)]
...
...
src/librustc_llvm/lib.rs
浏览文件 @
737397c5
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(associated_consts)]
#![feature(associated_consts)]
#![feature(box_syntax)]
#![feature(box_syntax)]
...
...
src/librustc_privacy/lib.rs
浏览文件 @
737397c5
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(rustc_diagnostic_macros)]
#![feature(rustc_diagnostic_macros)]
#![feature(rustc_private)]
#![feature(rustc_private)]
...
...
src/librustc_resolve/diagnostics.rs
浏览文件 @
737397c5
...
@@ -46,7 +46,7 @@ fn f() {
...
@@ -46,7 +46,7 @@ fn f() {
See the Declaration Statements section of the reference for more information
See the Declaration Statements section of the reference for more information
about what constitutes an Item declaration and what does not:
about what constitutes an Item declaration and what does not:
http://doc.rust-lang.org/reference.html#statements
http
s
://doc.rust-lang.org/reference.html#statements
"##
,
"##
,
E0251
:
r##"
E0251
:
r##"
...
@@ -201,7 +201,7 @@ fn main() {}
...
@@ -201,7 +201,7 @@ fn main() {}
See the Declaration Statements section of the reference for more information
See the Declaration Statements section of the reference for more information
about what constitutes an Item declaration and what does not:
about what constitutes an Item declaration and what does not:
http://doc.rust-lang.org/reference.html#statements
http
s
://doc.rust-lang.org/reference.html#statements
"##
,
"##
,
E0317
:
r##"
E0317
:
r##"
...
@@ -212,7 +212,7 @@ fn main() {}
...
@@ -212,7 +212,7 @@ fn main() {}
See the Types section of the reference for more information about the primitive
See the Types section of the reference for more information about the primitive
types:
types:
http://doc.rust-lang.org/reference.html#types
http
s
://doc.rust-lang.org/reference.html#types
"##
,
"##
,
E0364
:
r##"
E0364
:
r##"
...
@@ -241,7 +241,7 @@ mod foo {
...
@@ -241,7 +241,7 @@ mod foo {
See the 'Use Declarations' section of the reference for more information
See the 'Use Declarations' section of the reference for more information
on this topic:
on this topic:
http://doc.rust-lang.org/reference.html#use-declarations
http
s
://doc.rust-lang.org/reference.html#use-declarations
"##
,
"##
,
E0365
:
r##"
E0365
:
r##"
...
@@ -270,7 +270,7 @@ pub mod foo {
...
@@ -270,7 +270,7 @@ pub mod foo {
See the 'Use Declarations' section of the reference for more information
See the 'Use Declarations' section of the reference for more information
on this topic:
on this topic:
http://doc.rust-lang.org/reference.html#use-declarations
http
s
://doc.rust-lang.org/reference.html#use-declarations
"##
,
"##
,
E0403
:
r##"
E0403
:
r##"
...
...
src/librustc_resolve/lib.rs
浏览文件 @
737397c5
...
@@ -15,9 +15,9 @@
...
@@ -15,9 +15,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(associated_consts)]
#![feature(associated_consts)]
#![feature(borrow_state)]
#![feature(borrow_state)]
...
...
src/librustc_trans/lib.rs
浏览文件 @
737397c5
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(box_patterns)]
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(box_syntax)]
...
...
src/librustc_typeck/diagnostics.rs
浏览文件 @
737397c5
...
@@ -190,7 +190,7 @@ struct Dog {
...
@@ -190,7 +190,7 @@ struct Dog {
You can read more about trait objects in the Trait Object section of the
You can read more about trait objects in the Trait Object section of the
Reference:
Reference:
http://doc.rust-lang.org/reference.html#trait-objects
http
s
://doc.rust-lang.org/reference.html#trait-objects
"##
,
"##
,
E0034
:
r##"
E0034
:
r##"
...
@@ -1322,7 +1322,7 @@ fn bar(x: &str, y: &str) -> &str { ... }
...
@@ -1322,7 +1322,7 @@ fn bar(x: &str, y: &str) -> &str { ... }
fn baz<'a>(x: &'a str, y: &str) -> &str { ... }
fn baz<'a>(x: &'a str, y: &str) -> &str { ... }
```
```
[book-le]: http://doc.rust-lang.org/nightly/book/lifetimes.html#lifetime-elision
[book-le]: http
s
://doc.rust-lang.org/nightly/book/lifetimes.html#lifetime-elision
"##
,
"##
,
E0107
:
r##"
E0107
:
r##"
...
...
src/librustc_typeck/lib.rs
浏览文件 @
737397c5
...
@@ -69,9 +69,9 @@
...
@@ -69,9 +69,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![allow(non_camel_case_types)]
#![allow(non_camel_case_types)]
...
...
src/librustc_unicode/lib.rs
浏览文件 @
737397c5
...
@@ -26,10 +26,10 @@
...
@@ -26,10 +26,10 @@
#![unstable(feature
=
"unicode"
)]
#![unstable(feature
=
"unicode"
)]
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
,
html_playground_url
=
"http
s
://play.rust-lang.org/"
,
test(no_crate_inject))]
test(no_crate_inject))]
#![no_std]
#![no_std]
...
...
src/librustdoc/html/markdown.rs
浏览文件 @
737397c5
...
@@ -598,7 +598,7 @@ fn t(input: &str, expect: &str) {
...
@@ -598,7 +598,7 @@ fn t(input: &str, expect: &str) {
assert_eq!
(
output
,
expect
);
assert_eq!
(
output
,
expect
);
}
}
t
(
"hello [Rust](http
://
rust-lang.org) :)"
,
"hello Rust :)"
);
t
(
"hello [Rust](http
s://www.
rust-lang.org) :)"
,
"hello Rust :)"
);
t
(
"code `let x = i32;` ..."
,
"code `let x = i32;` ..."
);
t
(
"code `let x = i32;` ..."
,
"code `let x = i32;` ..."
);
t
(
"type `Type<'static>` ..."
,
"type `Type<'static>` ..."
);
t
(
"type `Type<'static>` ..."
,
"type `Type<'static>` ..."
);
t
(
"# top header"
,
"top header"
);
t
(
"# top header"
,
"top header"
);
...
...
src/librustdoc/lib.rs
浏览文件 @
737397c5
...
@@ -15,10 +15,10 @@
...
@@ -15,10 +15,10 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
)]
html_playground_url
=
"http
s
://play.rust-lang.org/"
)]
#![feature(box_patterns)]
#![feature(box_patterns)]
#![feature(box_syntax)]
#![feature(box_syntax)]
...
...
src/libserialize/lib.rs
浏览文件 @
737397c5
...
@@ -22,10 +22,10 @@
...
@@ -22,10 +22,10 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
)]
html_playground_url
=
"http
s
://play.rust-lang.org/"
)]
#![feature(box_syntax)]
#![feature(box_syntax)]
#![feature(collections)]
#![feature(collections)]
...
...
src/libstd/lib.rs
浏览文件 @
737397c5
...
@@ -191,10 +191,10 @@
...
@@ -191,10 +191,10 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
,
html_playground_url
=
"http
s
://play.rust-lang.org/"
,
test(no_crate_inject,
attr(deny(warnings))),
test(no_crate_inject,
attr(deny(warnings))),
test(attr(allow(dead_code,
deprecated,
unused_variables,
unused_mut))))]
test(attr(allow(dead_code,
deprecated,
unused_variables,
unused_mut))))]
...
...
src/libsyntax/diagnostics/plugin.rs
浏览文件 @
737397c5
...
@@ -115,7 +115,7 @@ pub fn expand_register_diagnostic<'cx>(ecx: &'cx mut ExtCtxt,
...
@@ -115,7 +115,7 @@ pub fn expand_register_diagnostic<'cx>(ecx: &'cx mut ExtCtxt,
}
}
// URLs can be unavoidably longer than the line limit, so we allow them.
// URLs can be unavoidably longer than the line limit, so we allow them.
// Allowed format is: `[name]: http
://
rust-lang.org/`
// Allowed format is: `[name]: http
s://www.
rust-lang.org/`
let
is_url
=
|
l
:
&
str
|
l
.starts_with
(
'['
)
&&
l
.contains
(
"]:"
)
&&
l
.contains
(
"http"
);
let
is_url
=
|
l
:
&
str
|
l
.starts_with
(
'['
)
&&
l
.contains
(
"]:"
)
&&
l
.contains
(
"http"
);
if
msg
.lines
()
.any
(|
line
|
line
.len
()
>
MAX_DESCRIPTION_WIDTH
&&
!
is_url
(
line
))
{
if
msg
.lines
()
.any
(|
line
|
line
.len
()
>
MAX_DESCRIPTION_WIDTH
&&
!
is_url
(
line
))
{
...
...
src/libsyntax/lib.rs
浏览文件 @
737397c5
...
@@ -21,9 +21,9 @@
...
@@ -21,9 +21,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(associated_consts)]
#![feature(associated_consts)]
#![feature(bitset)]
#![feature(bitset)]
...
...
src/libterm/lib.rs
浏览文件 @
737397c5
...
@@ -49,10 +49,10 @@
...
@@ -49,10 +49,10 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
,
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
,
html_playground_url
=
"http://play.rust-lang.org/"
)]
html_playground_url
=
"http
s
://play.rust-lang.org/"
)]
#![deny(missing_docs)]
#![deny(missing_docs)]
#![feature(box_syntax)]
#![feature(box_syntax)]
...
...
src/libtest/lib.rs
浏览文件 @
737397c5
...
@@ -30,9 +30,9 @@
...
@@ -30,9 +30,9 @@
#![staged_api]
#![staged_api]
#![crate_type
=
"rlib"
]
#![crate_type
=
"rlib"
]
#![crate_type
=
"dylib"
]
#![crate_type
=
"dylib"
]
#![doc(html_logo_url
=
"http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
#![doc(html_logo_url
=
"http
s
://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"http://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"http
s
://doc.rust-lang.org/nightly/"
)]
#![feature(asm)]
#![feature(asm)]
#![feature(box_syntax)]
#![feature(box_syntax)]
...
...
src/rustbook/build.rs
浏览文件 @
737397c5
...
@@ -143,7 +143,7 @@ fn render(book: &Book, tgt: &Path) -> CliResult<()> {
...
@@ -143,7 +143,7 @@ fn render(book: &Book, tgt: &Path) -> CliResult<()> {
format!
(
"-o{}"
,
out_path
.display
()),
format!
(
"-o{}"
,
out_path
.display
()),
format!
(
"--html-before-content={}"
,
prelude
.display
()),
format!
(
"--html-before-content={}"
,
prelude
.display
()),
format!
(
"--html-after-content={}"
,
postlude
.display
()),
format!
(
"--html-after-content={}"
,
postlude
.display
()),
format!
(
"--markdown-playground-url=http://play.rust-lang.org"
),
format!
(
"--markdown-playground-url=http
s
://play.rust-lang.org"
),
format!
(
"--markdown-css={}"
,
item
.path_to_root
.join
(
"rust-book.css"
)
.display
()),
format!
(
"--markdown-css={}"
,
item
.path_to_root
.join
(
"rust-book.css"
)
.display
()),
"--markdown-no-toc"
.to_string
(),
"--markdown-no-toc"
.to_string
(),
];
];
...
...
src/test/compile-fail/loops-reject-duplicate-labels-2.rs
浏览文件 @
737397c5
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
//
//
// This is testing the generalization (to the whole function body)
// This is testing the generalization (to the whole function body)
// discussed here:
// discussed here:
// http://internals.rust-lang.org/t/psa-rejecting-duplicate-loop-labels/1833
// http
s
://internals.rust-lang.org/t/psa-rejecting-duplicate-loop-labels/1833
pub
fn
foo
()
{
pub
fn
foo
()
{
{
'fl
:
for
_
in
0
..
10
{
break
;
}
}
//~ NOTE shadowed label `'fl` declared here
{
'fl
:
for
_
in
0
..
10
{
break
;
}
}
//~ NOTE shadowed label `'fl` declared here
...
...
src/test/run-pass/cleanup-arm-conditional.rs
浏览文件 @
737397c5
...
@@ -8,16 +8,6 @@
...
@@ -8,16 +8,6 @@
// option. This file may not be copied, modified, or distributed
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// except according to those terms.
// copyright 2014 the rust project developers. see the copyright
// file at the top-level directory of this distribution and at
// http://rust-lang.org/copyright.
//
// licensed under the apache license, version 2.0 <license-apache or
// http://www.apache.org/licenses/license-2.0> or the mit license
// <license-mit or http://opensource.org/licenses/mit>, at your
// option. this file may not be copied, modified, or distributed
// except according to those terms.
// Test that cleanup scope for temporaries created in a match
// Test that cleanup scope for temporaries created in a match
// arm is confined to the match arm itself.
// arm is confined to the match arm itself.
...
...
src/test/run-pass/cleanup-shortcircuit.rs
浏览文件 @
737397c5
...
@@ -8,16 +8,6 @@
...
@@ -8,16 +8,6 @@
// option. This file may not be copied, modified, or distributed
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// except according to those terms.
// copyright 2014 the rust project developers. see the copyright
// file at the top-level directory of this distribution and at
// http://rust-lang.org/copyright.
//
// licensed under the apache license, version 2.0 <license-apache or
// http://www.apache.org/licenses/license-2.0> or the mit license
// <license-mit or http://opensource.org/licenses/mit>, at your
// option. this file may not be copied, modified, or distributed
// except according to those terms.
// Test that cleanups for the RHS of shortcircuiting operators work.
// Test that cleanups for the RHS of shortcircuiting operators work.
// pretty-expanded FIXME #23616
// pretty-expanded FIXME #23616
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录