@@ -21,7 +21,6 @@ use errors::emitter::{Emitter, EmitterWriter};
2121use errors:: emitter:: HumanReadableErrorType ;
2222use errors:: annotate_snippet_emitter_writer:: { AnnotateSnippetEmitterWriter } ;
2323use syntax:: edition:: Edition ;
24- use syntax:: expand:: allocator:: AllocatorKind ;
2524use syntax:: feature_gate:: { self , AttributeType } ;
2625use syntax:: json:: JsonEmitter ;
2726use syntax:: source_map;
@@ -100,11 +99,6 @@ pub struct Session {
10099 /// The maximum number of stackframes allowed in const eval.
101100 pub const_eval_stack_frame_limit : usize ,
102101
103- /// The `metadata::creader` module may inject an allocator/`panic_runtime`
104- /// dependency if it didn't already find one, and this tracks what was
105- /// injected.
106- pub allocator_kind : Once < Option < AllocatorKind > > ,
107-
108102 /// Map from imported macro spans (which consist of
109103 /// the localized span for the macro body) to the
110104 /// macro name and definition span in the source crate.
@@ -1179,7 +1173,6 @@ fn build_session_(
11791173 recursion_limit : Once :: new ( ) ,
11801174 type_length_limit : Once :: new ( ) ,
11811175 const_eval_stack_frame_limit : 100 ,
1182- allocator_kind : Once :: new ( ) ,
11831176 imported_macro_spans : OneThread :: new ( RefCell :: new ( FxHashMap :: default ( ) ) ) ,
11841177 incr_comp_session : OneThread :: new ( RefCell :: new ( IncrCompSession :: NotInitialized ) ) ,
11851178 cgu_reuse_tracker,
0 commit comments