Uh oh!
There was an error while loading. Please reload this page.
Add lint warning for inner function marked as #[test] - #51450
Conversation
rust-highfive
commented
Jun 9, 2018
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
19ddf80 to
7d3a55aCompare
This comment has been minimized.
This comment has been minimized.
Centril
commented
Jun 9, 2018
I'm in favor of this change; but it is my understanding that adding a new lint requires an RFC per notes in https://github.com/rust-lang/rfcs/blob/master/lang_changes.md (which is either outdated and needs to be changed, or is accurate..). |
estebank
commented
Jun 9, 2018
@Centril in that case I'll create an RFC. This felt small enough as it's warning about already existing behavior, but I can see why we wouldn't want to make exceptions. |
Centril
commented
Jun 9, 2018
@estebank yeah I agree that it seems like a small, good and uncontroversial change :) It might be a good idea to document what lints need RFCs and which don't. |
mark-i-m
commented
Jun 12, 2018
I don't think it needs an RFC. This seems like a bug-fix to me. Perhaps an FCP is sufficient? |
#[test]zackmdavis
commented
Jun 13, 2018
|
zackmdavis
commented
Jun 13, 2018
bors
commented
Jun 17, 2018
☔ The latest upstream changes (presumably #51382) made this pull request unmergeable. Please resolve the merge conflicts. |
pnkfelix
commented
Jun 18, 2018
This code seems fine. The only thing left is to resolve the name of the lint itself. How about |
zackmdavis
commented
Jun 18, 2018
This isn't a "method"; it's a function (as I hear the words usually used). |
pnkfelix
commented
Jun 19, 2018
@zackmdavis I don't disagree. The high-order bit of my suggestion was meant to be the "unnameable" part, not the use of the word "methods." |
estebank
commented
Jun 19, 2018
Changed lint name. |
(RFC 344 seems to suggest the plural: unnameable-test-functions?)
|
estebank
commented
Jun 20, 2018
Ping. Anything left for me to do? |
emilyalbini
commented
Jun 25, 2018
Ping from triage @pnkfelix! This PR needs your review. |
bors
commented
Jun 26, 2018
☔ The latest upstream changes (presumably #51678) made this pull request unmergeable. Please resolve the merge conflicts. |
bors
commented
Jun 27, 2018
☔ The latest upstream changes (presumably #51149) made this pull request unmergeable. Please resolve the merge conflicts. |
estebank
commented
Jun 28, 2018
Ping. |
TimNN
commented
Jul 3, 2018
Ping from triage, @pnkfelix / @rust-lang/compiler: This PR requires your review! |
bors
commented
Jul 3, 2018
📌 Commit 51a0425 has been approved by |
bors
commented
Jul 3, 2018
Add lint warning for inner function marked as `#[test]` Fix#36629.
bors
commented
Jul 3, 2018
☀️ Test successful - status-appveyor, status-travis |
Fix#36629.