File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2371,7 +2371,7 @@ fn filter_tokens_from_list(
2371
2371
tokens
2372
2372
}
2373
2373
2374
- /// When inlining items, we merge its attributes (and all the reexports attributes too) with the
2374
+ /// When inlining items, we merge their attributes (and all the reexports attributes too) with the
2375
2375
/// final reexport. For example:
2376
2376
///
2377
2377
/// ```ignore (just an example)
Original file line number Diff line number Diff line change @@ -956,6 +956,8 @@ pub(crate) trait AttributesExt {
956
956
. filter_map ( |attr| Cfg :: parse ( attr. meta_item ( ) ?) . ok ( ) )
957
957
. fold ( Cfg :: True , |cfg, new_cfg| cfg & new_cfg)
958
958
} else if doc_auto_cfg_active {
959
+ // If there is no `doc(cfg())`, then we retrieve the `cfg()` attributes (because
960
+ // `doc(cfg())` overrides `cfg()`).
959
961
self . iter ( )
960
962
. filter ( |attr| attr. has_name ( sym:: cfg) )
961
963
. filter_map ( |attr| single ( attr. meta_item_list ( ) ?) )
@@ -2387,6 +2389,7 @@ impl ImplKind {
2387
2389
#[ derive( Clone , Debug ) ]
2388
2390
pub ( crate ) struct Import {
2389
2391
pub ( crate ) kind : ImportKind ,
2392
+ /// The item being re-exported.
2390
2393
pub ( crate ) source : ImportSource ,
2391
2394
pub ( crate ) should_be_displayed : bool ,
2392
2395
}
Original file line number Diff line number Diff line change 1
- // This test ensures that a re-export of `#[doc(hidden)]` item inside a private
1
+ // This test ensures that a re-export of `#[doc(hidden)]` item inside a private
2
2
// module will still be displayed (the re-export, not the item).
3
3
4
4
#![ crate_name = "foo" ]
You can’t perform that action at this time.
0 commit comments