Skip to content

Add pub(restricted) example - #856

Merged
steveklabnik merged 2 commits into
rust-lang:masterfrom
cramertj:pub-restricted
Jun 8, 2017
Merged

steveklabnik merged 2 commits into
rust-lang:masterfrom
cramertj:pub-restricted

Conversation

@cramertj

Copy link
Copy Markdown
Member

@cramertj

Copy link
Copy Markdown
Member Author

(Travis is obviously going to fail since the feature isn't stable yet.)

@steveklabnik

Copy link
Copy Markdown
Contributor

Yup! RBE deploys to master always, so we'll have to wait until the release to merge.

@cramertj

cramertj commented Mar 15, 2017 •

Copy link
Copy Markdown
Member Author

To add:

  • path in pub(in path) item must be some parent module of the item.
  • pub(super) and pub(self) are shortcuts for pub(in super) and pub(in self) respectively
  • pub(self) is the same thing as private

Edit: is it even worth mentioning pub(self)? why is that useful?

@steveklabnik

Copy link
Copy Markdown
Contributor

We'll be able to merge this Thursday; it now is green on beta 🎊

@steveklabnik
steveklabnik merged commit 576efaf into rust-lang:master Jun 8, 2017
@steveklabnik

Copy link
Copy Markdown
Contributor

Woo!

@cramertj
cramertj deleted the pub-restricted branch June 8, 2017 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants