mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
internal: Treat the self param as different from patterns when lowering
This commit is contained in:
parent
0931361b8f
commit
458f4a2960
18 changed files with 256 additions and 144 deletions
|
@ -74,6 +74,10 @@ pub(super) fn hints(
|
|||
Ok(s) => s.value.text_range(),
|
||||
Err(_) => continue,
|
||||
},
|
||||
MirSpan::SelfParam => match source_map.self_param_syntax() {
|
||||
Some(s) => s.value.text_range(),
|
||||
None => continue,
|
||||
},
|
||||
MirSpan::Unknown => continue,
|
||||
};
|
||||
let binding = &hir.bindings[*binding];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue