diff options
author | Edwin Cheng <[email protected]> | 2020-03-18 12:56:46 +0000 |
---|---|---|
committer | Edwin Cheng <[email protected]> | 2020-03-25 19:29:45 +0000 |
commit | d0b6ed4441469acfb6bc6555d78abf12637b6cf4 (patch) | |
tree | a4b39b33590c472a68fd76ceae96732e9cb54ebb /crates/ra_ide | |
parent | a617f24eae6c02f087759312e9aa08507fbecdf0 (diff) |
Add ProcMacroClient
Diffstat (limited to 'crates/ra_ide')
-rw-r--r-- | crates/ra_ide/src/lib.rs | 1 | ||||
-rw-r--r-- | crates/ra_ide/src/mock_analysis.rs | 2 | ||||
-rw-r--r-- | crates/ra_ide/src/parent_module.rs | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_ide/src/lib.rs b/crates/ra_ide/src/lib.rs index 5ab06c6cf..e43414985 100644 --- a/crates/ra_ide/src/lib.rs +++ b/crates/ra_ide/src/lib.rs | |||
@@ -213,6 +213,7 @@ impl Analysis { | |||
213 | cfg_options, | 213 | cfg_options, |
214 | Env::default(), | 214 | Env::default(), |
215 | Default::default(), | 215 | Default::default(), |
216 | Default::default(), | ||
216 | ); | 217 | ); |
217 | change.add_file(source_root, file_id, "main.rs".into(), Arc::new(text)); | 218 | change.add_file(source_root, file_id, "main.rs".into(), Arc::new(text)); |
218 | change.set_crate_graph(crate_graph); | 219 | change.set_crate_graph(crate_graph); |
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 |
diff --git a/crates/ra_ide/src/parent_module.rs b/crates/ra_ide/src/parent_module.rs index 76d130b9b..958b92bed 100644 --- a/crates/ra_ide/src/parent_module.rs +++ b/crates/ra_ide/src/parent_module.rs | |||
@@ -137,6 +137,7 @@ mod tests { | |||
137 | CfgOptions::default(), | 137 | CfgOptions::default(), |
138 | Env::default(), | 138 | Env::default(), |
139 | Default::default(), | 139 | Default::default(), |
140 | Default::default(), | ||
140 | ); | 141 | ); |
141 | let mut change = AnalysisChange::new(); | 142 | let mut change = AnalysisChange::new(); |
142 | change.set_crate_graph(crate_graph); | 143 | change.set_crate_graph(crate_graph); |