about summary refs log tree commit diff
path: root/compiler/rustc_session/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-02-10 19:47:00 +0000
committerMichael Goulet <michael@errs.io>2025-02-10 19:51:26 +0000
commit28164e3c047991294a3d4e7afd6b820c0c2f86ee (patch)
tree62b5c343f309aea47fe00529bfa97554e5251995 /compiler/rustc_session/src
parent8c04e395952022a451138dc4dbead6dd6ae65203 (diff)
downloadrust-28164e3c047991294a3d4e7afd6b820c0c2f86ee.tar.gz
rust-28164e3c047991294a3d4e7afd6b820c0c2f86ee.zip
Stop using span hack for contracts feature gating
Diffstat (limited to 'compiler/rustc_session/src')
-rw-r--r--compiler/rustc_session/src/parse.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_session/src/parse.rs b/compiler/rustc_session/src/parse.rs
index d4db05ce139..e0405a71f65 100644
--- a/compiler/rustc_session/src/parse.rs
+++ b/compiler/rustc_session/src/parse.rs
@@ -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,