]> git.lizzy.rs Git - rust.git/commit
Merge #10211
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Sat, 25 Sep 2021 15:32:00 +0000 (15:32 +0000)
committerGitHub <noreply@github.com>
Sat, 25 Sep 2021 15:32:00 +0000 (15:32 +0000)
commitd401f2a062ffc4b458f158f535478d6cc8d09f44
tree5cc17ed5dd9d11729ab73b2ce4bc0df514dde3ef
parent2a970bac37c930f72a483653271ecac323fd0d38
parent22abbe86f343a2c3ce639a15ba88502cf6eebfe6
Merge #10211

10211: assists: Promote module to folder r=jonas-schievink a=longfangsong

Close part of #10143.

This PR adds a assist to promote module to directory, which means make a .rs file module into a directory style module with the same name.

![未命名(1)](https://user-images.githubusercontent.com/13777628/132958377-14555d6f-a64a-4b9b-9154-90a3b86fd685.gif)

Co-authored-by: longfangsong <longfangsong@icloud.com>
crates/ide_assists/src/assist_context.rs
crates/ide_assists/src/lib.rs
crates/ide_assists/src/tests/generated.rs