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.
1 parent 4a030e8 commit 6dec15cCopy full SHA for 6dec15c
codegen/src/import_path.rs
@@ -71,6 +71,7 @@ impl<'tcx> ImportPathFinder<'tcx> {
71
}
72
73
74
+ #[allow(dead_code)]
75
pub(crate) fn crawled_items_in_crate(&self, krate: CrateNum) -> impl Iterator<Item = DefId> {
76
self.cache
77
.keys()
@@ -88,7 +89,7 @@ impl<'tcx> ImportPathFinder<'tcx> {
88
89
let not_in_workspace = !graph
90
.all_enabled_workspace_crates()
91
.iter()
- .any(|c| c.as_ref() == crate_name.as_str());
92
+ .any(|c| c.to_string().as_str() == crate_name.as_str());
93
94
let is_not_local_crate = if &LOCAL_CRATE != crate_num && !is_std_or_core {
95
10
0 commit comments