Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | Remove import source map | Aleksey Kladov | 2019-12-21 | 5 | -72/+15 | |
| | | | ||||||
| * | | Don't track imports | Aleksey Kladov | 2019-12-21 | 2 | -48/+26 | |
| | | | ||||||
| * | | Remove hir for imports | Aleksey Kladov | 2019-12-21 | 5 | -36/+23 | |
| | | | ||||||
* | | | Merge #2628 | bors[bot] | 2019-12-21 | 10 | -331/+279 | |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2628: Add macro 2.0 support in parser r=matklad a=edwin0cheng This PR added a new syntax kind : `MACRO_DEF` and a keyword `MACRO_KW` there are two syntax for declarative macro 2.0 : 1. Normal : `macro m { ($i:ident) => {} }` , which handle similar to legacy one. 2. Call like: `macro m($i:ident) {}`, it produces a single token tree which have two child token trees : `($i:ident)` and `{}` Co-authored-by: Edwin Cheng <[email protected]> | |||||
| * | | Add macro keyword to ITEM_RECOVERY_SET | Edwin Cheng | 2019-12-21 | 1 | -1/+1 | |
| | | | ||||||
| * | | Add macro 2.0 support in parser | Edwin Cheng | 2019-12-21 | 10 | -330/+278 | |
| | | | ||||||
* | | | Merge #2626 | bors[bot] | 2019-12-21 | 2 | -10/+59 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2626: Recursive collect macros in impl items r=matklad a=edwin0cheng Co-authored-by: Edwin Cheng <[email protected]> | |||||
| * | | | Add a limit for protect against infinite recursion | Edwin Cheng | 2019-12-20 | 1 | -2/+10 | |
| | | | | ||||||
| * | | | Recursive collect macros in impl items | Edwin Cheng | 2019-12-20 | 2 | -10/+51 | |
| |/ / | ||||||
* | | | Merge #2627 | bors[bot] | 2019-12-21 | 3 | -30/+10 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2627: Use SelectionRange from LSP 3.15 r=matklad a=kjeremy Co-authored-by: Jeremy Kolb <[email protected]> | |||||
| * | | | Use SelectionRange from LSP 3.15 | Jeremy Kolb | 2019-12-20 | 3 | -30/+10 | |
| |/ / | ||||||
* | | | Merge #2625 | bors[bot] | 2019-12-21 | 16 | -80/+70 | |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | 2625: Clippy lints r=matklad a=kjeremy Co-authored-by: kjeremy <[email protected]> | |||||
| * | | Clippy lints | kjeremy | 2019-12-20 | 16 | -80/+70 | |
| | | | ||||||
* | | | Merge #2624 | bors[bot] | 2019-12-20 | 15 | -178/+210 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2624: Separate module item from module scope r=matklad a=matklad bors r+ Co-authored-by: Aleksey Kladov <[email protected]> | |||||
| * | | | Make legacy macros private | Aleksey Kladov | 2019-12-20 | 4 | -19/+24 | |
| | | | | ||||||
| * | | | Privitize impls | Aleksey Kladov | 2019-12-20 | 4 | -6/+12 | |
| | | | | ||||||
| * | | | Make items private | Aleksey Kladov | 2019-12-20 | 2 | -46/+42 | |
| | | | | ||||||
| * | | | Move some code to scope | Aleksey Kladov | 2019-12-20 | 2 | -26/+37 | |
| | | | | ||||||
| * | | | Fix typos | Aleksey Kladov | 2019-12-20 | 1 | -2/+2 | |
| | | | | ||||||
| * | | | Move impls to ItemScope | Aleksey Kladov | 2019-12-20 | 10 | -13/+16 | |
| | | | | ||||||
| * | | | Reduce visibility | Aleksey Kladov | 2019-12-20 | 1 | -6/+6 | |
| | | | | ||||||
| * | | | Rename ModuleScope -> ItemScope | Aleksey Kladov | 2019-12-20 | 2 | -4/+4 | |
| | | | | ||||||
| * | | | Docs | Aleksey Kladov | 2019-12-20 | 1 | -3/+6 | |
| | | | | ||||||
| * | | | Move ModuleScope to a new module | Aleksey Kladov | 2019-12-20 | 5 | -108/+114 | |
| | | | | ||||||
| * | | | Add item_scope module | Aleksey Kladov | 2019-12-20 | 2 | -0/+2 | |
| | | | | ||||||
* | | | | Merge #2623 | bors[bot] | 2019-12-20 | 5 | -48/+114 | |
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2623: Add support macros in impl blocks r=matklad a=edwin0cheng This PR add support for macros in impl blocks, which reuse `Expander` for macro expansion. see also: #2459 Co-authored-by: Edwin Cheng <[email protected]> | |||||
| * | | | | Add support macros in impl blocks | Edwin Cheng | 2019-12-20 | 5 | -48/+114 | |
| |/ / / | ||||||
* | / / | Simplify | Aleksey Kladov | 2019-12-20 | 1 | -1/+1 | |
| |/ / |/| | | ||||||
* | | | Merge #2617 | bors[bot] | 2019-12-20 | 2 | -59/+23 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2617: Remove index resolving from hover r=matklad a=kjeremy I have left in `HoverResult`'s support for multiple entries because we may still want that at some point. Per https://github.com/rust-analyzer/rust-analyzer/issues/2542#issuecomment-565238142 Co-authored-by: kjeremy <[email protected]> | |||||
| * | | | Remove unused imports | kjeremy | 2019-12-20 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Remove the index resolution from hover | kjeremy | 2019-12-20 | 1 | -58/+22 | |
| | | | | | | | | | | | | | | | | We are reasonably precise now to do this. | |||||
* | | | | Coerce closures to fn pointers | Florian Diebold | 2019-12-20 | 3 | -5/+48 | |
| | | | | | | | | | | | | | | | | E.g. `let x: fn(A) -> B = |x| { y };` | |||||
* | | | | Fix coercion of last expression in function body | Florian Diebold | 2019-12-20 | 3 | -2/+18 | |
| | | | | ||||||
* | | | | Handle closure return types | Florian Diebold | 2019-12-20 | 8 | -6/+113 | |
| |/ / |/| | | | | | | | | Fixes #2547. | |||||
* | | | Fix parser for macro call in pattern position | Edwin Cheng | 2019-12-20 | 3 | -6/+41 | |
|/ / | ||||||
* | | Merge #2614 | bors[bot] | 2019-12-20 | 2 | -3/+3 | |
|\ \ | | | | | | | | | | | | | | | | | | | | | | 2614: Clippy cleanup r=matklad a=kjeremy Just a few tweaks from the latest clippy. There are a lot more but we should probably tweak our settings. Co-authored-by: kjeremy <[email protected]> | |||||
| * | | Use unwrap_or_default | kjeremy | 2019-12-20 | 1 | -2/+2 | |
| | | | ||||||
| * | | Remove useless clone | kjeremy | 2019-12-20 | 1 | -1/+1 | |
| | | | ||||||
* | | | Merge #2592 | bors[bot] | 2019-12-20 | 5 | -5/+61 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2592: Add std::ops::Index support for infering r=edwin0cheng a=edwin0cheng see also #2534 Seem like this can't fix #2534 for this case: ```rust fn foo3(bar: [usize; 2]) { let baz = bar[1]; // <--- baz is still unknown ? println!("{}", baz); } ``` Co-authored-by: Edwin Cheng <[email protected]> | |||||
| * | | | Use fill instread of for loop | Edwin Cheng | 2019-12-19 | 1 | -5/+3 | |
| | | | | ||||||
| * | | | Use build_for_def | Edwin Cheng | 2019-12-19 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Add std::ops::Index support for infering | Edwin Cheng | 2019-12-19 | 5 | -5/+63 | |
| | | | | ||||||
* | | | | Remove code that never was alive? | Aleksey Kladov | 2019-12-20 | 1 | -9/+2 | |
| |/ / |/| | | ||||||
* | | | Fix resolve for field init shorthand | Aleksey Kladov | 2019-12-20 | 6 | -36/+68 | |
| | | | ||||||
* | | | Fix highlighting for field init shorthand | Aleksey Kladov | 2019-12-20 | 2 | -5/+4 | |
| | | | ||||||
* | | | Improve highlighting test | Aleksey Kladov | 2019-12-20 | 3 | -2/+7 | |
| | | | ||||||
* | | | Reduce copy-paste some more | Aleksey Kladov | 2019-12-20 | 2 | -87/+9 | |
| | | | ||||||
* | | | Use generic ItemLoc for impls | Aleksey Kladov | 2019-12-20 | 5 | -28/+10 | |
| | | | ||||||
* | | | Remove more copy-paste | Aleksey Kladov | 2019-12-20 | 1 | -121/+29 | |
| | | | ||||||
* | | | Remove more copy-paste | Aleksey Kladov | 2019-12-20 | 1 | -57/+30 | |
| | | |