Skip to content

Commit 303ab34

Browse files
committed
Revert "rustc_trait_selection: work around instruction-counting non-determinism."
This reverts commit 85947f0.
1 parent 85947f0 commit 303ab34

File tree

1 file changed

+0
-6
lines changed
  • compiler/rustc_trait_selection/src/traits/select

1 file changed

+0
-6
lines changed

compiler/rustc_trait_selection/src/traits/select/mod.rs

-6
Original file line numberDiff line numberDiff line change
@@ -1525,12 +1525,6 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
15251525
other: &EvaluatedCandidate<'tcx>,
15261526
needs_infer: bool,
15271527
) -> bool {
1528-
// HACK(eddyb) remove instruction-counting noise from `-Z self-profile`.
1529-
#[cfg(target_arch = "x86_64")]
1530-
unsafe {
1531-
std::arch::asm!("mfence", options(nostack));
1532-
}
1533-
15341528
if victim.candidate == other.candidate {
15351529
return true;
15361530
}

0 commit comments

Comments
 (0)