Commit graph

300773 commits

Author SHA1 Message Date
Laurențiu Nicola
7f19af89b6
Merge pull request #20317 from Veykril/push-koossvzyyvmm
fix: Fix incorrect build script version check
2025-07-27 19:34:24 +00:00
Lukas Wirth
c5480a9096 fix: Fix incorrect build script version check 2025-07-27 21:22:50 +02:00
Lukas Wirth
2749482d6b
Merge pull request #20315 from Veykril/push-pvmslwwouzzx
internal: Fix lockfile temp dir usage and use it for build scripts as well
2025-07-27 18:39:39 +00:00
Lukas Wirth
38c61c9ae8 Copy lockfile when building build scripts 2025-07-27 20:28:22 +02:00
Lukas Wirth
2604101122 internal: Better type proc macro dylib build data state 2025-07-27 19:37:16 +02:00
Shoyu Vanilla (Flint)
2792799490
Merge pull request #20305 from Hmikihiro/Migrate_part_of_utils
Migrate part of utils.rs to use SyntaxEditor
2025-07-27 14:43:01 +00:00
Lukas Wirth
dfc9bd02ae
Merge pull request #20290 from ShoyuVanilla/tmp-lockfiles
Use `TempDir` for copied lockfiles
2025-07-27 11:36:35 +00:00
Laurențiu Nicola
d941bc7d30
Merge pull request #20302 from Young-Flash/fix_20240
fix fold doc comment for multiline param list fn
2025-07-27 06:01:44 +00:00
Young-Flash
3b0988b6e9 minor: fix typo 2025-07-27 10:54:43 +08:00
Laurențiu Nicola
3228fb735d
Merge pull request #20307 from Hmikihiro/migrate_extract_expression_from_format_string
Migrate `extract_expressions_from_format_string` assist to use `SyntaxEditor`
2025-07-26 14:34:56 +00:00
Laurențiu Nicola
41171e2db3
Merge pull request #20306 from Hmikihiro/migrate_convert_to_guarded_return
Migrate `Convert_to_guarded_return` assist to use SyntaxEditor
2025-07-26 13:58:10 +00:00
Hayashi Mikihiro
23923682f0 Migrate extract_expressions_from_format_string assist to use SyntaxEditor
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-26 18:23:22 +09:00
Hayashi Mikihiro
6ff9be827b Migrate Convert_to_guarded_return to use SyntaxEditor
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-26 18:17:09 +09:00
Hayashi Mikihiro
317cd5683c Migrate part of utils.rs to use SyntaxEditor
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-26 17:07:41 +09:00
Young-Flash
2c29977dfc test: add test case for fold doc comment for multiline param list fn 2025-07-26 11:59:50 +08:00
Young-Flash
e39201395d fix fold doc comment for multiline param list fn 2025-07-26 11:57:48 +08:00
Shoyu Vanilla (Flint)
b9827eb1d8
Merge pull request #20293 from Hmikihiro/migrate_replace_derive_with_manual_impl
Migrate `replace derive with manual impl` and `add_missing_impl_members` to use `SyntaxEditor`
2025-07-25 15:40:26 +00:00
Hayashi Mikihiro
0e11947813 Modify around add_trait_assoc_items_to_impl to migrate add_missing_impl_members
Signed-off-by: Hayashi Mikihiro <34ttrweoewiwe28@gmail.com>
2025-07-26 00:22:29 +09:00
Hmikihiro
225988b762 migrate_replace_derive_with_manual_impl 2025-07-25 19:50:44 +09:00
Hmikihiro
3c8fdcbed6 split ted from gen_trait_fn_body 2025-07-25 19:50:44 +09:00
Shoyu Vanilla (Flint)
e8757ce629
Merge pull request #19938 from A4-Tacks/gen-impl-trait
Add ide-assist: generate_impl_trait for generate_impl
2025-07-25 04:16:22 +00:00
Chayim Refael Friedman
d976ef8ae4
Merge pull request #20297 from A4-Tacks/fix-ws-gen-trait-from-impl
Fix generate_trait_from_impl whitespace after vis
2025-07-24 09:41:20 +00:00
A4-Tacks
abddbc5bca
Fix generate_trait_from_impl whitespace after vis
Input:

```rust
struct Foo;

impl F$0oo {
    pub fn a_func() -> Option<()> {
        Some(())
    }
}
```

Old:

```rust
struct Foo;

trait NewTrait {
     fn a_func() -> Option<()>;
}

impl NewTrait for Foo {
     fn a_func() -> Option<()> {
        Some(())
    }
}
```

This PR fixed:

