]> git.lizzy.rs Git - rust.git/commit
Add add_new assist
authorWesley Norris <repnop@outlook.com>
Sat, 9 Nov 2019 15:56:36 +0000 (10:56 -0500)
committerWesley Norris <repnop@outlook.com>
Sat, 9 Nov 2019 15:56:36 +0000 (10:56 -0500)
commitcbc6f94573d7f4601b739e001de5d5f71ec9b552
treeee481bcf679e739dfea13ec36b16fb593607e43a
parent9d786ea221b27fbdf7c7f7beea0290db448e0611
Add add_new assist

Adds a new assist to autogenerate a new fn based on the selected struct,
excluding tuple structs and unions. The fn will inherit the same
visibility as the struct and the assist will attempt to reuse any
existing impl blocks that exist at the same level of struct.
crates/ra_assists/src/assists/add_new.rs [new file with mode: 0644]
crates/ra_assists/src/doc_tests/generated.rs
crates/ra_assists/src/lib.rs
docs/user/assists.md