Skip to content

Commit 253da5d

Browse files
committed
Reduce visibilities.
1 parent 5e3cea6 commit 253da5d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

compiler/rustc_middle/src/ty/query/on_disk_cache.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl<'sess> OnDiskCache<'sess> {
176176
}
177177
}
178178

179-
pub fn serialize<'tcx>(
179+
crate fn serialize<'tcx>(
180180
&self,
181181
tcx: TyCtxt<'tcx>,
182182
encoder: &mut opaque::Encoder,
@@ -349,7 +349,7 @@ impl<'sess> OnDiskCache<'sess> {
349349
}
350350

351351
/// Loads a diagnostic emitted during the previous compilation session.
352-
pub fn load_diagnostics(
352+
crate fn load_diagnostics(
353353
&self,
354354
tcx: TyCtxt<'_>,
355355
dep_node_index: SerializedDepNodeIndex,
@@ -365,7 +365,7 @@ impl<'sess> OnDiskCache<'sess> {
365365
/// the next compilation session.
366366
#[inline(never)]
367367
#[cold]
368-
pub fn store_diagnostics(
368+
crate fn store_diagnostics(
369369
&self,
370370
dep_node_index: DepNodeIndex,
371371
diagnostics: ThinVec<Diagnostic>,
@@ -394,7 +394,7 @@ impl<'sess> OnDiskCache<'sess> {
394394
/// 1:1 relationship between query-key and `DepNode`.
395395
#[inline(never)]
396396
#[cold]
397-
pub fn store_diagnostics_for_anon_node(
397+
crate fn store_diagnostics_for_anon_node(
398398
&self,
399399
dep_node_index: DepNodeIndex,
400400
diagnostics: ThinVec<Diagnostic>,
@@ -973,7 +973,7 @@ where
973973
struct IntEncodedWithFixedSize(u64);
974974

975975
impl IntEncodedWithFixedSize {
976-
pub const ENCODED_SIZE: usize = 8;
976+
const ENCODED_SIZE: usize = 8;
977977
}
978978

979979
impl Encodable<opaque::Encoder> for IntEncodedWithFixedSize {

0 commit comments

Comments
 (0)