Function rustc_expand::mbe::diagnostics::parse_failure_msg
source · Expand description
Generates an appropriate parsing failure message. For EOF, this is “unexpected end…”. For other tokens, this is “unexpected token…”.