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 55ae4b6 commit 45fd6e8Copy full SHA for 45fd6e8
src/stacked_borrows.rs
@@ -44,6 +44,9 @@ impl SbTag {
44
45
impl PartialEq for SbTag {
46
fn eq(&self, other: &Self) -> bool {
47
+ // The codegen for the derived Partialeq is bad here and includes a branch.
48
+ // Since this code is extremely hot, this is optimized here.
49
+ // https://github.com/rust-lang/rust/issues/49892
50
self.as_u64() == other.as_u64()
51
}
52
0 commit comments