Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
728017e
Make AsyncDrop check that it's being implemented on a local ADT
compiler-errors Jul 9, 2025
b7d024b
moved tests
Kivooeo Jul 13, 2025
f5485e5
docs(alloc::fmt): Make `type` optional, instead of matching the empty…
nik-rev Jul 13, 2025
c6e1b21
Use hygenic macros for stable-mir
jacob-greenfield Jul 16, 2025
2ca2d93
Auto-label `src/ci` and `.github/workflows` with `A-CI`
jieyouxu Jul 17, 2025
491b873
Add myself to `infra-ci` reviewer group
jieyouxu Jul 17, 2025
c0597fb
cleaned up some tests
Kivooeo Jul 13, 2025
f204801
fix: fix issue 143740, Wrong messages from compiler confusing methods…
lichuang Jul 16, 2025
a886852
ci: use windows 22 for all free runners
marcoieni Jul 17, 2025
998df3a
resolve: Make disambiguators for underscore bindings module-local
petrochenkov Jul 15, 2025
2f5722c
Make `Option` `const PartialEq`
oli-obk Jul 11, 2025
9d29583
Make `NonZero` `const PartialEq`
oli-obk Jul 11, 2025
250648e
Make `derive_const` usable within libcore again
oli-obk Jul 11, 2025
cecf9ea
Add test raw-underscore-lifetime.rs
xizheyin Jul 1, 2025
848d4a5
Remove similar errors about raw underscore lifetime
xizheyin Jul 1, 2025
68b415a
Make slices `[const] PartialEq`
oli-obk Jul 11, 2025
c375244
Add test for `default_field_values` and `const_default`
estebank Jul 8, 2025
499ccba
Rollup merge of #143280 - xizheyin:143152-1, r=compiler-errors
matthiaskrgr Jul 18, 2025
7b6e2f9
Rollup merge of #143649 - estebank:const-trait-default-field-value, r…
matthiaskrgr Jul 18, 2025
3acbb4d
Rollup merge of #143699 - compiler-errors:async-drop-fund, r=oli-obk
matthiaskrgr Jul 18, 2025
0820cf8
Rollup merge of #143908 - Kivooeo:tf0, r=jieyouxu
matthiaskrgr Jul 18, 2025
744ca59
Rollup merge of #143909 - nik-rev:patch-1, r=jhpratt
matthiaskrgr Jul 18, 2025
82fbbdd
Rollup merge of #143925 - oli-obk:slice-const-partialeq, r=fee1-dead
matthiaskrgr Jul 18, 2025
35b1f75
Rollup merge of #143997 - Coder-256:stable-mir-macro-hygiene, r=oli-obk
matthiaskrgr Jul 18, 2025
d3bc06e
Rollup merge of #144013 - petrochenkov:disambunder, r=oli-obk
matthiaskrgr Jul 18, 2025
5368845
Rollup merge of #144029 - lichuang:fix_issue_143740, r=compiler-errors
matthiaskrgr Jul 18, 2025
c0d848d
Rollup merge of #144063 - jieyouxu:label-ci, r=Kobzol
matthiaskrgr Jul 18, 2025
fd18175
Rollup merge of #144069 - marcoieni:windows-22-free, r=jieyouxu
matthiaskrgr Jul 18, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make NonZero const PartialEq
  • Loading branch information
oli-obk committed Jul 17, 2025
commit 9d29583355018f00d65b9d5e08758e3f9bcba97c
5 changes: 3 additions & 2 deletions library/core/src/num/nonzero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,10 @@ impl<T> UseCloned for NonZero<T> where T: ZeroablePrimitive {}
impl<T> Copy for NonZero<T> where T: ZeroablePrimitive {}

#[stable(feature = "nonzero", since = "1.28.0")]
impl<T> PartialEq for NonZero<T>
#[rustc_const_unstable(feature = "const_cmp", issue = "143800")]
impl<T> const PartialEq for NonZero<T>
where
T: ZeroablePrimitive + PartialEq,
T: ZeroablePrimitive + ~const PartialEq,
{
#[inline]
fn eq(&self, other: &Self) -> bool {
Expand Down