Repository: seanmonstar/reqwest (language: rust)

Issue:
Hide trait impls that are inaccessible to users
The rustdoc for [`reqwest::Error`](https://docs.rs/reqwest/0.6.2/reqwest/struct.Error.html) contains these two distracting impls:

```rust
impl From<InternalFrom<Error>> for Error;

impl<T> From<InternalFrom<T>> for Error where T: Into<Kind>;
```

These are not possible for a user to call. They should be hidden from rustdoc by using `#[doc(hidden)]`.


Discussion / hints:
I filed https://github.com/rust-lang/rust/issues/42323 to follow up on the rustdoc side as well.

Fix patch:
diff --git a/src/error.rs b/src/error.rs
index f7727d1b1..8d46c9940 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -152,6 +152,7 @@ impl From<::hyper_native_tls::native_tls::Error> for Kind {
 
 pub struct InternalFrom<T>(pub T, pub Option<Url>);
 
+#[doc(hidden)] // https://github.com/rust-lang/rust/issues/42323
 impl From<InternalFrom<Error>> for Error {
     #[inline]
     fn from(other: InternalFrom<Error>) -> Error {
@@ -159,6 +160,7 @@ impl From<InternalFrom<Error>> for Error {
     }
 }
 
+#[doc(hidden)] // https://github.com/rust-lang/rust/issues/42323
 impl<T> From<InternalFrom<T>> for Error
 where
     T: Into<Kind>,


Test patch: