Chayim Refael Friedman
5c0c794bee
Put dyn inlay hints in their correct place in presence of parentheses
2025-07-09 19:33:47 +03:00
Chayim Refael Friedman
e4e9404ea2
Don't show dyn hint in a HRTB bound
2025-07-09 19:19:51 +03:00
Laurențiu Nicola
4b506ca0e1
Merge pull request #20170 from Veykril/push-vtsmzopsunsw
...
Improve flycheck and build script progress reporting
2025-07-04 13:46:09 +00:00
Lukas Wirth
f3325a5a6a
Improve flycheck and build script progress reporting
2025-07-04 11:52:09 +02:00
Lukas Wirth
c49987f5a4
Skip unnecessary eq work in BodySourceMap
2025-07-04 11:36:06 +02:00
Lukas Wirth
1494a27faf
Merge pull request #20031 from jnyfah/some-branch
...
Fix: Resolve HIR display length issues and improve adjustment tooltips
2025-07-04 09:20:14 +00:00
Lukas Wirth
0b4cbdf556
minor: Handle match arm commas in make::match_arm
...
Co-authored-by: Giga Bowser <45986823+Giga-Bowser@users.noreply.github.com>
2025-07-04 11:08:28 +02:00
Lukas Wirth
474e42ddc4
Merge pull request #20148 from ShoyuVanilla/sysroot-no-deps
...
fix: Honor `rust-analyzer.cargo.noDeps` option when fetching sysroot metadata
2025-07-04 08:03:25 +00:00
Lukas Wirth
1de9e2c461
Merge pull request #20165 from Hmikihiro/migrate-unmerge_match_arm
...
Migrate `unmerge_match_arm` Assist to use `SyntaxEditor`
2025-07-04 08:02:58 +00:00
Lukas Wirth
f34a7ecf04
Merge pull request #20167 from ChayimFriedman2/enum-derive-default
...
fix: Fix some things with builtin derives
2025-07-04 07:59:14 +00:00
Vincent Esche
7a67f31c39
Add fn load_workspace_into_db variant for ra_ap_load_cargo's fn load_workspace
2025-07-03 23:09:49 +02:00
Chayim Refael Friedman
e04574454c
Fix some things with builtin derives
...
1. Err on unions on derive where it's required.
2. Err on `#[derive(Default)]` on enums without `#[default]` variant.
3. Don't add where bounds `T: Default` when expanding `Default` on enums (structs need that, enums not).
Also, because I was annoyed by that, in minicore, add a way to filter on multiple flags in the line-filter (`// :`). This is required for the `Debug` and `Hash` derives, because the derive should be in the prelude but the trait not.
2025-07-03 23:05:56 +03:00
Hayashi Mikihiro
bbf1c9f82f
Migrate unmerge_match_arm Assist to use SyntaxEditor
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-04 02:32:55 +09:00
Lukas Wirth
3ac0d56e8e
Merge pull request #20161 from ShoyuVanilla/closure-capture
...
fix: Incorrect closure capturing for let exprs
2025-07-03 15:42:11 +00:00
Chayim Refael Friedman
59e25a03a6
Merge pull request #20120 from Hmikihiro/match_bind_not_type
...
fix: resolve item in match bind
2025-07-03 15:27:07 +00:00
Hayashi Mikihiro
b007ecb467
fix: resolve item in match bind
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-03 23:57:18 +09:00
Shoyu Vanilla
9b351f13e2
fix: Closure capturing for let exprs, again
2025-07-03 22:51:16 +09:00
Lukas Wirth
60a13592b7
Merge pull request #20160 from Veykril/push-pqvskktpnylu
...
fix: Improve diagnostic ranges for `macro_calls!`
2025-07-03 12:23:23 +00:00
Lukas Wirth
2899630009
fix: Improve diagnostic ranges for macro_calls!
...
We used to point to the entire macro call including its token tree if we couldn't upmap the diagnostic to the input
This generally makes things very noisy as the entire macro call will turn red on errors.
Instead, we now macro the path and `!` (bang) token as the error source range which is a lot nicer on the eyes.
2025-07-03 14:12:27 +02:00
Lukas Wirth
2a4b4ff42f
Merge pull request #20159 from Veykril/push-kyssnlrxlwsl
...
Always couple `--compile-time-deps` with
2025-07-03 11:03:36 +00:00
Lukas Wirth
ea88dbedc9
Always couple --compile-time-deps with
...
`--all-targets` coupled with `--compile-time-deps` will never actually build binaries and so it won't fail for targets where libtest is missing
2025-07-03 12:52:32 +02:00
Lukas Wirth
4a6bd408f1
Merge pull request #20158 from Veykril/push-rquozrwuskry
...
fix: Do not warn about proc-macro srv when sysroot is missing
2025-07-03 10:03:04 +00:00
Lukas Wirth
7e65c228f3
fix: Do not warn about proc-macro srv when sysroot is missing
2025-07-03 11:51:31 +02:00
Lukas Wirth
60a65eca0f
Merge pull request #20157 from Veykril/push-nxrvpywtvoys
...
Re-enable fixpoint iteration for variance computation
2025-07-03 09:27:44 +00:00
Lukas Wirth
634dd221a8
Re-enable fixpoint iteration for variance computation
2025-07-03 10:48:09 +02:00
Lukas Wirth
f98e4d05a1
Merge pull request #19923 from Veykril/push-rlrsyxsqnxnn
...
Bump salsa
2025-07-03 08:16:33 +00:00
Lukas Wirth
898f265521
Bump salsa
2025-07-03 10:05:16 +02:00
Lukas Wirth
41c0d9649c
Merge pull request #20112 from Veykril/push-ruszuxrqzmvz
...
Workaround missing none group support in builtin macros
2025-07-03 08:04:16 +00:00
Lukas Wirth
6dd8cfee3b
Merge pull request #20156 from Veykril/push-knkzxuxkzoyx
...
Restructure proc-macro loading erros, differentiate hard error property on kind
2025-07-03 07:40:17 +00:00
Lukas Wirth
adcb38cb18
Restructure proc-macro loading erros, differentiate hard error property on kind
2025-07-03 09:28:53 +02:00
Chayim Refael Friedman
51ef8fb35d
Remove keyword prefixes (macro@ or macro ) from links in the docs only if the link target is inferred
...
That is, do it for `[macro foo]`, but not for `[macro foo](macro foo)`.
2025-07-03 00:41:47 +03:00
Shoyu Vanilla
4cfc341451
fix: Honor rust-analyzer.cargo.noDeps option when fetching sysroot metadata
2025-07-03 00:16:05 +09:00
Hayashi Mikihiro
6f1369b771
Migrate wrap_unwrap_cfg_attr assist to use SyntaxEditor
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-02 01:18:22 +09:00
Hayashi Mikihiro
aed886c6f8
Migrate toggle_macro_delimiter assist to SyntaxEditor
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-01 22:40:31 +09:00
Hayashi Mikihiro
61825a6e1a
Migrate promote_local_to_const Assist to SyntaxEditor
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-01 20:11:52 +09:00
Hayashi Mikihiro
64d3647d77
remove if-let chains
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-01 18:38:50 +09:00
Hayashi Mikihiro
6a52b3a6cf
Migrate replace_is_method_with_if_let_method Assist to use SyntaxFactory
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-01 17:19:16 +09:00
Laurențiu Nicola
0edf5726c7
Merge from rust-lang/rust
2025-06-30 17:42:03 +03:00
Laurențiu Nicola
3b5b35052c
Preparing for merge from rust-lang/rust
2025-06-30 17:41:18 +03:00
Oli Scherer
d0bb9a73aa
Try increasing the repetition limit
2025-06-30 08:04:40 +00:00
zachs18
bc06bb193d
Remove last use of rustc_pat_analysis::Captures
...
It's not necessary anymore due to Rust 2024 lifetime capture rules.
2025-06-29 22:36:53 -05:00
bors
ed2d759783
Auto merge of #143137 - RalfJung:miri-sync, r=RalfJung
...
Miri subtree update
r? `@ghost`
2025-06-29 16:04:05 +00:00
yukang
a203e4118e
Remove unnecessary parens in closure
2025-06-29 19:28:48 +08:00
Guillaume Gomez
66ad1f2abf
Rollup merge of #142078 - sayantn:more-intrinsics, r=workingjubilee
...
Add SIMD funnel shift and round-to-even intrinsics
This PR adds 3 new SIMD intrinsics
- `simd_funnel_shl` - funnel shift left
- `simd_funnel_shr` - funnel shift right
- `simd_round_ties_even` (vector version of `round_ties_even_fN`)
TODO (future PR): implement `simd_fsh{l,r}` in miri, cg_gcc and cg_clif (it is surprisingly hard to implement without branches, the common tricks that rotate uses doesn't work because we have 2 elements now. e.g, the `-n&31` trick used by cg_gcc to implement rotate doesn't work with this because then `fshl(a, b, 0)` will be `a | b`)
[#t-compiler > More SIMD intrinsics](https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/More.20SIMD.20intrinsics/with/522130286 )
`@rustbot` label T-compiler T-libs A-intrinsics F-core_intrinsics
r? `@workingjubilee`
2025-06-29 12:29:53 +02:00
Lukas Wirth
638329b86d
Merge pull request #20121 from Veykril/push-vkkuutpsuypq
...
Do not append `--compile-time-deps` to overwritten build script commands
2025-06-29 07:18:59 +00:00
Lukas Wirth
06097350c4
Do not append --compile-time-deps to overwritten build script commands
2025-06-29 09:07:55 +02:00
Ralf Jung
e56294060a
disable ptrace codepath since it doesn't build on many targets
2025-06-29 07:12:13 +02:00
Ralf Jung
a317123ad0
fix miri build in bootstrap
2025-06-29 07:05:17 +02:00
Matthias Krüger
8dbc25ce9f
Rollup merge of #143155 - yotamofek:pr/rustdoc/housekeeping, r=GuillaumeGomez
...
`librustdoc` house-keeping 🧹
This PR mostly removes a bunch of crate-level attributes that were added at some point, but then later on became unnecessary:
- some `#[feature]` gates
- some `#[allow]`s
- a `#[recursion_limit]`
Then I went ahead and sprinkled some tidy sorting on the remaining attrs, and `Cargo.toml`.
Trying to give my anal retentiveness some peace of mind 😅
2025-06-29 06:59:32 +02:00
Matthias Krüger
c0e0528857
Rollup merge of #142021 - HamidrezaSK:fix-lint-precedence-doc, r=ehuss
...
Doc: clarify priority of lint level sources
This updates the rustc book to clearly document how conflicting lint configurations are resolved across different sources, including command-line flags, crate-level attributes, in-line attributes, and `--cap-lints`.
It also explains the special behavior of `forbid` and `force_warn`.
Fixes rust-lang/rust#124088
2025-06-29 06:59:27 +02:00