Skip to content

Commit 96a78cb

Browse files
committed
Rollup merge of rust-lang#21591 - GuillaumeGomez:hash, r=alexcrichton
Fixes rust-lang#21547 issue.
2 parents f007d6d + 5ab1405 commit 96a78cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/nonzero.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ unsafe impl Zeroable for u64 {}
3131
/// A wrapper type for raw pointers and integers that will never be
3232
/// NULL or 0 that might allow certain optimizations.
3333
#[lang="non_zero"]
34-
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Show)]
34+
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Show, Hash)]
3535
#[unstable]
3636
pub struct NonZero<T: Zeroable>(T);
3737

@@ -52,4 +52,4 @@ impl<T: Zeroable> Deref for NonZero<T> {
5252
let NonZero(ref inner) = *self;
5353
inner
5454
}
55-
}
55+
}

0 commit comments

Comments
 (0)