Skip to content

Replace DepKind by trait objects #78314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 18 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reduce visibilities.
  • Loading branch information
cjgillot committed Oct 24, 2020
commit 253da5dbd9a0853ff6989ca8ca15b428cbb1a61c
10 changes: 5 additions & 5 deletions compiler/rustc_middle/src/ty/query/on_disk_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl<'sess> OnDiskCache<'sess> {
}
}

pub fn serialize<'tcx>(
crate fn serialize<'tcx>(
&self,
tcx: TyCtxt<'tcx>,
encoder: &mut opaque::Encoder,
Expand Down Expand Up @@ -349,7 +349,7 @@ impl<'sess> OnDiskCache<'sess> {
}

/// Loads a diagnostic emitted during the previous compilation session.
pub fn load_diagnostics(
crate fn load_diagnostics(
&self,
tcx: TyCtxt<'_>,
dep_node_index: SerializedDepNodeIndex,
Expand All @@ -365,7 +365,7 @@ impl<'sess> OnDiskCache<'sess> {
/// the next compilation session.
#[inline(never)]
#[cold]
pub fn store_diagnostics(
crate fn store_diagnostics(
&self,
dep_node_index: DepNodeIndex,
diagnostics: ThinVec<Diagnostic>,
Expand Down Expand Up @@ -394,7 +394,7 @@ impl<'sess> OnDiskCache<'sess> {
/// 1:1 relationship between query-key and `DepNode`.
#[inline(never)]
#[cold]
pub fn store_diagnostics_for_anon_node(
crate fn store_diagnostics_for_anon_node(
&self,
dep_node_index: DepNodeIndex,
diagnostics: ThinVec<Diagnostic>,
Expand Down Expand Up @@ -973,7 +973,7 @@ where
struct IntEncodedWithFixedSize(u64);

impl IntEncodedWithFixedSize {
pub const ENCODED_SIZE: usize = 8;
const ENCODED_SIZE: usize = 8;
}

impl Encodable<opaque::Encoder> for IntEncodedWithFixedSize {
Expand Down