diff options
Diffstat (limited to 'crates/ra_project_model')
-rw-r--r-- | crates/ra_project_model/src/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs index b1268f29b..0e14f1b70 100644 --- a/crates/ra_project_model/src/lib.rs +++ b/crates/ra_project_model/src/lib.rs | |||
@@ -241,6 +241,8 @@ impl ProjectWorkspace { | |||
241 | } | 241 | } |
242 | } | 242 | } |
243 | } | 243 | } |
244 | // core is added as a dependency before std in order to | ||
245 | // mimic rustcs dependency order | ||
244 | if let Some(core) = libcore { | 246 | if let Some(core) = libcore { |
245 | if let Err(_) = crate_graph.add_dep(from, "core".into(), core) { | 247 | if let Err(_) = crate_graph.add_dep(from, "core".into(), core) { |
246 | log::error!("cyclic dependency on core for {}", pkg.name(&cargo)) | 248 | log::error!("cyclic dependency on core for {}", pkg.name(&cargo)) |