Pavlo Ratushnyi
219238cd08
architecture gate: read the whole file after a cfg(test) mod declaration, find static cells by type, 64 new exceptions with reasons (STRA-338)
...
The scanner stopped at the first '#[cfg(test)] mod x;' of a file, so the code below was invisible. It now skips only the item under a test-only cfg (an inline mod body, a declaration, a fn, a use; any(test, feature) is not test-only) and reads on.
process-global counted the type name OnceLock/LazyLock/OnceCell, which also matched instance fields (six exceptions existed only for that) and missed Atomic*, Mutex, RwLock, Once, Cell and RefCell statics, thread_local! included. It now counts a static whose type is a cell or a workspace type that holds one (derived per crate and its dependencies), and static mut. Eight exceptions that only excused instance fields go; the rest of the file's hits are re-judged.
Newly visible: 123 static cells in 58 files, 15 allow(unused_imports) in 6 files and the engine settings::process() cell (read at about 78 sites). Each gets an exception whose reason starts kept: (the boundary that forces it) or debt: (what removes it); the settings cell is the largest debt and is not removed here because the engine does not compile on Windows. Entries 173 -> 229, baseline stays empty. 11 new self-tests (39 in all).
2026-11-24 08:51:58 +01:00
..
2026-11-24 08:51:58 +01:00
2026-11-14 19:42:32 +01:00
2026-11-02 23:32:24 +01:00
2026-11-23 09:34:33 +01:00
2026-11-23 21:19:11 +01:00
2026-11-23 21:19:11 +01:00
2026-11-23 21:19:11 +01:00
2026-10-05 18:15:08 +02:00
2026-11-23 22:29:08 +01:00
2026-11-23 09:34:33 +01:00
2026-11-07 23:54:40 +01:00
2026-11-23 09:34:33 +01:00
2026-11-23 09:34:33 +01:00
2026-10-29 19:12:29 +01:00
2026-11-23 09:34:33 +01:00
2026-10-29 19:12:29 +01:00
2026-11-23 09:34:33 +01:00
2026-11-23 21:19:11 +01:00
2026-11-23 09:34:33 +01:00
2026-11-23 21:11:53 +01:00
2026-11-23 09:34:33 +01:00
2026-10-29 19:12:29 +01:00
2026-11-23 09:34:33 +01:00
2026-11-23 09:34:33 +01:00
2026-11-23 09:34:33 +01:00
2026-11-03 01:42:33 +01:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00
2026-10-05 18:15:08 +02:00
2026-10-05 18:15:08 +02:00
2026-10-14 18:16:42 +02:00
2026-11-23 22:37:17 +01:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00
2026-11-24 08:51:58 +01:00
2026-11-23 21:19:11 +01:00
2026-11-05 13:47:14 +01:00
2026-11-23 09:34:33 +01:00
2026-11-06 11:26:53 +01:00
2026-11-14 20:30:41 +01:00
2026-11-03 01:42:33 +01:00
2026-10-05 18:15:08 +02:00
2026-11-23 09:34:33 +01:00
2026-11-23 21:19:11 +01:00
2026-11-03 01:42:33 +01:00
2026-10-05 18:15:08 +02:00
2026-11-23 09:34:33 +01:00
2026-10-05 18:15:08 +02:00
2026-10-07 18:06:20 +02:00
2026-10-17 17:45:59 +02:00
2026-10-17 17:45:59 +02:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00
2026-10-05 18:15:08 +02:00
2026-11-07 23:54:40 +01:00
2026-10-05 18:15:08 +02:00
2026-11-23 21:19:11 +01:00
2026-11-23 21:11:53 +01:00
2026-10-05 18:15:08 +02:00
2026-10-08 18:04:43 +02:00
2026-11-14 20:30:41 +01:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00
2026-10-05 18:15:08 +02:00
2026-10-16 03:00:55 +02:00
2026-11-23 21:11:53 +01:00
2026-10-05 18:15:08 +02:00
2026-11-23 21:19:11 +01:00
2026-10-05 18:15:08 +02:00
2026-10-16 03:00:55 +02:00
2026-10-05 18:15:08 +02:00
2026-10-05 18:15:08 +02:00
2026-10-05 18:15:08 +02:00
2026-10-05 18:15:08 +02:00
2026-10-16 03:00:55 +02:00
2026-10-16 03:00:55 +02:00
2026-10-05 18:15:08 +02:00
2026-11-23 21:19:11 +01:00
2026-10-16 03:00:55 +02:00
2026-11-14 20:30:41 +01:00
2026-10-16 03:00:55 +02:00
2026-10-16 03:00:55 +02:00
2026-10-07 18:06:20 +02:00
2026-11-23 21:19:11 +01:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00
2026-10-16 03:00:55 +02:00
2026-11-14 20:30:41 +01:00
2026-11-14 20:30:41 +01:00
2026-10-16 03:00:55 +02:00
2026-11-14 20:30:41 +01:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00
2026-11-14 20:30:41 +01:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00
2026-11-14 20:30:41 +01:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00
2026-10-07 17:12:25 +02:00
2026-11-03 01:42:33 +01:00
2026-11-03 02:59:50 +01:00
2026-11-23 22:37:24 +01:00
2026-11-03 01:42:33 +01:00
2026-10-07 22:04:20 +02:00
2026-11-14 20:30:41 +01:00
2026-10-16 03:00:55 +02:00
2026-11-14 20:30:41 +01:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00
2026-10-05 18:15:08 +02:00
2026-11-14 20:30:41 +01:00
2026-10-07 19:13:14 +02:00
2026-11-14 20:30:41 +01:00
2026-11-14 20:30:41 +01:00
2026-10-05 18:15:08 +02:00