Skip to content

rust-analyzer subtree update#154883

Open
lnicola wants to merge 148 commits intorust-lang:mainfrom
lnicola:sync-from-ra
Open

rust-analyzer subtree update#154883
lnicola wants to merge 148 commits intorust-lang:mainfrom
lnicola:sync-from-ra

Conversation

@lnicola
Copy link
Copy Markdown
Member

@lnicola lnicola commented Apr 6, 2026

Subtree update of rust-analyzer to rust-lang/rust-analyzer@38fb8f9.

Created using https://github.com/rust-lang/josh-sync.

r? @ghost

asukaminato0721 and others added 30 commits December 23, 2025 01:25
fix test

clippy
Example
---
```rust
trait Foo {
    fn f(&self) -> i32;

    fn foo(&self) -> i32 {
        $0self.f()+self.f()$0
    }
}
```

**Before this PR**

```rust
trait Foo {
    fn f(&self) -> i32;

    fn foo(&self) -> i32 {
        fun_name(self)
    }
}

fn $0fun_name(&self) -> i32 {
    self.f()+self.f()
}
```

**After this PR**

```rust
trait Foo {
    fn f(&self) -> i32;

    fn foo(&self) -> i32 {
        fun_name(self)
    }
}

fn $0fun_name(this: &impl Foo) -> i32 {
    this.f()+this.f()
}
```
Example
---
```rust
trait Marker {
    fn foo();
    fn baz();
}
impl Marker for Foo {
    fn foo() {}
    fn missing() {}$0
    fn baz() {}
}
```

**Before this PR**

```rust
trait Marker {
    fn missing();
    fn foo();
    fn baz();
}
impl Marker for Foo {
    fn foo() {}
    fn missing() {}
    fn baz() {}
}
```

**After this PR**

```rust
trait Marker {
    fn foo();
    fn missing();
    fn baz();
}
impl Marker for Foo {
    fn foo() {}
    fn missing() {}
    fn baz() {}
}
```
…default-from-new-to-syntax-editor

internal: Migrate `generate_default_from_new` assist to `SyntaxEditor`
fix: wrap ty-anchor in non-path type constuctor
on s390x vectors are aligned at 8 bytes not 16 or vector length like on
x86.
…kspaces-display

fix: Correct Display label for Event::FetchWorkspaces
Example
---
```rust
struct Other;
struct String;
enum Foo {
    String($0)
}
```

**Before this PR**

```text
en Foo Foo []
st Other Other []
sp Self Foo []
st String String []
```

**After this PR**

```text
st String String [name]
en Foo Foo []
st Other Other []
sp Self Foo []
```
fix a tests that assunes the wrong alignment on s390x
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.12 to 1.1.13.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](juliangruber/brace-expansion@v1.1.12...v1.1.13)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.13
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Shourya742 and others added 26 commits April 3, 2026 16:40
Co-authored-by: Chayim Refael Friedman <chayimfr@gmail.com>
feat: support macro expansion in `#[doc = ...]` attributes
…one-during-edit

Move mutability responsibility from caller to edit_algo
fix: silence type mismatch diagnostic when type is unknown
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.23 to 4.18.1.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.17.23...4.18.1)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.18.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
…yarn/editors/code/lodash-4.18.1

chore(deps): bump lodash from 4.17.23 to 4.18.1 in /editors/code
When editing, there are situations where the else block has not been filled in yet but needs to be converted

Example
---
```rust
fn main() {
    let Ok(x) = f() else$0 {};
}
```

**Before this PR**

Assist not applicable

**After this PR**

```rust
fn main() {
    let x = match f() {
        Ok(x) => x,
        _ => {}
    };
}
```
fix: support multiple snippet placeholders in VS Code extension
…mpty-else

fix: offer on empty else block for 'convert_let_else_to_match'
fix: report `expected type, found {` in parser
fix: Fix extract variable on arg with comma
feat: support labeled block for convert_to_guarded_return
…most-always-proc

make matching brace work when cursor not at bracket
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 6, 2026

rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead.

cc @rust-lang/rust-analyzer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rust-analyzer Relevant to the rust-analyzer team, which will review and decide on the PR/issue. labels Apr 6, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 6, 2026

⚠️ Warning ⚠️

  • There are issue links (such as #123) in the commit messages of the following commits.
    Please move them to the PR description, to avoid spamming the issues with references to the commit, and so this bot can automatically canonicalize them to avoid issues with subtree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rust-analyzer Relevant to the rust-analyzer team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.