1
Fork 0
Commit graph

278905 commits

Author SHA1 Message Date
Chayim Refael Friedman
d4f7c7668f
Merge pull request #19120 from ahaoboy/patch-1
doc: error url
2025-02-09 11:18:39 +00:00
阿豪
82162a7ac8
doc: error url 2025-02-09 17:49:26 +08:00
Laurențiu Nicola
4ac07f243e
Merge pull request #19113 from BenjaminBrienen/patch-1
Update PRIVACY.md
2025-02-08 06:51:28 +00:00
Laurențiu Nicola
cac45e164c
Merge pull request #19115 from Wilfred/sidebar_structure
Organise chapters in mdbook sidebar
2025-02-08 06:33:55 +00:00
Laurențiu Nicola
236000b004
Merge pull request #19114 from Wilfred/update_readme_for_mdbook
Update README.md links for mdbook manual
2025-02-08 06:25:55 +00:00
Wilfred Hughes
b6fd709f44 Organise chapters in mdbook sidebar 2025-02-07 12:25:39 -08:00
Wilfred Hughes
e7d5d306df Update README.md links for mdbook manual 2025-02-07 12:07:18 -08:00
Benjamin Brienen
2c22ae3a9a
Update PRIVACY.md 2025-02-07 20:18:21 +01:00
Lukas Wirth
8151886da1
Merge pull request #19104 from jnyfah/some-branch
option to disable inlay Type hints for Closure parameters
2025-02-07 10:45:38 +00:00
jnyfah
d3b80e1d50 minor changes 2025-02-07 10:50:45 +01:00
Lukas Wirth
cde8d92d4f
Merge pull request #19106 from ShoyuVanilla/issue-18682
fix: Resolve projection types before checking casts
2025-02-07 08:13:12 +00:00
Lukas Wirth
b27a0f4e1e
Merge pull request #19105 from darichey/fix-scip-builtin-occurrences
fix: Don't emit empty scip occurrence for builtins
2025-02-07 08:08:33 +00:00
Shoyu Vanilla
bacc9dfa4b fix: Resolve projection types before checking casts 2025-02-07 09:51:32 +09:00
David Richey
e8955a8266 fix: Don't emit empty scip occurrence for builtins 2025-02-06 12:22:58 -06:00
jnyfah
57b241532a collapsing if statement 2025-02-06 16:18:15 +01:00
jnyfah
98b16ead7c closure parameter inlay hints 2025-02-06 15:55:56 +01:00
Lukas Wirth
d18dd4dc18
Merge pull request #19099 from Veykril/push-qxylslwltsqy
Use interior mutability for loaded `ProcMacrorv::expanders`
2025-02-05 11:17:21 +00:00
Lukas Wirth
9bcb2b08be Use interior mutability for loaded ProcMacrorv::expanders 2025-02-05 12:01:57 +01:00
Lukas Wirth
a7e9739315
Merge pull request #18912 from vishruth-thimmaiah/fix_named_struct_assist
fix: upmap ranges in convert_tuple_struct_to_named_struct assist
2025-02-05 08:49:53 +00:00
Lukas Wirth
9c0af740a8
Merge pull request #19097 from Veykril/push-xmkmkwplqnlr
Bump proc-macro2 in xtask
2025-02-05 07:38:35 +00:00
Lukas Wirth
f57caa1cbb Bump proc-macro2 in xtask 2025-02-05 08:22:20 +01:00
Laurențiu Nicola
4b1d83de01
Merge pull request #19094 from ChayimFriedman2/use-body
fix: Fix IDE resolution of `use` inside a body
2025-02-05 07:16:35 +00:00
Chayim Refael Friedman
d9587198f1
Merge pull request #19095 from ChayimFriedman2/fixme-adt_const_params
minor: Add a FIXME for feature(adt_const_params)
2025-02-04 19:43:31 +00:00
Chayim Refael Friedman
578ae16c93 Add a FIXME for feature(adt_const_params) 2025-02-04 21:28:19 +02:00
Chayim Refael Friedman
9d81503252 Fix a failing test
The reason this test passed previously is not because it was working as intended, but because prior to the previous commit we did not resolve the `use` at all!

Now, `use self as _` is invalid code anyway (it prints E0429), and because we fallback to the value namespace if we can't resolve in the type namespace (which is a reasonable behavior), this test now actually fails.

I don't think we want to change the fallback, so I removed `use self as _` and instead added a new test, where the value can be resolved in the type namespace.
2025-02-04 19:10:04 +02:00
Chayim Refael Friedman
54670912da Fix IDE resolution of use inside a body
We stopped the expression search too early because `use` is an item.
2025-02-04 18:30:50 +02:00
Laurențiu Nicola
96f96a4f44
Merge pull request #19083 from he32/fix-arm64-be
line-index: don't try to use (unavailable) neon on big-endian aarch64
2025-02-04 15:36:58 +00:00
Havard Eidnes
9bf4fe4ab7 line-index: don't try to use neon on big-endian aarch64. 2025-02-04 15:22:49 +00:00
Lukas Wirth
21ddcbb836
Merge pull request #19093 from Veykril/push-lrvoookylnxp
Prevent panics from tearing down worker threads
2025-02-04 14:20:36 +00:00
Lukas Wirth
1ce2d7eaca Prevent panics from tearing down worker threads 2025-02-04 15:03:35 +01:00
Lukas Wirth
1ba7a38e4f
Merge pull request #19084 from Veykril/push-muworpzpzqup
Split cache priming into distinct phases
2025-02-04 13:57:39 +00:00
Lukas Wirth
a373fb214d Expose symbol of CrateName 2025-02-04 14:38:58 +01:00
Lukas Wirth
93b72cefca
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
08d4b033a4
Merge pull request #19086 from Veykril/push-ponvylutpnww
fix: Fix some mir eval/lowerings
2025-02-03 13:58:34 +00:00
Lukas Wirth
a118b18894 Fix some mir eval/lowerings 2025-02-03 14:42:41 +01:00
Lukas Wirth
9c981b7d7b
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
5acbff815b 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
806ec88963 Revert tests::patterns::infer_pattern
And apply requested changes
2025-02-03 12:23:13 +01:00
Lukas Wirth
3c8345842c
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
4d9be70709 Split cache priming into distinct phases 2025-02-03 10:47:53 +01:00
Lukas Wirth
3288929ea7
Merge pull request #19080 from Veykril/push-wlqsvqsksupr
More rustfmt hang investigations
2025-02-02 09:20:35 +00:00
Lukas Wirth
acb9544ef8 More rustfmt hang investigations 2025-02-02 10:04:57 +01:00
Laurențiu Nicola
bec452fac1
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
e70b589982 Stop running some release workflows on forks and update old URLs 2025-02-01 08:21:14 +02:00
Laurențiu Nicola
da96fffce0
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
7ffccb0346 Use to_ne_bytes instead of to_le_bytes 2025-01-29 20:21:57 +01:00
Nathan Vegdahl
615186586b Fix typo 2025-01-29 17:47:38 +01:00
Nathan Vegdahl
0cf275b9fe 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
9c30fecf09
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
0d9355ecdb Remove mutable syntax tree shenanigans from adjustment hints 2025-01-29 14:42:37 +01:00