File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -503,13 +503,13 @@ impl From<clean::Import> for Import {
503
503
use clean:: ImportKind :: * ;
504
504
match import. kind {
505
505
Simple ( s) => Import {
506
- span : import. source . path . whole_name ( ) ,
506
+ source : import. source . path . whole_name ( ) ,
507
507
name : s. to_string ( ) ,
508
508
id : import. source . did . map ( from_def_id) ,
509
509
glob : false ,
510
510
} ,
511
511
Glob => Import {
512
- span : import. source . path . whole_name ( ) ,
512
+ source : import. source . path . whole_name ( ) ,
513
513
name : import. source . path . last_name ( ) . to_string ( ) ,
514
514
id : import. source . did . map ( from_def_id) ,
515
515
glob : true ,
Original file line number Diff line number Diff line change @@ -461,7 +461,7 @@ pub struct Impl {
461
461
#[ serde( rename_all = "snake_case" ) ]
462
462
pub struct Import {
463
463
/// The full path being imported.
464
- pub span : String ,
464
+ pub source : String ,
465
465
/// May be different from the last segment of `source` when renaming imports:
466
466
/// `use source as name;`
467
467
pub name : String ,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ pub mod l1 {
24
24
// @has - "$.index[*][?(@.name=='l3')].inner.items[*]" $l4_id
25
25
pub struct L4 ;
26
26
}
27
- // @is nested.json "$.index[*][?(@.inner.span =='l3::L4')].kind" \"import\"
28
- // @is - "$.index[*][?(@.inner.span =='l3::L4')].inner.glob" false
27
+ // @is nested.json "$.index[*][?(@.inner.source =='l3::L4')].kind" \"import\"
28
+ // @is - "$.index[*][?(@.inner.source =='l3::L4')].inner.glob" false
29
29
pub use l3:: L4 ;
30
30
}
You can’t perform that action at this time.
0 commit comments