about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/query
diff options
context:
space:
mode:
authorSantiago Pastorino <spastorino@gmail.com>2020-11-24 17:36:36 -0300
committerSantiago Pastorino <spastorino@gmail.com>2020-11-27 11:23:52 -0300
commit67ea9b227f7e7f5599ff9e194566ae769e34847d (patch)
treede7d139eb35013271bd9642d718e1024b6bc2988 /compiler/rustc_middle/src/query
parent1895e52505b59f49e6675376c44ad8e251c4501c (diff)
downloadrust-67ea9b227f7e7f5599ff9e194566ae769e34847d.tar.gz
rust-67ea9b227f7e7f5599ff9e194566ae769e34847d.zip
Make super_traits_of return Lrc for cheaper clone
Diffstat (limited to 'compiler/rustc_middle/src/query')
-rw-r--r--compiler/rustc_middle/src/query/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs
index 925a05c879b..aba534ac19f 100644
--- a/compiler/rustc_middle/src/query/mod.rs
+++ b/compiler/rustc_middle/src/query/mod.rs
@@ -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) }
         }