mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Remove useless lifetimes from Pin impls.
This commit is contained in:
committed by
GitHub
parent
c7df1f530b
commit
bb0abe98a7
+5
-5
@@ -293,21 +293,21 @@ fn deref_mut(&mut self) -> &mut P::Target {
|
||||
}
|
||||
|
||||
#[unstable(feature = "pin", issue = "49150")]
|
||||
impl<'a, P: fmt::Debug> fmt::Debug for Pin<P> {
|
||||
impl<P: fmt::Debug> fmt::Debug for Pin<P> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fmt::Debug::fmt(&self.pointer, f)
|
||||
}
|
||||
}
|
||||
|
||||
#[unstable(feature = "pin", issue = "49150")]
|
||||
impl<'a, P: fmt::Display> fmt::Display for Pin<P> {
|
||||
impl<P: fmt::Display> fmt::Display for Pin<P> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fmt::Display::fmt(&self.pointer, f)
|
||||
}
|
||||
}
|
||||
|
||||
#[unstable(feature = "pin", issue = "49150")]
|
||||
impl<'a, P: fmt::Pointer> fmt::Pointer for Pin<P> {
|
||||
impl<P: fmt::Pointer> fmt::Pointer for Pin<P> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fmt::Pointer::fmt(&self.pointer, f)
|
||||
}
|
||||
@@ -319,10 +319,10 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
// for other reasons, though, so we just need to take care not to allow such
|
||||
// impls to land in std.
|
||||
#[unstable(feature = "pin", issue = "49150")]
|
||||
impl<'a, P, U> CoerceUnsized<Pin<U>> for Pin<P>
|
||||
impl<P, U> CoerceUnsized<Pin<U>> for Pin<P>
|
||||
where
|
||||
P: CoerceUnsized<U>,
|
||||
{}
|
||||
|
||||
#[unstable(feature = "pin", issue = "49150")]
|
||||
impl<'a, P> Unpin for Pin<P> {}
|
||||
impl<P> Unpin for Pin<P> {}
|
||||
|
||||
Reference in New Issue
Block a user