Skip to content

Commit 835b92e

Browse files
committed
Replace deprecated missing_doc attribute.
1 parent 0547a40 commit 835b92e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/doc/reference.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,15 +2100,15 @@ plugins](guide-plugin.html#lint-plugins) can provide additional lint checks.
21002100
```{.ignore}
21012101
mod m1 {
21022102
// Missing documentation is ignored here
2103-
#[allow(missing_doc)]
2103+
#[allow(missing_docs)]
21042104
pub fn undocumented_one() -> int { 1 }
21052105
21062106
// Missing documentation signals a warning here
2107-
#[warn(missing_doc)]
2107+
#[warn(missing_docs)]
21082108
pub fn undocumented_too() -> int { 2 }
21092109
21102110
// Missing documentation signals an error here
2111-
#[deny(missing_doc)]
2111+
#[deny(missing_docs)]
21122112
pub fn undocumented_end() -> int { 3 }
21132113
}
21142114
```
@@ -2117,16 +2117,16 @@ This example shows how one can use `allow` and `warn` to toggle a particular
21172117
check on and off.
21182118

21192119
```{.ignore}
2120-
#[warn(missing_doc)]
2120+
#[warn(missing_docs)]
21212121
mod m2{
2122-
#[allow(missing_doc)]
2122+
#[allow(missing_docs)]
21232123
mod nested {
21242124
// Missing documentation is ignored here
21252125
pub fn undocumented_one() -> int { 1 }
21262126
21272127
// Missing documentation signals a warning here,
21282128
// despite the allow above.
2129-
#[warn(missing_doc)]
2129+
#[warn(missing_docs)]
21302130
pub fn undocumented_two() -> int { 2 }
21312131
}
21322132
@@ -2139,10 +2139,10 @@ This example shows how one can use `forbid` to disallow uses of `allow` for
21392139
that lint check.
21402140

21412141
```{.ignore}
2142-
#[forbid(missing_doc)]
2142+
#[forbid(missing_docs)]
21432143
mod m3 {
21442144
// Attempting to toggle warning signals an error here
2145-
#[allow(missing_doc)]
2145+
#[allow(missing_docs)]
21462146
/// Returns 2.
21472147
pub fn undocumented_too() -> int { 2 }
21482148
}

src/etc/unicode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
3535
// NOTE: The following code was generated by "src/etc/unicode.py", do not edit directly
3636
37-
#![allow(missing_doc, non_uppercase_statics, non_snake_case)]
37+
#![allow(missing_docs, non_uppercase_statics, non_snake_case)]
3838
'''
3939

4040
# Mapping taken from Table 12 from:

src/test/run-pass/issue-10853.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![deny(missing_doc)]
11+
#![deny(missing_docs)]
1212
#![doc="module"]
1313

1414
#[doc="struct"]

0 commit comments

Comments
 (0)