Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Split out merge_imports module from helpers::insert_use | Lukas Wirth | 2021-04-24 | 2 | -317/+316 |
| | |||||
* | Add cov_marks to insert_use tests | Lukas Wirth | 2021-04-20 | 2 | -1/+39 |
| | |||||
* | Remove SyntaxRewriter usage in insert_use in favor of ted | Lukas Wirth | 2021-04-20 | 2 | -178/+103 |
| | |||||
* | Check for rust doc code attributes like rustdoc does | Lukas Wirth | 2021-04-19 | 1 | -0/+34 |
| | |||||
* | Merge #8467 | bors[bot] | 2021-04-19 | 1 | -0/+8 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8467: Adds impl Deref assist r=jhgg a=jhgg This PR adds a new `generate_deref` assist that automatically generates a deref impl for a given struct field. Check out this gif: ![2021-04-11_00-33-33](https://user-images.githubusercontent.com/5489149/114296006-b38e1000-9a5d-11eb-9112-807c01b8fd0a.gif) -- I have a few Q's: - [x] Should I write more tests, if so, what precisely should I test for? - [x] I have an inline question on line 65, can someone provide guidance? :) - [x] I can implement this for `ast::TupleField` too. But should it be a separate assist fn, or should I try and jam both into the `generate_deref`? - [x] I want to follow this up with an assist on `impl $0Deref for T {` which would automatically generate a `DerefMut` impl that mirrors the Deref as well, however, I could probably use some pointers on how to do that, since I'll have to reach into the ast of `fn deref` to grab the field that it's referencing for the `DerefMut` impl. Co-authored-by: jake <[email protected]> | ||||
| * | Adds impl Deref assist | jake | 2021-04-11 | 1 | -0/+8 |
| | | |||||
* | | Exclude inherent traits from flyimports | Kirill Bulatov | 2021-04-16 | 1 | -6/+16 |
|/ | |||||
* | Convert Into to From assist | Graeme Coupar | 2021-04-03 | 1 | -1/+5 |
| | | | | | | | | | | | | This adds a "Convert Into to From" assist, useful since clippy has recently started adding lints on every `Into`. It covers converting the signature, and converting any `self`/`Self` references within the body to the correct types. It does assume that every instance of `Into` can be converted to a `From`, which I _think_ is the case now. Let me know if there's something I'm not thinking of and I can try and make it smarter. | ||||
* | Rename target_ty to self_ty | Lukas Wirth | 2021-03-29 | 1 | -1/+1 |
| | |||||
* | Cleanup ide_db imports | Lukas Wirth | 2021-03-27 | 1 | -1/+2 |
| | |||||
* | syntax: return owned string instead of leaking string | cynecx | 2021-03-26 | 2 | -2/+2 |
| | |||||
* | rewrite merge use trees assist to use muatable syntax trees | Aleksey Kladov | 2021-03-22 | 1 | -2/+2 |
| | | | | changelog internal | ||||
* | Reexport PrefixKind to remove deps to hir | Edwin Cheng | 2021-03-22 | 1 | -1/+3 |
| | |||||
* | Less reallocations | Kirill Bulatov | 2021-03-21 | 1 | -3/+0 |
| | |||||
* | Disable unqualified assoc items completion for now | Kirill Bulatov | 2021-03-20 | 1 | -1/+8 |
| | |||||
* | Docs | Kirill Bulatov | 2021-03-20 | 1 | -3/+3 |
| | |||||
* | Do not query item search by name eagerly | Kirill Bulatov | 2021-03-20 | 1 | -121/+89 |
| | |||||
* | Do not propose assoc items without qualifiers | Kirill Bulatov | 2021-03-20 | 1 | -3/+5 |
| | |||||
* | Fix associated items not being appended to paths in import_assets | Lukas Wirth | 2021-03-18 | 1 | -1/+5 |
| | |||||
* | avoid converting types into themselves via .into() (clippy::useless-conversion) | Matthias Krüger | 2021-03-17 | 1 | -1/+1 |
| | | | | example: let x: String = String::from("hello world").into(); | ||||
* | Better strip turbofishes | Kirill Bulatov | 2021-03-08 | 1 | -4/+4 |
| | |||||
* | Add rustdocs and use better names | Kirill Bulatov | 2021-03-08 | 1 | -30/+52 |
| | |||||
* | Less lifetines: derive SemanticsScope in place | Kirill Bulatov | 2021-03-08 | 1 | -24/+23 |
| | |||||
* | Restrict fuzzy qualifiers for now | Kirill Bulatov | 2021-03-08 | 1 | -20/+23 |
| | |||||
* | Enforce the located imports' order | Kirill Bulatov | 2021-03-08 | 1 | -6/+5 |
| | |||||
* | Fix the completion labels and tests | Kirill Bulatov | 2021-03-08 | 1 | -31/+68 |
| | |||||
* | Work towards better import labels | Kirill Bulatov | 2021-03-08 | 1 | -94/+61 |
| | |||||
* | Profile import_assets better | Kirill Bulatov | 2021-03-08 | 1 | -0/+5 |
| | |||||
* | Simplify | Kirill Bulatov | 2021-03-08 | 1 | -13/+5 |
| | |||||
* | Refactor the import location | Kirill Bulatov | 2021-03-08 | 1 | -102/+110 |
| | |||||
* | Do not propose already imported imports | Kirill Bulatov | 2021-03-08 | 1 | -9/+34 |
| | |||||
* | Properly handle turbofishes in qualifiers | Kirill Bulatov | 2021-03-08 | 1 | -5/+7 |
| | |||||
* | Fix some tests | Kirill Bulatov | 2021-03-08 | 1 | -41/+69 |
| | |||||
* | Return more data about located imports | Kirill Bulatov | 2021-03-08 | 1 | -70/+109 |
| | |||||
* | Draft the qualifier import resolution | Kirill Bulatov | 2021-03-08 | 1 | -37/+136 |
| | |||||
* | Filter out path items by the qualifier | Kirill Bulatov | 2021-03-08 | 1 | -24/+15 |
| | |||||
* | Simplify | Kirill Bulatov | 2021-03-08 | 1 | -64/+37 |
| | |||||
* | Find the code to change | Kirill Bulatov | 2021-03-08 | 1 | -55/+130 |
| | |||||
* | Test and initial refactoring | Kirill Bulatov | 2021-03-08 | 1 | -85/+65 |
| | |||||
* | Use upstream cov-mark | Laurențiu Nicola | 2021-03-08 | 2 | -7/+6 |
| | |||||
* | Make group imports configurable | asv | 2021-03-07 | 2 | -7/+48 |
| | |||||
* | Show docs on hover for keywords and primitives | Lukas Wirth | 2021-03-02 | 1 | -0/+8 |
| | |||||
* | De Morgan's Law assist now correctly inverts <, <=, >, >=. | lbrande | 2021-02-24 | 1 | -0/+11 |
| | |||||
* | . | Aleksey Kladov | 2021-01-19 | 1 | -1/+1 |
| | |||||
* | Merge #7297 #7338 | bors[bot] | 2021-01-18 | 1 | -129/+227 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7297: Propose trait associated items and autoimport traits on completion r=matklad a=SomeoneToIgnore ![trait_imports](https://user-images.githubusercontent.com/2690773/104819998-6faeb480-583a-11eb-8b45-b7351b51b90e.gif) Closes #7248 7338: Parse `impl const Trait` r=Veykril a=Veykril Closes #7313 bors r+ Co-authored-by: Kirill Bulatov <[email protected]> Co-authored-by: Lukas Wirth <[email protected]> | ||||
| * | Do trait solving in batch | Kirill Bulatov | 2021-01-17 | 1 | -95/+97 |
| | | |||||
| * | Draft the working completion | Kirill Bulatov | 2021-01-17 | 1 | -10/+20 |
| | | |||||
| * | Add flyimport completion for trait assoc items | Kirill Bulatov | 2021-01-16 | 1 | -100/+186 |
| | | |||||
* | | Merge #7292 | bors[bot] | 2021-01-18 | 1 | -1/+1 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | 7292: Swap assert_eq_text\!(expected, actual) r=matklad a=u5surf Fixes #7283 Swap assert_eq_text parameters in the order (expected, actual) Co-authored-by: yugo-horie <[email protected]> | ||||
| * | Swap assert_eq_text\!(expected, actual) | yugo-horie | 2021-01-16 | 1 | -1/+1 |
| | |