Fixed the rustdoc Deref associated items display in https://github.com/rust-lang...

@imperio@toot.cat

Fixed the rustdoc Deref associated items display in github.com/rust-lang/rust/pull.

Before this PR, it wasn't taking into account the presence and mutability of self in methods:

  • self: Show it only if Copy
  • &self: Ok all the time
  • &mut self: Show it only if DerefMut is implemented

More deref fixes incoming. :)

#rust #rustlang