1
1
// The crate store - a central repo for information collected about external
2
2
// crates and libraries
3
3
4
- use crate :: schema ;
4
+ use crate :: rmeta ;
5
5
use rustc:: dep_graph:: DepNodeIndex ;
6
6
use rustc:: hir:: def_id:: { CrateNum , DefIndex } ;
7
7
use rustc:: hir:: map:: definitions:: DefPathTable ;
@@ -17,7 +17,7 @@ use syntax_expand::base::SyntaxExtension;
17
17
use syntax_pos;
18
18
use proc_macro:: bridge:: client:: ProcMacro ;
19
19
20
- pub use crate :: schema :: { provide, provide_extern} ;
20
+ pub use crate :: rmeta :: { provide, provide_extern} ;
21
21
22
22
// A map from external crate numbers (as decoded from some crate file) to
23
23
// local crate numbers (as generated during this session). Each external
@@ -49,7 +49,7 @@ crate struct CrateMetadata {
49
49
/// lifetime is only used behind `Lazy`, and therefore acts like an
50
50
/// universal (`for<'tcx>`), that is paired up with whichever `TyCtxt`
51
51
/// is being used to decode those values.
52
- crate root : schema :: CrateRoot < ' static > ,
52
+ crate root : rmeta :: CrateRoot < ' static > ,
53
53
/// For each definition in this crate, we encode a key. When the
54
54
/// crate is loaded, we read all the keys and put them in this
55
55
/// hashmap, which gives the reverse mapping. This allows us to
@@ -59,7 +59,7 @@ crate struct CrateMetadata {
59
59
/// Trait impl data.
60
60
/// FIXME: Used only from queries and can use query cache,
61
61
/// so pre-decoding can probably be avoided.
62
- crate trait_impls : FxHashMap < ( u32 , DefIndex ) , schema :: Lazy < [ DefIndex ] > > ,
62
+ crate trait_impls : FxHashMap < ( u32 , DefIndex ) , rmeta :: Lazy < [ DefIndex ] > > ,
63
63
/// Proc macro descriptions for this crate, if it's a proc macro crate.
64
64
crate raw_proc_macros : Option < & ' static [ ProcMacro ] > ,
65
65
/// Source maps for code from the crate.
0 commit comments