aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/doc_tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge doc_tests and testsAleksey Kladov2020-05-061-749/+0
|
* Merge branch 'master' of github.com:rust-analyzer/rust-analyzerBenjamin Coenen2020-05-021-1/+3
|\
| * Add missing members generates indented blocksAleksey Kladov2020-05-021-1/+3
| |
* | Add unwrap block assist #4156Benjamin Coenen2020-04-291-1/+1
| | | | | | | | Signed-off-by: Benjamin Coenen <[email protected]>
* | Add unwrap block assist #4156Benjamin Coenen2020-04-291-0/+19
|/ | | | Signed-off-by: Benjamin Coenen <[email protected]>
* Make add_function generate functions in other modules via qualified pathTimo Freiberg2020-04-211-2/+2
|
* Change add_function assist to use todo!()Timo Freiberg2020-04-131-1/+1
|
* Merge #3925bors[bot]2020-04-111-0/+15
|\ | | | | | | | | | | | | | | | | | | 3925: Implement assist "Reorder field names" r=matklad a=geoffreycopin This PR implements the "Reorder record fields" assist as discussed in issue #3821 . Adding a `RecordFieldPat` variant to the `Pat` enum seemed like the easiest way to handle the `RecordPat` children as a single sequence of elements, maybe there is a better way ? Co-authored-by: Geoffrey Copin <[email protected]>
| * Generate docGeoffrey Copin2020-04-111-0/+15
| |
* | Change missing impl assist to use todo!() instead of unimplemented()Chris Hopman2020-04-101-1/+1
|/ | | | | | | | | | | | todo!() "Indicates unfinished code" (https://doc.rust-lang.org/std/macro.todo.html) Rust documentation provides further clarification: > The difference between unimplemented! and todo! is that while todo! > conveys an intent of implementing the functionality later and the > message is "not yet implemented", unimplemented! makes no such claims. todo!() seems more appropriate for assists that insert missing impls.
* Add create_function assistTimo Freiberg2020-04-011-0/+27
|
* Merge #3742bors[bot]2020-03-271-0/+26
|\ | | | | | | | | | | | | | | | | | | | | 3742: Replace if with if-let r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * Replace if with if-letAleksey Kladov2020-03-271-0/+26
| |
* | Assist: replace unwrap with matchUnreal Hoang2020-03-261-0/+24
|/
* fill match arms with empty block rather than unit tupleJosh Mcguigan2020-03-241-2/+2
|
* Merge imports assistAleksey Kladov2020-03-181-0/+14
| | | | Work towards #2220
* Add `remove_mut` assistAleksey Kladov2020-02-191-0/+17
|
* Rename add import assistKirill Bulatov2020-02-071-16/+16
|
* Doctest autoimportAleksey Kladov2020-02-061-1/+3
|
* Initial auto import action implementationKirill Bulatov2020-01-261-0/+19
|
* Fill in type params in 'add missing impl members' assistFlorian Diebold2019-12-241-11/+11
|
* docs: describe new feature 'add custom impl for derived trait'Paulo Lieuthier2019-11-281-0/+19
|
* do refact and fix some issuebravomikekilo2019-11-241-2/+2
|
* initial invert_ifbravomikekilo2019-11-211-0/+17
|
* Add add_new assistWesley Norris2019-11-091-0/+22
| | | | | | | 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.
* move all assists to use generated docsAleksey Kladov2019-10-271-0/+15
|
* use new api for flip_trait_bound assistAleksey Kladov2019-10-271-0/+13
|
* document almost all assistsAleksey Kladov2019-10-271-0/+126
|
* document some more assistsAleksey Kladov2019-10-271-0/+97
|
* use unicode bar for drawing the cursorAleksey Kladov2019-10-261-1/+1
|
* support range selection in assist docsAleksey Kladov2019-10-261-0/+18
|
* check style for assist docsAleksey Kladov2019-10-261-0/+52
|
* use correct spacing for enum patternAleksey Kladov2019-10-261-1/+1
|
* document a couple of assistsAleksey Kladov2019-10-261-0/+39
|
* generate more assists docsAleksey Kladov2019-10-251-0/+139
|
* auto-generate assists docs and testsAleksey Kladov2019-10-251-0/+27