Skip to content

Commit e998c81

Browse files
Ignore duplicated dep for literal-escaper
1 parent 916f6f3 commit e998c81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/src/core/metadata.rs

+5
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ pub fn build(build: &mut Build) {
6363
let relative_path = krate.local_path(build);
6464
build.crates.insert(name.clone(), krate);
6565
let existing_path = build.crate_paths.insert(relative_path, name);
66+
// `literal-escaper` is both a dependency of `compiler/rustc_lexer` and of
67+
// `library/proc-macro`, making it appear multiple times in the workspace.
68+
if existing_path.as_deref() == Some("literal-escaper") {
69+
continue;
70+
}
6671
assert!(
6772
existing_path.is_none(),
6873
"multiple crates with the same path: {}",

0 commit comments

Comments
 (0)