]> git.lizzy.rs Git - rust.git/blobdiff - crates/hir/src/semantics.rs
fix: insert whitespaces into assoc items for assist when macro generated
[rust.git] / crates / hir / src / semantics.rs
index ed1b2f64fd1d155bafbec72a005d2f9082a14c1f..75f6b025779587ec935b97b721005d16a043ba8f 100644 (file)
@@ -1164,8 +1164,7 @@ pub fn krate(&self) -> Option<Crate> {
     }
 
     /// Note: `FxHashSet<TraitId>` should be treated as an opaque type, passed into `Type
-    // FIXME: rename to visible_traits to not repeat scope?
-    pub fn traits_in_scope(&self) -> FxHashSet<TraitId> {
+    pub fn visible_traits(&self) -> FxHashSet<TraitId> {
         let resolver = &self.resolver;
         resolver.traits_in_scope(self.db.upcast())
     }