mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Fix name fetching being incorrect for asm operands
This commit is contained in:
parent
564926ac99
commit
c075a9980e
10 changed files with 107 additions and 93 deletions
|
@ -576,7 +576,7 @@ impl<'db> SemanticsImpl<'db> {
|
|||
let (owner, (expr, asm_parts)) = source_analyzer.as_asm_parts(asm.as_ref())?;
|
||||
let res = asm_parts
|
||||
.iter()
|
||||
.map(|&(range, index, _)| {
|
||||
.map(|&(range, index)| {
|
||||
(
|
||||
range + quote.end(),
|
||||
Some(Either::Right(InlineAsmOperand { owner, expr, index })),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue