aboutsummaryrefslogtreecommitdiff
path: root/crates/proc_macro_srv/src
Commit message (Collapse)AuthorAgeFilesLines
* clippy::useless_returnMaan20032021-06-131-1/+1
|
* Try to fix unique file names on WindowsJonas Schievink2021-06-091-4/+7
|
* Build test-macros in a build scriptJonas Schievink2021-06-091-28/+1
|
* Use `cargo check` againJonas Schievink2021-05-311-1/+1
|
* Simplify proc_macro_srv testsJonas Schievink2021-05-313-234/+80
|
* Update test fixturesLaurențiu Nicola2021-05-241-1/+1
|
* Bump objectLaurențiu Nicola2021-05-241-1/+1
|
* Fix parse u128 bug in proc-macroEdwin Cheng2021-03-311-2/+17
|
* Improve message usage in proc-macroEdwin Cheng2021-03-231-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-macroKevin Mehall2021-03-201-0/+9
|
* Add test for proc-macro meta info retrievalEdwin Cheng2021-03-152-1/+8
|
* Use upstream cov-markLaurențiu Nicola2021-03-081-1/+1
|
* Move TokenStream::to_string helpers inside the methodKevin Mehall2021-03-061-30/+34
|
* Make a placeholder panic message explain its purposeKevin Mehall2021-03-061-1/+1
|
* Refactor TokenStream to hold Vec<TokenTree> instead of tt::SubtreeKevin Mehall2021-03-063-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 GroupKevin Mehall2021-03-061-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 testEdwin Cheng2021-03-051-1/+1
|
* Simplify TokenStream FromStrEdwin Cheng2021-03-051-38/+42
|
* Merge #7848bors[bot]2021-03-021-1/+2
|\ | | | | | | | | | | | | | | 7848: Bump cargo_metadata r=matklad a=lnicola Co-authored-by: Laurențiu Nicola <[email protected]>
| * Bump cargo_metadataLaurențiu Nicola2021-03-021-1/+2
| |
* | Fix proc macro TokenStream::from_str token idsvlad200122021-03-011-2/+38
|/
* Add isize to the list of suffixed integers in typed_integerJonas Bushart2021-02-221-2/+1
| | | | | | The missing `isize` in `typed_integers` seems to just be an oversight. Might fix: #7751
* Remove use of deprecated `std::collections::Bound`bstrie2021-02-161-1/+2
|
* libloading 0.7kjeremy2021-02-111-2/+2
| | | | See https://docs.rs/libloading/0.7.0/libloading/changelog/r0_7_0/index.html
* Use non-deprecated memmap2 cratekjeremy2021-02-021-1/+1
| | | | | | | `cargo audit` complains that `memmap` is unmaintained so switch to RazrFalcon's maintained version. Removes yet another edge on winapi
* cargo updatekjeremy2021-01-181-4/+4
| | | | Update test_serialize_proc_macro for new serde version
* Swap assert_eq_text\!(expected, actual)yugo-horie2021-01-162-5/+5
|
* Fixed typos in code commentsVincent Esche2021-01-092-2/+2
|
* Fix spacing in proc-macro tokens to_stringEdwin Cheng2020-12-311-7/+36
|
* Pass crate environment to proc macrosJonas Schievink2020-12-271-2/+18
|
* Add force_show_panics flagEdwin Cheng2020-12-274-8/+44
|
* Replace goblin crate with objectLaurențiu Nicola2020-12-131-38/+27
|
* Avoid nesting Subtrees when parsing TokenStreamJonas Schievink2020-12-091-2/+1
|
* Better error when a proc macro panicsJonas Schievink2020-12-081-1/+2
|
* Deny unreachable-pubAleksey Kladov2020-11-021-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.
* Add track_env_var to the proc macro serverLaurențiu Nicola2020-10-085-0/+39
|
* Add a proc_macro_test crateJonas Schievink2020-08-142-2/+15
| | | | This exports all 3 kinds of proc macros and is useful for testing
* Rename ra_proc_macro -> proc_macro_apiAleksey Kladov2020-08-134-5/+5
|
* Rename ra_mbe -> mbeAleksey Kladov2020-08-131-1/+1
|
* Rename ra_proc_macro_srv -> proc_macro_srvPavan Kumar Sunkara2020-08-1317-0/+4280