Skip to content

Commit 6b8effd

Browse files
committed
---
yaml --- r: 193018 b: refs/heads/beta c: 2e9521c h: refs/heads/master v: v3
1 parent fa9899c commit 6b8effd

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: 717a91d6651598994834d056c69e6c4bf2b74b9f
34+
refs/heads/beta: 2e9521c126214255c8d7a78db4daf431bb5d6320
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: de8a23bbc3a7b9cbd7574b5b91a34af59bf030e6

branches/beta/src/test/compile-fail/lint-missing-doc.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
#![doc="More garbage"]
1818

1919
type Typedef = String;
20-
pub type PubTypedef = String; //~ ERROR: missing documentation
20+
pub type PubTypedef = String; //~ ERROR: missing documentation for a type alias
2121

2222
struct Foo {
2323
a: isize,
2424
b: isize,
2525
}
2626

27-
pub struct PubFoo { //~ ERROR: missing documentation
28-
pub a: isize, //~ ERROR: missing documentation
27+
pub struct PubFoo { //~ ERROR: missing documentation for a struct
28+
pub a: isize, //~ ERROR: missing documentation for a struct field
2929
b: isize,
3030
}
3131

@@ -36,11 +36,11 @@ pub struct PubFoo2 {
3636
}
3737

3838
mod module_no_dox {}
39-
pub mod pub_module_no_dox {} //~ ERROR: missing documentation
39+
pub mod pub_module_no_dox {} //~ ERROR: missing documentation for a module
4040

4141
/// dox
4242
pub fn foo() {}
43-
pub fn foo2() {} //~ ERROR: missing documentation
43+
pub fn foo2() {} //~ ERROR: missing documentation for a function
4444
fn foo3() {}
4545
#[allow(missing_docs)] pub fn foo4() {}
4646

@@ -58,9 +58,9 @@ trait B {
5858
fn foo_with_impl(&self) {}
5959
}
6060

61-
pub trait C { //~ ERROR: missing documentation
62-
fn foo(&self); //~ ERROR: missing documentation
63-
fn foo_with_impl(&self) {} //~ ERROR: missing documentation
61+
pub trait C { //~ ERROR: missing documentation for a trait
62+
fn foo(&self); //~ ERROR: missing documentation for a type method
63+
fn foo_with_impl(&self) {} //~ ERROR: missing documentation for a method
6464
}
6565

6666
#[allow(missing_docs)]
@@ -70,8 +70,8 @@ pub trait D {
7070

7171
/// dox
7272
pub trait E {
73-
type AssociatedType; //~ ERROR: missing documentation
74-
type AssociatedTypeDef = Self; //~ ERROR: missing documentation
73+
type AssociatedType; //~ ERROR: missing documentation for an associated type
74+
type AssociatedTypeDef = Self; //~ ERROR: missing documentation for an associated type
7575

7676
/// dox
7777
type DocumentedType;
@@ -87,7 +87,7 @@ impl Foo {
8787
}
8888

8989
impl PubFoo {
90-
pub fn foo() {} //~ ERROR: missing documentation
90+
pub fn foo() {} //~ ERROR: missing documentation for a method
9191
/// dox
9292
pub fn foo1() {}
9393
fn foo2() {}
@@ -124,9 +124,9 @@ enum Baz {
124124
BarB
125125
}
126126

127-
pub enum PubBaz { //~ ERROR: missing documentation
128-
PubBazA { //~ ERROR: missing documentation
129-
a: isize, //~ ERROR: missing documentation
127+
pub enum PubBaz { //~ ERROR: missing documentation for an enum
128+
PubBazA { //~ ERROR: missing documentation for a variant
129+
a: isize, //~ ERROR: missing documentation for a struct field
130130
},
131131
}
132132

@@ -152,14 +152,14 @@ pub fn baz() {}
152152
mod internal_impl {
153153
/// dox
154154
pub fn documented() {}
155-
pub fn undocumented1() {} //~ ERROR: missing documentation
156-
pub fn undocumented2() {} //~ ERROR: missing documentation
155+
pub fn undocumented1() {} //~ ERROR: missing documentation for a function
156+
pub fn undocumented2() {} //~ ERROR: missing documentation for a function
157157
fn undocumented3() {}
158158
/// dox
159159
pub mod globbed {
160160
/// dox
161161
pub fn also_documented() {}
162-
pub fn also_undocumented1() {} //~ ERROR: missing documentation
162+
pub fn also_undocumented1() {} //~ ERROR: missing documentation for a function
163163
fn also_undocumented2() {}
164164
}
165165
}

0 commit comments

Comments
 (0)