@@ -2269,12 +2269,12 @@ impl Clean<Vec<Item>> for doctree::Import<'_> {
2269
2269
visibility : self . vis . clean ( cx) ,
2270
2270
stability : None ,
2271
2271
deprecation : None ,
2272
- inner : ImportItem ( Import :: Glob ( resolve_use_source ( cx, path) , false ) ) ,
2272
+ inner : ImportItem ( Import :: new_glob ( resolve_use_source ( cx, path) , false ) ) ,
2273
2273
} ) ;
2274
2274
return items;
2275
2275
}
2276
2276
}
2277
- Import :: Glob ( resolve_use_source ( cx, path) , true )
2277
+ Import :: new_glob ( resolve_use_source ( cx, path) , true )
2278
2278
} else {
2279
2279
let name = self . name ;
2280
2280
if !please_inline {
@@ -2297,9 +2297,6 @@ impl Clean<Vec<Item>> for doctree::Import<'_> {
2297
2297
Some ( self . attrs ) ,
2298
2298
& mut visited,
2299
2299
) {
2300
- // In case this is a macro, we don't want to show the reexport, only the macro
2301
- // itself.
2302
- let is_macro = matches ! ( path. res, Res :: Def ( DefKind :: Macro ( _) , _) ) ;
2303
2300
items. push ( Item {
2304
2301
name : None ,
2305
2302
attrs : self . attrs . clean ( cx) ,
@@ -2308,16 +2305,16 @@ impl Clean<Vec<Item>> for doctree::Import<'_> {
2308
2305
visibility : self . vis . clean ( cx) ,
2309
2306
stability : None ,
2310
2307
deprecation : None ,
2311
- inner : ImportItem ( Import :: Simple (
2308
+ inner : ImportItem ( Import :: new_simple (
2312
2309
self . name . clean ( cx) ,
2313
2310
resolve_use_source ( cx, path) ,
2314
- is_macro ,
2311
+ false ,
2315
2312
) ) ,
2316
2313
} ) ;
2317
2314
return items;
2318
2315
}
2319
2316
}
2320
- Import :: Simple ( name. clean ( cx) , resolve_use_source ( cx, path) , false )
2317
+ Import :: new_simple ( name. clean ( cx) , resolve_use_source ( cx, path) , true )
2321
2318
} ;
2322
2319
2323
2320
vec ! [ Item {
0 commit comments