Skip to content

Commit dba52ce

Browse files
incr.comp.: Cache check_match query.
1 parent 8ac65af commit dba52ce

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

src/librustc/ty/maps/config.rs

+1
Original file line numberDiff line numberDiff line change
@@ -647,5 +647,6 @@ impl_disk_cacheable_query!(unsafety_check_result, |def_id| def_id.is_local());
647647
impl_disk_cacheable_query!(borrowck, |def_id| def_id.is_local());
648648
impl_disk_cacheable_query!(mir_borrowck, |def_id| def_id.is_local());
649649
impl_disk_cacheable_query!(mir_const_qualif, |def_id| def_id.is_local());
650+
impl_disk_cacheable_query!(check_match, |def_id| def_id.is_local());
650651
impl_disk_cacheable_query!(contains_extern_indicator, |_| true);
651652
impl_disk_cacheable_query!(def_symbol_name, |_| true);

src/librustc/ty/maps/on_disk_cache.rs

+1
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ impl<'sess> OnDiskCache<'sess> {
217217
encode_query_results::<contains_extern_indicator, _>(tcx, enc, qri)?;
218218
encode_query_results::<symbol_name, _>(tcx, enc, qri)?;
219219
encode_query_results::<trans_fulfill_obligation, _>(tcx, enc, qri)?;
220+
encode_query_results::<check_match, _>(tcx, enc, qri)?;
220221
}
221222

222223
// Encode diagnostics

src/librustc/ty/maps/plumbing.rs

+1
Original file line numberDiff line numberDiff line change
@@ -978,4 +978,5 @@ impl_load_from_cache!(
978978
SymbolName => def_symbol_name,
979979
ConstIsRvaluePromotableToStatic => const_is_rvalue_promotable_to_static,
980980
ContainsExternIndicator => contains_extern_indicator,
981+
CheckMatch => check_match,
981982
);

src/librustc/util/common.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub const FN_OUTPUT_NAME: &'static str = "Output";
2929

3030
// Useful type to use with `Result<>` indicate that an error has already
3131
// been reported to the user, so no need to continue checking.
32-
#[derive(Clone, Copy, Debug)]
32+
#[derive(Clone, Copy, Debug, RustcEncodable, RustcDecodable)]
3333
pub struct ErrorReported;
3434

3535
thread_local!(static TIME_DEPTH: Cell<usize> = Cell::new(0));

0 commit comments

Comments
 (0)