Skip to content

Commit 6dec15c

Browse files
committed
reign in unported fix
1 parent 4a030e8 commit 6dec15c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codegen/src/import_path.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ impl<'tcx> ImportPathFinder<'tcx> {
7171
}
7272
}
7373

74+
#[allow(dead_code)]
7475
pub(crate) fn crawled_items_in_crate(&self, krate: CrateNum) -> impl Iterator<Item = DefId> {
7576
self.cache
7677
.keys()
@@ -88,7 +89,7 @@ impl<'tcx> ImportPathFinder<'tcx> {
8889
let not_in_workspace = !graph
8990
.all_enabled_workspace_crates()
9091
.iter()
91-
.any(|c| c.as_ref() == crate_name.as_str());
92+
.any(|c| c.to_string().as_str() == crate_name.as_str());
9293

9394
let is_not_local_crate = if &LOCAL_CRATE != crate_num && !is_std_or_core {
9495
10

0 commit comments

Comments
 (0)