/// Recover from `pub` keyword in places where it seems _reasonable_ but isn't valid.
Recover from `pub` keyword in places where it seems _reasonable_ but isn't valid.
Recover from ` pub ` keyword in places where it seems _reasonable_ but isn ' t valid .
crate fn eat_bad_pub(&mut self) {
        if self.token.is_keyword(kw::Pub) {
            match self.parse_visibility(false) {
                Ok(vis) => {
                    self.diagnostic()
                        .struct_span_err(vis.span, "unnecessary visibility qualifier")
                        .span_label(vis.span, "`pub` not permitted here")
                        .emit();
                }
                Err(mut err) => err.emit(),
            }
        }
    }
crate fn eat_bad_pub ( & mut self ) { if self . token . is_keyword ( kw :: Pub ) { match self . parse_visibility ( false ) { Ok ( vis ) => { self . diagnostic ( ) . struct_span_err ( vis . span , " " ) . span_label ( vis . span , " " ) . emit ( ) ; } Err ( mut err ) => err . emit ( ) , } } }
Recover from `pub` keyword in places where it seems _reasonable_ but isn't valid.
Recover from ` pub ` keyword in places where it seems _reasonable_ but isn ' t valid .
&mut self