about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates
AgeCommit message (Collapse)AuthorLines
2025-04-10TypeNs contain moduleHayashi Mikihiro-88/+71
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-04-10return single optionHayashi Mikihiro-78/+59
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-04-10fix: shadow type by moduleHayashi Mikihiro-72/+281
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-04-10Fix a small bug with catastrophic effectsChayim Refael Friedman-1/+1
The tiny bug was that `FnFlags::DEPRECTAED_SAFE_2024` and `FnFlags::RUSTC_ALLOW_INCOHERENT_IMPLS` were assigned the same value. The catastrophic effect was that every function marked as `#[rustc_allow_incoherent_impl]` was considered safe-deprecated for edition 2024, which caused it to be considered unsafe to call when called from edition 2024. And that includes `<[_]>::into_vec()`, which is called by the `vec![]` macro. So, catastrophic effect. This innocent-looking bug probably arose from the item tree rewrite. No review would've catch that!
2025-04-09Merge pull request #19553 from davidbarsky/davidbarsky/fix-rustdoc-testsDavid Barsky-4/+4
internal: fix `NameGenerator`'s and `AnyMap`'s rustdocs
2025-04-09internal: fix `NameGenerator`'s and `AnyMap`'s rustdocsDavid Barsky-4/+4
2025-04-09internal: rename `children_modules` to `child_modules`David Barsky-27/+27
2025-04-09Merge pull request #19550 from Veykril/push-rsskztqzwuzkLukas Wirth-87/+104
refactor: Turn `LifetimeRef` into an enum
2025-04-09refactor: Turn `LifetimeRef` into an enumLukas Wirth-87/+104
This makes things more structured
2025-04-09Merge pull request #19255 from geetanshjuneja/masterLukas Wirth-0/+151
Add children modules feature
2025-04-09Merge pull request #19462 from Veykril/push-ypvprvvwkyllLukas Wirth-7986/+6717
refactor: Lower type-refs before type inference
2025-04-09refactor: Lower type-refs before type inferenceLukas Wirth-7986/+6717
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-08Rollup merge of #139496 - Skgland:139455-went-too-far, r=VeykrilMatthias Krüger-7/+38
Revert r-a changes of rust-lang/rust#139455 I discovered https://github.com/rust-lang/rust/issues/132735#issuecomment-2784205477 that I might have done too much in rust-lang/rust#132735 by also removing support in r-a. So this reverts the commit with the changes to r-a. r? RalfJung
2025-04-08Merge pull request #19536 from jackh726/closure-inferDavid Barsky-157/+405
Port closure inference from rustc
2025-04-08make hover_feature test less fragileRalf Jung-79/+8
2025-04-08Merge pull request #19541 from Veykril/push-twqrorwqzmwvLukas Wirth-109/+291
fix(auto-import): Prefer imports of matching types for argument lists
2025-04-08fix(auto-import): Prefer imports of matching types for argument lists Lukas Wirth-109/+291
2025-04-07Port closure inference from rustcjackh726-157/+405
2025-04-07Revert "remove rust-analyser support for `extern "rust-intrinsic"` blocks"Bennet Bleßmann-7/+38
This reverts commit 51b51b51d7931da85280382a81c4dd80c73ca754.
2025-04-07cargo xtask tidygeetanshjuneja-1/+8
2025-04-07added children modulesgeetanshjuneja-0/+144
2025-04-07Rollup merge of #139455 - Skgland:remove_rust-intrinsic_ABI, r=oli-obkStuart Cook-64/+9
Remove support for `extern "rust-intrinsic"` blocks Part of rust-lang/rust#132735 Looked manageable and there didn't appear to have been progress in the last two weeks, so decided to give it a try.
2025-04-07Merge pull request #19425 from ConradIrwin/drop-drop-glue-gooLukas Wirth-421/+107
Tidy up drop glue notification
2025-04-07Merge pull request #19511 from snprajwal/fixmesLukas Wirth-15/+8
chore: clean up some FIXMEs
2025-04-07Merge pull request #19432 from ShoyuVanilla/issue-19431Lukas Wirth-26/+134
fix: Yet another false positive invalid cast diagnostic
2025-04-07Merge pull request #19512 from BenjaminBrienen/update-stdxLukas Wirth-95/+129
Upstream stdx changes
2025-04-06upstream stdx changesBenjaminBrienen-95/+129
2025-04-06update docsBennet Bleßmann-26/+2
- src\doc\nomicon\src\ffi.md should also have its ABI list updated
2025-04-06remove rust-analyser support for `extern "rust-intrinsic"` blocksSkgland-38/+7
2025-04-06Merge pull request #19531 from Veykril/push-kxyrpznnllkxLukas Wirth-54/+129
fix: Fix `format_args` lowering for >=1.87
2025-04-06fix: Fix `format_args` lowering for >=1.87Lukas Wirth-54/+129
2025-04-05Clean up `rustc-literal-escaper` usage in rust-analyzerGuillaume Gomez-4/+2
2025-04-05Merge pull request #19447 from Natural-selection1/add_impl_forLukas Wirth-0/+27
add more completion about "impl"
2025-04-05Merge pull request #19501 from ChayimFriedman2/macro-expansionLukas Wirth-11/+107
fix: Fix a bug in MBE expansion that arose from incorrect fixing of an older bug in MBE
2025-04-05 the rustdoc file prefix for constants is "constant" not "const"Jonathan Chan Kwan Yin-1/+1
2025-04-04Update `rustc-literal-escaper` version to `0.0.2`Guillaume Gomez-2/+2
2025-04-04Merge pull request #19519 from snprajwal/project-control-no-depsLukas Wirth-2/+15
feat(project-model): provide flag for no deps
2025-04-04internal: fix salsa-ified crate graph working with lazy project discoveryDavid Barsky-31/+23
2025-04-04Merge pull request #19522 from ↵Lukas Wirth-1/+3
davidbarsky/davidbarsky/fix-panic-in-view-crate-graph internal: fix panic in `view_crate_graph`
2025-04-04Merge pull request #19515 from jrmuizel/multiple-definitionsLukas Wirth-7/+102
fix: don't drop references with more than one definition.
2025-04-04internal: fix panic in `view_crate_graph`David Barsky-1/+3
2025-04-04fix: don't drop references with more than one definition.Jeff Muizelaar-7/+102
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-04prefer default over newBenjaminBrienen-120/+91
2025-04-04feat(project-model): provide flag for no depsPrajwal S N-2/+15
A Cargo project can now be built without any dependency metadata being fetched. Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-04Remove usage of `rustc_lexer::unescape` in rust-analyzerGuillaume Gomez-18/+13
2025-04-04chore: clean up some FIXMEsPrajwal S N-15/+8
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-03Stabilize `cfg_boolean_literals`clubby789-29/+0
2025-04-03feat(proc-macro-srv): support metadata version 10Prajwal S N-4/+4
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
2025-04-03fix(ide-assists): remove `AssistKind::None`Prajwal S N-15/+5
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-01Fix a bug in MBE expansion that arose from incorrect fixing of an older bug ↵Chayim Refael Friedman-11/+107
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.