Skip to content

Fix assit qualify_path loses path segment#22354

Merged
A4-Tacks merged 1 commit into
rust-lang:masterfrom
WeiTheShinobi:qualify_path_lose_path_seg
May 14, 2026
Merged

Fix assit qualify_path loses path segment#22354
A4-Tacks merged 1 commit into
rust-lang:masterfrom
WeiTheShinobi:qualify_path_lose_path_seg

Conversation

@WeiTheShinobi
Copy link
Copy Markdown
Contributor

@WeiTheShinobi WeiTheShinobi commented May 13, 2026

Fixes #22281

Fix when the number of path segments before the cursor > 2, some segments will be missing.

Example

mod a { pub mod b { pub mod c { pub fn foo() {} } } }
b::c::foo$0

Before

a::b::foo

After

a::b::c::foo

@WeiTheShinobi WeiTheShinobi marked this pull request as ready for review May 13, 2026 16:51
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 13, 2026
@A4-Tacks A4-Tacks added this pull request to the merge queue May 14, 2026
Merged via the queue into rust-lang:master with commit 463396f May 14, 2026
18 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Qualify path loses path segment

3 participants