Skip to content
/ rust Public
forked from rust-lang/rust

Commit 3b15e6b

Browse files
authored
Rollup merge of rust-lang#121777 - sisungo:master, r=oli-obk
Fix typo in `rustc_passes/messages.ftl` Line 190 contains unpaired parentheses: ``` passes_doc_cfg_hide_takes_list = `#[doc(cfg_hide(...)]` takes a list of attributes ``` The `#[doc(cfg_hide(...)]` contains unpaired parentheses. This PR changes it to `#[doc(cfg_hide(...))]`, which made the parentheses paired.
2 parents f0e5863 + da37c8f commit 3b15e6b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: compiler/rustc_passes/messages.ftl

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ passes_doc_attr_not_crate_level =
187187
`#![doc({$attr_name} = "...")]` isn't allowed as a crate-level attribute
188188
189189
passes_doc_cfg_hide_takes_list =
190-
`#[doc(cfg_hide(...)]` takes a list of attributes
190+
`#[doc(cfg_hide(...))]` takes a list of attributes
191191
192192
passes_doc_expect_str =
193193
doc {$attr_name} attribute expects a string: #[doc({$attr_name} = "a")]

Diff for: tests/rustdoc-ui/lints/doc_cfg_hide.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ help: to apply to the crate, use an inner attribute
1818
LL | #![doc(cfg_hide(doc))]
1919
| +
2020

21-
error: `#[doc(cfg_hide(...)]` takes a list of attributes
21+
error: `#[doc(cfg_hide(...))]` takes a list of attributes
2222
--> $DIR/doc_cfg_hide.rs:4:8
2323
|
2424
LL | #![doc(cfg_hide = "test")]
@@ -27,7 +27,7 @@ LL | #![doc(cfg_hide = "test")]
2727
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
2828
= note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
2929

30-
error: `#[doc(cfg_hide(...)]` takes a list of attributes
30+
error: `#[doc(cfg_hide(...))]` takes a list of attributes
3131
--> $DIR/doc_cfg_hide.rs:6:8
3232
|
3333
LL | #![doc(cfg_hide)]

0 commit comments

Comments
 (0)