Uh oh!
There was an error while loading. Please reload this page.
tidy: Add a check for inline unit tests - #62996
Conversation
petrochenkov
commented
Jul 26, 2019
This also needs to check for |
Mark-Simulacrum
commented
Jul 26, 2019
I think false-positives are presumably infrequent enough that we could work around them via Approach looks good to me. It might be nicer to an extent to use the same |
`contents` is the whole file rather than a single line.
petrochenkov
commented
Jul 27, 2019
Updated.
Yeah, this is all temporary anyway, once this PR lands, I'll prepare another big PR moving the code, so it doesn't matter much. |
Mark-Simulacrum
commented
Jul 27, 2019
@bors r+ Looks good to me. I'm not entirely certain that the skip rules are correct, but since this is simply tidy we can correct that over time if we discover they're inaccurate. |
bors
commented
Jul 27, 2019
📌 Commit aecaa03 has been approved by |
tidy: Add a check for inline unit tests As described in rust-lang#61097. There's a large whitelist right now, because in many crates the tests are not outlined yet. ~This PR only outlines tests in one crate (`rustc_lexer`) as an example.~ r? @Mark-Simulacrum
tidy: Add a check for inline unit tests As described in rust-lang#61097. There's a large whitelist right now, because in many crates the tests are not outlined yet. ~This PR only outlines tests in one crate (`rustc_lexer`) as an example.~ r? @Mark-Simulacrum
tidy: Add a check for inline unit tests As described in rust-lang#61097. There's a large whitelist right now, because in many crates the tests are not outlined yet. ~This PR only outlines tests in one crate (`rustc_lexer`) as an example.~ r? @Mark-Simulacrum
Rollup of 8 pull requests Successful merges: - #61207 (Allow lifetime elision in `Pin<&(mut) Self>`) - #62074 (squash of all commits for nth_back on ChunksMut) - #62771 (Break dependencies between `syntax_ext` and other crates) - #62883 (Refactoring use common code between option, result and accum) - #62949 (Re-enable assertions in PPC dist builder) - #62996 (tidy: Add a check for inline unit tests) - #63038 (Make more informative error on outer attribute after inner) - #63050 (ci: download awscli from our mirror) Failed merges: r? @ghost
As described in #61097.
There's a large whitelist right now, because in many crates the tests are not outlined yet.
This PR only outlines tests in one crate (rustc_lexer) as an example.r? @Mark-Simulacrum