@@ -167,10 +167,9 @@ use rustc_codegen_ssa::traits::{
167
167
} ;
168
168
use rustc_codegen_ssa:: { CodegenResults , CompiledModule , ModuleCodegen , ModuleKind } ;
169
169
use rustc_data_structures:: fx:: FxHashMap ;
170
- use rustc_data_structures:: sync:: MetadataRef ;
171
170
use rustc_errors:: { ErrorReported , FatalError , Handler } ;
172
171
use rustc_middle:: dep_graph:: { WorkProduct , WorkProductId } ;
173
- use rustc_middle:: middle:: cstore:: { EncodedMetadata , MetadataLoader , MetadataLoaderDyn } ;
172
+ use rustc_middle:: middle:: cstore:: EncodedMetadata ;
174
173
use rustc_middle:: mir:: mono:: { Linkage , MonoItem , Visibility } ;
175
174
use rustc_middle:: ty:: print:: with_no_trimmed_paths;
176
175
use rustc_middle:: ty:: { self , query, DefIdTree , Instance , InstanceDef , TyCtxt } ;
@@ -262,18 +261,6 @@ impl ThinBufferMethods for SpirvThinBuffer {
262
261
}
263
262
}
264
263
265
- struct SpirvMetadataLoader ;
266
-
267
- impl MetadataLoader for SpirvMetadataLoader {
268
- fn get_rlib_metadata ( & self , _: & Target , path : & Path ) -> Result < MetadataRef , String > {
269
- link:: read_metadata ( path)
270
- }
271
-
272
- fn get_dylib_metadata ( & self , target : & Target , path : & Path ) -> Result < MetadataRef , String > {
273
- rustc_codegen_ssa:: back:: metadata:: DefaultMetadataLoader . get_dylib_metadata ( target, path)
274
- }
275
- }
276
-
277
264
#[ derive( Clone ) ]
278
265
struct SpirvCodegenBackend ;
279
266
@@ -299,10 +286,6 @@ impl CodegenBackend for SpirvCodegenBackend {
299
286
}
300
287
}
301
288
302
- fn metadata_loader ( & self ) -> Box < MetadataLoaderDyn > {
303
- Box :: new ( SpirvMetadataLoader )
304
- }
305
-
306
289
fn provide ( & self , providers : & mut query:: Providers ) {
307
290
// This is a lil weird: so, we obviously don't support C ABIs at all. However, libcore does declare some extern
308
291
// C functions:
0 commit comments