Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: items are shown as if defined in crate when reexported cross-module and cross-crate #27123

Closed
nagisa opened this Issue Jul 19, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@nagisa
Copy link
Contributor

nagisa commented Jul 19, 2015

Consider

extern crate innercrate; //defines only one public item `from_inner_crate`

pub use inner::{inner_fn, from_inner_crate};


/// Top level documentation
pub fn top_level(){}


pub mod inner {
    pub use innercrate::from_inner_crate;
    /// Defined inside inner module
    pub fn inner_fn(){}
}

Documentation renders from_inner_crate as if it was defined at the top level of crate rather than showing it as an reexport from inner module.

what output from rustdoc looks like

@nagisa

This comment has been minimized.

Copy link
Contributor Author

nagisa commented Jul 19, 2015

cc #24305, not sure if any of list items in that meta-issue are duplicates.

@brson

This comment has been minimized.

Copy link
Contributor

brson commented Jan 26, 2017

The behavior described in the op is intended. rustdoc does have an option not to inline reexports. If there are missing features still please open a new ticket with further clarification.

@brson brson closed this Jan 26, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.