aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | minor: standard snippetAleksey Kladov2021-05-071-6/+13
| | |
* | | Merge #8748bors[bot]2021-05-072-2/+32
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | 8748: fix: use raw idents in `make::{name, name_ref}` when used with a keyword r=jonas-schievink a=jonas-schievink fixes https://github.com/rust-analyzer/rust-analyzer/issues/8680 bors r+ Co-authored-by: Jonas Schievink <[email protected]>
| * | fix: use raw idents in `make::name{_ref}` with keywordsJonas Schievink2021-05-072-2/+32
|/ /
* | Merge #8745bors[bot]2021-05-062-0/+24
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 8745: Support goto_type_definition for types r=matklad a=Veykril I'm unsure if the approach of lowering an `ast::Type` to a `hir::Type` is a good idea, it seems fine to me at least. Fixes #2882 Co-authored-by: Lukas Tobias Wirth <[email protected]>
| * | Support goto_type_definition for typesLukas Tobias Wirth2021-05-062-0/+24
| | |
* | | Merge #8280bors[bot]2021-05-067-32/+55
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8280: Borrow text of immutable syntax node r=iDawer a=iDawer In https://github.com/rust-analyzer/rowan/pull/101 `rowan::SyntaxNode::green` returns `Cow<'_, GreenNodeData>`. It returns borrow of green node of immutable syntax tree node. Using this we can return borrowed text from `ast::Name::text`. ~~However now it allocates in case of mutable syntax trees.~~ (see next comment) The idea comes from https://github.com/rust-analyzer/rowan/pull/100#issuecomment-809330325 Co-authored-by: Dawer <[email protected]>
| * | | Fix buildDawer2021-05-061-1/+1
| | | |
| * | | Hide implementation details of TokenTextDawer2021-05-062-8/+20
| | | |
| * | | Clean upDawer2021-05-061-15/+2
| | | |
| * | | Borrow text from nodes of immutable syntax treesDawer2021-05-062-25/+49
| | | |
| * | | Adapt to a new rowan borrowing node API.Dawer2021-05-062-2/+2
| | | |
| * | | Update to rowan 0.13.0-pre.5Dawer2021-05-062-3/+3
| | | |
* | | | Merge #8746bors[bot]2021-05-0619-81/+180
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8746: Don't store call-site text offsets in hygiene info r=matklad a=jonas-schievink This threads a lot more database references around in order to avoid storing a bare `TextOffset` in the hygiene info. This `TextOffset` made hygiene info and `ItemTree`s more volatile than they should be, leading to excessive recomputation of `ItemTree`s. The incremental test added in https://github.com/rust-analyzer/rust-analyzer/pull/8721 is now passing with these changes. closes https://github.com/rust-analyzer/rust-analyzer/pull/8721 Co-authored-by: Jonas Schievink <[email protected]> Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | Reuse database in LowerCtxJonas Schievink2021-05-067-20/+15
| | | | |
| * | | | Update crates/hir_def/src/nameres/tests/incremental.rsAleksey Kladov2021-05-061-1/+1
| | | | | | | | | | | | | | | Co-authored-by: Jonas Schievink <[email protected]>
| * | | | internal: add failing incremental testAleksey Kladov2021-05-061-0/+52
| | | | |
| * | | | Don't store call-site text offsets in hygiene infoJonas Schievink2021-05-0619-93/+145
|/ / / /
* | | | Merge #8718bors[bot]2021-05-067-90/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8718: 1.52.0 r=SomeoneToIgnore a=matklad A lot of APIs we use in this release! Co-authored-by: Aleksey Kladov <[email protected]> Co-authored-by: Kirill Bulatov <[email protected]>
| * | | | Small macro fixKirill Bulatov2021-05-061-1/+1
| | | | |
| * | | | internal: use API stabilized in 1.52Aleksey Kladov2021-05-067-90/+16
|/ / / /
* | | | Merge #8744bors[bot]2021-05-061-6/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8744: minor: simplify r=edwin0cheng a=edwin0cheng cc #8742 bors r+ Co-authored-by: Edwin Cheng <[email protected]>
| * | | | SimplifyEdwin Cheng2021-05-061-6/+2
| | | | |
* | | | | Merge #8743bors[bot]2021-05-061-1/+1
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8743: internal: explain why sentence-per-line r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | internal: explain why sentence-per-lineAleksey Kladov2021-05-061-1/+1
|/ / / /
* | | | Merge #8742bors[bot]2021-05-061-8/+65
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 8742: fix: Do not overwrite comments and attrs in trait impl completion r=Veykril a=Jesse-Bakker Fixes #8739 Co-authored-by: Jesse Bakker <[email protected]>
| * | | Fix: Do not overwrite comments and attrs in trait impl completionJesse Bakker2021-05-061-8/+65
|/ / /
* | | Merge #8674bors[bot]2021-05-052-0/+46
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8674: fix for #8664: Emit folding ranges for multi-line where clauses r=matklad a=m5tfi #8664 I added a test that assert folding multi-line where clauses while leaving single lined one. Please, let me know if the code needs further improvements. Co-authored-by: m5tfi <[email protected]>
| * | | remove unneeded `visited_where_clauses`m5tfi2021-05-051-11/+3
| | | |
| * | | add folding for where clausesm5tfi2021-04-302-0/+54
| | | |
* | | | Merge #8736bors[bot]2021-05-051-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8736: Update salsa r=jonas-schievink a=jonas-schievink bors r+ Co-authored-by: Jonas Schievink <[email protected]>
| * | | | Update salsaJonas Schievink2021-05-051-2/+2
| | | | |
* | | | | Merge #8735bors[bot]2021-05-056-41/+40
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8735: simplify r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Tobias Wirth <[email protected]>
| * | | | simplifyLukas Tobias Wirth2021-05-056-41/+40
| | | | |
* | | | | Merge #8733bors[bot]2021-05-041-5/+8
|\| | | | | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | 8733: Add some cov marks for qualified_path completion r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Tobias Wirth <[email protected]>
| * | | Add some cov marks for qualified_path completionLukas Tobias Wirth2021-05-041-5/+8
|/ / /
* | | Merge #8732bors[bot]2021-05-044-200/+238
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8732: internal: refactor expansion queries r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | | Document expansion queriesAleksey Kladov2021-05-041-0/+21
| | | |
| * | | simplify macro expansion codeAleksey Kladov2021-05-042-27/+50
| | | | | | | | | | | | | | | | | | | | Using `Option` arguments such that you always pass `None` or `Some` at the call site is a code smell.
| * | | make illegal states unrepresentableAleksey Kladov2021-05-043-49/+48
| | | | | | | | | | | | | | | | only declarative macros have def-site token map
| * | | CleanupsAleksey Kladov2021-05-041-139/+134
|/ / /
* | | Merge #8731bors[bot]2021-05-041-7/+33
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8731: Complete enum variants through type aliases r=Veykril a=Veykril Fixes #8730 bors r+ Co-authored-by: Lukas Tobias Wirth <[email protected]>
| * | | Complete enum variants through type aliasesLukas Tobias Wirth2021-05-041-7/+33
| | | |
* | | | Merge #8727bors[bot]2021-05-041-11/+11
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8727: minor: use standard import style r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | minor: use standard import styleAleksey Kladov2021-05-041-11/+11
| | | | |
* | | | | Merge #8726bors[bot]2021-05-041-3/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8726: internal: reduce visibility r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | internal: reduce visibilityAleksey Kladov2021-05-041-3/+3
| | | | |
* | | | | Merge #8725bors[bot]2021-05-041-4/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8725: internal: env var to toggle slow benches r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | | internal: env var to toggle slow benchesAleksey Kladov2021-05-041-4/+2
| |/ / / /
* | | | | Merge #8724bors[bot]2021-05-041-0/+5
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8724: minor: unconfuse myself about macro def vs macro rules r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
| * | | | minor: unconfuse myself about macro def vs macro rulesAleksey Kladov2021-05-041-0/+5
|/ / / /