@@ -24,7 +24,6 @@ use std::marker::PhantomData;
2424use std:: num:: NonZeroUsize ;
2525
2626pub use decoder:: { provide, provide_extern} ;
27- crate use encoder:: encode_metadata;
2827
2928mod decoder;
3029mod encoder;
@@ -178,16 +177,16 @@ macro_rules! Lazy {
178177crate struct CrateRoot < ' tcx > {
179178 pub name : Symbol ,
180179 pub triple : TargetTriple ,
181- pub extra_filename : String ,
180+ extra_filename : String ,
182181 pub hash : Svh ,
183182 pub disambiguator : CrateDisambiguator ,
184183 pub panic_strategy : PanicStrategy ,
185- pub edition : Edition ,
184+ edition : Edition ,
186185 pub has_global_allocator : bool ,
187- pub has_panic_handler : bool ,
186+ has_panic_handler : bool ,
188187 pub has_default_lib_allocator : bool ,
189- pub plugin_registrar_fn : Option < DefIndex > ,
190- pub proc_macro_decls_static : Option < DefIndex > ,
188+ plugin_registrar_fn : Option < DefIndex > ,
189+ proc_macro_decls_static : Option < DefIndex > ,
191190 proc_macro_stability : Option < attr:: Stability > ,
192191
193192 pub crate_deps : Lazy < [ CrateDep ] > ,
@@ -210,14 +209,14 @@ crate struct CrateRoot<'tcx> {
210209 /// this crate
211210 pub proc_macro_data : Option < Lazy < [ DefIndex ] > > ,
212211
213- pub compiler_builtins : bool ,
212+ compiler_builtins : bool ,
214213 pub needs_allocator : bool ,
215214 pub needs_panic_runtime : bool ,
216- pub no_builtins : bool ,
215+ no_builtins : bool ,
217216 pub panic_runtime : bool ,
218217 pub profiler_runtime : bool ,
219218 pub sanitizer_runtime : bool ,
220- pub symbol_mangling_version : SymbolManglingVersion ,
219+ symbol_mangling_version : SymbolManglingVersion ,
221220}
222221
223222#[ derive( RustcEncodable , RustcDecodable ) ]
@@ -313,9 +312,9 @@ struct ModData {
313312}
314313
315314#[ derive( RustcEncodable , RustcDecodable ) ]
316- crate struct MacroDef {
317- pub body : String ,
318- pub legacy : bool ,
315+ struct MacroDef {
316+ body : String ,
317+ legacy : bool ,
319318}
320319
321320#[ derive( RustcEncodable , RustcDecodable ) ]
0 commit comments