diff options
| author | bors <bors@rust-lang.org> | 2016-06-22 04:21:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-22 04:21:59 -0700 |
| commit | e41cdabc3e5fff02abfef513d3289370fae358b8 (patch) | |
| tree | 8c8de5f65c6796c558fd1a8d0f96031bc280499b /src/libcore | |
| parent | 3ee3267af39aa95fed707c67acb656845eb8f365 (diff) | |
| parent | c749a3e4b588ccc46d34e0c7b40a1e9a2f374c5b (diff) | |
| download | rust-e41cdabc3e5fff02abfef513d3289370fae358b8.tar.gz rust-e41cdabc3e5fff02abfef513d3289370fae358b8.zip | |
Auto merge of #34408 - Manishearth:rollup, r=Manishearth
Rollup of 7 pull requests - Successful merges: #34190, #34363, #34367, #34383, #34387, #34394, #34404 - Failed merges:
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/num/mod.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 883e9206dde..06398fc094e 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -66,6 +66,34 @@ impl<T: fmt::Display> fmt::Display for Wrapping<T> { } } +#[stable(feature = "wrapping_fmt", since = "1.11.0")] +impl<T: fmt::Binary> fmt::Binary for Wrapping<T> { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + self.0.fmt(f) + } +} + +#[stable(feature = "wrapping_fmt", since = "1.11.0")] +impl<T: fmt::Octal> fmt::Octal for Wrapping<T> { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + self.0.fmt(f) + } +} + +#[stable(feature = "wrapping_fmt", since = "1.11.0")] +impl<T: fmt::LowerHex> fmt::LowerHex for Wrapping<T> { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + self.0.fmt(f) + } +} + +#[stable(feature = "wrapping_fmt", since = "1.11.0")] +impl<T: fmt::UpperHex> fmt::UpperHex for Wrapping<T> { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + self.0.fmt(f) + } +} + mod wrapping; // All these modules are technically private and only exposed for libcoretest: |
