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
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
Lukas Wirth
c6a805c384
Merge pull request #20151 from ChayimFriedman2/keyword-hover-link
...
fix: Remove keyword prefixes (`macro@` or `macro `) from links in the docs only if the link target is inferred
2025-07-03 06:27:39 +00: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
Laurențiu Nicola
42e9a9f418
Merge pull request #20137 from Hmikihiro/migrate-wrap_unwrap_cfg_attr-assist-to-syntaxeditor
...
Migrate `wrap_unwrap_cfg_attr` Assist to use `SyntaxEditor`
2025-07-02 05:24:36 +00: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
Laurențiu Nicola
47687a4a64
Merge pull request #20136 from Hmikihiro/migrate-toggle_macro_delimiter
...
Migrate `toggle_macro_delimiter` Assist to use `SyntaxEditor`
2025-07-01 13:53:02 +00: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
Laurențiu Nicola
070b8e2a95
Merge pull request #20135 from Hmikihiro/migrate-promote_local_to_const-assist-tosyntaxeditor
...
Migrate `promote_local_to_const` Assist to `SyntaxEditor`
2025-07-01 11:23:23 +00: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
Laurențiu Nicola
f38da2fa2e
Merge pull request #20134 from Hmikihiro/migrate-replace_is_method_with_if_let_method-to-SyntaxFactory
...
Migrate `replace_is_method_with_if_let_method` Assist to use `SyntaxFactory`
2025-07-01 10:39:30 +00: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
c5f4b80cb9
Merge pull request #20128 from lnicola/sync-from-rust
...
Sync from downstream
2025-06-30 15:11:33 +00: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
bors
ad3b725761
Auto merge of #142839 - oli-obk:denullarification, r=RalfJung,celinval
...
Stop backends from needing to support nullary intrinsics
And then remove our infrastructure special casing them. Further improvements can now be done to them by avoiding the intermediate ConstValue step, but let's leave that to follow up work
r? `@RalfJung`
2025-06-30 11:24:47 +00:00
Oli Scherer
d0bb9a73aa
Try increasing the repetition limit
2025-06-30 08:04:40 +00:00
Oli Scherer
bd3205c02b
Require either wrapping nullary intrinsincs in const blocks or explicitly deciding not to
2025-06-30 08:04:40 +00:00
Oli Scherer
d37a04d09d
Remove the nullary intrinsic const eval logic and treat them like other intrinsics
2025-06-30 08:04:40 +00:00
Oli Scherer
672e0bec9e
Stop backends from needing to support nullary intrinsics
2025-06-30 08:04:19 +00:00
Lukas Wirth
863d0b5d53
Merge pull request #20124 from zachs18/patch-1
...
Remove last use of `rustc_pattern_analysis::Captures`
2025-06-30 05:32:04 +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
f19142044f
Auto merge of #142941 - compiler-errors:shallow-bail, r=lcnr
...
Shallowly bail from `coerce_unsized` more
We do a *lot* of coercion in HIR typeck. Most of the time we're just coercing a type to itself, but we always try `coerce_unsized` even if it's not necessary.
Let's avoid doing that by adding a fast path to `coerce_unsized`; see the comment in that function.
2025-06-30 02:02:46 +00:00
bors
35f6036521
Auto merge of #142802 - compiler-errors:dedup-analyses, r=lcnr
...
Collapse Analysis|Borrowck|PostBorrowckAnalysis when there are no opaques
r? lcnr
2025-06-29 19:12:29 +00: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
Chayim Refael Friedman
2a66a5b7d5
Merge pull request #20122 from chenyukang/yukang-fix-remove-parens
...
Remove unnecessary parens in closure
2025-06-29 15:14:31 +00:00
bors
5e749eb66f
Auto merge of #143183 - GuillaumeGomez:rollup-g60lr91, r=GuillaumeGomez
...
Rollup of 4 pull requests
Successful merges:
- rust-lang/rust#142078 (Add SIMD funnel shift and round-to-even intrinsics)
- rust-lang/rust#142214 (`tests/ui`: A New Order [9/N])
- rust-lang/rust#142417 (`tests/ui`: A New Order [12/N])
- rust-lang/rust#143030 (Fix suggestion spans inside macros for the `unused_must_use` lint)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-29 13:02:15 +00:00
yukang
a203e4118e
Remove unnecessary parens in closure
2025-06-29 19:28:48 +08:00
Guillaume Gomez
f9f3935fa7
Rollup merge of #143030 - Urgau:issue-143025, r=SparrowLii
...
Fix suggestion spans inside macros for the `unused_must_use` lint
This PR fixes the suggestion spans inside macros for the `unused_must_use` lint by trying to find the oldest ancestor span.
Fixes https://github.com/rust-lang/rust/issues/143025
2025-06-29 12:29:55 +02:00
Guillaume Gomez
05b209d3a2
Rollup merge of #142417 - Kivooeo:tf12, r=jieyouxu
...
`tests/ui`: A New Order [12/N]
Some `tests/ui/` housekeeping, to trim down number of tests directly under `tests/ui/`. Part of rust-lang/rust#133895 .
r? `@jieyouxu`
2025-06-29 12:29:55 +02:00
Guillaume Gomez
15b227f715
Rollup merge of #142214 - Kivooeo:tf9, r=jieyouxu
...
`tests/ui`: A New Order [9/N]
Some `tests/ui/` housekeeping, to trim down number of tests directly under `tests/ui/`. Part of rust-lang/rust#133895 .
2025-06-29 12:29:54 +02: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
bors
5ca574e85b
Auto merge of #143173 - matthiaskrgr:rollup-ieu5k05, r=matthiaskrgr
...
Rollup of 11 pull requests
Successful merges:
- rust-lang/rust#142021 (Doc: clarify priority of lint level sources)
- rust-lang/rust#142367 (Add regression test for rust-lang/rust#137857 to ensure that we generate intra doc links for extern crate items.)
- rust-lang/rust#142641 (Generate symbols.o for proc-macros too)
- rust-lang/rust#142889 (Clarify doc comment on unix OpenOptions)
- rust-lang/rust#143063 (explain `ImportData::imported_module`)
- rust-lang/rust#143088 (Improve documentation of `TagEncoding`)
- rust-lang/rust#143135 (fix typos on some doc comments)
- rust-lang/rust#143138 (Port `#[link_name]` to the new attribute parsing infrastructure)
- rust-lang/rust#143155 (`librustdoc` house-keeping 🧹 )
- rust-lang/rust#143169 (Remove unused feature gates)
- rust-lang/rust#143171 (Fix the span of trait bound modifier `[const]`)
r? `@ghost`
`@rustbot` modify labels: rollup
2025-06-29 07:22:39 +00:00