Skip to content

Issue with rust analyzer assistance move_to_mod_rs #41820

@RenaudDenis

Description

@RenaudDenis

Summary

When using the move_to_mod_rs assistance on a module, it fails.

Steps to reproduce:

  1. Create a module as "module1.rs", declare in lib.rs
  2. Go in the module file, select all text (create some content and select it if needed; note that this is sad too)
  3. Toggle code actions, select "Convert module1.rs to module1/mod.rs"
  4. Boom

Expected Behavior:

That it converts module1.rs to module1/mod.rs

Actual Behavior:

See screenshot:

Image

Zed Version and System Specs

Zed: v0.210.4 (Zed)
OS: macOS 15.7.1
Memory: 64 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

Labels

area:code actionsFeedback for Code Actionsarea:editorFeedback for code editing, formatting, editor iterations, etcarea:languages/rustRust programming language support

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions