Commit graph

312322 commits

Author SHA1 Message Date
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
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
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
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
Lukas Wirth
ff8193c2cc
Merge pull request #21223 from Veykril/push-xpmrpxnwpono
fix: Disable postcard use temporarily
2025-12-07 14:02:19 +00:00
Lukas Wirth
34c61d1a72 fix: Disable postcard use temporarily 2025-12-07 14:52:10 +01:00
A4-Tacks
89a8142571
No complete unit RetType in resugar async assoc item
Example
---
```rust
use core::future::Future;

trait DesugaredAsyncTrait {
    fn foo(&self) -> impl Future<Output = ()> + Send;
}

impl DesugaredAsyncTrait for () {
    $0
}
```

**Before this PR**

```rust
use core::future::Future;

trait DesugaredAsyncTrait {
    fn foo(&self) -> impl Future<Output = ()> + Send;
}

impl DesugaredAsyncTrait for () {
    async fn foo(&self) -> () {
        $0
    }
}
```

**After this PR**

```rust
use core::future::Future;

trait DesugaredAsyncTrait {
    fn foo(&self) -> impl Future<Output = ()> + Send;
}

impl DesugaredAsyncTrait for () {
    async fn foo(&self) {
        $0
    }
}
```
2025-12-07 21:18:40 +08:00
A4-Tacks
3e33ed8fbb
Fix pub in enum variant field for no_such_field
Example
---
```rust
//- /main.rs
mod foo;

fn main() {
    foo::Foo::Variant { bar: 3, $0baz: false};
}
//- /foo.rs
pub enum Foo {
    Variant {
        bar: i32
    }
}
```

**Before this PR**

```rust
pub enum Foo {
    Variant {
        bar: i32,
        pub(crate) baz: bool
    }
}
```

**After this PR**

```rust
pub enum Foo {
    Variant {
        bar: i32,
        baz: bool
    }
}
```
2025-12-07 20:49:22 +08:00
Lukas Wirth
9f9c9c3845
Merge pull request #21178 from Veykril/tracked-modules
internal: Make `ModuleId` a tracked struct
2025-12-07 08:41:04 +00:00
Lukas Wirth
a1a9514f6f Turn BlockLoc into a tracked struct 2025-12-07 09:31:53 +01:00
Lukas Wirth
7766ee6869 Make ModuleId a tracked struct
optimize some stuff

Optimize `pub(crate)` visibility resolution

Optimize private visibility resolution
2025-12-07 09:31:19 +01:00
Lukas Wirth
ed043f4813
Merge pull request #21215 from ChayimFriedman2/unsized-struct
fix: Don't implement sizedness check via `all_field_tys()`
2025-12-07 08:30:54 +00:00
Chayim Refael Friedman
aafe60d12f
Merge pull request #21218 from ChayimFriedman2/update-supported-version
internal: Update supported Rust version to 1.90.0
2025-12-07 00:24:54 +00:00
Chayim Refael Friedman
e9d18d5b60 Update supported Rust version to 1.90.0
We no longer work properly with older versions.
2025-12-07 02:14:39 +02:00
Chayim Refael Friedman
74734878c8 Don't implement sizedness check via all_field_tys()
Since we don't implement it currently for perf reasons, but here we only need a struct's tail field, it will be wrong.
2025-12-06 21:23:21 +02:00
A4-Tacks
2122285ff9
Fix not complete format!("{{{$0") and underscore
Example
---
```rust
fn main() {
    let foobar = 1;
    format_args!("{{{f$0");
}
```

**Before this PR**

No complete

**After this PR**

```rust
fn main() {
    let foobar = 1;
    format_args!("{{{foobar");
}
```
---
```rust
fn main() {
    let foo_bar = 1;
    format_args!("{foo_$0}");
}
```

**Before this PR**

No complete

**After this PR**

```rust
fn main() {
    let foo_bar = 1;
    format_args!("{foo_bar}");
}
```
2025-12-05 23:15:58 +08:00
Young-Flash
1b396d7b7b minor: add missing SyntaxFactory::assoc_item_list 2025-12-05 20:27:30 +08:00
Chayim Refael Friedman
e2d9d4981e Do not create stale expressions in body lowering 2025-12-05 12:53:10 +02:00
Lukas Wirth
15e0532466
Merge pull request #21208 from ChayimFriedman2/lint-attrs-hir
internal: Handle lint attributes via hir-expand attr handling
2025-12-05 09:12:21 +00:00
Chayim Refael Friedman
1769b0b680 Handle lint attributes via hir-expand attr handling
This avoids code duplication.
2025-12-05 07:04:18 +02:00