diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-03-26 17:09:32 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-03-26 17:09:32 +0000 |
commit | b1594f108041813c9fa32538950c15c55202cbd5 (patch) | |
tree | cef1e662a7acf2807422e7c232014c5326ac37b6 /crates/ra_ide/src/mock_analysis.rs | |
parent | 20c110e57f24aa54154942ee40921e9129fbc595 (diff) | |
parent | db162df264a222021dbc7f1f93af94029f3948d9 (diff) |
Merge #3727
3727: Introduce ra_proc_macro r=matklad a=edwin0cheng
This PR implemented:
1. Reading dylib path of proc-macro crate from cargo check , similar to how `OUTDIR` is obtained.
2. Added a new crate `ra_proc_macro` and implement the foot-work for reading result from external proc-macro expander.
3. Added a struct `ProcMacroClient` , which will be responsible to the client side communication to the External process.
Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'crates/ra_ide/src/mock_analysis.rs')
-rw-r--r-- | crates/ra_ide/src/mock_analysis.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_ide/src/mock_analysis.rs b/crates/ra_ide/src/mock_analysis.rs index 2cf77a31f..2c13f206a 100644 --- a/crates/ra_ide/src/mock_analysis.rs +++ b/crates/ra_ide/src/mock_analysis.rs | |||
@@ -103,6 +103,7 @@ impl MockAnalysis { | |||
103 | cfg_options, | 103 | cfg_options, |
104 | Env::default(), | 104 | Env::default(), |
105 | Default::default(), | 105 | Default::default(), |
106 | Default::default(), | ||
106 | )); | 107 | )); |
107 | } else if path.ends_with("/lib.rs") { | 108 | } else if path.ends_with("/lib.rs") { |
108 | let crate_name = path.parent().unwrap().file_name().unwrap(); | 109 | let crate_name = path.parent().unwrap().file_name().unwrap(); |
@@ -113,6 +114,7 @@ impl MockAnalysis { | |||
113 | cfg_options, | 114 | cfg_options, |
114 | Env::default(), | 115 | Env::default(), |
115 | Default::default(), | 116 | Default::default(), |
117 | Default::default(), | ||
116 | ); | 118 | ); |
117 | if let Some(root_crate) = root_crate { | 119 | if let Some(root_crate) = root_crate { |
118 | crate_graph | 120 | crate_graph |