Uh oh!
There was an error while loading. Please reload this page.
Add pub visibility for methods as well - #44554
Conversation
QuietMisdreavus
commented
Sep 13, 2017
r=me pending travis |
QuietMisdreavus
commented
Sep 14, 2017
@bors r+ rollup |
bors
commented
Sep 14, 2017
📌 Commit 42a0286 has been approved by |
ollie27
commented
Sep 14, 2017
The |
QuietMisdreavus
commented
Sep 14, 2017
GuillaumeGomez
commented
Sep 14, 2017
@ollie27: Good catch! |
GuillaumeGomez
commented
Sep 14, 2017
However I have no idea how to test it... |
42a0286 to
08bb3dcCompareollie27
commented
Sep 14, 2017
I'm not sure how to add tests for the indentation but a simple test like the following would be useful: #![crate_name = "foo"]pubstructFoo;implFoo{// @has 'foo/struct.Foo.html' '//code' 'pub fn f()'pubfnf(){}} |
QuietMisdreavus
commented
Sep 14, 2017
I rummaged through the flags available to compiler tests and it looks like we can't add flags to rustdoc (to enable rendering private items), so for now that will have to do. |
ollie27
commented
Sep 14, 2017
@QuietMisdreavus do you mean like ? |
QuietMisdreavus
commented
Sep 14, 2017
Um, yes, exactly that. I didn't realize that the compile-flags worked like that. So yeah, that's what i had in mind to be able to test rendering |
GuillaumeGomez
commented
Sep 14, 2017
Oh damn, I forgot to add the test file! Now I see what you're talking about... |
08bb3dc to
2c59e77CompareGuillaumeGomez
commented
Sep 14, 2017
I added the test. |
bors
commented
Sep 15, 2017
☔ The latest upstream changes (presumably #44585) made this pull request unmergeable. Please resolve the merge conflicts. |
795c559 to
7800faeCompareQuietMisdreavus
commented
Sep 18, 2017
Could you add another bit to the test where it renders a non-pub function without "pub"? You can disable the |
7800fae to
203d71fCompareQuietMisdreavus
commented
Sep 19, 2017
(the test got updated to include a non-pub method, and travis passed, so:) @bors r+ |
bors
commented
Sep 19, 2017
📌 Commit 203d71f has been approved by |
…uietMisdreavus Add pub visibility for methods as well Fixesrust-lang#44527. r? @QuietMisdreavus
…uietMisdreavus Add pub visibility for methods as well Fixesrust-lang#44527. r? @QuietMisdreavus
Fixes#44527.
r? @QuietMisdreavus