File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5702,8 +5702,8 @@ impl<'a> Parser<'a> {
5702
5702
// `pub(crate)`
5703
5703
self . bump ( ) ; // `(`
5704
5704
self . bump ( ) ; // `crate`
5705
- let vis = Visibility :: Crate ( self . prev_span , CrateSugar :: PubCrate ) ;
5706
5705
self . expect ( & token:: CloseDelim ( token:: Paren ) ) ?; // `)`
5706
+ let vis = Visibility :: Crate ( self . prev_span , CrateSugar :: PubCrate ) ;
5707
5707
return Ok ( vis)
5708
5708
} else if self . look_ahead ( 1 , |t| t. is_keyword ( keywords:: In ) ) {
5709
5709
// `pub(in path)`
@@ -5715,7 +5715,8 @@ impl<'a> Parser<'a> {
5715
5715
return Ok ( vis)
5716
5716
} else if self . look_ahead ( 2 , |t| t == & token:: CloseDelim ( token:: Paren ) ) &&
5717
5717
self . look_ahead ( 1 , |t| t. is_keyword ( keywords:: Super ) ||
5718
- t. is_keyword ( keywords:: SelfValue ) ) {
5718
+ t. is_keyword ( keywords:: SelfValue ) )
5719
+ {
5719
5720
// `pub(self)` or `pub(super)`
5720
5721
self . bump ( ) ; // `(`
5721
5722
let path = self . parse_path ( PathStyle :: Mod ) ?. default_to_global ( ) ; // `super`/`self`
You can’t perform that action at this time.
0 commit comments