about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-06-28 12:16:12 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2022-07-01 06:35:14 +1000
commit57d56891d226836d2fa88e03dcf07a4fd829ebfc (patch)
tree9589f1b18989ac6e631303250c9fb84ed1a1863e
parent89f6917a49df12f16cbbf0479143d6d5bc3e8ae2 (diff)
downloadrust-57d56891d226836d2fa88e03dcf07a4fd829ebfc.tar.gz
rust-57d56891d226836d2fa88e03dcf07a4fd829ebfc.zip
Remove some unnecessary `pub`s.
-rw-r--r--compiler/rustc_builtin_macros/src/deriving/generic/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs b/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
index 0b2f62cacc2..3a7295a76a3 100644
--- a/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
+++ b/compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
@@ -1576,7 +1576,7 @@ impl<'a> TraitDef<'a> {
 
 // helpful premade recipes
 
-pub fn cs_fold_fields<'a, F>(
+fn cs_fold_fields<'a, F>(
     use_foldl: bool,
     mut f: F,
     base: P<Expr>,
@@ -1598,7 +1598,7 @@ where
     }
 }
 
-pub fn cs_fold_enumnonmatch(
+fn cs_fold_enumnonmatch(
     mut enum_nonmatch_f: EnumNonMatchCollapsedFunc<'_>,
     cx: &mut ExtCtxt<'_>,
     trait_span: Span,
@@ -1610,7 +1610,7 @@ pub fn cs_fold_enumnonmatch(
     }
 }
 
-pub fn cs_fold_static(cx: &mut ExtCtxt<'_>, trait_span: Span) -> P<Expr> {
+fn cs_fold_static(cx: &mut ExtCtxt<'_>, trait_span: Span) -> P<Expr> {
     cx.span_bug(trait_span, "static function in `derive`")
 }