Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Simplify proc_macro_srv tests | Jonas Schievink | 2021-05-31 | 4 | -237/+82 |
| | |||||
* | Update test fixtures | Laurențiu Nicola | 2021-05-24 | 1 | -1/+1 |
| | |||||
* | Bump object | Laurențiu Nicola | 2021-05-24 | 2 | -2/+2 |
| | |||||
* | Fix parse u128 bug in proc-macro | Edwin Cheng | 2021-03-31 | 1 | -2/+17 |
| | |||||
* | Improve message usage in proc-macro | Edwin Cheng | 2021-03-23 | 1 | -3/+4 |
| | | | | Reuse storage for the buffer send to child process of proc-macro. | ||||
* | Make bare underscore token an Ident rather than Punct in proc-macro | Kevin Mehall | 2021-03-20 | 1 | -0/+9 |
| | |||||
* | Add test for proc-macro meta info retrieval | Edwin Cheng | 2021-03-15 | 2 | -1/+8 |
| | |||||
* | Compilation speed | Aleksey Kladov | 2021-03-09 | 1 | -1/+1 |
| | |||||
* | Use upstream cov-mark | Laurențiu Nicola | 2021-03-08 | 1 | -1/+1 |
| | |||||
* | Move TokenStream::to_string helpers inside the method | Kevin Mehall | 2021-03-06 | 1 | -30/+34 |
| | |||||
* | Make a placeholder panic message explain its purpose | Kevin Mehall | 2021-03-06 | 1 | -1/+1 |
| | |||||
* | Refactor TokenStream to hold Vec<TokenTree> instead of tt::Subtree | Kevin Mehall | 2021-03-06 | 3 | -65/+56 |
| | | | | | | | | | | `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 | ||||
* | Fix test | Edwin Cheng | 2021-03-05 | 1 | -1/+1 |
| | |||||
* | Simplify TokenStream FromStr | Edwin Cheng | 2021-03-05 | 1 | -38/+42 |
| | |||||
* | Merge #7848 | bors[bot] | 2021-03-02 | 2 | -2/+3 |
|\ | | | | | | | | | | | | | | | 7848: Bump cargo_metadata r=matklad a=lnicola Co-authored-by: Laurențiu Nicola <[email protected]> | ||||
| * | Bump cargo_metadata | Laurențiu Nicola | 2021-03-02 | 2 | -2/+3 |
| | | |||||
* | | 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 |
| | |||||
* | libloading 0.7 | kjeremy | 2021-02-11 | 2 | -3/+3 |
| | | | | See https://docs.rs/libloading/0.7.0/libloading/changelog/r0_7_0/index.html | ||||
* | Use non-deprecated memmap2 crate | kjeremy | 2021-02-02 | 2 | -2/+2 |
| | | | | | | | `cargo audit` complains that `memmap` is unmaintained so switch to RazrFalcon's maintained version. Removes yet another edge on winapi | ||||
* | cargo update | kjeremy | 2021-01-18 | 1 | -4/+4 |
| | | | | Update test_serialize_proc_macro for new serde version | ||||
* | Swap assert_eq_text\!(expected, actual) | yugo-horie | 2021-01-16 | 2 | -5/+5 |
| | |||||
* | Unfreeze cargo_metadata | kjeremy | 2021-01-11 | 1 | -1/+1 |
| | | | | It now pulls in a newer version of semver-parser. | ||||
* | Fixed typos in code comments | Vincent Esche | 2021-01-09 | 2 | -2/+2 |
| | |||||
* | Replace last usages of difference with dissimilar | Jesse Bakker | 2021-01-06 | 1 | -1/+0 |
| | |||||
* | Fix spacing in proc-macro tokens to_string | Edwin Cheng | 2020-12-31 | 1 | -7/+36 |
| | |||||
* | Pass crate environment to proc macros | Jonas Schievink | 2020-12-27 | 1 | -2/+18 |
| | |||||
* | Merge #7047 | bors[bot] | 2020-12-27 | 4 | -8/+44 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7047: Add force_show_panics flag for proc-macro bridge r=jonas-schievink a=edwin0cheng https://github.com/rust-lang/rust/pull/75082 and https://github.com/rust-lang/rust/pull/76292 added a new flag in `proc_macro::Bridge` such that the ABI was changed. These ABI changing are the reason of some weird panics which caused #6880 and maybe related to the panic mentioned in #6820. These changes are landed on rust stable 1.48 so I think it is okay to apply it now. fixes #6880 r @jonas-schievink Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Add force_show_panics flag | Edwin Cheng | 2020-12-27 | 4 | -8/+44 |
| | | |||||
* | | Disable unaligned feature for the object crate | Laurențiu Nicola | 2020-12-23 | 1 | -1/+1 |
|/ | |||||
* | Replace goblin crate with object | Laurențiu Nicola | 2020-12-13 | 2 | -39/+28 |
| | |||||
* | Avoid nesting Subtrees when parsing TokenStream | Jonas Schievink | 2020-12-09 | 1 | -2/+1 |
| | |||||
* | Better error when a proc macro panics | Jonas Schievink | 2020-12-08 | 1 | -1/+2 |
| | |||||
* | Pin cargo_metadata | kjeremy | 2020-11-25 | 1 | -1/+1 |
| | |||||
* | Deny unreachable-pub | Aleksey Kladov | 2020-11-02 | 1 | -0/+1 |
| | | | | | | | | It's very useful when `pub` is equivalent to "this is crate's public API", let's enforce this! Ideally, we should enforce it for local `cargo test`, and only during CI, but that needs https://github.com/rust-lang/cargo/issues/5034. | ||||
* | Update crates | Jeremy Kolb | 2020-10-20 | 1 | -1/+1 |
| | | | | This brings in a number of new dependencies though. | ||||
* | Add track_env_var to the proc macro server | Laurențiu Nicola | 2020-10-08 | 5 | -0/+39 |
| | |||||
* | Add description for crates that will be published | Pavan Kumar Sunkara | 2020-08-24 | 1 | -0/+1 |
| | |||||
* | Add version to deps in cargo.toml | Pavan Kumar Sunkara | 2020-08-24 | 1 | -4/+4 |
| | |||||
* | Add a proc_macro_test crate | Jonas Schievink | 2020-08-14 | 3 | -3/+18 |
| | | | | This exports all 3 kinds of proc macros and is useful for testing | ||||
* | Rename ra_proc_macro -> proc_macro_api | Aleksey Kladov | 2020-08-13 | 5 | -6/+6 |
| | |||||
* | Rename ra_mbe -> mbe | Aleksey Kladov | 2020-08-13 | 2 | -2/+2 |
| | |||||
* | Minor | Aleksey Kladov | 2020-08-13 | 1 | -3/+5 |
| | |||||
* | Rename ra_proc_macro_srv -> proc_macro_srv | Pavan Kumar Sunkara | 2020-08-13 | 18 | -0/+4305 |