Tom Dohrmann
|
7b20904e8b
|
hide keyword suggestions in non trivial paths
|
2021-07-21 12:53:50 +02:00 |
|
bors[bot]
|
c69f762f26
|
Merge #9356
9356: internal: Move out and regroup more completion tests r=Veykril a=Veykril
bors r+
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
|
2021-06-21 13:15:12 +00:00 |
|
Lukas Wirth
|
0729913525
|
Various keyword completion fixes
|
2021-06-21 15:14:28 +02:00 |
|
Aleksey Kladov
|
9a3eae8755
|
fix: don't add duplicate & during completion
|
2021-06-20 19:37:58 +03:00 |
|
Aleksey Kladov
|
2e4df27132
|
minor: use minicore
|
2021-06-18 22:25:35 +03:00 |
|
bors[bot]
|
ce926aebc4
|
Merge #9315
9315: Nest all the or-patterns! r=Veykril a=Veykril
`cargo +nightly clippy --fix -Z unstable-options --allow-dirty -- -A clippy::all -D clippy::unnested_or_patterns`
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
|
2021-06-17 16:22:32 +00:00 |
|
Lukas Wirth
|
95c8c65139
|
Nest all the or-patterns!
|
2021-06-17 17:37:14 +02:00 |
|
Lukas Wirth
|
2a48b53220
|
Correct completions in items tests
|
2021-06-17 15:43:21 +02:00 |
|
Lukas Wirth
|
9353f36516
|
Fix incorrect completions in empty braced use statement
|
2021-06-17 13:59:31 +02:00 |
|
Lukas Wirth
|
2225db2eb4
|
Refine self , super and crate completion in use paths
|
2021-06-17 13:56:55 +02:00 |
|
Lukas Wirth
|
aa644b5585
|
Move test_utils into tests module
|
2021-06-16 21:51:52 +02:00 |
|
Lukas Wirth
|
11115ebad8
|
Don't complete paths after attributes
|
2021-06-16 21:51:21 +02:00 |
|
Lukas Wirth
|
9ea6ee6b27
|
Don't show incorrect completions after unsafe or visiblity node
|
2021-06-16 21:51:20 +02:00 |
|
Lukas Wirth
|
1a8f76a224
|
Don't complete visibility accessors after existing ones
|
2021-06-16 21:51:20 +02:00 |
|
Lukas Wirth
|
354ad29493
|
Filter out non-type completions in the respective completions modules instead
|
2021-06-16 15:08:44 +02:00 |
|
Maan2003
|
75370312fb
|
clippy::redundant_closure
|
2021-06-13 09:29:36 +05:30 |
|
Maan2003
|
c9b4ac5be4
|
clippy::redudant_borrow
|
2021-06-13 09:24:16 +05:30 |
|
Lukas Wirth
|
1d74ef1d98
|
Don't complete values in type position
|
2021-06-08 16:50:10 +02:00 |
|
Lukas Wirth
|
2987e05f15
|
simplify
|
2021-06-07 20:45:17 +02:00 |
|
Lukas Wirth
|
b29e8ed994
|
Remove unnecessary completion::macro_in_item_position
|
2021-06-07 19:46:25 +02:00 |
|
Lukas Wirth
|
aa29364f83
|
Reorder CompletionContext fields
|
2021-06-07 19:06:03 +02:00 |
|
Lukas Wirth
|
4eabcb2c01
|
Move more things into PathCompletionContext
|
2021-06-07 14:08:05 +02:00 |
|
Lukas Wirth
|
e475bcdcc6
|
Simplify CompletionContext by introducing a path CallKind enum
|
2021-06-06 20:02:26 +02:00 |
|
Matthias Krüger
|
9452dfaac7
|
NFC: remove redundant clones (clippy::perf)
|
2021-06-03 15:32:46 +02:00 |
|
Lukas Wirth
|
76fd1b316f
|
Remove obsolete is_new_item field on CompletionContext
|
2021-06-02 17:12:36 +02:00 |
|
Lukas Wirth
|
9271941a95
|
Add MethodCall and FieldAccess variants to ImmediateLocation
|
2021-06-02 15:21:18 +02:00 |
|
Lukas Wirth
|
5660408f0a
|
Move more fields to ImmediateLocation
|
2021-05-30 21:35:01 +02:00 |
|
Lukas Wirth
|
47ad752e6c
|
Implement prev sibling determination for CompletionContext
|
2021-05-28 22:03:31 +02:00 |
|
Lukas Wirth
|
a6b92a8cc0
|
simplify
|
2021-05-28 20:46:09 +02:00 |
|
Lukas Wirth
|
9e71dd9799
|
Only complete modules in empty use-statements
|
2021-05-28 02:42:47 +02:00 |
|
Lukas Wirth
|
3a16950fd9
|
Cleanup ImmediateLocation determination
|
2021-05-27 18:16:39 +02:00 |
|
Lukas Wirth
|
f41c983424
|
Don't complete non-macro item paths in impls and modules
|
2021-05-27 12:23:36 +02:00 |
|
Lukas Wirth
|
30948e1ecb
|
simplify
|
2021-05-27 03:47:20 +02:00 |
|
Lukas Wirth
|
6ec4ea8d9e
|
simplify
|
2021-05-27 03:15:48 +02:00 |
|
Lukas Wirth
|
7de925b8ab
|
Collapse more CompletionContext booleans into enums
|
2021-05-27 02:54:49 +02:00 |
|
Lukas Wirth
|
1f897f7319
|
Set record_pat_syntax more precisely in CompletionContext
|
2021-05-26 23:46:00 +02:00 |
|
Lukas Wirth
|
7d865ef071
|
Merge pattern completion related bools into an enum
|
2021-05-26 22:39:47 +02:00 |
|
Lukas Wirth
|
26e784a575
|
simplify
|
2021-05-26 21:09:27 +02:00 |
|
Aleksey Kladov
|
45112aa8c0
|
internal: rename hypothetical -> speculative
Lets steal this good naming from Roslyn before I forget about it yet
again.
|
2021-05-24 22:21:25 +03:00 |
|
Florian Diebold
|
b8262099cc
|
Get rid of field_type again
|
2021-05-23 23:54:35 +02:00 |
|
Florian Diebold
|
e65803748d
|
Infer correct expected type in closure
Sadly currently only works if the closure body isn't completely missing.
|
2021-05-23 18:45:44 +02:00 |
|
Florian Diebold
|
7a0c93c58a
|
Infer correct expected type for generic struct fields
|
2021-05-23 18:45:44 +02:00 |
|
Florian Diebold
|
4a6cdd776d
|
Record method call substs and use them in call info
|
2021-05-23 18:24:21 +02:00 |
|
Lukas Wirth
|
174f043c8d
|
Add = to pattern recovery
|
2021-05-08 23:14:08 +02:00 |
|
Kirill Bulatov
|
607d8a2f61
|
Small macro fix
|
2021-05-06 20:12:30 +03:00 |
|
Aleksey Kladov
|
6a16ec52aa
|
internal: use API stabilized in 1.52
|
2021-05-06 20:12:15 +03:00 |
|
Lukas Tobias Wirth
|
121bd5c533
|
Make CompletionContext expected_type smarter
|
2021-05-03 21:34:34 +02:00 |
|
Aleksey Kladov
|
cb3ef552e8
|
internal: normalize name
All def types in hir are unsubstituted
|
2021-04-30 11:52:31 +03:00 |
|
Lukas Wirth
|
f3c7499be5
|
Add ' to trigger_characters, allowing more direct lifetime completions
|
2021-03-21 11:05:04 +01:00 |
|
Lukas Wirth
|
64957acb5f
|
Fix incorrect scoping in while expressions
|
2021-03-21 01:28:42 +01:00 |
|