Re-exportsΒ§
use std::borrow::Cow;πuse rustc_ast::token;πuse rustc_ast::token::Token;πuse rustc_ast::tokenstream::TokenStream;πuse rustc_attr_ir::diagnostic::CustomDiagnostic;πuse rustc_attr_ir::diagnostic::Directive;πuse rustc_attr_ir::diagnostic::FormatArgs;πuse rustc_data_structures::fx::FxHashSet;πuse rustc_errors::Applicability;πuse rustc_errors::Diag;πuse rustc_errors::DiagCtxtHandle;πuse rustc_errors::DiagMessage;πuse rustc_errors::pluralize;πuse rustc_macros::Subdiagnostic;πuse rustc_parse::parser::Parser;πuse rustc_parse::parser::Recovery;πuse rustc_parse::parser::token_descr;πuse rustc_session::parse::ParseSess;πuse rustc_span::source_map::SourceMap;πuse rustc_span::DUMMY_SP;πuse rustc_span::ErrorGuaranteed;πuse rustc_span::Ident;πuse rustc_span::Span;πuse tracing::debug;πuse super::macro_rules::MacroRule;πuse super::macro_rules::NoopTracker;πuse super::macro_rules::parser_from_cx;πuse crate::expand::AstFragmentKind;πuse crate::expand::parse_ast_fragment;πuse crate::mbe::macro_parser::MatcherLoc;πuse crate::mbe::macro_parser::NamedParseResult;πuse crate::mbe::macro_parser::TtParser;πuse crate::mbe::macro_rules::Tracker;πuse crate::mbe::macro_rules::WhichMatcher;πuse crate::mbe::macro_rules::try_match_macro;πuse crate::mbe::macro_rules::try_match_macro_attr;πuse crate::mbe::macro_rules::try_match_macro_derive;πuse crate::mbe::macro_parser::ParseResult::*;π
StructsΒ§
- Best
Failure π - Collect
Tracker πAndEmitter - The tracker used for the slow error path that collects useful info for diagnostics.
- Successful
Match π
EnumsΒ§
- Explain
DocComment π - Failed
Macro π
FunctionsΒ§
- annotate_
doc_ πcomment - annotate_
err_ πwith_ kind - emit_
frag_ πparse_ err - failed_
to_ πmatch_ macro - parse_
failure_ πmsg - Generates an appropriate parsing failure message. For EOF, this is βunexpected endβ¦β. For other tokens, this is βunexpected tokenβ¦β.