Skip to content

Commit 0c9d424

Browse files
committed
rustc_metadata: Move cstore_impl into mod decoder
1 parent 8e1ae56 commit 0c9d424

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

src/librustc_metadata/cstore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use syntax_expand::base::SyntaxExtension;
1717
use syntax_pos;
1818
use proc_macro::bridge::client::ProcMacro;
1919

20-
pub use crate::cstore_impl::{provide, provide_extern};
20+
pub use crate::schema::{provide, provide_extern};
2121

2222
// A map from external crate numbers (as decoded from some crate file) to
2323
// local crate numbers (as generated during this session). Each external

src/librustc_metadata/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ extern crate rustc_data_structures;
2727
pub mod error_codes;
2828

2929
mod dependency_format;
30-
mod cstore_impl;
3130
mod foreign_modules;
3231
mod link_args;
3332
mod native_libs;

src/librustc_metadata/schema.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use syntax_pos::{self, Span};
2323
use std::marker::PhantomData;
2424
use std::num::NonZeroUsize;
2525

26+
pub use decoder::{provide, provide_extern};
2627
crate use encoder::encode_metadata;
2728

2829
mod decoder;

src/librustc_metadata/schema/decoder.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ use syntax_pos::symbol::{Symbol, sym};
4040
use log::debug;
4141
use proc_macro::bridge::client::ProcMacro;
4242

43+
pub use cstore_impl::{provide, provide_extern};
44+
45+
mod cstore_impl;
46+
4347
crate struct DecodeContext<'a, 'tcx> {
4448
opaque: opaque::Decoder<'a>,
4549
cdata: Option<&'a CrateMetadata>,

0 commit comments

Comments
 (0)