File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1037,7 +1037,7 @@ pub(crate) fn hir_attr_lists<'a, I: IntoIterator<Item = &'a hir::Attribute>>(
10371037/// This type keeps track of (doc) cfg information as we go down the item tree.
10381038#[ derive( Clone , Debug ) ]
10391039pub ( crate ) struct CfgInfo {
1040- /// List of currently active `doc(auto_cfg(hide(...)))` cfgs,minus currently active
1040+ /// List of currently active `doc(auto_cfg(hide(...)))` cfgs, minus currently active
10411041 /// `doc(auto_cfg(show(...)))` cfgs.
10421042 hidden_cfg : FxHashSet < Cfg > ,
10431043 /// Current computed `cfg`. Each time we enter a new item, this field is updated as well while
@@ -1054,13 +1054,11 @@ pub(crate) struct CfgInfo {
10541054impl Default for CfgInfo {
10551055 fn default ( ) -> Self {
10561056 Self {
1057- hidden_cfg : [
1057+ hidden_cfg : FxHashSet :: from_iter ( [
10581058 Cfg :: Cfg ( sym:: test, None ) ,
10591059 Cfg :: Cfg ( sym:: doc, None ) ,
10601060 Cfg :: Cfg ( sym:: doctest, None ) ,
1061- ]
1062- . into_iter ( )
1063- . collect ( ) ,
1061+ ] ) ,
10641062 current_cfg : Cfg :: True ,
10651063 auto_cfg_active : true ,
10661064 parent_is_doc_cfg : false ,
You can’t perform that action at this time.
0 commit comments