Ignore duplicated dep for literal-escaper

This commit is contained in:
Guillaume Gomez 2025-01-31 23:12:15 +01:00
parent b993f9c835
commit 615a9cd10a

View file

@ -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: {}",