You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of rust-lang#123694 - Xiretza:expand-diagnostics, r=compiler-errors
expand: fix minor diagnostics bug
The error mentions `///`, when it's actually `//!`:
```
error[E0658]: attributes on expressions are experimental
--> test.rs:4:9
|
4 | //! wah
| ^^^^^^^
|
= note: see issue rust-lang#15701 <rust-lang#15701> for more information
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
= help: `///` is for documentation comments. For a plain comment, use `//`.
```
Copy file name to clipboardExpand all lines: compiler/rustc_expand/messages.ftl
+5
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,11 @@ expand_attribute_meta_item =
10
10
expand_attribute_single_word =
11
11
attribute must only be a single word
12
12
13
+
expand_attributes_on_expressions_experimental =
14
+
attributes on expressions are experimental
15
+
.help_outer_doc = `///` is used for outer documentation comments; for a plain comment, use `//`
16
+
.help_inner_doc = `//!` is used for inner documentation comments; for a plain comment, use `//` by removing the `!` or inserting a space in between them: `// !`
0 commit comments