Lukas Wirth
32e3f84280
refactor: Turn LifetimeRef into an enum
...
This makes things more structured
2025-04-09 15:58:06 +02:00
Lukas Wirth
b2835b5964
Merge pull request #19462 from Veykril/push-ypvprvvwkyll
...
refactor: Lower type-refs before type inference
2025-04-09 08:54:28 +00:00
Lukas Wirth
f4848a71d4
refactor: Lower type-refs before type inference
...
This refactors how we deal with items in hir-def lowering.
- It now lowers all of them through an "ExpressionStore" (kind of a misnomer as this point) as their so called *Signatures.
- We now uniformly lower type AST into TypeRefs before type inference.
- Likewise, this moves macro expansion out of type inference, resulting in a single place where we do non-defmap macro expansion.
- Finally, this PR removes a lot of information from ItemTree, making the DefMap a lot less likely to be recomputed and have it only depend on actual early name resolution related information (not 100% true, we still have ADT fields in there but thats a follow up removal).
2025-04-09 10:43:23 +02:00
David Barsky
620b404068
Merge pull request #19536 from jackh726/closure-infer
...
Port closure inference from rustc
2025-04-08 14:17:30 +00:00
Lukas Wirth
d9a440b4d7
Merge pull request #19541 from Veykril/push-twqrorwqzmwv
...
fix(auto-import): Prefer imports of matching types for argument lists
2025-04-08 07:32:52 +00:00
Lukas Wirth
112ca25a35
fix(auto-import): Prefer imports of matching types for argument lists
2025-04-08 09:21:32 +02:00
jackh726
d88e70c514
Port closure inference from rustc
2025-04-07 21:48:01 +00:00
Lukas Wirth
50f3e01399
Merge pull request #19425 from ConradIrwin/drop-drop-glue-goo
...
Tidy up drop glue notification
2025-04-07 10:32:50 +00:00
Lukas Wirth
dfe13e5bfe
Merge pull request #19511 from snprajwal/fixmes
...
chore: clean up some FIXMEs
2025-04-07 10:30:46 +00:00
Lukas Wirth
b91731c3b6
Merge pull request #19432 from ShoyuVanilla/issue-19431
...
fix: Yet another false positive invalid cast diagnostic
2025-04-07 10:29:54 +00:00
Lukas Wirth
3cd93186de
Merge pull request #19512 from BenjaminBrienen/update-stdx
...
Upstream stdx changes
2025-04-07 07:14:01 +00:00
BenjaminBrienen
6c52687dc3
upstream stdx changes
2025-04-06 23:55:12 +02:00
Lukas Wirth
fb0dd6555d
Merge pull request #19533 from Veykril/push-zxlpwkvzxzws
...
chore: Set up a proper job matrix for rust-cross
2025-04-06 08:50:51 +00:00
Lukas Wirth
7812f55eeb
chore: Set up a proper job matrix for rust-cross
2025-04-06 10:39:49 +02:00
Lukas Wirth
d3d1f49f74
Merge pull request #19531 from Veykril/push-kxyrpznnllkx
...
fix: Fix `format_args` lowering for >=1.87
2025-04-06 08:18:23 +00:00
Lukas Wirth
f1ed314003
fix: Fix format_args lowering for >=1.87
2025-04-06 10:05:56 +02:00
Lukas Wirth
b3e9af53f8
Merge pull request #19447 from Natural-selection1/add_impl_for
...
add more completion about "impl"
2025-04-05 13:01:51 +00:00
Lukas Wirth
9ba0079a9b
Merge pull request #19501 from ChayimFriedman2/macro-expansion
...
fix: Fix a bug in MBE expansion that arose from incorrect fixing of an older bug in MBE
2025-04-05 13:00:30 +00:00
Laurențiu Nicola
cf71bb3315
Merge pull request #19526 from SOF3/patch-1
...
The rustdoc file prefix for constants is "constant" not "const"
2025-04-05 10:34:37 +00:00
Jonathan Chan Kwan Yin
5dd7526d8f
the rustdoc file prefix for constants is "constant" not "const"
2025-04-05 18:16:39 +08:00
Lukas Wirth
56cf54f03f
Merge pull request #19519 from snprajwal/project-control-no-deps
...
feat(project-model): provide flag for no deps
2025-04-04 16:50:27 +00:00
David Barsky
2a4ab6bc59
Merge pull request #19523 from davidbarsky/davidbarsky/fix-salsafied-crate-graph-with-lazy-project-discovery
...
internal: ensure a Salsa-ified crate graph works with project discovery
2025-04-04 16:29:20 +00:00
David Barsky
4c8bb775e4
internal: fix salsa-ified crate graph working with lazy project discovery
2025-04-04 12:14:55 -04:00
Lukas Wirth
099d0e09cf
Merge pull request #19522 from davidbarsky/davidbarsky/fix-panic-in-view-crate-graph
...
internal: fix panic in `view_crate_graph`
2025-04-04 16:00:18 +00:00
Lukas Wirth
75403af810
Merge pull request #19515 from jrmuizel/multiple-definitions
...
fix: don't drop references with more than one definition.
2025-04-04 15:50:33 +00:00
Lukas Wirth
a44b5e0950
Merge pull request #19520 from BenjaminBrienen/defaultnew
...
Align usage of `default` and `new` with style guide
2025-04-04 15:42:16 +00:00
David Barsky
b7bc8d08b5
internal: fix panic in view_crate_graph
2025-04-04 11:38:19 -04:00
Jeff Muizelaar
8f04875e98
fix: don't drop references with more than one definition.
...
Implicit field references during struct initialization were
being dropped because get_definition was returning None because
there were multiple definitions.
This adds a new helper, `get_defintions`, that supports returning
more than one definition for a given token and hooks it up.
Fixes #19393
2025-04-04 11:37:14 -04:00
BenjaminBrienen
9a43f02a00
prefer default over new
2025-04-04 15:49:50 +02:00
Prajwal S N
4bf481c934
feat(project-model): provide flag for no deps
...
A Cargo project can now be built without any dependency metadata being fetched.
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-04 18:57:10 +05:30
Prajwal S N
e9bad9c61a
chore: clean up some FIXMEs
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-04 17:40:56 +05:30
Lukas Wirth
9c5cdfe30a
Merge pull request #19514 from BenjaminBrienen/color-brackets-string
...
Fix color brackets in string context
2025-04-04 11:15:23 +00:00
BenjaminBrienen
3aa1b607bd
fix language-configuration.json
2025-04-04 00:26:57 +02:00
Laurențiu Nicola
8408e2810b
Merge pull request #19509 from snprajwal/remove-assistid-none
...
fix(ide-assists): remove `AssistKind::None`
2025-04-03 15:35:11 +00:00
Prajwal S N
59240a9755
feat(proc-macro-srv): support metadata version 10
...
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-03 14:58:59 +05:30
Prajwal S N
3c573ca104
fix(ide-assists): remove AssistKind::None
...
This was being used by a single assist, which qualifies under the "refactor"
kind. The variant has been removed, and all usages updated accordingly.
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-03 14:38:31 +05:30
Chayim Refael Friedman
6bb0904385
Fix a bug in MBE expansion that arose from incorrect fixing of an older bug in MBE
...
Specifically, #18744 was the PR that was supposed to fix the old bug, but it fixed it incorrectly (and didn't add a test!) The underlying reason was that we marked metavariables in expansions as joint if they were joint in the macro call, which is incorrect.
This wrong fix causes other bug, #19497 , which this PR fixes by removing the old (incorrect) fix.
2025-04-01 21:05:51 +03:00
Lukas Wirth
280c133743
Merge pull request #19494 from Veykril/push-uzmzppouxuvr
...
chore: Remove unnecessary `Arc` clones
2025-04-01 11:29:33 +00:00
Lukas Wirth
73d8cd8f1c
Merge pull request #19496 from Veykril/push-zuwsrswwtzsu
...
chore: Replace some `invoke`s with `invoke_actual` in hir-ty
2025-04-01 11:24:41 +00:00
Lukas Wirth
6e8a96ea98
chore: Remove unnecessary Arc clones
2025-04-01 13:18:37 +02:00
Lukas Wirth
03941165cd
chore: Replace some invokes with invoke_actual in hir-ty
2025-04-01 13:13:20 +02:00
Lukas Wirth
fabb6fdc4f
Merge pull request #19493 from Veykril/push-tlwonkmlonqv
...
chore: Disable rust-cache in CI
2025-04-01 07:17:40 +00:00
Lukas Wirth
b0fbec6362
chore: Disable rust-cache in CI
...
It doesn't actually work with merge groups ...
2025-04-01 08:46:53 +02:00
Chayim Refael Friedman
6698106f1f
Merge pull request #19492 from ChayimFriedman2/experiment
...
Avoid relying on `block_def_map()` needlessly
2025-04-01 04:08:26 +00:00
Chayim Refael Friedman
ad7c4cf9b3
Avoid relying on block_def_map() needlessly
...
We can compute the wanted information from the block's interned data.
2025-04-01 06:58:21 +03:00
Chayim Refael Friedman
409e0ac4cc
Merge pull request #19490 from rossdylan/fix-unicode-progress-report
...
fix: Fix panic in progress due to splitting unicode incorrectly
2025-04-01 01:44:46 +00:00
Ross Delinger
f8a9c92cae
fix: Fix panic in progress due to splitting unicode incorrectly
2025-03-31 17:32:02 -07:00
Lukas Wirth
bca0d609b4
Merge pull request #19485 from Veykril/push-mqlnvzkuplnm
...
chore: Clean CI a bit
2025-03-31 12:43:21 +00:00
Lukas Wirth
73a3d4ac13
chore: Clean CI a bit
2025-03-31 14:33:11 +02:00
Lukas Wirth
03fee919d7
Merge pull request #19484 from Veykril/push-ttvnzlkvwssk
...
fix: Fix new nightly lints
2025-03-31 11:45:11 +00:00