Uh oh!
There was an error while loading. Please reload this page.
private no-mangle lints: only suggest pub if it doesn't already exist - #47479
Conversation
56520b3 to
1f2a1c2Compareestebank
commented
Jan 16, 2018
r=me once the test is fixed. |
The incompetent fool who added these suggestions in 38e5a96 apparently thought it was safe to assume that, because the offending function or static was unreachable, it would therefore have not have any existing visibility modifiers, making it safe for us to unconditionally suggest inserting `pub`. This isn't true. This resolvesrust-lang#47383.
1f2a1c2 to
661e033Comparepetrochenkov
commented
Jan 16, 2018
I don't think this is a correct fix. |
zackmdavis
commented
Jan 16, 2018
I'm confused: as I understand, the lint is based on reachability ( |
estebank
commented
Jan 17, 2018
@bors r+ rollup |
bors
commented
Jan 17, 2018
📌 Commit 661e033 has been approved by |
petrochenkov
commented
Jan 17, 2018
Ah, I see, only the help note is disabled, then it's ok. |
…ested_double-pub, r=estebank private no-mangle lints: only suggest `pub` if it doesn't already exist Fixesrust-lang#47383 (function or static can be `pub` but unreachable because it's in a private module; adding another `pub` is nonsensical). r? @estebank
…ested_double-pub, r=estebank private no-mangle lints: only suggest `pub` if it doesn't already exist Fixesrust-lang#47383 (function or static can be `pub` but unreachable because it's in a private module; adding another `pub` is nonsensical). r? @estebank
Fixes#47383 (function or static can be
pubbut unreachable because it's in a private module; adding anotherpubis nonsensical).r? @estebank