fn parse_abi(&mut self) -> Option<StrLit> {
        match self.parse_str_lit() {
            Ok(str_lit) => Some(str_lit),
            Err(Some(lit)) => match lit.kind {
                ast::LitKind::Err(_) => None,
                _ => {
                    self.struct_span_err(lit.span, "non-string ABI literal")
                        .span_suggestion(
                            lit.span,
                            "specify the ABI with a string literal",
                            "\"C\"".to_string(),
                            Applicability::MaybeIncorrect,
                        )
                        .emit();
                    None
                }
            }
            Err(None) => None,
        }
    }
/// Parses a string literal as an ABI spec.
Parses a string literal as an ABI spec.
Parses a string literal as an ABI spec .
fn parse_abi(&mut self) -> Option<StrLit> {
        match self.parse_str_lit() {
            Ok(str_lit) => Some(str_lit),
            Err(Some(lit)) => match lit.kind {
                ast::LitKind::Err(_) => None,
                _ => {
                    self.struct_span_err(lit.span, "non-string ABI literal")
                        .span_suggestion(
                            lit.span,
                            "specify the ABI with a string literal",
                            "\"C\"".to_string(),
                            Applicability::MaybeIncorrect,
                        )
                        .emit();
                    None
                }
            }
            Err(None) => None,
        }
    }
fn parse_abi ( & mut self ) -> Option < StrLit > { match self . parse_str_lit ( ) { Ok ( str_lit ) => Some ( str_lit ) , Err ( Some ( lit ) ) => match lit . kind { ast :: LitKind :: Err ( _ ) => None , _ => { self . struct_span_err ( lit . span , " " ) . span_suggestion ( lit . span , " " , " \" \" " . to_string ( ) , Applicability :: MaybeIncorrect , ) . emit ( ) ; None } } Err ( None ) => None , } }
Parses a string literal as an ABI spec.
Parses a string literal as an ABI spec .
&mut self