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’sSymbolis the one you used inunstable.rsandrustc_span::symbol. - feature_
err_ issue - Construct a diagnostic for a feature gate error.
- feature_
err_ unstable_ feature_ bound - This is only used by unstable_feature_bound as it does not have issue number information for now.
This is basically the same as
feature_err_issuebut without the feature issue note. If we can do a lookup for issue number from feature name, then we should directly usefeature_err_issuefor ambiguity error of#[unstable_feature_bound]. - feature_
warn - Construct a future incompatibility diagnostic for a feature gate.
- feature_
warn_ issue - Construct a future incompatibility diagnostic for a feature gate.