aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/handlers/add_from_impl_for_enum.rs
Commit message (Collapse)AuthorAgeFilesLines
* Relax cursor position tests in assistsAleksey Kladov2020-05-201-3/+3
| | | | Those will be replaced with snippets anyway
* Switch to new magic marksAleksey Kladov2020-05-201-4/+4
|
* CleanupAleksey Kladov2020-05-201-5/+2
|
* Add From should not move the cursorAleksey Kladov2020-05-091-14/+11
|
* Refactor assists API to be more convenient for adding new assistsAleksey Kladov2020-05-071-5/+5
| | | | It now duplicates completion API in its shape.
* Move target to AssistLabelAleksey Kladov2020-05-061-0/+2
| | | | | Target is used for assists sorting, so we need it before we compute the action.
* Merge assits::test_helpers and testsAleksey Kladov2020-05-061-1/+1
|
* More principled approach for finding From traitAleksey Kladov2020-04-291-36/+34
|
* Convert code to text-sizeAleksey Kladov2020-04-251-2/+2
|
* Some clippy fixesJeremy Kolb2020-04-191-1/+1
|
* Cleanup checking for existing impls in impl From assistMatthew Hall2020-04-021-15/+3
| | | | | Use the trait solver to check if there's an existing implementation of From<type_in_enum_variant> for the enum.
* Add impl From for enum variant assistMatthew Hall2020-04-011-0/+218
Basically adds a From impl for tuple enum variants with one field. Added to cover the fairly common case of implementing your own Error that can be created from another one, although other use cases exist.