mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-18 11:20:36 +00:00
Lower ast::Ident to hir::Path when lowering RangePats
This commit is contained in:
parent
94b00c210c
commit
8956b1e1ba
9 changed files with 139 additions and 58 deletions
|
|
@ -347,7 +347,7 @@ impl SourceToDefCtx<'_, '_> {
|
|||
&mut self,
|
||||
src: InFile<&ast::IdentPat>,
|
||||
) -> Option<(DefWithBodyId, BindingId)> {
|
||||
let container = self.find_pat_or_label_container(src.syntax_ref())?;
|
||||
let container = dbg!(self.find_pat_or_label_container(src.syntax_ref()))?;
|
||||
let (body, source_map) = self.db.body_with_source_map(container);
|
||||
let src = src.cloned().map(ast::Pat::from);
|
||||
let pat_id = source_map.node_pat(src.as_ref())?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue