Shoyu Vanilla (Flint)
649ec27ced
Merge pull request #20223 from Hmikihiro/migrate_generate_impl
...
Migrate `generate_impl` assist to use `SyntaxEditor`
2025-07-10 11:45:25 +00:00
Hayashi Mikihiro
b6920519e3
Migrate generate_impl assist to use SyntaxEditor
2025-07-10 18:12:16 +09:00
Shoyu Vanilla (Flint)
7625ed9394
Merge pull request #20210 from ChayimFriedman2/naked-asm-safe
...
fix: Inline asm fixes
2025-07-10 06:28:49 +00:00
Laurențiu Nicola
2452863acf
Merge pull request #20221 from lnicola/assist-let-chain
...
minor: Revert "remove `if-let` chains"
2025-07-10 05:37:26 +00:00
Laurențiu Nicola
9068133f2e
Revert "remove if-let chains"
...
This reverts commit fcc81a38b3ed55447735f71e8d374fcb36c22f24.
2025-07-10 08:24:53 +03:00
Shoyu Vanilla (Flint)
6ae9db7d64
Merge pull request #20212 from ChayimFriedman2/dyn-hint
...
fix: Fixes for `dyn` inlay hint
2025-07-10 04:57:57 +00:00
Shoyu Vanilla (Flint)
80f50227a6
Merge pull request #20218 from Hmikihiro/migrate_convert_match_to_let_else
...
Migrate `convert_match_to_let_else` assist to use `SyntaxEditor`
2025-07-10 04:32:40 +00:00
Hayashi Mikihiro
b273929156
Migrate convert_match_to_let_else assist to use SyntaxEditor
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com >
2025-07-10 11:22:32 +09:00
Chayim Refael Friedman
36f6f1e72d
Make AsmExpr have AstId
...
We need it because `global_asm!()` is an item. It's unfortunate that such thing can slip in and I see no way to automatically catch that, but thankfully analysis-stats on self has caught that.
2025-07-09 21:43:20 +03:00
Chayim Refael Friedman
56f1403319
Merge pull request #20214 from rust-lang/update-msrv
...
Update MSRV to 1.88.0
2025-07-09 18:41:33 +00:00
Laurențiu Nicola
ee407b5ced
Merge pull request #20211 from Hmikihiro/migrate-convert_named_struct
...
Migrate `convert_named_struct_to_tuple_struct` assist to use 'SyntaxEditor'
2025-07-09 18:35:28 +00:00
Chayim Refael Friedman
c246e06240
Update MSRV to 1.88.0
2025-07-09 21:30:22 +03:00
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
46e95199b9
Disable the diagnostics_dont_block_typing test on CI
...
It's failing to much. We need to fix it, but my changes are unlikely to be the cause.
2025-07-09 19:29:11 +03:00
Chayim Refael Friedman
e4e9404ea2
Don't show dyn hint in a HRTB bound
2025-07-09 19:19:51 +03:00
Hayashi Mikihiro
f3fc50b636
migrate convert_named_struct_to_tuple_struct assist to use 'SyntaxEditor'
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com >
2025-07-10 01:01:47 +09:00
Chayim Refael Friedman
90653b0f5c
Make global_asm!() work
...
Because apparently, we were not accepting inline asm in item position, completely breaking it.
2025-07-09 18:55:27 +03:00
Shoyu Vanilla (Flint)
f75d00082f
Merge pull request #20109 from Hmikihiro/generate_new_tuple_field
...
feat: Generate `new` for tuple struct
2025-07-09 15:22:47 +00:00
Chayim Refael Friedman
ebdd8598d4
Differentiate between asm!(), global_asm!() and naked_asm!(), and make only asm!() unsafe
2025-07-09 17:37:27 +03:00
Chayim Refael Friedman
7b39139d22
Don't hash the SyntaxKind in the ast id
...
There is no need to, it's already stored in the `kind`.
2025-07-09 17:21:45 +03:00
Shoyu Vanilla (Flint)
f89d98dad7
Merge pull request #20200 from rust-lang/revert-20157-push-nxrvpywtvoys
...
Revert "Re-enable fixpoint iteration for variance computation"
2025-07-09 02:30:26 +00:00
Shoyu Vanilla (Flint)
ea65d0a66b
Merge pull request #20198 from Hmikihiro/migrate_pull_asignment_up
...
Migrate `pull_assignment_up` assist to use`SyntaxEditor`
2025-07-09 01:51:48 +00:00
Chayim Refael Friedman
910c78b75a
Revert "Re-enable fixpoint iteration for variance computation"
2025-07-08 23:41:22 +03:00
Hayashi Mikihiro
5834bda8be
Migrate pull_assignment_up assist to SyntaxEditor
...
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com >
2025-07-09 00:58:58 +09:00
Lukas Wirth
eed37be419
Merge pull request #20192 from ChayimFriedman2/link-type-panic
...
fix: Fix a case where the link type was `None`
2025-07-08 05:52:58 +00:00
Lukas Wirth
0209f9e5f8
Merge pull request #20180 from ChayimFriedman2/parser-stuck
...
fix: Always bump in the parser in `err_and_bump()`
2025-07-07 18:42:12 +00:00
Chayim Refael Friedman
aa331b1c5f
Fix a case where the link type was None
...
Which caused a panic.
2025-07-07 20:44:18 +03:00
David Barsky
7fbbdb6295
Merge pull request #20185 from ChayimFriedman2/variant-symbols
...
feat: Include enum variants in world symbols
2025-07-07 15:15:27 +00:00
Chayim Refael Friedman
a9b8eec4b7
Include enum variants in world symbols
...
I opted to not include enum variant imports, only under the enum, and to not gate this behind a setting.
2025-07-06 14:52:10 +03:00
Lukas Wirth
1cf9a7bd7b
Merge pull request #20184 from Veykril/push-ywpynxnltpok
...
chore: Remove dead field from `InferenceContext`
2025-07-06 09:08:36 +00:00
Lukas Wirth
836e0cbccf
chore: Remove dead field from InferenceContext
2025-07-06 10:57:06 +02:00
Lukas Wirth
eca5905364
Merge pull request #20132 from A4-Tacks/asmut-borrow-minicore
...
Add AsMut, Borrow and BorrowMut to minicore and famous_defs
2025-07-06 08:01:54 +00:00
Lukas Wirth
37f2263438
Merge pull request #20126 from Wilfred/no_unwrap_in_discover_projects
...
fix: Avoid .unwrap() when running the discover command
2025-07-06 08:01:10 +00:00
Lukas Wirth
bc10a25284
Merge pull request #20179 from ChayimFriedman2/destructuring-assignment-never
...
fix: Fix diverging destructuring assignments
2025-07-06 07:01:40 +00:00
Chayim Refael Friedman
7fb07c9069
Merge pull request #20175 from dianne/match-check-box-cleanup
...
`hir_ty::match_check` cleanup: remove special handling for box patterns
2025-07-06 02:32:49 +00:00
Chayim Refael Friedman
f74e9b0ebf
Always bump in the parser in err_and_bump()
...
Even when at curly braces, otherwise the parser can get stuck.
This has happened in the past in #18625 , but it was just worked around instead of handling the root of the problem. Now this happened again in #20171 . IMO we can't let `err_and_bump()` not bump, that's too confusing and invites errors. We can (as I did) workaround the worse recovery instead.
2025-07-06 03:21:43 +03:00
Chayim Refael Friedman
f5238432ce
Merge pull request #20172 from vxpm/syntax-tree-extension
...
remove `rust-analyzer/syntaxTree` from docs
2025-07-05 19:43:19 +00:00
Chayim Refael Friedman
4aa30b513f
Fix diverging destructuring assignments
...
They need to return `!`, unlike diverging ordinary assignments. See the comment in the code.
2025-07-05 22:35:22 +03:00
A4-Tacks
1d7fde3085
Fix Borrow and BorrowMut define from beta std
2025-07-05 21:49:56 +08:00
dianne
26fd40e325
hir_ty::match_check: remove special handling for box patterns
2025-07-04 23:43:49 -07:00
vinícius x
babbafb1c1
remove syntaxTree from docs
2025-07-04 14:27:03 -03:00
Wilfred Hughes
e779ea0ea7
fix: Avoid .unwrap() when running the discover command
...
Previously, the following configuration in settings.json:
"rust-analyzer.workspace.discoverConfig": {
"command": [
"oops",
"develop-json",
"{arg}"
],
"progressLabel": "rust-analyzer",
"filesToWatch": [
"BUCK",
"TARGETS"
]
},
Would previously cause a crash in rust-analyzer:
thread 'LspServer' panicked at crates/rust-analyzer/src/main_loop.rs:776:84:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
Instead, use more specific panic messages.
2025-07-04 16:55:53 +01: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
3bfe103082
Merge pull request #20169 from Veykril/push-quvvsupnqqwv
...
Skip unnecessary `eq` work in `BodySourceMap`
2025-07-04 09:47:36 +00: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
b7dbf143bb
Merge pull request #20168 from Veykril/push-wsozylrmsyns
...
minor: Handle match arm commas in `make::match_arm`
2025-07-04 09:19:22 +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