diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2021-09-24 18:15:36 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2021-09-30 19:41:32 +0200 |
| commit | b244b98e7c57f507ba588c54dbee99cb19315946 (patch) | |
| tree | 7ac90f623e02687c7783168f1cbfc77150d9b300 /compiler/rustc_middle/src/middle | |
| parent | df54d3980b98ddbf29edac4ed4c4affcb021937f (diff) | |
| download | rust-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.rs | 11 |
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. |
