File tree 3 files changed +1
-8
lines changed
rustc_metadata/src/rmeta/decoder
3 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ use crate::native_libs;
4
4
use crate :: rmeta:: encoder;
5
5
6
6
use rustc_ast as ast;
7
- use rustc_ast:: expand:: allocator:: AllocatorKind ;
8
7
use rustc_data_structures:: stable_map:: FxHashMap ;
9
8
use rustc_data_structures:: svh:: Svh ;
10
9
use rustc_hir as hir;
@@ -242,6 +241,7 @@ pub fn provide(providers: &mut Providers) {
242
241
// therefore no actual inputs, they're just reading tables calculated in
243
242
// resolve! Does this work? Unsure! That's what the issue is about
244
243
* providers = Providers {
244
+ allocator_kind : |tcx, ( ) | CStore :: from_tcx ( tcx) . allocator_kind ( ) ,
245
245
is_dllimport_foreign_item : |tcx, id| match tcx. native_library_kind ( id) {
246
246
Some (
247
247
NativeLibKind :: Dylib { .. } | NativeLibKind :: RawDylib | NativeLibKind :: Unspecified ,
@@ -535,8 +535,4 @@ impl CrateStore for CStore {
535
535
fn encode_metadata ( & self , tcx : TyCtxt < ' _ > ) -> EncodedMetadata {
536
536
encoder:: encode_metadata ( tcx)
537
537
}
538
-
539
- fn allocator_kind ( & self ) -> Option < AllocatorKind > {
540
- self . allocator_kind ( )
541
- }
542
538
}
Original file line number Diff line number Diff line change 5
5
use crate :: ty:: TyCtxt ;
6
6
7
7
use rustc_ast as ast;
8
- use rustc_ast:: expand:: allocator:: AllocatorKind ;
9
8
use rustc_data_structures:: svh:: Svh ;
10
9
use rustc_data_structures:: sync:: { self , MetadataRef } ;
11
10
use rustc_hir:: def:: DefKind ;
@@ -215,7 +214,6 @@ pub trait CrateStore {
215
214
216
215
// utility functions
217
216
fn encode_metadata ( & self , tcx : TyCtxt < ' _ > ) -> EncodedMetadata ;
218
- fn allocator_kind ( & self ) -> Option < AllocatorKind > ;
219
217
}
220
218
221
219
pub type CrateStoreDyn = dyn CrateStore + sync:: Sync ;
Original file line number Diff line number Diff line change @@ -2834,5 +2834,4 @@ pub fn provide(providers: &mut ty::query::Providers) {
2834
2834
// We want to check if the panic handler was defined in this crate
2835
2835
tcx. lang_items ( ) . panic_impl ( ) . map_or ( false , |did| did. is_local ( ) )
2836
2836
} ;
2837
- providers. allocator_kind = |tcx, ( ) | tcx. cstore . allocator_kind ( ) ;
2838
2837
}
You can’t perform that action at this time.
0 commit comments