|
4 | 4 | use crate::lint::{BufferedEarlyLint, BuiltinLintDiagnostics, Lint, LintId};
|
5 | 5 | use rustc_ast::node_id::NodeId;
|
6 | 6 | use rustc_data_structures::fx::{FxHashMap, FxHashSet};
|
7 |
| -use rustc_data_structures::sync::{Lock, Lrc, OnceCell}; |
| 7 | +use rustc_data_structures::sync::{Lock, Lrc}; |
8 | 8 | use rustc_errors::{emitter::SilentEmitter, ColorConfig, Handler};
|
9 | 9 | use rustc_errors::{error_code, Applicability, DiagnosticBuilder};
|
10 | 10 | use rustc_feature::{find_feature_issue, GateIssue, UnstableFeatures};
|
@@ -129,7 +129,6 @@ pub struct ParseSess {
|
129 | 129 | /// operation token that followed it, but that the parser cannot identify without further
|
130 | 130 | /// analysis.
|
131 | 131 | pub ambiguous_block_expr_parse: Lock<FxHashMap<Span, Span>>,
|
132 |
| - pub injected_crate_name: OnceCell<Symbol>, |
133 | 132 | pub gated_spans: GatedSpans,
|
134 | 133 | pub symbol_gallery: SymbolGallery,
|
135 | 134 | /// The parser has reached `Eof` due to an unclosed brace. Used to silence unnecessary errors.
|
@@ -158,7 +157,6 @@ impl ParseSess {
|
158 | 157 | source_map,
|
159 | 158 | buffered_lints: Lock::new(vec![]),
|
160 | 159 | ambiguous_block_expr_parse: Lock::new(FxHashMap::default()),
|
161 |
| - injected_crate_name: OnceCell::new(), |
162 | 160 | gated_spans: GatedSpans::default(),
|
163 | 161 | symbol_gallery: SymbolGallery::default(),
|
164 | 162 | reached_eof: Lock::new(false),
|
|
0 commit comments