rustdoc: Inline reexported items if possible. Fixes #13414.

some examples to look at: `std::io`, `std::prelude`, `libc`.

there are some known exceptions to inlining (e.g. statics),
so they are preserved to the reexport section as much as possible.
it would be desirable to remove such exceptions in the future.