Skip to content

Commit 44f66c3

Browse files
committed
don't check for all std traits being present
1 parent 1eb98b4 commit 44f66c3

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

crates/bevy_api_gen/src/passes/cache_traits.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,21 @@ pub(crate) fn cache_traits(ctxt: &mut BevyCtxt<'_>, _args: &Args) -> bool {
5757

5858
log::trace!("has_std: {}", has_std);
5959

60-
if has_std && !ctxt.cached_traits.has_all_std_source_traits() {
61-
log::debug!(
62-
"all traits: {}",
63-
tcx.all_traits()
64-
.map(|t| tcx.def_path_str(t).to_string())
65-
.collect::<Vec<_>>()
66-
.join(", ")
67-
);
60+
// if has_std && !ctxt.cached_traits.has_all_std_source_traits() {
61+
// log::debug!(
62+
// "all traits: {}",
63+
// tcx.all_traits()
64+
// .map(|t| tcx.def_path_str(t).to_string())
65+
// .collect::<Vec<_>>()
66+
// .join(", ")
67+
// );
6868

69-
panic!(
70-
"Could not find traits: [{}] in crate: {}, did bootstrapping go wrong?",
71-
ctxt.cached_traits.missing_std_source_traits().join(", "),
72-
tcx.crate_name(LOCAL_CRATE)
73-
)
74-
}
69+
// panic!(
70+
// "Could not find traits: [{}] in crate: {}, did bootstrapping go wrong?",
71+
// ctxt.cached_traits.missing_std_source_traits().join(", "),
72+
// tcx.crate_name(LOCAL_CRATE)
73+
// )
74+
// }
7575

7676
true
7777
}

0 commit comments

Comments
 (0)