Skip to content

Commit 268ab6d

Browse files
committed
Reduce visibilities.
1 parent 20ecbbb commit 268ab6d

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ impl<'sess> OnDiskCache<'sess> {
240240
}
241241
}
242242

243-
pub fn serialize<'tcx>(
243+
crate fn serialize<'tcx>(
244244
&self,
245245
tcx: TyCtxt<'tcx>,
246246
encoder: &mut opaque::Encoder,
@@ -422,7 +422,7 @@ impl<'sess> OnDiskCache<'sess> {
422422
}
423423

424424
/// Loads a diagnostic emitted during the previous compilation session.
425-
pub fn load_diagnostics(
425+
crate fn load_diagnostics(
426426
&self,
427427
tcx: TyCtxt<'_>,
428428
dep_node_index: SerializedDepNodeIndex,
@@ -438,7 +438,7 @@ impl<'sess> OnDiskCache<'sess> {
438438
/// the next compilation session.
439439
#[inline(never)]
440440
#[cold]
441-
pub fn store_diagnostics(
441+
crate fn store_diagnostics(
442442
&self,
443443
dep_node_index: DepNodeIndex,
444444
diagnostics: ThinVec<Diagnostic>,
@@ -506,7 +506,7 @@ impl<'sess> OnDiskCache<'sess> {
506506
/// 1:1 relationship between query-key and `DepNode`.
507507
#[inline(never)]
508508
#[cold]
509-
pub fn store_diagnostics_for_anon_node(
509+
crate fn store_diagnostics_for_anon_node(
510510
&self,
511511
dep_node_index: DepNodeIndex,
512512
diagnostics: ThinVec<Diagnostic>,
@@ -1153,7 +1153,7 @@ where
11531153
struct IntEncodedWithFixedSize(u64);
11541154

11551155
impl IntEncodedWithFixedSize {
1156-
pub const ENCODED_SIZE: usize = 8;
1156+
const ENCODED_SIZE: usize = 8;
11571157
}
11581158

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

0 commit comments

Comments
 (0)