Lukas Wirth
e8d604fd0b
Add 'Use of AI tools' section to CONTRIBUTING.md
2025-12-21 13:26:07 +01:00
Lukas Wirth
30332663cb
Merge pull request #21264 from A4-Tacks/bind-unused-not-applicable-on-closure
...
Fix bind_unused_param applicable on closure
2025-12-14 09:13:41 +00:00
Lukas Wirth
952310251e
Merge pull request #21257 from Veykril/push-qnolwwkvuwxk
...
minor: Emit `WorkspaceDiagnosticRefresh` when flycheck finished
2025-12-14 09:05:23 +00:00
Lukas Wirth
560d2ec76e
Merge pull request #21253 from tris203/lsp_didSave
...
fix(lsp): handle dynamic registration for didSave
2025-12-14 08:56:11 +00:00
Lukas Wirth
701bb2fee1
minor: Emit WorkspaceDiagnosticRefresh when flycheck finished
2025-12-14 09:54:59 +01:00
A4-Tacks
189a794a50
Fix bind_unused_param applicable on closure
...
Example
---
```rust
fn foo() {
let _ = |$0x| 2;
}
```
**Before this PR**
```rust
fn foo() {
let _ = x;
let _ = |x| 2;
}
```
**After this PR**
Assist not applicable
2025-12-14 07:43:54 +08:00
Chayim Refael Friedman
b3e6363a47
Merge pull request #21263 from ChayimFriedman2/format-args-args
...
internal: Use a generated name in old format_args lowering, instead of `args`
2025-12-13 18:21:51 +00:00
Chayim Refael Friedman
67c0f741ef
Use a generated name in old format_args lowering, instead of args
...
To prevent it from clashing with other names.
2025-12-13 20:12:08 +02:00
Lukas Wirth
731ae4d91e
Merge pull request #21242 from ChayimFriedman2/fmt-fix
...
fix: Support the new lowering of `format_args!()`
2025-12-12 17:45:43 +00:00
Lukas Wirth
4bf8020acb
Merge pull request #21251 from ChayimFriedman2/fix-typebound-kind
...
fix: Fix a panic in `ast::TypeBound::kind()`
2025-12-12 17:43:59 +00:00
Chayim Refael Friedman
73126ba686
Merge pull request #21256 from A4-Tacks/big-range-add-ret-type
...
Reorder add_return_type assist
2025-12-12 13:09:16 +00:00
A4-Tacks
a3dd6be762
Reorder add_return_type assist
...
This assist is often before inline and is very inconvenient
Usually, incomplete expression statements are written at the tail of the block, but they are not the return value of the block
```rust
fn foo() {
Some(2).$0and(optb)
}
```
```text
1. Add this function's return type
2. Inline `and`
3. Qualify `and` method call
4. Replace and with and_then
```
2025-12-12 20:59:41 +08:00
Shoyu Vanilla (Flint)
32f8abb993
Merge pull request #20754 from A4-Tacks/conv-for-while-loop-label-attr
...
Fix loses label for convert_for_to_while_let
2025-12-12 11:46:18 +00:00
tris203
31258db8e2
fix(lsp): handle dynamic registration for didSave
...
Update server capabilities to set `save` to `None` when the client supports
dynamic registration for `didSaveTextDocument`. This prevents redundant
static registration and aligns with LSP specification.
2025-12-12 07:41:36 +00:00
Chayim Refael Friedman
901ab2b4a8
Fix a panic in ast::TypeBound::kind()
2025-12-12 00:45:37 +02:00
Chayim Refael Friedman
0adc11b534
Merge pull request #21252 from ChayimFriedman2/fix-clippy
...
internal: Fix Clippy
2025-12-11 22:19:48 +00:00
Chayim Refael Friedman
ad25b20bdb
Fix Clippy
...
Needed because there is a new Clippy - Rust 1.92.0 was released.
2025-12-12 00:09:31 +02:00
Shoyu Vanilla (Flint)
583bb63b5b
Merge pull request #21239 from A4-Tacks/eager-param-and-paren
...
Fix assist `and` -> `and_then` parameter
2025-12-11 10:47:12 +00:00
Shoyu Vanilla (Flint)
f245261b64
Merge pull request #21243 from ChayimFriedman2/assoc-defaults
...
feat: Support `#[feature(associated_type_defaults)]`
2025-12-11 10:43:37 +00:00
Chayim Refael Friedman
0c65fd83ea
Merge pull request #21175 from A4-Tacks/indent-toggle-ignore
...
Fix indent for toggle_ignore
2025-12-11 01:06:31 +00:00
Chayim Refael Friedman
120be9b631
Merge pull request #21187 from nicolas-guichard/push-orysqtulnxww
...
Include operator overload occurrences in SCIP index
2025-12-11 01:04:46 +00:00
Chayim Refael Friedman
533fac504c
Merge pull request #21244 from ChayimFriedman2/deprecated-safe
...
fix: `#[rustc_deprecated_safe_2024]` can also come as `#[rustc_deprecated_safe_2024(audit_that = "reason")]`
2025-12-10 20:55:35 +00:00
Chayim Refael Friedman
6d512195a9
#[rustc_deprecated_safe_2024] can also come as #[rustc_deprecated_safe_2024(audit_that = "reason")]
2025-12-10 22:45:20 +02:00
Chayim Refael Friedman
8f9d86226d
Support #[feature(associated_type_defaults)]
2025-12-10 22:27:21 +02:00
Chayim Refael Friedman
c0bf494d24
Support the new lowering of format_args!()
2025-12-10 19:20:48 +02:00
Chayim Refael Friedman
ab30fee76f
Merge pull request #21241 from ShoyuVanilla/issue-20487-again
...
fix: Support dyn compatibility for old toolchains without `MetaSized`
2025-12-10 15:52:40 +00:00
Shoyu Vanilla
8747b0abf1
Bring back MINIMUM_SUPPORTED_TOOLCHAIN_VERSION to 1.78.0
2025-12-11 00:36:28 +09:00
Shoyu Vanilla
99df3375e3
fix: Support dyn compatibility for old toolchains without MetaSized
2025-12-11 00:35:48 +09:00
Chayim Refael Friedman
fd8f92d94a
Move format_args!() lowering to a separate file
...
It's growing out of control.
2025-12-10 15:23:07 +02:00
A4-Tacks
f65d2df448
Fix assist and -> and_then parameter
...
- And fix fallback parentheses
Example
---
```rust
fn foo() {
let foo = Some("foo");
return foo.and$0(Some("bar"));
}
```
**Before this PR**
```rust
fn foo() {
let foo = Some("foo");
return foo.and_then(|| Some("bar"));
}
```
**After this PR**
```rust
fn foo() {
let foo = Some("foo");
return foo.and_then(|it| Some("bar"));
}
```
---
```rust
struct Func { f: fn() -> i32 }
fn foo() {
let foo = true;
let func = Func { f: || 2 };
let x = foo.then$0(func.f);
}
```
**Before this PR**
```text
request handler panicked: Failed to make ast node `syntax::ast::generated::nodes::CallExpr` from text const C: () = func.f();
```
**After this PR**
```rust
struct Func { f: fn() -> i32 }
fn foo() {
let foo = true;
let func = Func { f: || 2 };
let x = foo.then_some((func.f)());
}
```
2025-12-10 18:42:33 +08:00
Lukas Wirth
9b2e5b37d9
Merge pull request #21233 from Veykril/push-ursspxxkozkk
...
Revert "Turn `BlockLoc` into a tracked struct"
2025-12-10 07:52:40 +00:00
Lukas Wirth
225c5e0866
Revert "Turn BlockLoc into a tracked struct"
...
This reverts commit 64cabd87be97bb1fa9ac15a77e8fba64d06d426b.
2025-12-10 08:43:07 +01:00
Chayim Refael Friedman
5f4aca303d
Merge pull request #21238 from Colepng/is_transmutable-fix
...
fix: is_transmutable always panicking
2025-12-10 07:31:12 +00:00
Cole Kauder-McMurrich
fc5a6832eb
fix: is_transmutable always panicking
2025-12-10 02:14:43 -05:00
Chayim Refael Friedman
cdc7296a60
Merge pull request #21235 from benodiwal/fix-const-generic-param-env-panic
...
fix: resolve const generic param-env panic in type projection
2025-12-09 16:18:15 +00:00
benodiwal
676550b308
fix: resolve const generic param-env panic in type projection
2025-12-09 21:25:26 +05:30
Shoyu Vanilla (Flint)
8acfc85922
Merge pull request #21044 from A4-Tacks/fix-make-unnamed-param
...
Fix make::unnamed_param result a untyped_param
2025-12-09 04:45:26 +00:00
A4-Tacks
ef9928781a
Add complex tests for assist generate_fn_type_alias
2025-12-09 12:34:35 +08:00
Shoyu Vanilla (Flint)
8b86d8b8de
Merge pull request #21210 from A4-Tacks/comp-unescaped-brace-fmt-str
...
Fix not complete `format!("{{{$0")` and underscore
2025-12-09 04:26:01 +00:00
Chayim Refael Friedman
3a633a37f6
Merge pull request #21226 from benodiwal/fix/impl-display-trait-generic-args
...
fix: fixed Impl display to show trait generic args
2025-12-08 21:26:46 +00:00
Laurențiu Nicola
2976de6304
Merge pull request #21231 from Urgau/patch-2
...
Remove `[no-mentions]` handler in our triagebot config
2025-12-08 18:48:29 +00:00
Urgau
d828665b5f
Remove [no-mentions] handler in our triagebot config
...
https://github.blog/changelog/2025-11-07-removing-notifications-for-mentions-in-commit-messages/
2025-12-08 19:19:22 +01:00
Shoyu Vanilla (Flint)
72d41e19d3
Merge pull request #21209 from ChayimFriedman2/stale-expr
...
internal: Do not create stale expressions in body lowering
2025-12-08 16:28:46 +00:00
Shoyu Vanilla (Flint)
d1c784328d
Merge pull request #21207 from rust-lang/dependabot/npm_and_yarn/editors/code/multi-d0f6e8601e
...
Bump jws in /editors/code
2025-12-08 16:18:41 +00:00
Shoyu Vanilla (Flint)
c6b3ec5a5f
Merge pull request #21221 from A4-Tacks/no-pub-in-variant-field
...
Fix pub in enum variant field for no_such_field
2025-12-08 07:18:53 +00:00
Shoyu Vanilla (Flint)
2bfbba3b84
Merge pull request #21174 from Young-Flash/migrate_convert_iter_for_each_to_for
...
internal: migrate `convert_iter_for_each_to_for` to SyntaxEditor api
2025-12-08 07:11:26 +00:00
Shoyu Vanilla (Flint)
79be9f1174
Merge pull request #21199 from Young-Flash/migrate_generate_delegate_trait
...
internal: migrate `generate_delegate_trait` to SyntaxEditor api
2025-12-08 07:10:19 +00:00
benodiwal
d40aad9c2d
fix: updated to use hir-def representation
2025-12-08 11:57:31 +05:30
benodiwal
aec8ce4693
fix: fixed Impl display to show trait generic args
2025-12-08 04:41:05 +05:30
Lukas Wirth
632acd7247
Merge pull request #21222 from A4-Tacks/no-comp-resugar-unit-ret-ty
...
No complete unit RetType in resugar async assoc item
2025-12-07 15:06:49 +00:00