about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-01-31 23:12:15 +0100
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2025-02-10 10:38:22 +0100
commit615a9cd10a0d99f12c8b07a9e9fbff52b08e2139 (patch)
tree357ab7728409545824dfda0a479f78468509a74b /src
parentb993f9c835a3ed2119d45597f74e3eaedbf806e7 (diff)
downloadrust-615a9cd10a0d99f12c8b07a9e9fbff52b08e2139.tar.gz
rust-615a9cd10a0d99f12c8b07a9e9fbff52b08e2139.zip
Ignore duplicated dep for `literal-escaper`
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/src/core/metadata.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/src/core/metadata.rs b/src/bootstrap/src/core/metadata.rs
index 983674d2c68..e6b01b2e2d9 100644
--- a/src/bootstrap/src/core/metadata.rs
+++ b/src/bootstrap/src/core/metadata.rs
@@ -63,6 +63,11 @@ pub fn build(build: &mut Build) {
             let relative_path = krate.local_path(build);
             build.crates.insert(name.clone(), krate);
             let existing_path = build.crate_paths.insert(relative_path, name);
+            // `literal-escaper` is both a dependency of `compiler/rustc_lexer` and of
+            // `library/proc-macro`, making it appear multiple times in the workspace.
+            if existing_path.as_deref() == Some("literal-escaper") {
+                continue;
+            }
             assert!(
                 existing_path.is_none(),
                 "multiple crates with the same path: {}",