mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
fix: insert whitespaces into assoc items for assist when macro generated
This commit is contained in:
parent
328419534d
commit
749eeef3e7
8 changed files with 84 additions and 26 deletions
|
@ -1163,10 +1163,6 @@ impl<'a> SemanticsScope<'a> {
|
|||
Some(Crate { id: self.resolver.krate()? })
|
||||
}
|
||||
|
||||
pub fn in_macro_file(&self) -> bool {
|
||||
self.file_id.is_macro()
|
||||
}
|
||||
|
||||
/// Note: `FxHashSet<TraitId>` should be treated as an opaque type, passed into `Type
|
||||
pub fn visible_traits(&self) -> FxHashSet<TraitId> {
|
||||
let resolver = &self.resolver;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue