This repository was archived by the owner on Dec 29, 2022. It is now read-only.
File tree 2 files changed +0
-10
lines changed
2 files changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -169,17 +169,13 @@ impl Callbacks for ShimCalls {
169
169
let input = compiler. input ( ) ;
170
170
let crate_name = queries. crate_name ( ) . unwrap ( ) . peek ( ) . clone ( ) ;
171
171
172
- // Guaranteed to not be dropped yet in the pipeline thanks to the
173
- // `config.opts.debugging_opts.save_analysis` value being set to `true`.
174
- let expanded_crate = & queries. expansion ( ) . unwrap ( ) . peek ( ) . 0 ;
175
172
queries. global_ctxt ( ) . unwrap ( ) . peek_mut ( ) . enter ( |tcx| {
176
173
// There are two ways to move the data from rustc to the RLS, either
177
174
// directly or by serialising and deserialising. We only want to do
178
175
// the latter when there are compatibility issues between crates.
179
176
180
177
// This version passes via JSON, it is more easily backwards compatible.
181
178
// save::process_crate(state.tcx.unwrap(),
182
- // state.expanded_crate.unwrap(),
183
179
// state.analysis.unwrap(),
184
180
// state.crate_name.unwrap(),
185
181
// state.input,
@@ -189,7 +185,6 @@ impl Callbacks for ShimCalls {
189
185
// This version passes directly, it is more efficient.
190
186
rustc_save_analysis:: process_crate (
191
187
tcx,
192
- & expanded_crate,
193
188
& crate_name,
194
189
& input,
195
190
None ,
Original file line number Diff line number Diff line change @@ -276,17 +276,13 @@ impl rustc_driver::Callbacks for RlsRustcCalls {
276
276
let input = compiler. input ( ) ;
277
277
let crate_name = queries. crate_name ( ) . unwrap ( ) . peek ( ) . clone ( ) ;
278
278
279
- // Guaranteed to not be dropped yet in the pipeline thanks to the
280
- // `config.opts.debugging_opts.save_analysis` value being set to `true`.
281
- let expanded_crate = & queries. expansion ( ) . unwrap ( ) . peek ( ) . 0 ;
282
279
queries. global_ctxt ( ) . unwrap ( ) . peek_mut ( ) . enter ( |tcx| {
283
280
// There are two ways to move the data from rustc to the RLS, either
284
281
// directly or by serialising and deserialising. We only want to do
285
282
// the latter when there are compatibility issues between crates.
286
283
287
284
// This version passes via JSON, it is more easily backwards compatible.
288
285
// save::process_crate(state.tcx.unwrap(),
289
- // state.expanded_crate.unwrap(),
290
286
// state.analysis.unwrap(),
291
287
// state.crate_name.unwrap(),
292
288
// state.input,
@@ -296,7 +292,6 @@ impl rustc_driver::Callbacks for RlsRustcCalls {
296
292
// This version passes directly, it is more efficient.
297
293
save:: process_crate (
298
294
tcx,
299
- & expanded_crate,
300
295
& crate_name,
301
296
& input,
302
297
None ,
You can’t perform that action at this time.
0 commit comments