@@ -21,7 +21,6 @@ use errors::emitter::{Emitter, EmitterWriter};
21
21
use errors:: emitter:: HumanReadableErrorType ;
22
22
use errors:: annotate_snippet_emitter_writer:: { AnnotateSnippetEmitterWriter } ;
23
23
use syntax:: edition:: Edition ;
24
- use syntax:: expand:: allocator:: AllocatorKind ;
25
24
use syntax:: feature_gate:: { self , AttributeType } ;
26
25
use syntax:: json:: JsonEmitter ;
27
26
use syntax:: source_map;
@@ -100,11 +99,6 @@ pub struct Session {
100
99
/// The maximum number of stackframes allowed in const eval.
101
100
pub const_eval_stack_frame_limit : usize ,
102
101
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
-
108
102
/// Map from imported macro spans (which consist of
109
103
/// the localized span for the macro body) to the
110
104
/// macro name and definition span in the source crate.
@@ -1179,7 +1173,6 @@ fn build_session_(
1179
1173
recursion_limit : Once :: new ( ) ,
1180
1174
type_length_limit : Once :: new ( ) ,
1181
1175
const_eval_stack_frame_limit : 100 ,
1182
- allocator_kind : Once :: new ( ) ,
1183
1176
imported_macro_spans : OneThread :: new ( RefCell :: new ( FxHashMap :: default ( ) ) ) ,
1184
1177
incr_comp_session : OneThread :: new ( RefCell :: new ( IncrCompSession :: NotInitialized ) ) ,
1185
1178
cgu_reuse_tracker,
0 commit comments