Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update crates/ide_assists/src/handlers/remove_dbg.rs | ivan770 | 2021-03-29 | 1 | -5/+9 |
| | | | | | Apply standard test style fixes Co-authored-by: Aleksey Kladov <[email protected]> | ||||
* | Replace empty dbg with unit in letexprs, better removal in blocks | ivan770 | 2021-03-27 | 1 | -13/+72 |
| | |||||
* | Replace match on option with if | ivan770 | 2021-03-27 | 1 | -3/+4 |
| | |||||
* | Remove dbg expression and newline as whole | ivan770 | 2021-03-27 | 1 | -6/+28 |
| | |||||
* | Show dbg remove assist on empty contents | ivan770 | 2021-03-26 | 1 | -8/+9 |
| | |||||
* | refine comment style of tests | hi-rustin | 2021-03-24 | 2 | -48/+48 |
| | |||||
* | Merge #8168 | bors[bot] | 2021-03-24 | 1 | -7/+70 |
|\ | | | | | | | | | | | | | | | 8168: correct `convert to guard return` let_stmt r=Veykril a=hi-rustin close https://github.com/rust-analyzer/rust-analyzer/issues/8074 Co-authored-by: hi-rustin <[email protected]> | ||||
| * | correct `convert to guard return` let_stmt | hi-rustin | 2021-03-24 | 1 | -7/+70 |
| | | | | | | | | | | | | | | | | fix fix add check | ||||
* | | Cleanup | Aleksey Kladov | 2021-03-23 | 1 | -67/+45 |
| | | |||||
* | | Simplify code | Aleksey Kladov | 2021-03-23 | 2 | -37/+15 |
| | | | | | | | | changelog: skip | ||||
* | | Use styleguide conforming import for ast nodes | Aleksey Kladov | 2021-03-23 | 1 | -34/+36 |
| | | |||||
* | | Unify test style | Aleksey Kladov | 2021-03-23 | 1 | -38/+52 |
| | | | | | | | | changelog skip | ||||
* | | Tweak assits API to fit mutable syntax trees | Aleksey Kladov | 2021-03-23 | 3 | -23/+53 |
|/ | | | | changelog: skip | ||||
* | rewrite merge use trees assist to use muatable syntax trees | Aleksey Kladov | 2021-03-22 | 2 | -37/+42 |
| | | | | changelog internal | ||||
* | clippy::complexity simplifications related to Iterators | Matthias Krüger | 2021-03-21 | 3 | -16/+10 |
| | |||||
* | Less reallocations | Kirill Bulatov | 2021-03-21 | 1 | -1/+0 |
| | |||||
* | Disable unqualified assoc items completion for now | Kirill Bulatov | 2021-03-20 | 1 | -0/+1 |
| | |||||
* | Docs | Kirill Bulatov | 2021-03-20 | 1 | -2/+2 |
| | |||||
* | Do not query item search by name eagerly | Kirill Bulatov | 2021-03-20 | 1 | -15/+20 |
| | |||||
* | Merge #8119 | bors[bot] | 2021-03-20 | 2 | -4/+3 |
|\ | | | | | | | | | | | | | | | 8119: Don't return a SourceChange on WillRenameFiles when nothing gets refactored r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Fix add_life_to_type label typo | Lukas Wirth | 2021-03-20 | 2 | -4/+3 |
| | | |||||
* | | simplify | Aleksey Kladov | 2021-03-19 | 1 | -3/+3 |
|/ | | | | changelog skip | ||||
* | Cleanup qualify_path | Lukas Wirth | 2021-03-19 | 1 | -27/+17 |
| | |||||
* | Fix associated items not being appended to paths in import_assets | Lukas Wirth | 2021-03-18 | 1 | -2/+35 |
| | |||||
* | use simpler .map(|x| y) instead of .and_then(|x| Some(y)) for Options. ↵ | Matthias Krüger | 2021-03-17 | 1 | -2/+2 |
| | | | | (clippy::bind_instead_of_map) | ||||
* | don't clone types that are copy (clippy::clone_on_copy) | Matthias Krüger | 2021-03-17 | 1 | -5/+2 |
| | |||||
* | Move more bounds | Aleksey Kladov | 2021-03-16 | 1 | -26/+10 |
| | | | | changelog: skip | ||||
* | Upgrade rowan | Aleksey Kladov | 2021-03-16 | 9 | -62/+34 |
| | | | | Notably, new rowan comes with support for mutable syntax trees. | ||||
* | 7709: Added the check for return type of len function. | Chetan Khilosiya | 2021-03-15 | 1 | -9/+26 |
| | |||||
* | 7709: Updated the implementation. | Chetan Khilosiya | 2021-03-15 | 2 | -37/+71 |
| | | | | | The get function from impl method is updated. and now same method used to get len and is_empty function. | ||||
* | 7709: Added the assist to generate is_empty function | Chetan Khilosiya | 2021-03-15 | 3 | -0/+252 |
| | | | | | the assist will be shown when the len function is implemented. is_empty internally uses len function. | ||||
* | Enable thread-local coverage marks | Laurențiu Nicola | 2021-03-15 | 1 | -1/+1 |
| | |||||
* | Allow applying De Morgan's law to multiple terms at once | Jake Goulding | 2021-03-12 | 1 | -11/+76 |
| | |||||
* | Merge #7956 | bors[bot] | 2021-03-12 | 3 | -0/+280 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7956: Add assist to convert for_each into for loops r=Veykril a=SaiintBrisson This PR resolves #7821. Adds an assist to that converts an `Iterator::for_each` into a for loop: ```rust fn main() { let vec = vec![(1, 2), (2, 3), (3, 4)]; x.iter().for_each(|(x, y)| { println!("x: {}, y: {}", x, y); }) } ``` becomes ```rust fn main() { let vec = vec![(1, 2), (2, 3), (3, 4)]; for (x, y) in x.iter() { println!("x: {}, y: {}", x, y); }); } ``` Co-authored-by: Luiz Carlos Mourão Paes de Carvalho <[email protected]> Co-authored-by: Luiz Carlos <[email protected]> Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Fix convert_iter_for_each_to_for doctest | Lukas Wirth | 2021-03-12 | 2 | -15/+56 |
| | | |||||
| * | fix: generated test fixture | Luiz Carlos Mourão Paes de Carvalho | 2021-03-12 | 2 | -2/+25 |
| | | |||||
| * | fix: replace doc-comments with normal comments | Luiz Carlos | 2021-03-12 | 1 | -20/+20 |
| | | | | | | Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | refactor: refactored and reduced assist code | Luiz Carlos Mourão Paes de Carvalho | 2021-03-12 | 1 | -36/+21 |
| | | |||||
| * | fix: remove semicolon | Luiz Carlos Mourão Paes de Carvalho | 2021-03-10 | 1 | -29/+56 |
| | | |||||
| * | fix: code formatting | Luiz Carlos Mourão Paes de Carvalho | 2021-03-10 | 1 | -10/+20 |
| | | |||||
| * | fix: tests should work for convert_iter_for_each_to_for | Luiz Carlos Mourão Paes de Carvalho | 2021-03-10 | 1 | -11/+44 |
| | | |||||
| * | refactor: create block expressions and for loops using make | Luiz Carlos Mourão Paes de Carvalho | 2021-03-10 | 1 | -29/+50 |
| | | |||||
| * | feat: add assist to conver for_each into for loops | Luiz Carlos Mourão Paes de Carvalho | 2021-03-10 | 2 | -0/+140 |
| | | |||||
* | | fix: add semicolon after type ascription | Conrad Ludgate | 2021-03-11 | 1 | -3/+30 |
| | | |||||
* | | Fix labels for single import assists | Kirill Bulatov | 2021-03-10 | 2 | -20/+12 |
| | | |||||
* | | Compilation speed | Aleksey Kladov | 2021-03-09 | 1 | -1/+1 |
|/ | |||||
* | Merge #7873 #7933 | bors[bot] | 2021-03-09 | 3 | -71/+54 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7873: Consider unresolved qualifiers during flyimport r=matklad a=SomeoneToIgnore Closes https://github.com/rust-analyzer/rust-analyzer/issues/7679 Takes unresolved qualifiers into account, providing better completions (or none, if the path is resolved or do not match). Does not handle cases when both path qualifier and some trait has to be imported: there are many extra issues with those (such as overlapping imports, for instance) that will require large diffs to address. Also does not do a fuzzy search on qualifier, that requires some adjustments in `import_map` for better queries and changes to the default replace range which also seems relatively big to include here. ![qualifier_completion](https://user-images.githubusercontent.com/2690773/110040808-0af8dc00-7d4c-11eb-83db-65af94e843bb.gif) 7933: Improve compilation speed r=matklad a=matklad bors r+ 🤖 Co-authored-by: Kirill Bulatov <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Add rustdocs and use better names | Kirill Bulatov | 2021-03-08 | 2 | -10/+12 |
| | | |||||
| * | Less lifetines: derive SemanticsScope in place | Kirill Bulatov | 2021-03-08 | 2 | -20/+15 |
| | | |||||
| * | Enforce the located imports' order | Kirill Bulatov | 2021-03-08 | 2 | -2/+2 |
| | |