A4-Tacks
6bb1b88677
Add all any and not attribute completions
...
Example
---
`#[cfg($0)]` -> `#[cfg(any($0))]`
2025-09-28 08:42:18 +08:00
A4-Tacks
b7a2f21d58
Add cfg_attr predicate completion
...
Example
---
```rust
#[cfg_attr($0, must_use)]
struct Foo;
```
2025-09-04 15:04:29 +08:00
Chayim Refael Friedman
9c4a7705b1
Fix some things with builtin derives
...
1. Err on unions on derive where it's required.
2. Err on `#[derive(Default)]` on enums without `#[default]` variant.
3. Don't add where bounds `T: Default` when expanding `Default` on enums (structs need that, enums not).
Also, because I was annoyed by that, in minicore, add a way to filter on multiple flags in the line-filter (`// :`). This is required for the `Debug` and `Hash` derives, because the derive should be in the prelude but the trait not.
2025-07-03 23:05:56 +03:00
Ryan Mehri
7e8079fbad
feat: implement completion for diagnostic module
2025-06-02 20:56:20 -04:00
Vishruth-Thimmaiah
b21a5f83d2
refactor test helpers within ide-completions
2025-01-08 23:51:18 +05:30
Vishruth-Thimmaiah
cb0221d774
fix: do not offer completions within macro strings
2025-01-07 17:02:28 +05:30
Lukas Wirth
540ada516a
internal: Cleanup label structure of CompletionItem
2024-12-18 13:37:21 +01:00
Chayim Refael Friedman
890d155ffe
Complete derive helper attributes
...
Only their names, anything can go inside.
2024-12-04 08:20:41 +02:00
Chayim Refael Friedman
074050c242
Support cfg(true) and cfg(false)
...
As per RFC 3695.
2024-10-27 10:46:49 +02:00
Laurențiu Nicola
a6572e9234
Support expect in attribute completion and hover
2024-09-23 14:55:50 +03:00
unexge
b986d8ac92
Complete exported macros in #[macro_use($0)]
2023-12-16 16:19:58 +00:00
Lukas Wirth
853f8a21f7
Fix cfg completions not working
2023-09-08 10:49:15 +02:00
hkalbasi
f53f9230f0
Support #[derive_const(Trait)]
2023-06-29 20:58:35 +03:30
clubby789
c6da2f9d96
Remove uses of box_syntax in rustc and tools
2023-03-12 13:19:46 +00:00
arcnmx
25242fe93f
⬆️ rust-analyzer
...
Merge commit '368e0bb32f '
2023-01-09 10:36:22 -08:00
feniljain
4cbde4ed8f
fix(completion): super:: completion at crate root and module depth
...
aware
2022-07-14 17:07:43 +05:30
Antonello Palazzi
bef89e95e7
Udate unit tests
2022-06-27 09:04:42 +01:00
Lukas Wirth
44c3cc100b
Merge the different identifier contexts into one enum
2022-05-07 15:06:59 +02:00
Lukas Wirth
5280e08c13
minor: Sort ide-completions test outputs for less disruptive diffs
2022-05-05 10:53:20 +02:00
Peh
1f011fa4a3
style: rename crates to kebab case
2022-05-01 10:48:58 +00:00