]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/metadata.rs
Don't set `is_preview` for clippy and rustfmt
[rust.git] / src / bootstrap / metadata.rs
index 59dc50be47f0685e6b89fcf7cc70e514f67ac1d1..e193e70a0c417452b3649571c2cb990be23727db 100644 (file)
@@ -49,7 +49,11 @@ pub fn build(build: &mut Build) {
                 .filter(|dep| dep.source.is_none())
                 .map(|dep| INTERNER.intern_string(dep.name))
                 .collect();
-            build.crates.insert(name, Crate { name, deps, path });
+            let krate = Crate { name, deps, path };
+            let relative_path = krate.local_path(build);
+            build.crates.insert(name, krate);
+            let existing_path = build.crate_paths.insert(relative_path, name);
+            assert!(existing_path.is_none(), "multiple crates with the same path");
         }
     }
 }