bit-aloo
eabc0199be
remove mapping for expr underscore in syntax factory constructor
2026-03-20 10:47:54 +05:30
Chayim Refael Friedman
3e35ce4a41
Merge pull request #21845 from ada4a/push-yoxkrkvpupkl
...
remove outdated TODO
2026-03-19 18:54:46 +00:00
Ada Alakbarova
191969d3ea
remove outdated TODO
...
we decided not to implement this after all
2026-03-19 19:40:34 +01:00
Laurențiu Nicola
be963fba7f
Merge pull request #21796 from Wilfred/codecov_badge
...
internal: Add codecov badge
2026-03-17 19:20:26 +00:00
Wilfred Hughes
7c93774f8d
internal: Add codecov badge
...
It's tricky to find the relevant codecov page, so add a badge to the
readme showing coverage and linking to the codecov dashboard.
2026-03-17 16:04:11 +00:00
A4-Tacks
1cd4c2a0f7
Merge pull request #21826 from Shourya742/2026-02-03-migrate-utils-to-new-syntax-editor
...
Replace make usage with SyntaxFactory in few ide-assists utils methods
2026-03-16 21:52:43 +00:00
Laurențiu Nicola
607d64a04e
Merge pull request #21829 from ada4a/push-zwprmlkyptmx
...
Small clean-ups
2026-03-16 20:32:09 +00:00
Ada Alakbarova
60207debab
small clean-up
...
- extract unrelated `if` out of `matches!`
- in `include_references`:
- add docs
- use a while-let chain
- add a more complex test
2026-03-16 21:22:07 +01:00
Chayim Refael Friedman
f9269291f4
Merge pull request #21828 from Wilfred/parallel_prime_caches_scip
...
fix: SCIP generation should prime caches in parallel
2026-03-16 19:19:29 +00:00
bit-aloo
5fe6600b00
add mappings for constructors
2026-03-16 19:32:27 +05:30
Wilfred Hughes
b7bc96291e
fix: SCIP generation should prime caches in parallel
...
Previously load_workspace_into_db() called parallel_prime_caches()
with a worker count of 1 unconditionally. This made SCIP generation
slower than it needed to be.
Instead, pass the number of workers explicitly, and allow the SCIP
subcommand to specify the number of workers from the CLI, defaulting
to the number of physical CPUs.
On my M4 Macbook Pro this reduces the time taken to generate SCIP for
rust-analyzer from ~39 seconds to ~35 seconds.
AI disclosure: Partially written with Claude Opus 4.6.
2026-03-16 13:41:30 +00:00
Lukas Wirth
1b4821082f
Merge pull request #21827 from ChayimFriedman2/multiprocess-slow-tests
...
Don't trigger GC on slow tests
2026-03-16 10:07:13 +00:00
Chayim Refael Friedman
637cc71c3b
Don't trigger GC on slow tests
...
It can lead to UB.
2026-03-16 11:58:13 +02:00
A4-Tacks
f01a047d1f
Merge pull request #21784 from 80avin/fix-inline-type-assist
...
fix: remove angle brackets if all lifetime args removed in inline type alias code assist.
2026-03-16 09:23:25 +00:00
Laurențiu Nicola
fc73d18c07
Merge pull request #21815 from rust-lang/dependabot/npm_and_yarn/editors/code/undici-6.24.1
...
Bump undici from 6.21.3 to 6.24.1 in /editors/code
2026-03-16 08:10:48 +00:00
bit-aloo
f5836b5ab8
make insert_attribute accept syntaxFactory
2026-03-16 10:11:35 +05:30
bit-aloo
4e50d13d57
remove invert_boolean_expression_legacy
2026-03-16 10:07:35 +05:30
bit-aloo
cc02838018
add syntaxFactory to tt_from_syntax and update corresponding handlers
2026-03-16 09:16:09 +05:30
bit-aloo
f2bc624581
update convert_param_list_to_arg_list to get ArgList via make
2026-03-16 09:08:33 +05:30
bit-aloo
d6b3207f27
convert_param_list_to_arg_list accept syntaxFactory and update the corresponding handlers
2026-03-16 09:06:44 +05:30
bit-aloo
7f3bc0b0a8
update wrap_block to accept SyntaxFactory and correspondingly update the handler which depends on it
2026-03-16 08:22:50 +05:30
bit-aloo
8dba85c487
update wrap_expr in utils ref_field_expr and update corresponding handler
2026-03-16 08:22:05 +05:30
Avinash Thakur
1bc2c44287
fix: remove empty angle brackets in inline type alias code assist.
...
fixes https://github.com/rust-lang/rust-analyzer/issues/21769
2026-03-16 01:27:31 +05:30
Shoyu Vanilla (Flint)
687b82e1e1
Merge pull request #21820 from ChayimFriedman2/type-as-trait-args-len
...
fix: Infer generic args for trait ref and its assoc type
2026-03-15 02:58:46 +00:00
Chayim Refael Friedman
491852c770
Infer generic args for trait ref and its assoc type
...
This was already there before the switch to the new solver, but it was reverted during the switch for some reason.
2026-03-14 20:22:14 +02:00
Lukas Wirth
3fca200a6d
Merge pull request #21818 from Veykril/push-ystsymytyxkl
...
internal: Refactor `MirLowerCtx` to use `&ExpressionStore` instead of `&Body`
2026-03-14 16:23:35 +00:00
Lukas Wirth
b2d9051502
internal: Refactor MirLowerCtx to use &ExpressionStore instead of &Body
2026-03-14 17:14:44 +01:00
dependabot[bot]
5e62d4f1c8
Bump undici from 6.21.3 to 6.24.1 in /editors/code
...
Bumps [undici](https://github.com/nodejs/undici ) from 6.21.3 to 6.24.1.
- [Release notes](https://github.com/nodejs/undici/releases )
- [Commits](https://github.com/nodejs/undici/compare/v6.21.3...v6.24.1 )
---
updated-dependencies:
- dependency-name: undici
dependency-version: 6.24.1
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-14 11:10:56 +00:00
Chayim Refael Friedman
3a0572c2d6
Merge pull request #21804 from Wilfred/improve_proc_macro_srv_messages
...
fix: Clarify error messages when proc-macro-srv changes working directory
2026-03-12 14:36:23 +00:00
Wilfred Hughes
23c24d2bff
fix: Clarify error messages when proc-macro-srv changes working directory
...
I'm investigating issues where users see a load of logs of the form:
```
Failed to set the current working dir to /redacted/path. Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
```
This is tricky to debug because there's two different code paths that
write exactly the same error message. Ensure they're unique.
2026-03-12 11:43:59 +00:00
Chayim Refael Friedman
f6db3ef2e3
Merge pull request #21794 from Albab-Hasan/fix/union-naming-validation
...
fix: add naming convention validation for `union` types
2026-03-11 01:53:21 +00:00
Lukas Wirth
f6a883d4e6
Merge pull request #21797 from ada4a/push-kmoyrzmylmqu
...
Remove outdated comment
2026-03-10 22:35:15 +00:00
Ada Alakbarova
32a35bcb42
Remove outdated comment
2026-03-10 19:12:12 +01:00
Albab-Hasan
8f7af978ee
fix: implement naming convention validation for union types.
...
generated with ai assistance (claude sonnet 4.6).
2026-03-10 21:08:45 +06:00
A4-Tacks
a7bcfc149f
Merge pull request #21793 from guoyucode/fix/suggest-name-multibyte-utf8
...
fix: handle multi-byte UTF-8 identifiers in `NameGenerator::suggest_name`
2026-03-10 14:34:25 +00:00
guoyu
cd09c1a326
fix: handle multi-byte UTF-8 identifiers in NameGenerator::suggest_name
...
`split_numeric_suffix` used `rfind` to locate the last non-numeric
character and then split at `pos + 1`. Since `rfind` returns a byte
offset, this panics when the last non-numeric character is multi-byte
(e.g. CJK identifiers like `日本語`).
Use `str::ceil_char_boundary` to advance past the full character before
splitting.
2026-03-10 21:46:14 +08:00
Lukas Wirth
badffdb660
Merge pull request #21771 from Wilfred/watch_dirs_recursively
...
fix: File watcher should watch directories recursively
2026-03-10 07:17:03 +00:00
Chayim Refael Friedman
d332754403
Merge pull request #21789 from ChayimFriedman2/stupid-fix
...
minor: Fix a stupid typo
2026-03-09 10:47:51 +00:00
Chayim Refael Friedman
e0829846ce
Fix a stupid typo
2026-03-09 12:38:32 +02:00
Lukas Wirth
e1e83b3eae
Merge pull request #21788 from Veykril/push-mwqrzolksvxx
...
Do not re-query source roots per crate in analysis-stats
2026-03-09 10:18:14 +00:00
Lukas Wirth
1675674072
Do not re-query source roots per crate in analysis-stats
2026-03-09 11:08:57 +01:00
Laurențiu Nicola
bd1ba78364
Merge pull request #21786 from rust-lang/rustc-pull
...
minor: sync from downstream
2026-03-09 08:32:23 +00:00
Lukas Wirth
aae1f07141
Merge pull request #21785 from ChayimFriedman2/dup-assoc-res
...
fix: Allow duplicate assoc type shorthand resolution if it points to the same assoc type
2026-03-09 07:58:26 +00:00
Lukas Wirth
eba0a642a9
Merge pull request #21767 from Veykril/push-xxyxurxwwmvy
...
Remove crate from salsa `EditionedFileId`
2026-03-09 07:57:57 +00:00
The rustc-josh-sync Cronjob Bot
e9119985cd
Merge ref 'eda4fc7733ee' from rust-lang/rust
...
Pull recent changes from https://github.com/rust-lang/rust via Josh.
Upstream ref: rust-lang/rust@eda4fc7733
Filtered ref: rust-lang/rust-analyzer@18005ba4c5
Upstream diff: https://github.com/rust-lang/rust/compare/f8704be04fe1150527fc2cf21dd44327f0fe87fb...eda4fc7733ee89e484d7120cafbd80dcb2fce66e
This merge was created using https://github.com/rust-lang/josh-sync .
2026-03-09 04:49:02 +00:00
The rustc-josh-sync Cronjob Bot
091f319bcd
Prepare for merging from rust-lang/rust
...
This updates the rust-version file to eda4fc7733 .
2026-03-09 04:43:44 +00:00
bors
eda4fc7733
Auto merge of #153579 - JonathanBrouwer:rollup-DFWynbC, r=JonathanBrouwer
...
Rollup of 6 pull requests
Successful merges:
- rust-lang/rust#152535 (std: use `OnceLock` for Xous environment variables)
- rust-lang/rust#152646 (Update `UnsafeUnpin` impls involving extern types.)
- rust-lang/rust#153559 (Inline and simplify some code for saving incremental data to disk)
- rust-lang/rust#151900 (num: Separate public API from internal implementations)
- rust-lang/rust#153520 (.mailmap: fix broken line with multiple emails)
- rust-lang/rust#153573 (rustdoc-json: fix incorrect documentation for VariantKind::Struct)
Failed merges:
- rust-lang/rust#153509 (Cleanup unused diagnostic emission methods - part 2)
2026-03-09 00:40:10 +00:00
Jonathan Brouwer
934afe30cd
Rollup merge of #153573 - yshui-forks:rustdoc-types-doc, r=obi1kenobi,GuillaumeGomez
...
rustdoc-json: fix incorrect documentation for VariantKind::Struct
Seems to have been copy-and-pasted from `Enum::variants`, but `VariantKind::Struct::fields` is for struct variant fields, not enum variants.
2026-03-08 22:51:54 +01:00
Jonathan Brouwer
9b969739e9
Rollup merge of #153520 - DanielEScherzer:patch-4, r=lolbinarycat
...
.mailmap: fix broken line with multiple emails
Split binarycat's entry into multiple lines, one for each extra email
2026-03-08 22:51:53 +01:00
Jonathan Brouwer
83e6dbf9e1
Rollup merge of #151900 - tgross35:num-internal-imp, r=Mark-Simulacrum
...
num: Separate public API from internal implementations
Currently we have a single `core::num` module that contains both thin wrapper API and higher-complexity numeric routines. Restructure this by moving implementation details to a new `imp` module.
This results in a more clean separation of what is actually user-facing compared to items that have a stability attribute because they are public for testing.
The first commit does the actual change then the second moves a portion back.
2026-03-08 22:51:52 +01:00