]> git.lizzy.rs Git - rust.git/commitdiff
Fix "line longer than 100 chars"
authoryui-knk <spiketeika@gmail.com>
Sun, 2 Dec 2018 09:33:12 +0000 (18:33 +0900)
committeryui-knk <spiketeika@gmail.com>
Sun, 2 Dec 2018 09:33:12 +0000 (18:33 +0900)
src/libsyntax/parse/parser.rs

index 6c119dd3e76a54d1ed8649a9de4b2eb5b70e5ccc..4884e5e28c0aeb3a1c839aed17585742fee187f8 100644 (file)
@@ -6282,9 +6282,10 @@ fn parse_struct_decl_field(&mut self) -> PResult<'a, StructField> {
         self.parse_single_struct_field(lo, vis, attrs)
     }
 
-    /// 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
+    /// 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.
     pub fn parse_visibility(&mut self, can_take_tuple: bool) -> PResult<'a, Visibility> {
         maybe_whole!(self, NtVis, |x| x);