Chayim Refael Friedman
ac6b054ca5
Make rust-analyzer.files.excludeDirs
work, actually
...
I have no idea what the original writer of the code thought but the logic just seems backwards. We should not exclude a file/directory if it is equal to an include! This also meant that we had to add a `root == path` check so this stuff will actually work, which in turn meant excludes (of root files) no longer worked...
Also rename if to `rust-analyzer.files.exclude`, because it can exclude files as well.
2025-02-04 17:54:13 +02:00
Lukas Wirth
0fd4fc3522
Merge pull request #19084 from Veykril/push-muworpzpzqup
...
Split cache priming into distinct phases
2025-02-04 13:57:39 +00:00
Lukas Wirth
ab5e821d97
Expose symbol of CrateName
2025-02-04 14:38:58 +01:00
Lukas Wirth
13c17db07b
Merge pull request #19066 from alibektas/slice_pattern_type_inference
...
fix: try to infer array type from slice pattern
2025-02-03 14:03:50 +00:00
Lukas Wirth
cd0753a5ce
Merge pull request #19086 from Veykril/push-ponvylutpnww
...
fix: Fix some mir eval/lowerings
2025-02-03 13:58:34 +00:00
Lukas Wirth
d6645d11da
Fix some mir eval/lowerings
2025-02-03 14:42:41 +01:00
Lukas Wirth
b3ff41ebe4
Merge pull request #19085 from Veykril/push-sknwykqmlott
...
Do not use make use of `InferenceResult::has_errors` flag for mir building
2025-02-03 12:43:14 +00:00
Lukas Wirth
465844c3be
Do not use make use of InferenceResult::has_errors
flag for mir building
...
It generaly does not work as expected right now as we fallback type parameters to errors
2025-02-03 12:26:06 +01:00
Ali Bektas
135fca9efe
Revert tests::patterns::infer_pattern
...
And apply requested changes
2025-02-03 12:23:13 +01:00
Lukas Wirth
b7b09d2acb
Merge pull request #19062 from darichey/scip-fix-module-names
...
Fix scip indexing of module names
2025-02-03 10:05:19 +00:00
Lukas Wirth
b32ddea521
Split cache priming into distinct phases
2025-02-03 10:47:53 +01:00
Lukas Wirth
f3998f7f8a
Merge pull request #19080 from Veykril/push-wlqsvqsksupr
...
More rustfmt hang investigations
2025-02-03
2025-02-02 09:20:35 +00:00
Lukas Wirth
a830096546
More rustfmt hang investigations
2025-02-02 10:04:57 +01:00
Laurențiu Nicola
88b901878e
Merge pull request #19078 from lnicola/no-ci-forks
...
minor: Stop running some release workflows on forks and update old URLs
2025-02-01 18:15:53 +00:00
Laurențiu Nicola
b0276dd240
Stop running some release workflows on forks and update old URLs
2025-02-01 08:21:14 +02:00
Laurențiu Nicola
3c2aca1e5e
Merge pull request #19072 from cessen/concat_uniquely
...
Fix #19071 : ensure `completion_item_hash` serializes items uniquely
2025-01-30 08:15:31 +00:00
Nathan Vegdahl
88d66a8590
Use to_ne_bytes
instead of to_le_bytes
2025-01-29 20:21:57 +01:00
Nathan Vegdahl
87fb27930a
Fix typo
2025-01-29 17:47:38 +01:00
Nathan Vegdahl
b89adf07d4
Fix #19071 : ensure completion_item_hash
serializes items uniquely
...
Previously it may have been possible for different completion items to
produce colliding hashes, not because of the hash but because of how
the items were serialized into byte streams for hashing. See #19071
for details.
The chances of that happening were low, if it was actually possible at
all. Nevertheless, this commit ensures that it definitely can't happen.
This commit uses a handful of techniques used to fix this, but they all
boil down to "ensure this could be re-parsed". If it's possible to parse
to recreate the original item, then by construction there is no chance
of two different items getting serialized to identical byte streams.
2025-01-29 17:22:13 +01:00
Lukas Wirth
7fd6f72007
Merge pull request #19070 from Veykril/push-wpqzmznymtrn
...
Remove mutable syntax tree shenanigans from adjustment hints
2025-01-29 13:58:18 +00:00
Lukas Wirth
f61d31b144
Remove mutable syntax tree shenanigans from adjustment hints
2025-01-29 14:42:37 +01:00
Laurențiu Nicola
13cde501e0
Merge pull request #19067 from cessen/update_tenthash
...
Update TentHash to version 1.0
2025-01-29 11:29:46 +00:00
Nathan Vegdahl
d6943d976d
Update TentHash to version 1.0
...
The TentHash spec was frozen Jan 1st 2025, and release 1.0 of the Rust
crate is a minor cleanup as a follow-up to that, representing a
commitment to API stability as well.
The hash output remains the same as version 0.4, which rust-analyzer was
previously using. The only API change was a struct rename.
2025-01-29 12:07:20 +01:00
Ali Bektas
dd461203a6
call infer_pats from infer::expr with context
2025-01-29 00:54:18 +01:00
Ali Bektas
7befcb32e4
Equip infer_pat_* with declaration origin
2025-01-29 00:54:18 +01:00
Ali Bektas
5a3488a43e
add test, bless tests
2025-01-29 00:54:18 +01:00
Ali Bektas
d092918b55
try to infer array type from slice pattern
...
rust-analyzer equivalent of rust-lang/rust#2827aa97
2025-01-29 00:54:18 +01:00
David Barsky
bc10a44798
Merge pull request #19063 from davidbarsky/davidbarsky/backout-struct-default-fields
...
internal: backout `hir-*` changes from #19001
2025-01-28 16:45:45 +00:00
David Richey
a81712b9a6
Update lsif_contains_generated_constant
2025-01-28 10:44:32 -06:00
Shoyu Vanilla
461ee092bf
feat: Implement default-field-values
only in parser
2025-01-28 11:30:47 -05:00
Lukas Wirth
07a09c154e
Merge pull request #19015 from Wilfred/mdbook
...
manual: Convert to mdbook
2025-01-28 16:19:37 +00:00
David Richey
9462322f20
Fix scip symbols for implicit modules
2025-01-28 10:14:04 -06:00
Lukas Wirth
9f1ad04e72
Merge pull request #19056 from Giga-Bowser/fix-syntax-tree-crlf
...
fix: Properly handle CRLF line endings in the syntax tree view
2025-01-28 16:04:21 +00:00
Lukas Wirth
68edc96046
Merge pull request #19057 from darichey/status-bar-in-output
...
Show status bar in RA output
2025-01-28 16:02:15 +00:00
David Richey
a329b6ac2c
Fix scip crate
symbol name
2025-01-28 09:34:23 -06:00
Lukas Wirth
1f86729f29
Merge pull request #19061 from Veykril/push-rwyqqtqmnput
...
Disable `Receiver` based autoderef temporarily
2025-01-28
2025-01-28 14:08:49 +00:00
Lukas Wirth
8a9992cef4
Disable Receiver
based autoderef temporarily
2025-01-28 14:54:02 +01:00
David Richey
50172919a6
Fix scip inherent impl overflow
2025-01-27 23:20:16 -06:00
David Barsky
be3307450f
Back out "feat: Implement default-field-values
"
...
This backs out commit 7de0b2e75a541b98f735ee6fcd12d326be38d23f.
2025-01-27 17:30:35 -05:00
David Barsky
35f6123059
Back out "Handle missing fields diagnostics"
...
This backs out commit e6a103ae50699db1dbb0676d075a4bcda2247939.
2025-01-27 17:30:35 -05:00
David Barsky
f3451d54d6
Back out "Merge record lit's ellipsis into pre-existing spread's variant"
...
This backs out commit c134b20c9cbc88a36e77acb8522e8dc4573bd906.
2025-01-27 17:30:35 -05:00
David Barsky
77c1507048
Back out "Compute diagnostics of a field body iff it has one"
...
This backs out commit b4d4d02db8a95f5507fbd0aa90904d7b774f0027.
2025-01-27 17:30:35 -05:00
David Barsky
e1b9a01c69
Back out "Implement HasResolver
and HasModule
for FieldId
"
...
This backs out commit ce9da9063097c26006886b3f403a0c50790c285a.
2025-01-27 17:30:34 -05:00
David Barsky
52ee4ee1df
Back out "Add a test for field default value body as defining usage of TAIT"
...
This backs out commit 4fe18a6fb5a1181a04c47391f558ebab5b8b0f39.
2025-01-27 17:30:34 -05:00
David Barsky
34d05b3bd0
Back out "Fix a mistake in condition"
...
This backs out commit e5c38558f5dbc37cbc91f9fda58144ce02e1f5aa.
2025-01-27 17:30:34 -05:00
David Barsky
55d3851820
Back out "Remove has_default
from FieldId
"
...
This backs out commit 8aa6c09fcee6270c787a6f00615d76343fbe5c07.
2025-01-27 17:30:34 -05:00
David Richey
fc1ead1312
Show status bar in RA output
2025-01-27 14:20:05 -06:00
Chayim Refael Friedman
a995319633
Merge pull request #19055 from vkrivopalov/fix-testdir-unused-variable-warning-on-freebsd
...
Add FreeBSD as a target OS for TestDir to avoid warnings
2025-01-27 20:16:57 +00:00
Giga Bowser
027363fef1
fix: Properly handle CRLF line endings in the syntax tree view
2025-01-27 15:09:58 -05:00
Vladimir Krivopalov
538f4faafb
Add FreeBSD as a target OS for TestDir to avoid warnings
...
Currently, running rust-analyzer tests on FreeBSD produces an "unused
variable" warning. The code is fully compatible with FreeBSD and doesn't
have to be omitted.
Signed-off-by: Vladimir Krivopalov <vladimir@krivopalov.ru>
2025-01-27 14:53:56 -05:00