We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cargo_crates_in_set
1 parent 498553f commit c571558Copy full SHA for c571558
src/bootstrap/builder.rs
@@ -103,11 +103,14 @@ impl RunConfig<'_> {
103
}
104
105
/// Return a list of crate names selected by `run.paths`.
106
+ #[track_caller]
107
pub fn cargo_crates_in_set(&self) -> Interned<Vec<String>> {
108
let mut crates = Vec::new();
109
for krate in &self.paths {
110
let path = krate.assert_single_path();
- let crate_name = self.builder.crate_paths[&path.path];
111
+ let Some(crate_name) = self.builder.crate_paths.get(&path.path) else {
112
+ panic!("missing crate for path {}", path.path.display())
113
+ };
114
crates.push(crate_name.to_string());
115
116
INTERNER.intern_list(crates)
0 commit comments