Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | clippy::useless_return | Maan2003 | 2021-06-13 | 1 | -1/+1 |
| | |||||
* | Fix parse u128 bug in proc-macro | Edwin Cheng | 2021-03-31 | 1 | -2/+17 |
| | |||||
* | Make bare underscore token an Ident rather than Punct in proc-macro | Kevin Mehall | 2021-03-20 | 1 | -0/+9 |
| | |||||
* | Move TokenStream::to_string helpers inside the method | Kevin Mehall | 2021-03-06 | 1 | -30/+34 |
| | |||||
* | Refactor TokenStream to hold Vec<TokenTree> instead of tt::Subtree | Kevin Mehall | 2021-03-06 | 1 | -61/+52 |
| | | | | | | | | | | `TokenStream` assumes that its subtree's delimeter is `None`, and this should be encoded in the type system instead of having a delimiter field that is mostly ignored. `tt::Subtree` is just `pub delimiter: Option<Delimiter>, pub token_trees: Vec<TokenTree>`, so a Subtree that is statically guaranteed not to have a delimiter is just Vec<TokenTree>. | ||||
* | Fix TokenStream::from_str for input consisting of a single Group | Kevin Mehall | 2021-03-06 | 1 | -2/+34 |
| | | | | | | | | | | | | | | | TokenStream holds a `tt::Subtree` but assumes its `delimiter` is always `None`. In particular, the iterator implementation iterates over the inner `token_trees` and ignores the `delimiter`. However, `TokenStream::from_str` violated this assumption when the input consists of a single Group by producing a Subtree with an outer delimiter, which was ignored as seen by a procedural macro. In this case, wrap an extra level of Subtree around it. Fixes #7810 Fixes #7875 | ||||
* | Simplify TokenStream FromStr | Edwin Cheng | 2021-03-05 | 1 | -38/+42 |
| | |||||
* | Fix proc macro TokenStream::from_str token ids | vlad20012 | 2021-03-01 | 1 | -2/+38 |
| | |||||
* | Add isize to the list of suffixed integers in typed_integer | Jonas Bushart | 2021-02-22 | 1 | -2/+1 |
| | | | | | | The missing `isize` in `typed_integers` seems to just be an oversight. Might fix: #7751 | ||||
* | Remove use of deprecated `std::collections::Bound` | bstrie | 2021-02-16 | 1 | -1/+2 |
| | |||||
* | Fixed typos in code comments | Vincent Esche | 2021-01-09 | 1 | -1/+1 |
| | |||||
* | Fix spacing in proc-macro tokens to_string | Edwin Cheng | 2020-12-31 | 1 | -7/+36 |
| | |||||
* | Avoid nesting Subtrees when parsing TokenStream | Jonas Schievink | 2020-12-09 | 1 | -2/+1 |
| | |||||
* | Add track_env_var to the proc macro server | Laurențiu Nicola | 2020-10-08 | 1 | -0/+10 |
| | |||||
* | Rename ra_mbe -> mbe | Aleksey Kladov | 2020-08-13 | 1 | -1/+1 |
| | |||||
* | Rename ra_proc_macro_srv -> proc_macro_srv | Pavan Kumar Sunkara | 2020-08-13 | 1 | -0/+704 |