Skip to content

Commit 1a3caf7

Browse files
committed
Auto merge of rust-lang#99802 - JohnTitor:rollup-uaklql1, r=JohnTitor
Rollup of 5 pull requests Successful merges: - rust-lang#99079 (Check that RPITs constrained by a recursive call in a closure are compatible) - rust-lang#99704 (Add `Self: ~const Trait` to traits with `#[const_trait]`) - rust-lang#99769 (Sync rustc_codegen_cranelift) - rust-lang#99783 (rustdoc: remove Clean trait impls for more items) - rust-lang#99789 (Refactor: use `pluralize!`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
2 parents ba35ea0 + 0100d4d commit 1a3caf7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/cmp.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,9 +1503,10 @@ mod impls {
15031503
// & pointers
15041504

15051505
#[stable(feature = "rust1", since = "1.0.0")]
1506-
impl<A: ?Sized, B: ?Sized> PartialEq<&B> for &A
1506+
#[rustc_const_unstable(feature = "const_cmp", issue = "92391")]
1507+
impl<A: ?Sized, B: ?Sized> const PartialEq<&B> for &A
15071508
where
1508-
A: PartialEq<B>,
1509+
A: ~const PartialEq<B>,
15091510
{
15101511
#[inline]
15111512
fn eq(&self, other: &&B) -> bool {

0 commit comments

Comments
 (0)