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

Enable privacy check for enum methods. #8370

Merged
merged 1 commit into from
Aug 11, 2013

Conversation

michaelwoerister
Copy link
Member

As the title says. The fix is just one line in src/librustc/middle/privacy.rs. The other modifications are small errors revealed by the new check. This missing check could also lead to linker errors when using a non-public method in another crate.

bors added a commit that referenced this pull request Aug 10, 2013
This merges these PR together:

#8430: r=thestinger 
#8370: r=thestinger
#8386: r=bstrie
#8388: r=thestinger
#8390: r=graydon
#8394: r=graydon
#8402: r=thestinger
#8403: r=catamorphism
@bors bors merged commit 2c9922a into rust-lang:master Aug 11, 2013
@michaelwoerister michaelwoerister deleted the enum-method-privacy branch July 9, 2014 07:51
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 10, 2022
Format `if_chain` invocations in clippy_utils

Not realizing it was [already obsolete](rust-lang/rust-clippy#8360), I built a [tool to format inside `if_chain` invocations](https://crates.io/crates/rustfmt_if_chain).

This PR applies the tool to clippy_utils. (If you apply it to clippy_lints, the changes are extensive.)

Anyway, I'm making it known here in case anyone wants to use it while `if-let` chain support is developed for `rustfmt`. (There could be a few Clippy PRs between now and then, and IMHO, the code looks better with the `if_chain` invocations formatted.)

Cheers.

---

changelog: none
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.

3 participants