aboutsummaryrefslogtreecommitdiff
path: root/crates/proc_macro_api/src
Commit message (Collapse)AuthorAgeFilesLines
* avoid converting types into themselves via .into() (clippy::useless-conversion)Matthias Krüger2021-03-171-7/+4
| | | | example: let x: String = String::from("hello world").into();
* Add test for proc-macro meta info retrievalEdwin Cheng2021-03-152-7/+9
|
* some clippy::performance fixesMatthias Krüger2021-03-151-2/+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
* use doc-commentsEdwin Cheng2021-03-091-21/+22
|
* Print warning if proc-macro built by old rustcEdwin Cheng2021-03-042-73/+148
|
* Revise error message regarding metadata versionJay Somedon2021-03-041-10/+6
| | | | Co-authored-by: Laurențiu Nicola <[email protected]>
* Update condition check code styleJay Somedon2021-03-041-1/+1
| | | Co-authored-by: Jonas Schievink <[email protected]>
* Update commentJay Somedon2021-03-041-1/+1
| | | Co-authored-by: Jonas Schievink <[email protected]>
* Fix multiple issues from code reviewJay Somedon2021-03-041-15/+29
| | | | | | | | * check metadata version * use memmap * use Result instead of unwrap with Jay Somedon <[email protected]>
* Read version of rustc that compiled proc macroJay Somedon2021-03-041-10/+72
| | | | With Jay Somedon <[email protected]>
* Remove redundant clonesYoshua Wuyts2021-02-051-1/+1
|
* Reap proc macro server instancesLaurențiu Nicola2021-02-011-8/+3
|
* Fixed typos in code commentsVincent Esche2021-01-091-1/+1
|
* Remove serde_stacker which depends on ccEdwin Cheng2021-01-011-2/+1
|
* Fix deep syntax tree bug generated by proc-macroEdwin Cheng2021-01-012-4/+12
|
* Pass crate environment to proc macrosJonas Schievink2020-12-272-1/+7
|
* Move TokenExpander to base_db and rename itJonas Schievink2020-12-271-2/+2
| | | | It's only used to break the dependency to proc_macro_api
* Remove dummy ProcMacroClient in favor of OptionJonas Schievink2020-12-071-45/+28
|
* Retain types of proc macros and allow attr. macrosJonas Schievink2020-12-072-17/+18
|
* Make `ProcMacroProcessExpander` privateJonas Schievink2020-12-071-1/+1
|
* ProcMacroProcessExpander: support attribute macrosJonas Schievink2020-12-072-21/+11
|
* Don't respawn proc macro server on crashJonas Schievink2020-12-041-26/+15
|
* Unwrap `process.stdio()` resultJonas Schievink2020-12-041-4/+1
| | | | If this is ever `None` here, that's a bug
* Destructure in for loopJonas Schievink2020-12-041-3/+1
|
* Remove unnecessary `Option`Jonas Schievink2020-12-041-8/+3
|
* Deny unreachable-pubAleksey Kladov2020-11-022-21/+21
| | | | | | | | 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.
* Hacky support for fn-like proc macrosJonas Schievink2020-08-151-3/+3
|
* Rename ra_proc_macro -> proc_macro_apiAleksey Kladov2020-08-134-0/+668