aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-03-15 12:13:01 +0000
committerGitHub <[email protected]>2021-03-15 12:13:01 +0000
commitb4446cdd06caa32e1e9e255312a15feb770d4935 (patch)
tree5a9d98a215a2adf82dbd2d3c9b74602e0c7debf8 /crates/ide
parent5138baf2ac742de601f29d22fc64e386da56c4c2 (diff)
parentaf2366acdf1321702e54e01c88052ed5a674716c (diff)
Merge #8025
8025: Goto definition works for `S { a: }` case r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide')
-rw-r--r--crates/ide/src/goto_definition.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/ide/src/goto_definition.rs b/crates/ide/src/goto_definition.rs
index abed1969e..e8f31e4b1 100644
--- a/crates/ide/src/goto_definition.rs
+++ b/crates/ide/src/goto_definition.rs
@@ -1161,4 +1161,15 @@ struct S;
1161"#, 1161"#,
1162 ) 1162 )
1163 } 1163 }
1164
1165 #[test]
1166 fn goto_incomplete_field() {
1167 check(
1168 r#"
1169struct A { a: u32 }
1170 //^
1171fn foo() { A { a$0: }; }
1172"#,
1173 )
1174 }
1164} 1175}