Skip to content

Commit

Permalink
Add caching for trans_fn_attrs query
Browse files Browse the repository at this point in the history
Part of #47320
  • Loading branch information
wesleywiser committed Mar 7, 2018
1 parent 368e586 commit e0f7527
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc/ty/maps/config.rs
Expand Up @@ -691,3 +691,4 @@ impl_disk_cacheable_query!(def_symbol_name, |_| true);
impl_disk_cacheable_query!(type_of, |def_id| def_id.is_local());
impl_disk_cacheable_query!(predicates_of, |def_id| def_id.is_local());
impl_disk_cacheable_query!(used_trait_imports, |def_id| def_id.is_local());
impl_disk_cacheable_query!(trans_fn_attrs, |_| true);
1 change: 1 addition & 0 deletions src/librustc/ty/maps/on_disk_cache.rs
Expand Up @@ -219,6 +219,7 @@ impl<'sess> OnDiskCache<'sess> {
encode_query_results::<const_is_rvalue_promotable_to_static, _>(tcx, enc, qri)?;
encode_query_results::<symbol_name, _>(tcx, enc, qri)?;
encode_query_results::<check_match, _>(tcx, enc, qri)?;
encode_query_results::<trans_fn_attrs, _>(tcx, enc, qri)?;
}

// Encode diagnostics
Expand Down
1 change: 1 addition & 0 deletions src/librustc/ty/maps/plumbing.rs
Expand Up @@ -998,4 +998,5 @@ impl_load_from_cache!(
GenericsOfItem => generics_of,
PredicatesOfItem => predicates_of,
UsedTraitImports => used_trait_imports,
TransFnAttrs => trans_fn_attrs,
);

0 comments on commit e0f7527

Please sign in to comment.