Skip to content

Commit 70371fd

Browse files
committed
Add description about crate for parse_visibility's comment
This rule was introduced by #45401.
1 parent d3ed348 commit 70371fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6282,7 +6282,7 @@ impl<'a> Parser<'a> {
62826282
self.parse_single_struct_field(lo, vis, attrs)
62836283
}
62846284

6285-
/// Parse `pub`, `pub(crate)` and `pub(in path)` plus shortcuts `pub(self)` for `pub(in self)`
6285+
/// Parse `pub`, `pub(crate)` and `pub(in path)` plus shortcuts `crate` for `pub(crate)`, `pub(self)` for `pub(in self)`
62866286
/// and `pub(super)` for `pub(in super)`. If the following element can't be a tuple (i.e. it's
62876287
/// a function definition, it's not a tuple struct field) and the contents within the parens
62886288
/// isn't valid, emit a proper diagnostic.

0 commit comments

Comments
 (0)