about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2018-12-02 17:01:44 +0900
committeryui-knk <spiketeika@gmail.com>2018-12-02 17:01:44 +0900
commit70371fde17ea4b1e3aa4d443103a15157eafdcdc (patch)
tree58923d1063198347752be98cb675cac471b4861b /src/libsyntax
parentd3ed34824c31f303b98855fee6fc9213dff1f295 (diff)
downloadrust-70371fde17ea4b1e3aa4d443103a15157eafdcdc.tar.gz
rust-70371fde17ea4b1e3aa4d443103a15157eafdcdc.zip
Add description about `crate` for parse_visibility's comment
This rule was introduced by https://github.com/rust-lang/rust/pull/45401.
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index f13bb7df0b4..6c119dd3e76 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -6282,7 +6282,7 @@ impl<'a> Parser<'a> {
         self.parse_single_struct_field(lo, vis, attrs)
     }
 
-    /// Parse `pub`, `pub(crate)` and `pub(in path)` plus shortcuts `pub(self)` for `pub(in self)`
+    /// Parse `pub`, `pub(crate)` and `pub(in path)` plus shortcuts `crate` for `pub(crate)`, `pub(self)` for `pub(in self)`
     /// and `pub(super)` for `pub(in super)`.  If the following element can't be a tuple (i.e. it's
     /// a function definition, it's not a tuple struct field) and the contents within the parens
     /// isn't valid, emit a proper diagnostic.