We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc8565b commit 6a8d55aCopy full SHA for 6a8d55a
src/tools/tidy/src/pal.rs
@@ -168,8 +168,8 @@ fn find_test_mod(contents: &str) -> usize {
168
let prev_newline_idx = contents[..prev_newline_idx].rfind('\n');
169
if let Some(nl) = prev_newline_idx {
170
let prev_line = &contents[nl + 1 .. mod_tests_idx];
171
- let emcc_cfg = "cfg(all(test, not(target_os";
172
- if prev_line.contains(emcc_cfg) {
+ if prev_line.contains("cfg(all(test, not(target_os")
+ || prev_line.contains("cfg(all(test, not(any(target_os") {
173
nl
174
} else {
175
mod_tests_idx
0 commit comments