1
Fork 0

Make super_traits_of return Lrc for cheaper clone

This commit is contained in:
Santiago Pastorino 2020-11-24 17:36:36 -03:00
parent 1895e52505
commit 67ea9b227f
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
2 changed files with 5 additions and 3 deletions

View file

@ -438,7 +438,7 @@ rustc_queries! {
/// Maps from the `DefId` of a trait to the list of
/// all the ancestors super traits.
query super_traits_of(key: DefId) -> FxHashSet<DefId> {
query super_traits_of(key: DefId) -> Lrc<FxHashSet<DefId>> {
desc { |tcx| "computing the super traits of `{}`", tcx.def_path_str(key) }
}