Commit graph

22785 commits

Author SHA1 Message Date
Lukas Wirth
6b09fbf881 fix: Consider all produced artifacts for proc-macro dylib search 2025-07-27 23:21:42 +02:00
Lukas Wirth
afee0710e1 Ignore Destruct bounds again 2025-07-27 22:39:01 +02:00
Lukas Wirth
b398bc6af7 Cleanup unstable flags handling 2025-07-27 22:39:01 +02: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
Some checks are pending
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
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
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
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
Some checks are pending
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
Migrate `extract_expressions_from_format_string` assist to use `SyntaxEditor`
2025-07-26 14:34:56 +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
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
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
Add ide-assist: generate_impl_trait for generate_impl
2025-07-25 04:16:22 +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
Shoyu Vanilla
d5379d3103 Use TempDir for copied lockfiles 2025-07-23 23:39:46 +09: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
Some checks are pending
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
fix: Parse `for<'a> [const]`
2025-07-23 01:50:16 +00: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
c9b07766b7 Support filtering in analysis-stats MIR lowering 2025-07-22 11:22:16 +03:00
Shoyu Vanilla (Flint)
bdfc7709bf
Merge pull request #20269 from Hmikihiro/migrate_indent_mapping
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
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
Some checks are pending
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / generate_final_metrics (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
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
John Paul Adrian Glaubitz
25122d9289 hir-def: Don't apply x86_64-specific asserts on x32
This fixes the rustc build on x32 for which struct sizes differ.
2025-07-21 17:03:07 +02:00
Shoyu Vanilla (Flint)
4c7a8cbe8d
Merge pull request #20271 from ChayimFriedman2/cfg-settest-flycheck
fix: Disable tests in flycheck if `cfg.setTest` is set to false
2025-07-21 14:27:12 +00:00
Chayim Refael Friedman
2e0b3643ed Disable tests in flycheck if cfg.setTest is set to false 2025-07-21 16:34:12 +03:00
Hayashi Mikihiro
9cc03e01c5 migrate generate new 2025-07-21 17:22:03 +09:00
Laurențiu Nicola
d53f0b9382 Revert "Bump rustc-literal-escaper"
This reverts commit 9f3adc540b.
2025-07-21 09:31:28 +03:00
Laurențiu Nicola
9f3adc540b Bump rustc-literal-escaper 2025-07-21 09:27:37 +03:00
Hayashi Mikihiro
6f101d9cc7 Migrate AstNodeEdit 2025-07-21 15:26:48 +09:00
Laurențiu Nicola
99894ccbcc Merge from rust-lang/rust 2025-07-21 09:18:22 +03:00
Shoyu Vanilla (Flint)
28ac05d8ed
Merge pull request #20256 from A4-Tacks/gen-mut-trait-deref
Add Deref -> DerefMut for generate_mut_trait_impl
2025-07-21 04:31:24 +00:00
Shoyu Vanilla (Flint)
ba425ccfa4
Merge pull request #20262 from ChayimFriedman2/goto-ref-raw
fix: Fix search of raw labels and lifetimes
2025-07-21 04:30:42 +00:00
Laurențiu Nicola
58e507d807
Merge pull request #20255 from A4-Tacks/deref-intranstive
Some checks failed
metrics / generate_final_metrics (push) Blocked by required conditions
metrics / other_metrics (self) (push) Blocked by required conditions
metrics / other_metrics (webrender-2022) (push) Blocked by required conditions
metrics / build_metrics (push) Waiting to run
metrics / other_metrics (diesel-1.4.8) (push) Blocked by required conditions
metrics / other_metrics (hyper-0.14.18) (push) Blocked by required conditions
metrics / other_metrics (ripgrep-13.0.0) (push) Blocked by required conditions
rustdoc / rustdoc (push) Waiting to run
release / dist (aarch64-apple-darwin) (push) Has been cancelled
release / dist (x86_64-apple-darwin) (push) Has been cancelled
release / dist (aarch64-unknown-linux-gnu) (push) Has been cancelled
release / dist (arm-unknown-linux-gnueabihf) (push) Has been cancelled
release / dist (x86_64-unknown-linux-gnu) (push) Has been cancelled
autopublish / publish (push) Has been cancelled
release / dist (aarch64-pc-windows-msvc) (push) Has been cancelled
release / dist (x86_64-pc-windows-msvc) (push) Has been cancelled
release / dist (i686-pc-windows-msvc) (push) Has been cancelled
release / dist (x86_64-unknown-linux-musl) (push) Has been cancelled
release / publish (push) Has been cancelled
Fix ide-assist: generate Deref transitive
2025-07-20 10:54:35 +00:00
Chayim Refael Friedman
b1914e420f Support cfg_select! 2025-07-20 11:56:45 +03:00
Chayim Refael Friedman
7723b21c3f Fix search of raw labels and lifetimes
It used to search for `'foo` which won't find `'r#foo`, now we search for `foo` instead.
2025-07-20 01:20:09 +03:00
Young-Flash
0901631095 minor: remove unused var 2025-07-19 16:19:20 +08:00
A4-Tacks
dfd8434847
Add Deref -> DerefMut for generate_mut_trait_impl 2025-07-19 15:01:13 +08:00
A4-Tacks
53483b4f95
Fix ide-assist: Deref transtive 2025-07-19 13:38:01 +08:00
bors
f2840cd6c8 Auto merge of #144114 - lnicola:sync-from-ra, r=lnicola
Subtree update of `rust-analyzer`

r? `@ghost`
2025-07-18 08:44:14 +00:00