Use better variable names in some maybe_whole!
calls.
This commit is contained in:
parent
0de050bd6d
commit
095722214d
4 changed files with 5 additions and 5 deletions
|
@ -1395,7 +1395,7 @@ impl<'a> Parser<'a> {
|
|||
/// so emit a proper diagnostic.
|
||||
// Public for rustfmt usage.
|
||||
pub fn parse_visibility(&mut self, fbt: FollowedByType) -> PResult<'a, Visibility> {
|
||||
maybe_whole!(self, NtVis, |x| x.into_inner());
|
||||
maybe_whole!(self, NtVis, |vis| vis.into_inner());
|
||||
|
||||
if !self.eat_keyword(kw::Pub) {
|
||||
// We need a span for our `Spanned<VisibilityKind>`, but there's inherently no
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue