Expand description
Contains ParseSess
which holds state living beyond what one Parser
might.
It also serves as an input to the parser itself.
Structs§
- Gated
Spans - Collected spans during parsing for places where a certain feature was
used and should be feature gated accordingly in
check_crate
. - Parse
Sess - Info about a parsing session.
- Symbol
Gallery
Functions§
- add_
feature_ diagnostics - Adds the diagnostics for a feature to an existing error. Must be a language feature!
- add_
feature_ diagnostics_ for_ issue - Adds the diagnostics for a feature to an existing error.
- feature_
err - Construct a diagnostic for a language feature error due to the given
span
. Thefeature
’sSymbol
is the one you used inunstable.rs
andrustc_span::symbol
. - feature_
err_ issue - Construct a diagnostic for a feature gate error.
- feature_
warn - Construct a future incompatibility diagnostic for a feature gate.
- feature_
warn_ issue - Construct a future incompatibility diagnostic for a feature gate.