Lukas Wirth
0815dfb236
fix: Fix sourceroot construction for virtual manifests
2024-12-12 12:58:18 +01:00
Laurențiu Nicola
96d97611e2
Merge pull request #18466 from ChayimFriedman2/proper-lint-severity
...
Properly handle different defaults for severity of lints
2024-12-11 20:05:39 +00:00
Sam Estep
ef879f7a74
Fix publish workflow link in manual
2024-12-11 14:35:36 -05:00
Chayim Refael Friedman
2950325f37
Properly handle different defaults for severity of lints
...
Previously all lints were assumed to be `#[warn]`, and we had a hand-coded list of `#[allow]` exceptions. Now the severity is autogenerated from rustdoc output.
Also support lints that change status between editions, and the `warnings` lint group.
2024-12-11 20:48:41 +02:00
Lukas Wirth
a18e38e6e2
Merge pull request #18663 from Veykril/push-syoklzkntykn
...
fix: Swallow rustfmt parsing panics
2024-12-11 10:06:28 +00:00
Lukas Wirth
e6fbb5c8e6
fix: Swallow rustfmt parsing panics
2024-12-11 10:52:04 +01:00
Laurențiu Nicola
884f57f9fc
Bump rustc crates
2024-12-11 11:50:19 +02:00
Laurențiu Nicola
5db2aa865c
Merge from rust-lang/rust
2024-12-11 11:49:08 +02:00
Laurențiu Nicola
1649eb6dd7
Preparing for merge from rust-lang/rust
2024-12-11 11:48:46 +02:00
Lukas Wirth
536eea39e8
Merge pull request #18458 from Giga-Bowser/master
...
feat: Add diagnostic fix to remove unnecessary wrapper in type mismatch
2024-12-11 07:09:15 +00:00
Lukas Wirth
e1a27b8708
Merge pull request #18653 from SomeoneToIgnore/hash-completions
...
Hash completion items to properly match them during /resolve
2024-12-11 07:08:33 +00:00
Lukas Wirth
b20d1b80bb
Merge pull request #18657 from Giga-Bowser/generate-enum-variant
...
minor: Migrate `generate_enum_variant` to `SyntaxEditor`
2024-12-11 07:07:22 +00:00
Lukas Wirth
611c72f2f0
Merge pull request #18656 from roife/fix-issue-18639
...
feat: preserve order of parameters in extract_functions
2024-12-11 07:00:17 +00:00
roife
0b121ef846
feat: preserve order of parameters in extract_functions
2024-12-11 02:26:58 +08:00
Giga Bowser
3b781667eb
minor: Migrate generate_enum_variant to SyntaxEditor
2024-12-10 13:11:33 -05:00
Giga Bowser
26e7e4f748
minor: Add ty_infer constructor to SyntaxFactory
2024-12-10 12:33:32 -05:00
Giga Bowser
d9bb8fcab1
minor: Add whitespace constructor to SyntaxFactory
2024-12-10 12:25:13 -05:00
Giga Bowser
3bc26ba4aa
minor: Add item_enum constructor to SyntaxFactory
...
I recursively added all constructors it depends on. I also changed the old `make::` constructors to support more of the grammar.
2024-12-10 11:12:44 -05:00
Kirill Bulatov
1ce15606f2
Address the feedback from pascalkuthe
...
* Use Base64 to minify the hash representation in the JSON data
* Do hash checks only for items with similar labels
2024-12-10 13:01:23 +02:00
Kirill Bulatov
f94953d732
Address the feedback from Veykril
...
* Exclude documentation field from hashing
* Do less cloning during initial completion list generation
2024-12-10 12:33:30 +02:00
Laurențiu Nicola
95670acff1
Merge pull request #18649 from roife/fix-issue-18648
...
minor: enhance name suggestion for `Arc<T>` and `Rc<T>`
2024-12-10 07:05:36 +00:00
Giga Bowser
b76734f20e
minor: Migrate remove_unnecessary_wrapper to SyntaxEditor
2024-12-09 21:16:31 -05:00
Giga Bowser
4898f3f591
fix: Handle the final statement in SyntaxFactory::block_expr properly
...
This caused a bug that was rather tricky to hunt down!
2024-12-09 21:15:15 -05:00
Giga Bowser
a73a6a0058
Add diagnostic fix to remove unnecessary wrapper in type mismatch
...
I also reorganized the tests in a more logical order, and removed the redundant `test_` prefix from their names.
2024-12-09 21:15:15 -05:00
Kirill Bulatov
61c0b269d8
Clippy fixes
2024-12-10 01:04:02 +02:00
Kirill Bulatov
b203c73ccf
Avoid hashing completion-related ranges as those may change during /resolve query
2024-12-10 00:45:57 +02:00
Yuki Sireneva
9aebb5c930
crates/r-a: Fix typo in debug message
2024-12-10 00:13:17 +03:00
Kirill Bulatov
160cb324c1
Unite more bool hashing
2024-12-09 22:38:55 +02:00
Kirill Bulatov
78ea49e4e7
Stop excluding Helix from the general resolve path
2024-12-09 22:26:00 +02:00
Kirill Bulatov
e8e3949698
Always compute the hash when r-a wants the imports to be resolved
2024-12-09 22:26:00 +02:00
Kirill Bulatov
cbc0069939
Draft completion hashing
2024-12-09 22:26:00 +02:00
roife
ab6382e460
minor: enhance name suggestion for Arc<T> and Rc<T>
2024-12-10 02:47:52 +08:00
Lukas Wirth
91adfec2f0
Merge pull request #18647 from Veykril/push-nsrrmmnzzoym
...
internal: Disable pipe on typing handler
2024-12-09 15:06:29 +00:00
Lukas Wirth
2ad6d7103c
Disable pipe on typing handler
2024-12-09 15:52:04 +01:00
Lukas Wirth
244b1fd34e
Merge pull request #18645 from Veykril/push-yruoyrvrsntw
...
fix: Non-exhaustive structs may be empty
2024-12-09 13:26:47 +00:00
Lukas Wirth
67c9287863
fix: Non-exhaustive structs may be empty
2024-12-09 14:12:22 +01:00
Lukas Wirth
641bca6d62
Merge pull request #18644 from Veykril/push-nolvpzqvoqwx
...
Remove patch sysroot cfg-if hack
2024-12-09 10:58:27 +00:00
Lukas Wirth
dc9bcef471
Merge pull request #18643 from Veykril/push-muwuzmowptnn
...
internal: Rename test fixture crates to ra_test_fixture
2024-12-09 10:54:51 +00:00
Lukas Wirth
770265d057
Remove patch sysroot cfg-if hack
2024-12-09 11:42:51 +01:00
Lukas Wirth
b9f809a4b5
Rename test fixture crates to ra_test_fixture
2024-12-09 11:40:21 +01:00
Laurențiu Nicola
4148b5345d
Remove unstable attributes in minicore
2024-12-09 11:17:17 +02:00
Lukas Wirth
c7b6c95ccf
Merge pull request #18441 from Veykril/lw-psyvmlotlvqn
...
internal: Do not cache the config directory path
2024-12-09 08:47:20 +00:00
Lukas Wirth
3fc7101b96
Fix config guard lock for ratoml tests
2024-12-09 09:33:02 +01:00
Lukas Wirth
c6e8a0e209
Merge pull request #18635 from ChayimFriedman2/fix-test
...
minor: Fix a test that didn't test what it should
2024-12-09 08:02:05 +00:00
Giga Bowser
30e3d23f0e
fix: Map new replacement nodes to their mutable equivalents in SyntaxEditor
2024-12-08 15:55:34 -05:00
Chayim Refael Friedman
ee300059c5
Fix a test that didn't test what it should
...
That is, fix the helper function and disable the tests for now.
2024-12-08 15:02:14 +02:00
Lukas Wirth
7625d76f50
Merge pull request #18633 from ChayimFriedman2/unify-fn
...
fix: Coerce two `FnDef`s to fn pointers even if they are the same, if they are subtypes
2024-12-08 07:18:57 +00:00
Chayim Refael Friedman
1907786038
Coerce two FnDefs to fn pointers even if they are the same, if they are subtypes
...
That's because they can be the same function but still different substs, which mandates them to coerce to fn pointers in order to unify.
2024-12-07 19:16:00 +02:00
Ali Bektas
afdf4c8ea9
Watch for user config ratoml
2024-12-07 15:22:35 +01:00
Lukas Wirth
8358c13586
Merge pull request #18575 from Giga-Bowser/flip-assists
...
minor: Migrate `flip_*` assists to `SyntaxEditor`
2024-12-07 12:27:40 +00:00