Stop using span hack for contracts feature gating
This commit is contained in:
parent
8c04e39595
commit
28164e3c04
6 changed files with 17 additions and 57 deletions
|
@ -208,10 +208,6 @@ pub struct ParseSess {
|
|||
pub config: Cfg,
|
||||
pub check_config: CheckCfg,
|
||||
pub edition: Edition,
|
||||
/// Places where contract attributes were expanded into unstable AST forms.
|
||||
/// This is used to allowlist those spans (so that we only check them against the feature
|
||||
/// gate for the externally visible interface, and not internal implmentation machinery).
|
||||
pub contract_attribute_spans: AppendOnlyVec<Span>,
|
||||
/// Places where raw identifiers were used. This is used to avoid complaining about idents
|
||||
/// clashing with keywords in new editions.
|
||||
pub raw_identifier_spans: AppendOnlyVec<Span>,
|
||||
|
@ -260,7 +256,6 @@ impl ParseSess {
|
|||
config: Cfg::default(),
|
||||
check_config: CheckCfg::default(),
|
||||
edition: ExpnId::root().expn_data().edition,
|
||||
contract_attribute_spans: Default::default(),
|
||||
raw_identifier_spans: Default::default(),
|
||||
bad_unicode_identifiers: Lock::new(Default::default()),
|
||||
source_map,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue