diff options
| author | est31 <MTest31@outlook.com> | 2017-05-02 05:55:20 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2017-05-02 05:55:20 +0200 |
| commit | d290849a233bb2b06b01167c242b3886d2cf8681 (patch) | |
| tree | 0153668c60127400b8e7fc39ad0f1077fd05e616 /src/libcore | |
| parent | 4cb396c68088f38e517ac8890030d17a969e57ba (diff) | |
| download | rust-d290849a233bb2b06b01167c242b3886d2cf8681.tar.gz rust-d290849a233bb2b06b01167c242b3886d2cf8681.zip | |
Removal pass for anonymous parameters
Removes occurences of anonymous parameters from the rustc codebase, as they are to be deprecated. See issue #41686 and RFC 1685.
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/convert.rs | 2 | ||||
| -rw-r--r-- | src/libcore/hash/sip.rs | 4 | ||||
| -rw-r--r-- | src/libcore/ops.rs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/libcore/convert.rs b/src/libcore/convert.rs index 084736685e3..f5dc38e8aab 100644 --- a/src/libcore/convert.rs +++ b/src/libcore/convert.rs @@ -276,7 +276,7 @@ pub trait Into<T>: Sized { pub trait From<T>: Sized { /// Performs the conversion. #[stable(feature = "rust1", since = "1.0.0")] - fn from(T) -> Self; + fn from(t: T) -> Self; } /// An attempted conversion that consumes `self`, which may or may not be diff --git a/src/libcore/hash/sip.rs b/src/libcore/hash/sip.rs index 5f5d07b6682..db12496b6f3 100644 --- a/src/libcore/hash/sip.rs +++ b/src/libcore/hash/sip.rs @@ -403,8 +403,8 @@ impl<S: Sip> Default for Hasher<S> { #[doc(hidden)] trait Sip { - fn c_rounds(&mut State); - fn d_rounds(&mut State); + fn c_rounds(_: &mut State); + fn d_rounds(_: &mut State); } #[derive(Debug, Clone, Default)] diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 175b3a5a69a..391b606f613 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -2878,10 +2878,10 @@ pub trait Carrier { type Error; /// Create a `Carrier` from a success value. - fn from_success(Self::Success) -> Self; + fn from_success(_: Self::Success) -> Self; /// Create a `Carrier` from an error value. - fn from_error(Self::Error) -> Self; + fn from_error(_: Self::Error) -> Self; /// Translate this `Carrier` to another implementation of `Carrier` with the /// same associated types. |