```rust
struct Foo;

trait NewTrait {
    fn a_func() -> Option<()>;
}

impl NewTrait for Foo {
    fn a_func() -> Option<()> {
        Some(())
    }
}
```
2025-07-24 15:06:56 +08:00
Chayim Refael Friedman
cf886546fc
Merge pull request #20291 from ChayimFriedman2/fix-cargo-lock
minor: Fix Cargo.lock
2025-07-23 14:46:47 +00:00
Shoyu Vanilla
c60cec3411 Use TempDir for copied lockfiles 2025-07-23 23:39:46 +09:00
Chayim Refael Friedman
b4724b4b61 Fix Cargo.lock
The dependency of `xtask` on `time` was mistakenly removed.
2025-07-23 17:35:08 +03:00
Chayim Refael Friedman
2974acb251
Merge pull request #20285 from A4-Tacks/fix-rename-self
Change rename self to parameter use `Self` type
2025-07-23 14:29:07 +00:00
A4-Tacks
3e9bf8c3b8
Remove rename_self_outside_of_methods 2025-07-23 22:04:59 +08:00
Lukas Wirth
654a803458
Merge pull request #20289 from ChayimFriedman2/expr-store-diags-macros
internal: Remove `ExpressionStoreDiagnostics::MacroError`, instead recreate it from the `MacroCallId`
2025-07-23 13:58:10 +00:00
Chayim Refael Friedman
f6288ba7b7 Remove ExpressionStoreDiagnostics::MacroError, instead recreate it from the MacroCallId
This simplifies the code and also makes us report parse error in macros too.
2025-07-23 16:27:07 +03:00
A4-Tacks
1023edc49c
Change rename self to parameter use Self type
And add `&self` lifetime support

Example
===

Rename to `this`

```rust
struct Foo<T>(T);
impl Foo<i32> {
    fn foo(&'static self$0) {}
}
```

Old:

```rust
struct Foo<T>(T);
impl Foo<i32> {
    fn foo(this: &Foo) {}
}
```

Fixes:

```rust
struct Foo<T>(T);
impl Foo<i32> {
    fn foo(this: &'static Self) {}
}
```
2025-07-23 13:51:28 +08:00
Shoyu Vanilla (Flint)
3d34e42c82
Merge pull request #20281 from ChayimFriedman2/parse-hrtb-const
fix: Parse `for<'a> [const]`
2025-07-23 01:50:16 +00:00
Laurențiu Nicola
0a9b71da67
Merge pull request #20280 from Kobzol/josh-sync
Switch to using josh-sync
2025-07-22 17:08:34 +00:00
Laurențiu Nicola
45c1136fcc
Merge pull request #20282 from Kobzol/josh-sync-ci
Add CI workflow for periodically performing josh pulls
2025-07-22 17:08:00 +00:00
Jakub Beránek
b14869d11f
Add CI workflow for periodically performing josh pulls 2025-07-22 18:15:54 +02:00
Jakub Beránek
0c22e6123b
Apply suggestions from code review
Co-authored-by: Laurențiu Nicola <lnicola@users.noreply.github.com>
2025-07-22 18:14:20 +02:00
Jakub Beránek
75a1a04a35
Document synces using josh-sync 2025-07-22 15:25:18 +02:00
Jakub Beránek
64daba7f18
Remove pull/push functionality from xtask 2025-07-22 15:25:16 +02:00
Chayim Refael Friedman
2bd169fcc7 Parse for<'a> [const]
And also refactor parsing of HRTB.
2025-07-22 16:24:42 +03:00
Laurențiu Nicola
8bab91ce35
Merge pull request #20279 from lnicola/add-josh-sync
internal: Add `josh-sync.toml`
2025-07-22 13:08:09 +00:00
Laurențiu Nicola
eabf33a005 Add josh-sync.toml 2025-07-22 15:56:41 +03:00
Shoyu Vanilla (Flint)
244bea2ceb
Merge pull request #20277 from rust-lang/dependabot/npm_and_yarn/editors/code/form-data-4.0.4
Bump form-data from 4.0.2 to 4.0.4 in /editors/code
2025-07-22 11:11:53 +00:00
Florian Diebold
2b141acfb4
Merge pull request #20278 from lnicola/analysis-stats-mir-lowering-only
internal: Support filtering in analysis-stats MIR lowering
2025-07-22 08:35:41 +00:00
Laurențiu Nicola
fa95cba0f0 Support filtering in analysis-stats MIR lowering 2025-07-22 11:22:16 +03:00
dependabot[bot]
1e1e5dee5c
Bump form-data from 4.0.2 to 4.0.4 in /editors/code
Bumps [form-data](https://github.com/form-data/form-data) from 4.0.2 to 4.0.4.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Changelog](https://github.com/form-data/form-data/blob/master/CHANGELOG.md)
- [Commits](https://github.com/form-data/form-data/compare/v4.0.2...v4.0.4)

---
updated-dependencies:
- dependency-name: form-data
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-22 05:30:29 +00:00
Shoyu Vanilla (Flint)
9150c8d2ce
Merge pull request #20269 from Hmikihiro/migrate_indent_mapping
Migrate AstNodeEdit::Indent to SyntaxEditor
2025-07-22 04:07:47 +00:00
Shoyu Vanilla (Flint)
e213fc418a
Merge pull request #20270 from Hmikihiro/migrate_generate_new
Migrate `generate new` assist to use `SyntaxEditor`
2025-07-22 03:41:03 +00:00
Chayim Refael Friedman
0ad543782f
Merge pull request #20273 from ShoyuVanilla/match-adjusts
fix: Apply adjusts to pats and exprs when doing pat analysis
2025-07-21 16:31:09 +00:00
Shoyu Vanilla
f1823d1521 fix: Apply adjusts to pats and exprs when doing pat analysis 2025-07-22 01:18:48 +09:00
Laurențiu Nicola
3c96a53a99
Merge pull request #20272 from glaubitz/x32-fixes
hir-def: Don't apply x86_64-specific asserts on x32
2025-07-21 15:18:46 +00:00