Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
d64e5512
R
Rust
项目概览
int
/
Rust
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
d64e5512
编写于
11月 03, 2015
作者:
K
Kevin Butler
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
libsyntax: deny warnings in doctests
上级
a17f81b4
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
25 addition
and
18 deletion
+25
-18
mk/tests.mk
mk/tests.mk
+1
-1
src/libsyntax/ast.rs
src/libsyntax/ast.rs
+8
-6
src/libsyntax/ext/deriving/generic/mod.rs
src/libsyntax/ext/deriving/generic/mod.rs
+5
-4
src/libsyntax/ext/format.rs
src/libsyntax/ext/format.rs
+4
-3
src/libsyntax/lib.rs
src/libsyntax/lib.rs
+2
-1
src/libsyntax/parse/parser.rs
src/libsyntax/parse/parser.rs
+1
-1
src/libsyntax/print/pp.rs
src/libsyntax/print/pp.rs
+4
-2
未找到文件。
mk/tests.mk
浏览文件 @
d64e5512
...
...
@@ -26,7 +26,7 @@ TEST_TARGET_CRATES = $(filter-out core rustc_unicode alloc_system libc \
alloc_jemalloc,
$(TARGET_CRATES)
)
\
collectionstest coretest
TEST_DOC_CRATES
=
$(DOC_CRATES)
arena flate fmt_macros
getopts
graphviz
\
log rand rbml serialize
log rand rbml serialize
syntax
TEST_HOST_CRATES
=
$(
filter-out
rustc_typeck rustc_borrowck rustc_resolve
\
rustc_trans rustc_lint,
\
$(HOST_CRATES)
)
...
...
src/libsyntax/ast.rs
浏览文件 @
d64e5512
...
...
@@ -908,13 +908,15 @@ pub enum Expr_ {
/// separately. `position` represents the index of the associated
/// item qualified with this Self type.
///
/// <Vec<T> as a::b::Trait>::AssociatedItem
/// ^~~~~ ~~~~~~~~~~~~~~^
/// ty position = 3
/// ```ignore
/// <Vec<T> as a::b::Trait>::AssociatedItem
/// ^~~~~ ~~~~~~~~~~~~~~^
/// ty position = 3
///
/// <Vec<T>>::AssociatedItem
/// ^~~~~ ^
/// ty position = 0
/// <Vec<T>>::AssociatedItem
/// ^~~~~ ^
/// ty position = 0
/// ```
#[derive(Clone,
PartialEq,
Eq,
RustcEncodable,
RustcDecodable,
Hash,
Debug)]
pub
struct
QSelf
{
pub
ty
:
P
<
Ty
>
,
...
...
src/libsyntax/ext/deriving/generic/mod.rs
浏览文件 @
d64e5512
...
...
@@ -54,6 +54,7 @@
//! following snippet
//!
//! ```rust
//! # #![allow(dead_code)]
//! struct A { x : i32 }
//!
//! struct B(i32);
...
...
@@ -88,7 +89,7 @@
//!
//! ```rust
//! trait PartialEq {
//! fn eq(&self, other: &Self);
//! fn eq(&self, other: &Self)
-> bool
;
//! }
//! impl PartialEq for i32 {
//! fn eq(&self, other: &i32) -> bool {
...
...
@@ -905,7 +906,7 @@ fn create_method(&self,
})
}
/// ```
/// ```
ignore
/// #[derive(PartialEq)]
/// struct A { x: i32, y: i32 }
///
...
...
@@ -1010,7 +1011,7 @@ fn expand_static_struct_method_body(&self,
&
StaticStruct
(
struct_def
,
summary
))
}
/// ```
/// ```
ignore
/// #[derive(PartialEq)]
/// enum A {
/// A1,
...
...
@@ -1596,7 +1597,7 @@ pub fn cs_fold<F>(use_foldl: bool,
/// Call the method that is being derived on all the fields, and then
/// process the collected results. i.e.
///
/// ```
/// ```
ignore
/// f(cx, span, vec![self_1.method(__arg_1_1, __arg_2_1),
/// self_2.method(__arg_1_2, __arg_2_2)])
/// ```
...
...
src/libsyntax/ext/format.rs
浏览文件 @
d64e5512
...
...
@@ -77,9 +77,10 @@ struct Context<'a, 'b:'a> {
/// expressions.
///
/// If parsing succeeds, the return value is:
///
/// Some((fmtstr, unnamed arguments, ordering of named arguments,
/// named arguments))
/// ```ignore
/// Some((fmtstr, unnamed arguments, ordering of named arguments,
/// named arguments))
/// ```
fn
parse_args
(
ecx
:
&
mut
ExtCtxt
,
sp
:
Span
,
tts
:
&
[
ast
::
TokenTree
])
->
Option
<
(
P
<
ast
::
Expr
>
,
Vec
<
P
<
ast
::
Expr
>>
,
Vec
<
String
>
,
HashMap
<
String
,
P
<
ast
::
Expr
>>
)
>
{
...
...
src/libsyntax/lib.rs
浏览文件 @
d64e5512
...
...
@@ -23,7 +23,8 @@
#![crate_type
=
"rlib"
]
#![doc(html_logo_url
=
"https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
,
html_root_url
=
"https://doc.rust-lang.org/nightly/"
)]
html_root_url
=
"https://doc.rust-lang.org/nightly/"
,
test(attr(deny(warnings))))]
#![feature(associated_consts)]
#![feature(drain)]
...
...
src/libsyntax/parse/parser.rs
浏览文件 @
d64e5512
...
...
@@ -3965,7 +3965,7 @@ fn forbid_lifetime(&mut self) -> PResult<()> {
/// Parses an optional `where` clause and places it in `generics`.
///
/// ```
/// ```
ignore
/// where T : Trait<U, V> + 'b, 'a : 'b
/// ```
pub
fn
parse_where_clause
(
&
mut
self
)
->
PResult
<
ast
::
WhereClause
>
{
...
...
src/libsyntax/print/pp.rs
浏览文件 @
d64e5512
...
...
@@ -11,8 +11,10 @@
//! This pretty-printer is a direct reimplementation of Philip Karlton's
//! Mesa pretty-printer, as described in appendix A of
//!
//! STAN-CS-79-770: "Pretty Printing", by Derek C. Oppen.
//! Stanford Department of Computer Science, 1979.
//! ````ignore
//! STAN-CS-79-770: "Pretty Printing", by Derek C. Oppen.
//! Stanford Department of Computer Science, 1979.
//! ````
//!
//! The algorithm's aim is to break a stream into as few lines as possible
//! while respecting the indentation-consistency requirements of the enclosing
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录