Aleksey Kladov
a3a8ad8bc4
Don't rely on display names in inlay_hints
2020-10-20 18:14:14 +02:00
Aleksey Kladov
3b1a648539
More type safety around names
2020-10-20 17:09:03 +02:00
Aleksey Kladov
af4e75533f
Rename declaration_name -> display_name
...
Declaration names sounds like a name of declaration -- something you
can use for analysis. It empathically isn't, and is just a label
displayed in various UI. It's important not to confuse the two, least
we accidentally mix semantics with UI (I believe, there's already a
case of this in the FamousDefs at least).
2020-10-20 15:38:11 +02:00
Lukas Wirth
ed59512d02
Fix iterator hint shortening heuristic
2020-10-12 17:18:21 +02:00
Kirill Bulatov
2bb80a4f03
Also replace the associated types with iter
2020-10-10 21:39:57 +03:00
Kirill Bulatov
9a72b7bccd
Add a test
2020-10-10 20:02:38 +03:00
Lukas Wirth
783af171f7
Clean up inlay_hints
2020-10-07 13:18:12 +02:00
Lukas Wirth
e106857e80
Shorten iterator hints for std::iter iterators behind references
2020-10-07 12:14:08 +02:00
Lukas Wirth
209e9b9926
Shorten iterator chain hints
2020-10-07 11:30:42 +02:00
Lukas Wirth
c133651e0a
Move IntoIterator into FamousDefs
2020-10-07 10:14:42 +02:00
Lukas Wirth
c6f1de6ac5
Use FamousDefs for shorten_iterator hint
2020-10-06 21:25:39 +02:00
Lukas Wirth
aaa3905fdd
Shorten type hints for std::iter Iterators
2020-10-06 19:20:42 +02:00
Lukas Wirth
643bbf15a2
Fix trait object hir formatting behind pointer and references
2020-10-06 14:40:27 +02:00
Igor Aleksanov
3cadba4956
Improve readability in inlay_hints.rs
2020-10-03 13:44:43 +03:00
Igor Aleksanov
91a09f50f4
Remove 'for_expr' test from inlay_hints.rs
2020-10-03 08:58:17 +03:00
Igor Aleksanov
a58441ad1b
Make the tests for complete/incomplete for inlay hints work
2020-10-03 08:37:58 +03:00
Igor Aleksanov
8ca214fbfb
Better inlay hints in 'for' loops
2020-10-03 08:30:25 +03:00
Aleksey Kladov
b06259673f
rename mock_analysis -> fixture
2020-10-02 17:49:44 +02:00
Aleksey Kladov
b0fd3faf36
Switch to expect_test from crates.io
2020-08-21 13:19:31 +02:00
Dave Lage
d31634940d
Fix typo in comment
2020-08-15 16:37:44 -04:00
Aleksey Kladov
1b0c7701cc
Rename ra_ide -> ide
2020-08-13 17:58:27 +02:00