diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-11-15 07:01:19 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-11-15 07:01:19 +0000 |
commit | 3ad11973ac7596323f085a9fcb9530e47f021c41 (patch) | |
tree | 15d397d8732ddd5511f85f45689fb5b32441e36f /crates/ra_hir/src/ty/display.rs | |
parent | a6d080608db1bcc2a2f8fc586d8a5d3c85e50763 (diff) | |
parent | cbc6f94573d7f4601b739e001de5d5f71ec9b552 (diff) |
Merge #2165
2165: ra_assists: Add add_new assist r=matklad a=rep-nop
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.
Not marking this as closing #1644 since there's a part 2 of adding autocompletion for when someone starts typing `[pub ]fn new(...`
Co-authored-by: Wesley Norris <[email protected]>
Diffstat (limited to 'crates/ra_hir/src/ty/display.rs')
0 files changed, 0 insertions, 0 deletions