Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Rust
提交
e280ae86
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,发现更多精彩内容 >>
提交
e280ae86
编写于
11月 21, 2020
作者:
J
Joshua Nelson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
x.py test --bless
上级
78884061
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
93 addition
and
93 deletion
+93
-93
src/test/rustdoc-ui/doc-without-codeblock.stderr
src/test/rustdoc-ui/doc-without-codeblock.stderr
+6
-6
src/test/rustdoc-ui/intra-links-ambiguity.stderr
src/test/rustdoc-ui/intra-links-ambiguity.stderr
+19
-19
src/test/rustdoc-ui/intra-links-warning.stderr
src/test/rustdoc-ui/intra-links-warning.stderr
+54
-54
src/test/rustdoc-ui/lint-missing-doc-code-example.stderr
src/test/rustdoc-ui/lint-missing-doc-code-example.stderr
+14
-14
未找到文件。
src/test/rustdoc-ui/doc-without-codeblock.stderr
浏览文件 @
e280ae86
...
...
@@ -16,12 +16,6 @@ note: the lint level is defined here
LL | #![deny(missing_doc_code_examples)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing code example in this documentation
--> $DIR/doc-without-codeblock.rs:3:1
|
LL | /// Some docs.
| ^^^^^^^^^^^^^^
error: missing code example in this documentation
--> $DIR/doc-without-codeblock.rs:7:1
|
...
...
@@ -34,5 +28,11 @@ error: missing code example in this documentation
LL | /// Or maybe not because she saved herself!
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing code example in this documentation
--> $DIR/doc-without-codeblock.rs:3:1
|
LL | /// Some docs.
| ^^^^^^^^^^^^^^
error: aborting due to 4 previous errors
src/test/rustdoc-ui/intra-links-ambiguity.stderr
浏览文件 @
e280ae86
error: `
ambiguous` is both a struct and a function
--> $DIR/intra-links-ambiguity.rs:
27
:6
error: `
true` is both a module and a builtin type
--> $DIR/intra-links-ambiguity.rs:
38
:6
|
LL | /// [
`ambiguous`] is ambiguous.
| ^^^^
^^^^^^^
ambiguous link
LL | /// [
true]
| ^^^^ ambiguous link
|
note: the lint level is defined here
--> $DIR/intra-links-ambiguity.rs:1:9
|
LL | #![deny(broken_intra_doc_links)]
| ^^^^^^^^^^^^^^^^^^^^^^
help: to link to the module, prefix with `mod@`
|
LL | /// [mod@true]
| ^^^^^^^^
help: to link to the builtin type, prefix with `prim@`
|
LL | /// [prim@true]
| ^^^^^^^^^
error: `ambiguous` is both a struct and a function
--> $DIR/intra-links-ambiguity.rs:27:6
|
LL | /// [`ambiguous`] is ambiguous.
| ^^^^^^^^^^^ ambiguous link
|
help: to link to the struct, prefix with `struct@`
|
LL | /// [`struct@ambiguous`] is ambiguous.
...
...
@@ -82,20 +97,5 @@ help: to link to the function, add parentheses
LL | /// Ambiguous non-implied shortcut link [`foo::bar()`].
| ^^^^^^^^^^^^
error: `true` is both a module and a builtin type
--> $DIR/intra-links-ambiguity.rs:38:6
|
LL | /// [true]
| ^^^^ ambiguous link
|
help: to link to the module, prefix with `mod@`
|
LL | /// [mod@true]
| ^^^^^^^^
help: to link to the builtin type, prefix with `prim@`
|
LL | /// [prim@true]
| ^^^^^^^^^
error: aborting due to 6 previous errors
src/test/rustdoc-ui/intra-links-warning.stderr
浏览文件 @
e280ae86
...
...
@@ -36,6 +36,60 @@ warning: unresolved link to `Qux::Z`
LL | //! , [Uniooon::X] and [Qux::Z].
| ^^^^^^ no item named `Qux` in scope
warning: unresolved link to `BarA`
--> $DIR/intra-links-warning.rs:21:10
|
LL | /// bar [BarA] bar
| ^^^^ no item named `BarA` in scope
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
warning: unresolved link to `BarB`
--> $DIR/intra-links-warning.rs:27:9
|
LL | * bar [BarB] bar
| ^^^^ no item named `BarB` in scope
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
warning: unresolved link to `BarC`
--> $DIR/intra-links-warning.rs:34:6
|
LL | bar [BarC] bar
| ^^^^ no item named `BarC` in scope
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
warning: unresolved link to `BarD`
--> $DIR/intra-links-warning.rs:45:1
|
LL | #[doc = "Foo\nbar [BarD] bar\nbaz"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: the link appears in this line:
bar [BarD] bar
^^^^
= note: no item named `BarD` in scope
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
warning: unresolved link to `BarF`
--> $DIR/intra-links-warning.rs:50:9
|
LL | #[doc = $f]
| ^^^^^^^^^^^
...
LL | f!("Foo\nbar [BarF] bar\nbaz");
| ------------------------------- in this macro invocation
|
= note: the link appears in this line:
bar [BarF] bar
^^^^
= note: no item named `BarF` in scope
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unresolved link to `Qux:Y`
--> $DIR/intra-links-warning.rs:14:13
|
...
...
@@ -117,59 +171,5 @@ LL | /// docs [error2]
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
warning: unresolved link to `BarA`
--> $DIR/intra-links-warning.rs:21:10
|
LL | /// bar [BarA] bar
| ^^^^ no item named `BarA` in scope
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
warning: unresolved link to `BarB`
--> $DIR/intra-links-warning.rs:27:9
|
LL | * bar [BarB] bar
| ^^^^ no item named `BarB` in scope
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
warning: unresolved link to `BarC`
--> $DIR/intra-links-warning.rs:34:6
|
LL | bar [BarC] bar
| ^^^^ no item named `BarC` in scope
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
warning: unresolved link to `BarD`
--> $DIR/intra-links-warning.rs:45:1
|
LL | #[doc = "Foo\nbar [BarD] bar\nbaz"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: the link appears in this line:
bar [BarD] bar
^^^^
= note: no item named `BarD` in scope
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
warning: unresolved link to `BarF`
--> $DIR/intra-links-warning.rs:50:9
|
LL | #[doc = $f]
| ^^^^^^^^^^^
...
LL | f!("Foo\nbar [BarF] bar\nbaz");
| ------------------------------- in this macro invocation
|
= note: the link appears in this line:
bar [BarF] bar
^^^^
= note: no item named `BarF` in scope
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
warning: 19 warnings emitted
src/test/rustdoc-ui/lint-missing-doc-code-example.stderr
浏览文件 @
e280ae86
error: missing code example in this documentation
--> $DIR/lint-missing-doc-code-example.rs:
4
9:1
--> $DIR/lint-missing-doc-code-example.rs:
1
9:1
|
LL | /// Doc
| ^^^^^^^
LL | / mod module1 {
LL | | }
| |_^
|
note: the lint level is defined here
--> $DIR/lint-missing-doc-code-example.rs:2:9
...
...
@@ -11,29 +12,28 @@ LL | #![deny(missing_doc_code_examples)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error: missing code example in this documentation
--> $DIR/lint-missing-doc-code-example.rs:
63:1
--> $DIR/lint-missing-doc-code-example.rs:
37:3
|
LL |
/// D
oc
| ^^^^^^^
LL |
/// d
oc
|
^^^^^^^
error: missing code example in this documentation
--> $DIR/lint-missing-doc-code-example.rs:
56
:1
--> $DIR/lint-missing-doc-code-example.rs:
49
:1
|
LL | /// Doc
| ^^^^^^^
error: missing code example in this documentation
--> $DIR/lint-missing-doc-code-example.rs:
19
:1
--> $DIR/lint-missing-doc-code-example.rs:
56
:1
|
LL | / mod module1 {
LL | | }
| |_^
LL | /// Doc
| ^^^^^^^
error: missing code example in this documentation
--> $DIR/lint-missing-doc-code-example.rs:
37:3
--> $DIR/lint-missing-doc-code-example.rs:
63:1
|
LL |
/// d
oc
|
^^^^^^^
LL |
/// D
oc
| ^^^^^^^
error: aborting due to 5 previous errors
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录