@@ -24,7 +24,6 @@ use std::marker::PhantomData;
24
24
use std:: num:: NonZeroUsize ;
25
25
26
26
pub use decoder:: { provide, provide_extern} ;
27
- crate use encoder:: encode_metadata;
28
27
29
28
mod decoder;
30
29
mod encoder;
@@ -178,16 +177,16 @@ macro_rules! Lazy {
178
177
crate struct CrateRoot < ' tcx > {
179
178
pub name : Symbol ,
180
179
pub triple : TargetTriple ,
181
- pub extra_filename : String ,
180
+ extra_filename : String ,
182
181
pub hash : Svh ,
183
182
pub disambiguator : CrateDisambiguator ,
184
183
pub panic_strategy : PanicStrategy ,
185
- pub edition : Edition ,
184
+ edition : Edition ,
186
185
pub has_global_allocator : bool ,
187
- pub has_panic_handler : bool ,
186
+ has_panic_handler : bool ,
188
187
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 > ,
191
190
proc_macro_stability : Option < attr:: Stability > ,
192
191
193
192
pub crate_deps : Lazy < [ CrateDep ] > ,
@@ -210,14 +209,14 @@ crate struct CrateRoot<'tcx> {
210
209
/// this crate
211
210
pub proc_macro_data : Option < Lazy < [ DefIndex ] > > ,
212
211
213
- pub compiler_builtins : bool ,
212
+ compiler_builtins : bool ,
214
213
pub needs_allocator : bool ,
215
214
pub needs_panic_runtime : bool ,
216
- pub no_builtins : bool ,
215
+ no_builtins : bool ,
217
216
pub panic_runtime : bool ,
218
217
pub profiler_runtime : bool ,
219
218
pub sanitizer_runtime : bool ,
220
- pub symbol_mangling_version : SymbolManglingVersion ,
219
+ symbol_mangling_version : SymbolManglingVersion ,
221
220
}
222
221
223
222
#[ derive( RustcEncodable , RustcDecodable ) ]
@@ -313,9 +312,9 @@ struct ModData {
313
312
}
314
313
315
314
#[ derive( RustcEncodable , RustcDecodable ) ]
316
- crate struct MacroDef {
317
- pub body : String ,
318
- pub legacy : bool ,
315
+ struct MacroDef {
316
+ body : String ,
317
+ legacy : bool ,
319
318
}
320
319
321
320
#[ derive( RustcEncodable , RustcDecodable ) ]
0 commit comments