mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
internal: Enforce Resolver to always have a module scope
This commit is contained in:
parent
ef92453dfe
commit
75689f2ad8
71 changed files with 360 additions and 398 deletions
|
@ -635,7 +635,7 @@ impl Analysis {
|
|||
self.with_db(|db| {
|
||||
let rule: ide_ssr::SsrRule = query.parse()?;
|
||||
let mut match_finder =
|
||||
ide_ssr::MatchFinder::in_context(db, resolve_context, selections);
|
||||
ide_ssr::MatchFinder::in_context(db, resolve_context, selections)?;
|
||||
match_finder.add_rule(rule)?;
|
||||
let edits = if parse_only { Default::default() } else { match_finder.edits() };
|
||||
Ok(SourceChange::from(edits))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue