Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Handle extended key value attr in mbe | Edwin Cheng | 2021-04-17 | 1 | -0/+18 |
| | |||||
* | Make `ast_to_token_tree` infallible | Jonas Schievink | 2021-04-04 | 5 | -22/+19 |
| | | | | It could never return `None`, so reflect that in the return type | ||||
* | Allow include! an empty content file | Edwin Cheng | 2021-04-03 | 1 | -3/+0 |
| | |||||
* | Allow `,` to delimit macro 2.0 rules | Jonas Schievink | 2021-04-03 | 3 | -2/+30 |
| | |||||
* | a lot of clippy::style fixes | Matthias Krüger | 2021-03-21 | 4 | -8/+7 |
| | |||||
* | clippy::complexity simplifications related to Iterators | Matthias Krüger | 2021-03-21 | 1 | -2/+1 |
| | |||||
* | Fix and test edge cases of `_` as ident | Kevin Mehall | 2021-03-20 | 3 | -3/+13 |
| | |||||
* | Make bare underscore token an Ident rather than Punct in proc-macro | Kevin Mehall | 2021-03-20 | 5 | -12/+15 |
| | |||||
* | Reorganize mbe tests | Edwin Cheng | 2021-03-18 | 3 | -1959/+1952 |
| | |||||
* | don't clone types that are copy (clippy::clone_on_copy) | Matthias Krüger | 2021-03-17 | 2 | -4/+3 |
| | |||||
* | use if let Some(x) instead of if x.is_some() and x.unwrap() ↵ | Matthias Krüger | 2021-03-17 | 1 | -6/+6 |
| | | | | (clippy::unnecessary-unwrap) | ||||
* | avoid converting types into themselves via .into() (clippy::useless-conversion) | Matthias Krüger | 2021-03-17 | 4 | -14/+12 |
| | | | | example: let x: String = String::from("hello world").into(); | ||||
* | Fix macro expansion for statements w/o semicolon | Edwin Cheng | 2021-03-16 | 1 | -6/+5 |
| | |||||
* | Enable thread-local coverage marks | Laurențiu Nicola | 2021-03-15 | 1 | -1/+1 |
| | |||||
* | some clippy::performance fixes | Matthias Krüger | 2021-03-15 | 1 | -6/+2 |
| | | | | | | | use vec![] instead of Vec::new() + push() avoid redundant clones use chars instead of &str for single char patterns in ends_with() and starts_with() allocate some Vecs with capacity to avoid unneccessary resizing | ||||
* | Simpify mbe bindings builder | Edwin Cheng | 2021-03-14 | 1 | -63/+57 |
| | |||||
* | Make sure ill-form macro handle propely | Edwin Cheng | 2021-03-14 | 1 | -2/+5 |
| | |||||
* | Merge #7994 | bors[bot] | 2021-03-13 | 3 | -67/+221 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7994: Speed up mbe matching in heavy recursive cases r=edwin0cheng a=edwin0cheng In some cases (e.g. #4186), mbe matching is very slow due to a lot of copy and allocation for bindings, this PR try to solve this problem by introduce a semi "link-list" approach for bindings building. I used this [test case](https://github.com/weiznich/minimal_example_for_rust_81262) (for `features(32-column-tables)`) to run following command to benchmark: ``` time rust-analyzer analysis-stats --load-output-dirs ./ ``` Before this PR : 2 mins After this PR: 3 seconds. However, for 64-column-tables cases, we still need 4 mins to complete. I will try to investigate in the following weeks. bors r+ Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Add bindings builder for speed up matching | Edwin Cheng | 2021-03-13 | 3 | -67/+221 |
| | | |||||
* | | Compilation speed | Aleksey Kladov | 2021-03-09 | 1 | -1/+1 |
| | | |||||
* | | Use upstream cov-mark | Laurențiu Nicola | 2021-03-08 | 3 | -6/+6 |
|/ | |||||
* | Fix fail to parse :: for meta in mbe | Edwin Cheng | 2021-03-05 | 1 | -1/+2 |
| | |||||
* | Merge #7513 | bors[bot] | 2021-03-02 | 8 | -163/+579 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7513: NFA parser for mbe matcher r=matklad a=edwin0cheng Almost straight porting from rustc one, but a little bit slow :( ``` rust-analyzer analysis-stats -q . ``` From: ```log Database loaded: 636.11ms, 277minstr crates: 36, mods: 594, decls: 11527, fns: 9017 Item Collection: 10.99s, 60ginstr exprs: 249618, ??ty: 2699 (1%), ?ty: 2101 (0%), !ty: 932 Inference: 28.94s, 123ginstr Total: 39.93s, 184ginstr ``` To: ```log Database loaded: 630.90ms, 277minstr crates: 36, mods: 594, decls: 11528, fns: 9018 Item Collection: 13.70s, 77ginstr exprs: 249482, ??ty: 2699 (1%), ?ty: 2101 (0%), !ty: 932 Inference: 30.27s, 133ginstr Total: 43.97s, 211ginstr ``` Fixes #4777 Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | NFA parser for mbe matcher | Edwin Cheng | 2021-02-28 | 8 | -163/+579 |
| | | |||||
* | | Use an unversioned profile dependency in mbe | Laurențiu Nicola | 2021-03-01 | 1 | -5/+2 |
| | | |||||
* | | Merge #7822 | bors[bot] | 2021-03-01 | 1 | -1/+3 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7822: Paperover a bug in cargo-workspace for publish RA r=lnicola a=edwin0cheng r? @lnicola See also https://github.com/pksunkara/cargo-workspaces/issues/39 Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | | Paperover a bug in cargo-workspace for publish RA | Edwin Cheng | 2021-03-01 | 1 | -1/+3 |
| |/ | |||||
* / | Remove redundant semicolon | Dániel Buga | 2021-03-01 | 1 | -1/+1 |
|/ | |||||
* | Fix non-latin characters doc comment for mbe | Edwin Cheng | 2021-02-28 | 2 | -1/+24 |
| | |||||
* | Fix builtin macros split exprs on comma | Edwin Cheng | 2021-02-28 | 4 | -69/+119 |
| | |||||
* | Add benchmark test for mbe | Edwin Cheng | 2021-02-24 | 3 | -0/+217 |
| | |||||
* | Make sure normal dependencies always have version | Pavan Kumar Sunkara | 2021-02-03 | 1 | -1/+1 |
| | |||||
* | Simpilfy mbe parsing | Edwin Cheng | 2021-01-30 | 4 | -74/+71 |
| | |||||
* | Simplify mbe match error. | Edwin Cheng | 2021-01-29 | 6 | -210/+180 |
| | | | | Handle parse error in rule parsing instead of match in mbe | ||||
* | Rename mbe_expander for consistency | Edwin Cheng | 2021-01-29 | 4 | -5/+5 |
| | |||||
* | Support Macro v2 in mbe | Edwin Cheng | 2021-01-25 | 4 | -89/+228 |
| | |||||
* | :arrow_up: rowan | Aleksey Kladov | 2021-01-20 | 1 | -3/+1 |
| | | | | It now stores text inline with tokens | ||||
* | . | Aleksey Kladov | 2021-01-19 | 1 | -1/+1 |
| | |||||
* | Reduce TokenMap size | Edwin Cheng | 2021-01-19 | 1 | -10/+16 |
| | |||||
* | shrink_to_fit `TokenMap`'s backing storage | Jonas Schievink | 2021-01-18 | 1 | -1/+3 |
| | |||||
* | Swap assert_eq_text\!(expected, actual) | yugo-horie | 2021-01-16 | 1 | -5/+5 |
| | |||||
* | Merge #7211 | bors[bot] | 2021-01-14 | 1 | -1/+22 |
|\ | | | | | | | | | | | | | | | | | | | | | | | 7211: Fixed expr meta var after path colons in mbe r=matklad a=edwin0cheng Fixes #7207 Added `L_DOLLAR` in `ITEM_RECOVERY_SET` , but I don't know whether it is a good idea. r? @matklad Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Fixed expr meta var after path colons in mbe | Edwin Cheng | 2021-01-10 | 1 | -1/+22 |
| | | |||||
* | | Fixed typos in public type names | Vincent Esche | 2021-01-09 | 1 | -2/+2 |
| | | |||||
* | | Fixed typos in private type names | Vincent Esche | 2021-01-09 | 1 | -5/+5 |
| | | |||||
* | | Fixed typos in tests | Vincent Esche | 2021-01-09 | 1 | -1/+1 |
| | | |||||
* | | Fixed typos in `log::warn!` message | Vincent Esche | 2021-01-09 | 1 | -5/+1 |
| | | |||||
* | | Fixed typos in code comments | Vincent Esche | 2021-01-09 | 3 | -3/+3 |
|/ | |||||
* | Add test | Edwin Cheng | 2021-01-08 | 1 | -0/+13 |
| | |||||
* | Fix bug when $crate in LHS in mbe | Edwin Cheng | 2021-01-08 | 2 | -5/+8 |
| |