Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix importing private modules in expand glob import | unexge | 2020-08-20 | 1 | -0/+52 |
| | |||||
* | Fix importing unused traits in expand glob import | unexge | 2020-08-20 | 1 | -28/+73 |
| | |||||
* | Use fixme instead of todo | unexge | 2020-08-20 | 2 | -2/+2 |
| | |||||
* | Use `Definition::find_usages` for finding used items in expand glob import | unexge | 2020-08-20 | 2 | -114/+137 |
| | |||||
* | Run rustfmt | unexge | 2020-08-20 | 1 | -3/+5 |
| | |||||
* | Handle more cases in AST replacing in expand glob import | unexge | 2020-08-20 | 2 | -35/+220 |
| | |||||
* | Improve AST replacing in expand glob import | unexge | 2020-08-20 | 1 | -38/+229 |
| | |||||
* | Optimize reference search | Aleksey Kladov | 2020-08-19 | 1 | -25/+38 |
| | |||||
* | Merge #5822 | bors[bot] | 2020-08-19 | 1 | -25/+15 |
|\ | | | | | | | | | | | | | | | | | | | 5822: Remove dead code r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Remove dead code | Aleksey Kladov | 2020-08-19 | 1 | -25/+15 |
| | | |||||
* | | **Remove Unused Parameter** refactoring | Aleksey Kladov | 2020-08-19 | 7 | -7/+163 |
|/ | |||||
* | Future proof find-usages API | Aleksey Kladov | 2020-08-19 | 5 | -17/+41 |
| | | | | | | We might want to provide more efficient impls for check if usages exist, limiting the search, filtering and cancellation, so let's violate YAGNI a bit here. | ||||
* | Apply couple of rule of thumbs to simplify highlighting code | Aleksey Kladov | 2020-08-19 | 1 | -19/+16 |
| | | | | | | | | | | | | | | | | | Main one: instead of adding a parameter to function to handle special case, make the caller handle it. Second main one: make sure that function does a reasonable thing. `highlight_def` picks a color for def, *regardless* of the context the def is use. Feeding an info from the call-site muddies the responsibilities here. Minor smells, flagging the function as having space for improvement in the first place: * many parameters, some of which are set as constants on most call-sites (introduce severalfunction instad) * boolean param (add two functions instead) | ||||
* | Inline trivial function | Aleksey Kladov | 2020-08-19 | 1 | -8/+6 |
| | |||||
* | Simplify | Aleksey Kladov | 2020-08-19 | 1 | -9/+4 |
| | |||||
* | Minor | Aleksey Kladov | 2020-08-19 | 1 | -2/+1 |
| | |||||
* | Minor cleanups | Aleksey Kladov | 2020-08-19 | 1 | -1/+1 |
| | |||||
* | Better name | Aleksey Kladov | 2020-08-19 | 1 | -4/+4 |
| | |||||
* | Better API factoring around self access modes | Aleksey Kladov | 2020-08-19 | 4 | -56/+30 |
| | |||||
* | Better error if Cargo is not in Path | Aleksey Kladov | 2020-08-19 | 1 | -2/+9 |
| | |||||
* | Introduce hir::Param | Aleksey Kladov | 2020-08-19 | 1 | -2/+11 |
| | | | | | We generally shouldn't expose TypeRef out of hir. So, let's just use a placehoder here. | ||||
* | Add SelfParam to code_model | Aleksey Kladov | 2020-08-19 | 9 | -43/+62 |
| | |||||
* | Minor cleanups | Aleksey Kladov | 2020-08-19 | 1 | -7/+6 |
| | |||||
* | Merge #5811 | bors[bot] | 2020-08-19 | 1 | -3/+3 |
|\ | | | | | | | | | | | | | | | | | | | 5811: Minor r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Minor | Aleksey Kladov | 2020-08-19 | 1 | -3/+3 |
| | | |||||
* | | Merge #5643 | bors[bot] | 2020-08-19 | 9 | -49/+220 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | 5643: Add new consuming modifier, apply consuming and mutable to methods r=matklad a=Nashenas88 This adds a new `consuming` semantic modifier for syntax highlighters. This also emits `mutable` and `consuming` in two cases: - When a method takes `&mut self`, then it now has `function.mutable` emitted. - When a method takes `self`, and the type of `Self` is not `Copy`, then `function.consuming` is emitted. CC @flodiebold Co-authored-by: Paul Daniel Faria <[email protected]> | ||||
| * | Add new method to Semantics, method_receiver_kind, which returns the kind of ↵ | Paul Daniel Faria | 2020-08-16 | 5 | -70/+181 |
| | | | | | | | | | | | | | | self The options are Shared, Mutable, Consuming, and Copied. Use this to add proper highlighting to methods based on usage. | ||||
| * | Mark mutating functions with `mutable` modifier, and owning functions with ↵ | Paul Daniel Faria | 2020-08-16 | 5 | -15/+70 |
| | | | | | | | | `consuming`. | ||||
| * | Add new HighlightModifier variant, Consuming | Paul Daniel Faria | 2020-08-16 | 3 | -0/+5 |
| | | |||||
* | | Make RacyFlag actually work | Aleksey Kladov | 2020-08-18 | 1 | -1/+1 |
| | | |||||
* | | Cleanup feature generation | Aleksey Kladov | 2020-08-18 | 4 | -16/+11 |
| | | |||||
* | | Merge #5695 | bors[bot] | 2020-08-18 | 4 | -8/+27 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | 5695: Added completion for unstable features r=matklad a=Fihtangolz Added xtask for downloading list of unstable features from the unstable book and codegen for it. Also included small changes from linter. Co-authored-by: Dmitry <[email protected]> Co-authored-by: Dmitry Opokin <[email protected]> | ||||
| * \ | Merge remote-tracking branch 'rust-analyzer/master' | Dmitry | 2020-08-18 | 49 | -235/+664 |
| |\ \ | |||||
| * | | | synchronizing changes | Dmitry | 2020-08-14 | 4 | -8/+23 |
| | | | | |||||
| * | | | Merge remote-tracking branch 'origin/master' | Dmitry | 2020-08-14 | 1436 | -97181/+97779 |
| |\ \ \ | |||||
| * | | | | refactor requirements put forward mkladov | Dmitry | 2020-08-14 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | restrict visibility only by crate | Dmitry | 2020-08-14 | 2 | -2/+2 |
| | | | | | |||||
| * | | | | Revert "replase sparse-checkout by github api" | Dmitry | 2020-08-14 | 1 | -5/+1 |
| | | | | | | | | | | | | | | | | | | | | This reverts commit 034db28c542c04b22147da6722328bc74ff99386. | ||||
| * | | | | replase sparse-checkout by github api | Dmitry | 2020-08-14 | 1 | -1/+5 |
| | | | | | |||||
| * | | | | remove fmt skip attr | Dmitry | 2020-08-10 | 1 | -1/+1 |
| |\ \ \ \ | |||||
| | * | | | | refactoring to show more clearly the import problems | Dmitry | 2020-08-09 | 1 | -5/+5 |
| | | | | | | |||||
| * | | | | | refactoring to show more clearly the import problems | Dmitry | 2020-08-09 | 1 | -5/+5 |
| |/ / / / | |||||
| * | | | | Revert "fixes" | Dmitry | 2020-08-09 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | This reverts commit b602c73911864a86c94d8b306648738f5f995167. | ||||
| * | | | | add skip for generate file | Dmitry | 2020-08-09 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | fixes | Dmitry | 2020-08-09 | 1 | -5/+5 |
| | | | | | |||||
| * | | | | apply format | Dmitry | 2020-08-09 | 2 | -5/+9 |
| | | | | | |||||
| * | | | | fix trailing space | Dmitry | 2020-08-09 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | fix unused | Dmitry | 2020-08-09 | 1 | -1/+0 |
| | | | | | |||||
| * | | | | Merge remote-tracking branch 'origin/master' | Dmitry | 2020-08-09 | 462 | -6421/+6459 |
| |\ \ \ \ | |||||
| * | | | | | Added competition for unstable features | Dmitry | 2020-08-09 | 4 | -9/+25 |
| | | | | | | | | | | | | | | | | | | Added xtask for download unstable book from rust repository and codegene for it. Also small changes from lint |