Skip to content

Commit 57d5689

Browse files
committed
Remove some unnecessary pubs.
1 parent 89f6917 commit 57d5689

File tree

1 file changed

+3
-3
lines changed
  • compiler/rustc_builtin_macros/src/deriving/generic

1 file changed

+3
-3
lines changed

compiler/rustc_builtin_macros/src/deriving/generic/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@ impl<'a> TraitDef<'a> {
15761576

15771577
// helpful premade recipes
15781578

1579-
pub fn cs_fold_fields<'a, F>(
1579+
fn cs_fold_fields<'a, F>(
15801580
use_foldl: bool,
15811581
mut f: F,
15821582
base: P<Expr>,
@@ -1598,7 +1598,7 @@ where
15981598
}
15991599
}
16001600

1601-
pub fn cs_fold_enumnonmatch(
1601+
fn cs_fold_enumnonmatch(
16021602
mut enum_nonmatch_f: EnumNonMatchCollapsedFunc<'_>,
16031603
cx: &mut ExtCtxt<'_>,
16041604
trait_span: Span,
@@ -1610,7 +1610,7 @@ pub fn cs_fold_enumnonmatch(
16101610
}
16111611
}
16121612

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> {
16141614
cx.span_bug(trait_span, "static function in `derive`")
16151615
}
16161616

0 commit comments

Comments
 (0)