aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
* Use new `Definition::usages` API in expand glob importunexge2020-08-201-1/+1
|
* Fix importing private modules in expand glob importunexge2020-08-201-0/+52
|
* Fix importing unused traits in expand glob importunexge2020-08-201-28/+73
|
* Use fixme instead of todounexge2020-08-202-2/+2
|
* Use `Definition::find_usages` for finding used items in expand glob importunexge2020-08-202-114/+137
|
* Run rustfmtunexge2020-08-201-3/+5
|
* Handle more cases in AST replacing in expand glob importunexge2020-08-202-35/+220
|
* Improve AST replacing in expand glob importunexge2020-08-201-38/+229
|
* Optimize reference searchAleksey Kladov2020-08-191-25/+38
|
* Merge #5822bors[bot]2020-08-191-25/+15
|\ | | | | | | | | | | | | | | | | | | 5822: Remove dead code r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * Remove dead codeAleksey Kladov2020-08-191-25/+15
| |
* | **Remove Unused Parameter** refactoringAleksey Kladov2020-08-197-7/+163
|/
* Future proof find-usages APIAleksey Kladov2020-08-195-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 codeAleksey Kladov2020-08-191-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 functionAleksey Kladov2020-08-191-8/+6
|
* SimplifyAleksey Kladov2020-08-191-9/+4
|
* MinorAleksey Kladov2020-08-191-2/+1
|
* Minor cleanupsAleksey Kladov2020-08-191-1/+1
|
* Better nameAleksey Kladov2020-08-191-4/+4
|
* Better API factoring around self access modesAleksey Kladov2020-08-194-56/+30
|
* Better error if Cargo is not in PathAleksey Kladov2020-08-191-2/+9
|
* Introduce hir::ParamAleksey Kladov2020-08-191-2/+11
| | | | | We generally shouldn't expose TypeRef out of hir. So, let's just use a placehoder here.
* Add SelfParam to code_modelAleksey Kladov2020-08-199-43/+62
|
* Minor cleanupsAleksey Kladov2020-08-191-7/+6
|
* Merge #5811bors[bot]2020-08-191-3/+3
|\ | | | | | | | | | | | | | | | | | | 5811: Minor r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * MinorAleksey Kladov2020-08-191-3/+3
| |
* | Merge #5643bors[bot]2020-08-199-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 Faria2020-08-165-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 Faria2020-08-165-15/+70
| | | | | | | | `consuming`.
| * Add new HighlightModifier variant, ConsumingPaul Daniel Faria2020-08-163-0/+5
| |
* | Make RacyFlag actually workAleksey Kladov2020-08-181-1/+1
| |
* | Cleanup feature generationAleksey Kladov2020-08-184-16/+11
| |
* | Merge #5695bors[bot]2020-08-184-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'Dmitry2020-08-1849-235/+664
| |\ \
| * | | synchronizing changesDmitry2020-08-144-8/+23
| | | |
| * | | Merge remote-tracking branch 'origin/master'Dmitry2020-08-141436-97181/+97779
| |\ \ \
| * | | | refactor requirements put forward mkladovDmitry2020-08-141-1/+1
| | | | |
| * | | | restrict visibility only by crateDmitry2020-08-142-2/+2
| | | | |
| * | | | Revert "replase sparse-checkout by github api"Dmitry2020-08-141-5/+1
| | | | | | | | | | | | | | | | | | | | This reverts commit 034db28c542c04b22147da6722328bc74ff99386.
| * | | | replase sparse-checkout by github apiDmitry2020-08-141-1/+5
| | | | |
| * | | | remove fmt skip attrDmitry2020-08-101-1/+1
| |\ \ \ \
| | * | | | refactoring to show more clearly the import problemsDmitry2020-08-091-5/+5
| | | | | |
| * | | | | refactoring to show more clearly the import problemsDmitry2020-08-091-5/+5
| |/ / / /
| * | | | Revert "fixes"Dmitry2020-08-091-5/+5
| | | | | | | | | | | | | | | | | | | | This reverts commit b602c73911864a86c94d8b306648738f5f995167.
| * | | | add skip for generate fileDmitry2020-08-091-1/+1
| | | | |
| * | | | fixesDmitry2020-08-091-5/+5
| | | | |
| * | | | apply formatDmitry2020-08-092-5/+9
| | | | |
| * | | | fix trailing spaceDmitry2020-08-091-1/+1
| | | | |
| * | | | fix unusedDmitry2020-08-091-1/+0
| | | | |
| * | | | Merge remote-tracking branch 'origin/master'Dmitry2020-08-09462-6421/+6459
| |\ \ \ \