Skip to content

Conversation

leoyvens
Copy link
Contributor

So it's not mistaken for dead code.

So it's not mistaken for dead code.
@rust-highfive
Copy link
Contributor

r? @eddyb

(rust_highfive has picked a reviewer for you, use r? to override)

@@ -132,6 +132,7 @@ pub struct Export {
/// We include non-`pub` exports for hygienic macros that get used from extern crates.
pub vis: ty::Visibility,
/// True if from a `use` or and `extern crate`.
/// Used in rustdoc.
pub is_import: bool,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't this be checked by way of tcx.def_key(export.def.def_id()).parent? Or by adding a DefId of the export itself, and comparing that to export.def.def_id().

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this should be removable with a little refactoring in rustdoc, opened #47100.

@kennytm kennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 31, 2017
@kennytm
Copy link
Member

kennytm commented Dec 31, 2017

cc @jseyfried who added is_import in #46419.

@jseyfried
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jan 1, 2018

📌 Commit f6ff377 has been approved by jseyfried

@bors
Copy link
Collaborator

bors commented Jan 1, 2018

⌛ Testing commit f6ff377 with merge bc1dda4...

bors added a commit that referenced this pull request Jan 1, 2018
Clarify where `is_import` is used

So it's not mistaken for dead code.
@bors
Copy link
Collaborator

bors commented Jan 1, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: jseyfried
Pushing bc1dda4 to master...

@bors bors merged commit f6ff377 into rust-lang:master Jan 1, 2018
@leoyvens leoyvens deleted the clarify-is-import branch March 7, 2018 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants