mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Basic injections
This commit is contained in:
parent
8ed7e751b6
commit
c6247f74c7
5 changed files with 120 additions and 23 deletions
|
@ -51,8 +51,8 @@ fn type_at(content: &str) -> String {
|
|||
type_at_pos(&db, file_pos)
|
||||
}
|
||||
|
||||
fn infer(content: &str) -> String {
|
||||
infer_with_mismatches(content, false)
|
||||
fn infer(ra_fixture: &str) -> String {
|
||||
infer_with_mismatches(ra_fixture, false)
|
||||
}
|
||||
|
||||
fn infer_with_mismatches(content: &str, include_mismatches: bool) -> String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue