about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/middle
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2021-09-24 18:15:36 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2021-09-30 19:41:32 +0200
commitb244b98e7c57f507ba588c54dbee99cb19315946 (patch)
tree7ac90f623e02687c7783168f1cbfc77150d9b300 /compiler/rustc_middle/src/middle
parentdf54d3980b98ddbf29edac4ed4c4affcb021937f (diff)
downloadrust-b244b98e7c57f507ba588c54dbee99cb19315946.tar.gz
rust-b244b98e7c57f507ba588c54dbee99cb19315946.zip
Move EncodedMetadata to rustc_metadata.
Diffstat (limited to 'compiler/rustc_middle/src/middle')
-rw-r--r--compiler/rustc_middle/src/middle/cstore.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/rustc_middle/src/middle/cstore.rs b/compiler/rustc_middle/src/middle/cstore.rs
index 9d8bd0f4c4f..2a1bb43a466 100644
--- a/compiler/rustc_middle/src/middle/cstore.rs
+++ b/compiler/rustc_middle/src/middle/cstore.rs
@@ -148,17 +148,6 @@ pub enum ExternCrateSource {
     Path,
 }
 
-#[derive(Encodable, Decodable)]
-pub struct EncodedMetadata {
-    pub raw_data: Vec<u8>,
-}
-
-impl EncodedMetadata {
-    pub fn new() -> EncodedMetadata {
-        EncodedMetadata { raw_data: Vec::new() }
-    }
-}
-
 /// The backend's way to give the crate store access to the metadata in a library.
 /// Note that it returns the raw metadata bytes stored in the library file, whether
 /// it is compressed, uncompressed, some weird mix, etc.