mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Refactor SSR so that placeholders store a Var
This allows lookup of placeholder bindings given a placeholder without needing to create a Var instance.
This commit is contained in:
parent
674af600f1
commit
c84f98385a
4 changed files with 26 additions and 18 deletions
|
@ -31,7 +31,7 @@ fn parser_two_delimiters() {
|
|||
fn parser_repeated_name() {
|
||||
assert_eq!(
|
||||
parse_error_text("foo($a, $a) ==>>"),
|
||||
"Parse error: Name `a` repeats more than once"
|
||||
"Parse error: Placeholder `$a` repeats more than once"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue