File tree 1 file changed +4
-4
lines changed
src/librustc_save_analysis
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ impl From<DefId> for Id {
129
129
#[ derive( Debug , RustcEncodable ) ]
130
130
struct Import {
131
131
kind : ImportKind ,
132
- id : Id ,
132
+ ref_id : Option < Id > ,
133
133
span : SpanData ,
134
134
name : String ,
135
135
value : String ,
@@ -146,7 +146,7 @@ impl From<ExternCrateData> for Import {
146
146
fn from ( data : ExternCrateData ) -> Import {
147
147
Import {
148
148
kind : ImportKind :: ExternCrate ,
149
- id : From :: from ( data . id ) ,
149
+ ref_id : None ,
150
150
span : data. span ,
151
151
name : data. name ,
152
152
value : String :: new ( ) ,
@@ -157,7 +157,7 @@ impl From<UseData> for Import {
157
157
fn from ( data : UseData ) -> Import {
158
158
Import {
159
159
kind : ImportKind :: Use ,
160
- id : From :: from ( data . id ) ,
160
+ ref_id : data . mod_id . map ( |id| From :: from ( id ) ) ,
161
161
span : data. span ,
162
162
name : data. name ,
163
163
value : String :: new ( ) ,
@@ -168,7 +168,7 @@ impl From<UseGlobData> for Import {
168
168
fn from ( data : UseGlobData ) -> Import {
169
169
Import {
170
170
kind : ImportKind :: GlobUse ,
171
- id : From :: from ( data . id ) ,
171
+ ref_id : None ,
172
172
span : data. span ,
173
173
name : "*" . to_owned ( ) ,
174
174
value : data. names . join ( ", " ) ,
You can’t perform that action at this time.
0 commit comments