Skip to content

Commit 30d6f63

Browse files
committed
Adjust some pubs.
1 parent 8dc84fa commit 30d6f63

32 files changed

+81
-81
lines changed

compiler/rustc_builtin_macros/src/alloc_error_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use rustc_span::symbol::{kw, sym, Ident};
99
use rustc_span::Span;
1010
use thin_vec::{thin_vec, ThinVec};
1111

12-
pub fn expand(
12+
pub(crate) fn expand(
1313
ecx: &mut ExtCtxt<'_>,
1414
_span: Span,
1515
meta_item: &ast::MetaItem,

compiler/rustc_builtin_macros/src/assert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use rustc_span::symbol::{sym, Ident, Symbol};
1515
use rustc_span::{Span, DUMMY_SP};
1616
use thin_vec::thin_vec;
1717

18-
pub fn expand_assert<'cx>(
18+
pub(crate) fn expand_assert<'cx>(
1919
cx: &'cx mut ExtCtxt<'_>,
2020
span: Span,
2121
tts: TokenStream,

compiler/rustc_builtin_macros/src/cfg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use rustc_errors::PResult;
1111
use rustc_expand::base::{DummyResult, ExpandResult, ExtCtxt, MacEager, MacroExpanderResult};
1212
use rustc_span::Span;
1313

14-
pub fn expand_cfg(
14+
pub(crate) fn expand_cfg(
1515
cx: &mut ExtCtxt<'_>,
1616
sp: Span,
1717
tts: TokenStream,

compiler/rustc_builtin_macros/src/compile_error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rustc_ast::tokenstream::TokenStream;
55
use rustc_expand::base::{DummyResult, ExpandResult, ExtCtxt, MacroExpanderResult};
66
use rustc_span::Span;
77

8-
pub fn expand_compile_error<'cx>(
8+
pub(crate) fn expand_compile_error<'cx>(
99
cx: &'cx mut ExtCtxt<'_>,
1010
sp: Span,
1111
tts: TokenStream,

compiler/rustc_builtin_macros/src/concat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use rustc_expand::base::{DummyResult, ExpandResult, ExtCtxt, MacEager, MacroExpa
66
use rustc_session::errors::report_lit_error;
77
use rustc_span::symbol::Symbol;
88

9-
pub fn expand_concat(
9+
pub(crate) fn expand_concat(
1010
cx: &mut ExtCtxt<'_>,
1111
sp: rustc_span::Span,
1212
tts: TokenStream,

compiler/rustc_builtin_macros/src/concat_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ fn handle_array_element(
107107
None
108108
}
109109

110-
pub fn expand_concat_bytes(
110+
pub(crate) fn expand_concat_bytes(
111111
cx: &mut ExtCtxt<'_>,
112112
sp: Span,
113113
tts: TokenStream,

compiler/rustc_builtin_macros/src/concat_idents.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rustc_span::Span;
88

99
use crate::errors;
1010

11-
pub fn expand_concat_idents<'cx>(
11+
pub(crate) fn expand_concat_idents<'cx>(
1212
cx: &'cx mut ExtCtxt<'_>,
1313
sp: Span,
1414
tts: TokenStream,

compiler/rustc_builtin_macros/src/deriving/bounds.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use rustc_ast::MetaItem;
55
use rustc_expand::base::{Annotatable, ExtCtxt};
66
use rustc_span::Span;
77

8-
pub fn expand_deriving_copy(
8+
pub(crate) fn expand_deriving_copy(
99
cx: &ExtCtxt<'_>,
1010
span: Span,
1111
mitem: &MetaItem,
@@ -28,7 +28,7 @@ pub fn expand_deriving_copy(
2828
trait_def.expand(cx, mitem, item, push);
2929
}
3030

31-
pub fn expand_deriving_const_param_ty(
31+
pub(crate) fn expand_deriving_const_param_ty(
3232
cx: &ExtCtxt<'_>,
3333
span: Span,
3434
mitem: &MetaItem,

compiler/rustc_builtin_macros/src/deriving/clone.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rustc_span::symbol::{kw, sym, Ident};
88
use rustc_span::Span;
99
use thin_vec::{thin_vec, ThinVec};
1010

11-
pub fn expand_deriving_clone(
11+
pub(crate) fn expand_deriving_clone(
1212
cx: &ExtCtxt<'_>,
1313
span: Span,
1414
mitem: &MetaItem,

compiler/rustc_builtin_macros/src/deriving/cmp/eq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use rustc_span::symbol::sym;
99
use rustc_span::Span;
1010
use thin_vec::{thin_vec, ThinVec};
1111

12-
pub fn expand_deriving_eq(
12+
pub(crate) fn expand_deriving_eq(
1313
cx: &ExtCtxt<'_>,
1414
span: Span,
1515
mitem: &MetaItem,

0 commit comments

Comments
 (0)