- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
Open
Labels
A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
Re-exported types seem to have more confusing documentation than the original type. I noticed this while reviewing rayon::Configuration which is re-exported from rayon-core.
original/src/lib.rs
pub trait T {}
pub struct S;
impl S {
    pub fn f<F>(_: F, _: Box<T>) -> Self
        where F: Fn()
    {
        unimplemented!()
    }
}This is documented basically like what I wrote, which is what I would expect:
src/lib.rs
extern crate original;
pub use original::S;This is documented with a couple changes, all of which are technically correct but unexpected.
- The Box<T>is nowBox<T + 'static>.
- The return type has changed from SelftoS.
- Thefixed as of 1.50- whereclause gives an explicit- -> ().
- The parameter name placeholders are gone (which I prefer, but it is a difference).
I am using rustc 1.22.0-nightly (f861b6e 2017-09-01).
retep998
Metadata
Metadata
Assignees
Labels
A-cross-crate-reexportsArea: Documentation that has been re-exported from a different crateArea: Documentation that has been re-exported from a different crateC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.

