diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-04-11 12:49:07 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-04-11 12:49:07 +0100 |
commit | 0ecdba20df41a800222d0fd864843843feb6e875 (patch) | |
tree | f8c96eaece90cd0630075e2693f833e4385404f7 /crates/ra_hir_def/src/body | |
parent | 54bdb9c78b012c560efc142971dc3e724989e807 (diff) | |
parent | 31d163aa3be9c938ffe713534e4f648550a35f6c (diff) |
Merge #3920
3920: Implement expand_task and list_macros in proc_macro_srv r=matklad a=edwin0cheng
This PR finish up the remain `proc_macro_srv` implementation :
1. Added dylib loading code for proc-macro crate dylib. Note that we have to add some special flags for unix loading because of a bug in old version of glibc, see https://github.com/fedochet/rust-proc-macro-panic-inside-panic-expample/issues/1 and https://github.com/rust-lang/rust/issues/60593 for details.
2. Added tests for proc-macro expansion: We use a trick here by adding `serde_derive` to dev-dependencies and calling `cargo-metadata` for searching its dylib path, and expand it in our tests.
[EDIT]
Note that this PR **DO NOT** implement the final glue code with rust-analzyer and proc-macro-srv yet.
Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/ra_hir_def/src/body')
0 files changed, 0 insertions, 0 deletions