Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge #3925 | bors[bot] | 2020-04-11 | 4 | -1/+247 |
|\ | | | | | | | | | | | | | | | | | | | 3925: Implement assist "Reorder field names" r=matklad a=geoffreycopin This PR implements the "Reorder record fields" assist as discussed in issue #3821 . Adding a `RecordFieldPat` variant to the `Pat` enum seemed like the easiest way to handle the `RecordPat` children as a single sequence of elements, maybe there is a better way ? Co-authored-by: Geoffrey Copin <[email protected]> | ||||
| * | Generate doc | Geoffrey Copin | 2020-04-11 | 1 | -0/+15 |
| | | |||||
| * | Fix doc tests | Geoffrey Copin | 2020-04-11 | 1 | -2/+1 |
| | | |||||
| * | Add documentation comment | Geoffrey Copin | 2020-04-11 | 1 | -0/+16 |
| | | |||||
| * | Avoid adding a RecordFieldPat variant to the Pat enum | Geoffrey Copin | 2020-04-11 | 3 | -48/+48 |
| | | |||||
| * | Remove Option unwraping | Geoffrey Copin | 2020-04-11 | 1 | -3/+3 |
| | | |||||
| * | Implement assist "Reorder field names" | Geoffrey Copin | 2020-04-09 | 4 | -2/+218 |
| | | |||||
* | | Merge #3951 | bors[bot] | 2020-04-11 | 17 | -121/+180 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | 3951: Simplify records grammar r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | | Remove dead code | Aleksey Kladov | 2020-04-11 | 8 | -55/+40 |
| | | | |||||
| * | | Make records grammar more orthogonal | Aleksey Kladov | 2020-04-11 | 13 | -68/+142 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We used name [: expr] grammar before, now it is [name :] expr which makes things simpler | ||||
* | | | Merge #3944 | bors[bot] | 2020-04-11 | 4 | -14/+65 |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | 3944: Look up trait impls by self type r=matklad a=flodiebold This speeds up inference in analysis-stats by ~30% (even more with the recursive solver). There's a slight difference in inferred types, which I think comes from pre-existing wrong handling of error types in impls, so I think it's fine. Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | | Look up impls by self type | Florian Diebold | 2020-04-11 | 4 | -14/+65 |
| | | | | | | | | | | | | | | | This speeds up inference in analysis-stats by ~30% (even more with the recursive solver). | ||||
* | | | Make incremental nameres test harder | Aleksey Kladov | 2020-04-11 | 1 | -0/+6 |
| | | | |||||
* | | | Avoid cyclic queries in name resolution when processing enums | Aleksey Kladov | 2020-04-11 | 3 | -15/+48 |
| | | | |||||
* | | | Align naming | Aleksey Kladov | 2020-04-11 | 4 | -6/+5 |
| | | | |||||
* | | | Remove code duplication | Aleksey Kladov | 2020-04-11 | 2 | -5/+2 |
| | | | |||||
* | | | Use Expander for cfg handling in structs | Aleksey Kladov | 2020-04-11 | 1 | -10/+10 |
| | | | |||||
* | | | Use Expander for cfg handling in impls | Aleksey Kladov | 2020-04-11 | 1 | -13/+14 |
| | | | |||||
* | | | Pull Expander up | Aleksey Kladov | 2020-04-11 | 3 | -11/+24 |
| | | | |||||
* | | | Simplify | Aleksey Kladov | 2020-04-11 | 2 | -8/+8 |
| | | | |||||
* | | | Merge pull request #3935 from cjhopman/todo | Aleksey Kladov | 2020-04-11 | 3 | -18/+21 |
|\ \ \ | |/ / |/| | | Change missing impl assist to use todo!() instead of unimplemented() | ||||
| * | | Change missing impl assist to use todo!() instead of unimplemented() | Chris Hopman | 2020-04-10 | 3 | -18/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | todo!() "Indicates unfinished code" (https://doc.rust-lang.org/std/macro.todo.html) Rust documentation provides further clarification: > The difference between unimplemented! and todo! is that while todo! > conveys an intent of implementing the functionality later and the > message is "not yet implemented", unimplemented! makes no such claims. todo!() seems more appropriate for assists that insert missing impls. | ||||
* | | | Merge pull request #3910 from lnicola/fn-named-param-hint | Aleksey Kladov | 2020-04-11 | 1 | -5/+12 |
|\ \ \ | | | | | | | | | Hide parameter hints for single-argument functions with the same name | ||||
| * | | | Hide parameter hints for single-argument functions with the same name | Laurențiu Nicola | 2020-04-09 | 1 | -5/+12 |
| | | | | |||||
* | | | | Merge #3920 | bors[bot] | 2020-04-11 | 7 | -5/+551 |
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3920: Implement expand_task and list_macros in proc_macro_srv r=matklad a=edwin0cheng This PR finish up the remain `proc_macro_srv` implementation : 1. Added dylib loading code for proc-macro crate dylib. Note that we have to add some special flags for unix loading because of a bug in old version of glibc, see https://github.com/fedochet/rust-proc-macro-panic-inside-panic-expample/issues/1 and https://github.com/rust-lang/rust/issues/60593 for details. 2. Added tests for proc-macro expansion: We use a trick here by adding `serde_derive` to dev-dependencies and calling `cargo-metadata` for searching its dylib path, and expand it in our tests. [EDIT] Note that this PR **DO NOT** implement the final glue code with rust-analzyer and proc-macro-srv yet. Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | | | | Improve error handling | Edwin Cheng | 2020-04-11 | 1 | -24/+30 |
| | | | | | |||||
| * | | | | tidy up a bit | Edwin Cheng | 2020-04-10 | 1 | -50/+18 |
| | | | | | |||||
| * | | | | Fix macos symbol name bug | Edwin Cheng | 2020-04-09 | 1 | -1/+19 |
| | | | | | |||||
| * | | | | Remove allow(unused) | Edwin Cheng | 2020-04-09 | 1 | -3/+2 |
| | | | | | |||||
| * | | | | Add tests | Edwin Cheng | 2020-04-09 | 5 | -0/+304 |
| | | | | | |||||
| * | | | | Implement expand_task and list_macros | Edwin Cheng | 2020-04-09 | 1 | -4/+27 |
| | | | | | |||||
| * | | | | Add dylib loading code | Edwin Cheng | 2020-04-09 | 4 | -1/+229 |
| | | | | | |||||
* | | | | | Fix non canonicallized path for crate file | Edwin Cheng | 2020-04-11 | 2 | -2/+6 |
| | | | | | |||||
* | | | | | Forward compat | Aleksey Kladov | 2020-04-10 | 8 | -26/+25 |
| |_|/ / |/| | | | |||||
* | | | | Move timeit to stdx | Aleksey Kladov | 2020-04-10 | 2 | -16/+15 |
| | | | | |||||
* | | | | profile queries | Aleksey Kladov | 2020-04-10 | 1 | -0/+5 |
| | | | | |||||
* | | | | Fix accidently quadratic behavior when processing includes | Aleksey Kladov | 2020-04-10 | 1 | -17/+19 |
| | | | | | | | | | | | | | | | | closes #3927 | ||||
* | | | | Add failing test | Aleksey Kladov | 2020-04-10 | 1 | -2/+29 |
| | | | | |||||
* | | | | Simplify | Aleksey Kladov | 2020-04-10 | 2 | -19/+2 |
| | | | | |||||
* | | | | Rename some tokens | Aleksey Kladov | 2020-04-10 | 207 | -1380/+1094 |
| | | | | |||||
* | | | | Better readability | Aleksey Kladov | 2020-04-10 | 2 | -0/+142 |
| | | | | |||||
* | | | | Remove dead code | Aleksey Kladov | 2020-04-10 | 4 | -195/+187 |
| | | | | |||||
* | | | | Generate only minimal set of ineresting tokens | Aleksey Kladov | 2020-04-10 | 5 | -1306/+23 |
| | | | | |||||
* | | | | Scale token generation back | Aleksey Kladov | 2020-04-10 | 6 | -309/+77 |
| | | | | |||||
* | | | | Convert more tokens | Aleksey Kladov | 2020-04-10 | 3 | -219/+15 |
| | | | | |||||
* | | | | Other delimiters | Aleksey Kladov | 2020-04-10 | 1 | -32/+32 |
| | | | | |||||
* | | | | Curley tokens | Aleksey Kladov | 2020-04-10 | 5 | -116/+34 |
| | | | | |||||
* | | | | Start replacing tokens | Aleksey Kladov | 2020-04-10 | 1 | -34/+12 |
| | | | | |||||
* | | | | Semicolon token | Aleksey Kladov | 2020-04-10 | 5 | -16/+38 |
| | | | | |||||
* | | | | More readable ast_src for keywords | Aleksey Kladov | 2020-04-10 | 1 | -69/+77 |
| | | | |