35469 Commits

Author SHA1 Message Date
Laurențiu Nicola
098fdb4ff1
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
dd5129b832 fix: Fix incorrect build script version check 2025-07-27 21:22:50 +02:00
Lukas Wirth
68810295f2
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
df85aac1d4 Copy lockfile when building build scripts 2025-07-27 20:28:22 +02:00
Lukas Wirth
7950da3940 internal: Better type proc macro dylib build data state 2025-07-27 19:37:16 +02:00
Shoyu Vanilla (Flint)
971c393ab3
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
b77072075c
Merge pull request #20290 from ShoyuVanilla/tmp-lockfiles
Use `TempDir` for copied lockfiles
2025-07-27 11:36:35 +00:00
Laurențiu Nicola
7a621817af
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
bb163570f2 minor: fix typo 2025-07-27 10:54:43 +08:00
Laurențiu Nicola
ea413f67a8
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
b0ae0abfc0
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
c9abba3c7a 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
92922f5e56 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
2c16eb8fa0 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
a56035dd4e test: add test case for fold doc comment for multiline param list fn 2025-07-26 11:59:50 +08:00
Young-Flash
a0c7a4ab83 fix fold doc comment for multiline param list fn 2025-07-26 11:57:48 +08:00
Shoyu Vanilla (Flint)
51e77c9d7b
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
82dfdacb78 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
827e3f7c17 migrate_replace_derive_with_manual_impl 2025-07-25 19:50:44 +09:00
Hmikihiro
4a0527f78c split ted from gen_trait_fn_body 2025-07-25 19:50:44 +09:00
Shoyu Vanilla (Flint)
48ccbe0cd8
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
922e04a134
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
cf299690a9
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
b5b10fb10f
Merge pull request #20291 from ChayimFriedman2/fix-cargo-lock
minor: Fix Cargo.lock
2025-07-23 14:46:47 +00:00
Shoyu Vanilla
d5379d3103 Use TempDir for copied lockfiles 2025-07-23 23:39:46 +09:00
Chayim Refael Friedman
f08c554f29 Fix Cargo.lock
The dependency of `xtask` on `time` was mistakenly removed.
2025-07-23 17:35:08 +03:00
Chayim Refael Friedman
1bf93c38ad
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
9ecd82be13
Remove rename_self_outside_of_methods 2025-07-23 22:04:59 +08:00
Lukas Wirth
97593ea9c6
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
963a1317e7 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
4b32a49ef1
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)
fa64d3b720
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
b40fce3ccd
Merge pull request #20280 from Kobzol/josh-sync
Switch to using josh-sync
2025-07-22 17:08:34 +00:00
Laurențiu Nicola
8d693ce4d5
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
ca679a2f94
Add CI workflow for periodically performing josh pulls 2025-07-22 18:15:54 +02:00
Jakub Beránek
00a47e3299
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
9c1750d0b5
Document synces using josh-sync 2025-07-22 15:25:18 +02:00
Jakub Beránek
ceaa0376ef
Remove pull/push functionality from xtask 2025-07-22 15:25:16 +02:00
Chayim Refael Friedman
c7ceb39f67 Parse for<'a> [const]
And also refactor parsing of HRTB.
2025-07-22 16:24:42 +03:00
Laurențiu Nicola
a54351effd
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
091ba7fd32 Add josh-sync.toml 2025-07-22 15:56:41 +03:00
Shoyu Vanilla (Flint)
578a523686
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
6e4e0883b0
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
c9b07766b7 Support filtering in analysis-stats MIR lowering 2025-07-22 11:22:16 +03:00
dependabot[bot]
36e31f9142
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)
bdfc7709bf
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)
7cbc5a3d57
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
9a1ee18e4d
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
e587367b4d fix: Apply adjusts to pats and exprs when doing pat analysis 2025-07-22 01:18:48 +09:00
Laurențiu Nicola
0d4f56de04
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