Laurențiu Nicola
cea2aeb777
Merge pull request #19805 from lnicola/inline-format-args
...
minor: Inline some format args
2025-05-16 10:15:19 +00:00
Laurențiu Nicola
4860712f43
Inline some format args
2025-05-16 12:03:59 +02:00
Laurențiu Nicola
13c5e0eab8
Merge pull request #19804 from lnicola/bump-zip
...
minor: Bump zip to 3.0
2025-05-16 10:03:29 +00:00
Laurențiu Nicola
428279ef6a
Bump zip to 3.0
2025-05-16 11:51:58 +02:00
Lukas Wirth
8de8ca3987
Merge pull request #19801 from ChayimFriedman2/asm-label
...
fix: Improve asm support
2025-05-16 08:34:47 +00:00
Chayim Refael Friedman
ae304db796
Improve asm support
...
Including:
- Infer `label {}` and `const` operands.
- Correctly handle unsafe check inside `label {}`.
- Fix an embarrassing parser typo that cause labels to never be part of the AST
2025-05-15 23:36:00 +03:00
Chayim Refael Friedman
98b6ecd6a1
Merge pull request #19798 from rust-lang/dependabot/npm_and_yarn/editors/code/undici-6.21.3
...
Bump undici from 6.21.1 to 6.21.3 in /editors/code
2025-05-15 15:45:49 +00:00
dependabot[bot]
6c21c9fdff
Bump undici from 6.21.1 to 6.21.3 in /editors/code
...
Bumps [undici](https://github.com/nodejs/undici ) from 6.21.1 to 6.21.3.
- [Release notes](https://github.com/nodejs/undici/releases )
- [Commits](https://github.com/nodejs/undici/compare/v6.21.1...v6.21.3 )
---
updated-dependencies:
- dependency-name: undici
dependency-version: 6.21.3
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-05-15 15:24:19 +00:00
Lukas Wirth
bcb7a1a81a
Merge pull request #19794 from ChayimFriedman2/dup-crates
...
fix: Don't allow duplicate crates in the all_crates list
2025-05-15 13:29:17 +00:00
Chayim Refael Friedman
2e718f818b
Merge pull request #19793 from Hmikihiro/unused_import_conlict_derive
...
fix: Removing all unused imports removes used imports for imports used for Derive macros
2025-05-15 09:18:06 +00:00
Laurențiu Nicola
7a845316e0
Merge pull request #19796 from Berrysoft/update-cargo-lock
...
Update Cargo.lock
2025-05-15 07:32:51 +00:00
Berrysoft
66fef16bb6
Update Cargo.lock
2025-05-15 15:14:35 +08:00
Hayashi Mikihiro
034d2a2fe7
handle trait in function
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-15 15:12:31 +09:00
Hayashi Mikihiro
2c55a78848
check glob
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-15 14:01:05 +09:00
Hayashi Mikihiro
5adbda4ee5
rename fn name take_path to any
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-15 13:18:30 +09:00
Chayim Refael Friedman
de51196bb1
Don't allow duplicate crates in the all_crates list
...
For some reason we had them in some projects, I'm not sure why. But this caused cache priming to appear stuck - because it uses a set of crate IDs for the actual work, but for the number of crates to index it just uses `db.all_crates().len()`.
2025-05-14 21:38:40 +03:00
Hayashi Mikihiro
6274d461cf
fix: Removing all unused imports removes used imports for imports used for Derive macros
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-14 23:51:23 +09:00
Lukas Wirth
6a44ce5ec5
Merge pull request #19772 from rust-lang/push-nxzlokoozypo
...
internal: Make diagnostics experimental by default
2025-05-10 15:01:30 +00:00
Florian Diebold
1c53e27214
Make diagnostics experimental by default
2025-05-09 16:15:48 +02:00
Lukas Wirth
85ab1c48b0
Merge pull request #19507 from Hmikihiro/fix_module_doc_links
...
fix: resolve doc path from parent module if outer comments exist on module
2025-05-08 16:34:35 +00:00
Hayashi Mikihiro
656a59e40f
add assert to check ast_index smaller than INNER_ATTR_SET_BIT
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-08 23:37:47 +09:00
Chayim Refael Friedman
321a6d66ac
Merge pull request #19764 from ChayimFriedman2/too-many-asterisks-dbg
...
fix: Fix postfix snippets duplicating derefs
2025-05-08 09:55:35 +00:00
Chayim Refael Friedman
322451c7d2
Fix postfix snippets duplicating derefs
2025-05-08 11:44:38 +03:00
Lukas Wirth
4c69f8d0a7
Merge pull request #19763 from ChayimFriedman2/ws-completions
...
fix: Still complete parentheses & method call arguments if there are existing parentheses, but they are after a newline
2025-05-08 08:23:52 +00:00
Chayim Refael Friedman
db9c18e44e
Still complete parentheses & method call arguments if there are existing parentheses, but they are after a newline
2025-05-08 11:05:39 +03:00
Hayashi Mikihiro
627fedb423
extract function: doc_attributes to find def from inner doc
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-07 03:12:19 +09:00
Hayashi Mikihiro
449d720651
add doc link test for hover
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-07 00:36:52 +09:00
Hayashi Mikihiro
ecb59e185a
add doc link test for goto def
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-07 00:36:42 +09:00
Hayashi Mikihiro
8935d0bdea
check module path inner or outer
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-07 00:36:17 +09:00
Lukas Wirth
45f2d3c67a
Merge pull request #19738 from ChayimFriedman2/weird-gats
...
fix: Don't panic on some weird code
2025-05-06 09:05:19 +00:00
Hayashi Mikihiro
7bf0c0034e
Remove ast index mask
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-06 17:45:09 +09:00
Hayashi Mikihiro
a8b8b2be47
import std::iter::repeat
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-06 17:45:09 +09:00
Hayashi Mikihiro
674e10e982
Update crates/hir-expand/src/attrs.rs
...
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2025-05-06 17:45:09 +09:00
Hayashi Mikihiro
b9a3e70ccb
Update crates/hir-expand/src/attrs.rs
...
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
2025-05-06 17:45:09 +09:00
Hayashi Mikihiro
546065a315
fix: resolve doc path if outer comments exist on module and replace from cfg_attr bit to doc_place bit
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-05-06 17:45:09 +09:00
Chayim Refael Friedman
1ed416de03
Don't panic on some weird code
2025-05-06 10:54:35 +03:00
Lukas Wirth
0b75b2d0fe
Merge pull request #19721 from ChayimFriedman2/more-parallel
...
Better handle parallelism in cache priming
2025-05-06 07:40:56 +00:00
Chayim Refael Friedman
bce6763cca
Notify the user that we're collecting symbols
...
It could be confusing if they see "Indexing n/n" but cache priming does not finish.
2025-05-06 10:29:53 +03:00
Chayim Refael Friedman
bb584e8755
Merge pull request #19751 from VictorArcium/env-var-cargo-manifest-path
...
Support environment variable CARGO_MANIFEST_PATH.
2025-05-05 21:14:28 +00:00
Chayim Refael Friedman
6fa168ac25
Add a --num-threads to the prime-caches CLI command
...
And make it parallel by default (and remove the `--parallel` flag) to mirror the IDE cache priming.
2025-05-05 23:55:11 +03:00
Chayim Refael Friedman
26366762a2
Better manage parallel prime caches
...
To make best use of available cores, and don't waste time waiting for other tasks. See the comments in the code for explanation.
2025-05-05 23:54:34 +03:00
Victor
d246efe919
Support environment variable CARGO_MANIFEST_PATH.
2025-05-05 22:13:48 +02:00
Lukas Wirth
2e7b86d4b6
Merge pull request #19750 from Veykril/push-zvvsopwxovrn
...
fix: Remove unnecessary token length check for macros in renaming
2025-05-05 15:06:16 +00:00
Lukas Wirth
c3bdb24764
fix: Remove unnecessary token length check for macros in renaming
2025-05-05 16:54:38 +02:00
Lukas Wirth
b41d379429
Merge pull request #19749 from Veykril/push-tsxvxzzmlxpq
...
refactor: Remove unnecessary `AsAny` trait
2025-05-05 14:53:57 +00:00
Lukas Wirth
227dd283f9
Merge pull request #19748 from Veykril/push-qvmtutwtonou
...
github: Direct users to discussions instead of issues for questions
2025-05-05 14:52:49 +00:00
Lukas Wirth
941e8f1b15
refactor: Remove unnecessary AsAny trait
2025-05-05 16:42:17 +02:00
Lukas Wirth
5620b39a42
github: Direct users to discussions instead of issues for questions
2025-05-05 16:41:39 +02:00
Lukas Wirth
37cbd83303
Merge pull request #19434 from vishruth-thimmaiah/negatives_in_concat
...
fix: negative nums in `concat!` expansion
2025-05-05 14:05:52 +00:00
Vishruth-Thimmaiah
63e7c7ece3
fix: negative nums in concat! expansion
2025-05-05 19:00:24 +05:30