Make super_traits_of return Lrc for cheaper clone
This commit is contained in:
parent
1895e52505
commit
67ea9b227f
2 changed files with 5 additions and 3 deletions
|
@ -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) }
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue