File tree Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,6 @@ impl<'a> CrateLoader<'a> {
207
207
info ! ( "register crate `extern crate {} as {}` (private_dep = {})" ,
208
208
crate_root. name, ident, private_dep) ;
209
209
210
-
211
210
// Claim this crate number and cache it
212
211
let cnum = self . cstore . alloc_new_crate_num ( ) ;
213
212
@@ -255,7 +254,6 @@ impl<'a> CrateLoader<'a> {
255
254
256
255
let cmeta = cstore:: CrateMetadata {
257
256
name : crate_root. name ,
258
- imported_name : ident,
259
257
extern_crate : Lock :: new ( None ) ,
260
258
def_path_table : Lrc :: new ( def_path_table) ,
261
259
trait_impls,
Original file line number Diff line number Diff line change @@ -49,10 +49,6 @@ pub struct CrateMetadata {
49
49
/// Original name of the crate.
50
50
pub name : Symbol ,
51
51
52
- /// Name of the crate as imported. I.e., if imported with
53
- /// `extern crate foo as bar;` this will be `bar`.
54
- pub imported_name : Symbol ,
55
-
56
52
/// Information about the extern crate that caused this crate to
57
53
/// be loaded. If this is `None`, then the crate was injected
58
54
/// (e.g., by the allocator)
Original file line number Diff line number Diff line change @@ -453,8 +453,7 @@ impl cstore::CStore {
453
453
}
454
454
455
455
let def = data. get_macro ( id. index ) ;
456
- let macro_full_name = data. def_path ( id. index )
457
- . to_string_friendly ( |_| data. imported_name ) ;
456
+ let macro_full_name = data. def_path ( id. index ) . to_string_friendly ( |_| data. name ) ;
458
457
let source_name = FileName :: Macros ( macro_full_name) ;
459
458
460
459
let source_file = sess. parse_sess . source_map ( ) . new_source_file ( source_name, def. body ) ;
You can’t perform that action at this time.
0 commit comments