aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | Add TBD description to arenaPavan Kumar Sunkara2020-08-241-0/+1
| | | | |
* | | | | Merge #4776bors[bot]2020-08-2428-98/+124
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4776: Do a weekly minor publish to crates.io r=matklad a=pksunkara This is the same system I set up on Chalk repo. Every week it creates a new minor version, pushes it to github and then deploys it to crates.io. Co-authored-by: Pavan Kumar Sunkara <[email protected]>
| * | | | | Add description for crates that will be publishedPavan Kumar Sunkara2020-08-2425-0/+25
| | | | | |
| * | | | | Add version to deps in cargo.tomlPavan Kumar Sunkara2020-08-2422-98/+99
| | |_|_|/ | |/| | |
* | | | | Merge #5845bors[bot]2020-08-243-5/+25
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5845: Omit lenses for not runnable doctests r=matklad a=SomeoneToIgnore Ideally, we should properly parse the doctest attributes before, but since I need it for the code lens only, this way should suffice for now Co-authored-by: Kirill Bulatov <[email protected]>
| * | | | | Omit lenses for not runnable doctestsKirill Bulatov2020-08-223-5/+25
| |/ / / /
* / / / / Invert if should be smart about is_some, is_none, is_ok, is_errdragfire2020-08-243-2/+45
|/ / / /
* | | | Merge #5823bors[bot]2020-08-222-8/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5823: Don't underline function definition if self is &mut r=Nashenas88 a=matklad The self is right there, and is already underlined, so it makes little sense to emit even more underlines. before: ![before](https://user-images.githubusercontent.com/1711539/90672843-0d379500-e257-11ea-840f-b0caed4410f1.png) after: ![after](https://user-images.githubusercontent.com/1711539/90672840-0c9efe80-e257-11ea-9739-23af433841c6.png) Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | Don't underline function definition if self is &mutAleksey Kladov2020-08-192-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | The self is right there, and is already underlined, so it makes little sense to emit even more underlines.
* | | | | :arrow_up: ungrammarAleksey Kladov2020-08-219-15/+16
| | | | |
* | | | | Switch to expect_test from crates.ioAleksey Kladov2020-08-2144-45/+44
| | | | |
* | | | | Remove expect crateAleksey Kladov2020-08-212-371/+0
| |/ / / |/| | |
* | | | 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
| | | | | | |