Module rustc_session::parse
source · Expand description
Contains ParseSess
which holds state living beyond what one Parser
might.
It also serves as an input to the parser itself.
Structs§
- Collected spans during parsing for places where a certain feature was used and should be feature gated accordingly in
check_crate
. - Info about a parsing session.
Functions§
- Adds the diagnostics for a feature to an existing error.
- Adds the diagnostics for a feature to an existing error.
- Construct a diagnostic for a language feature error due to the given
span
. Thefeature
’sSymbol
is the one you used inunstable.rs
andrustc_span::symbols
. - Construct a diagnostic for a feature gate error.
- Construct a future incompatibility diagnostic for a feature gate.
- Construct a future incompatibility diagnostic for a feature gate.