Closed lcnr closed 4 days ago
cc #120012
discussed in https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/codegen-units.20impacts.20order.20of.20impls
@cjgillot said:
The input by calling
tcx.hir().items
is already in deterministic order. We can just remove the sorting.
given the following extern crate
dep
:and the following root crate:
The order in
trait_impls_of
depends on crate metadata ofdep
. The rest is only necessary to reproduce this issue.