File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/rustc_builtin_macros/src/deriving/generic Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1576,7 +1576,7 @@ impl<'a> TraitDef<'a> {
1576
1576
1577
1577
// helpful premade recipes
1578
1578
1579
- pub fn cs_fold_fields < ' a , F > (
1579
+ fn cs_fold_fields < ' a , F > (
1580
1580
use_foldl : bool ,
1581
1581
mut f : F ,
1582
1582
base : P < Expr > ,
@@ -1598,7 +1598,7 @@ where
1598
1598
}
1599
1599
}
1600
1600
1601
- pub fn cs_fold_enumnonmatch (
1601
+ fn cs_fold_enumnonmatch (
1602
1602
mut enum_nonmatch_f : EnumNonMatchCollapsedFunc < ' _ > ,
1603
1603
cx : & mut ExtCtxt < ' _ > ,
1604
1604
trait_span : Span ,
@@ -1610,7 +1610,7 @@ pub fn cs_fold_enumnonmatch(
1610
1610
}
1611
1611
}
1612
1612
1613
- pub fn cs_fold_static ( cx : & mut ExtCtxt < ' _ > , trait_span : Span ) -> P < Expr > {
1613
+ fn cs_fold_static ( cx : & mut ExtCtxt < ' _ > , trait_span : Span ) -> P < Expr > {
1614
1614
cx. span_bug ( trait_span, "static function in `derive`" )
1615
1615
}
1616
1616
You can’t perform that action at this time.
0 commit comments