From 89fed9a9e612147f217bb161a9ec5747e38f9963 Mon Sep 17 00:00:00 2001 From: Grzegorz Martens Date: Sun, 1 Nov 2026 17:17:59 +0100 Subject: [PATCH] M2: the chain tests want std, like the module's other thread tests They use std::thread and std::sync::mpsc, so they take the same gate, and so does the helper only they use. The crate's test build doesn't compile without std on main either, for reasons of its own; these add nothing to that. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01AmsdeUCdTaD72jkDw2pJKY --- vendor/hayro-syntax/src/xref.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vendor/hayro-syntax/src/xref.rs b/vendor/hayro-syntax/src/xref.rs index a2cfc9ca96..356bad6b15 100644 --- a/vendor/hayro-syntax/src/xref.rs +++ b/vendor/hayro-syntax/src/xref.rs @@ -1456,6 +1456,7 @@ mod tests { /// `count` object streams stored as themselves, the `keys` of each a member of the next, or /// with `ring` of the first after the last. Reading the first member reads them all, and it is /// `count + 100` to tell. + #[cfg(feature = "std")] fn chain_of_object_streams(count: u32, keys: &[&str], ring: bool) -> Vec { let mut stored = page_objects(); let mut packed = Vec::new(); @@ -1484,6 +1485,7 @@ mod tests { /// at each, and 50,000 ran out of an 8 MiB stack. It stops at the gate's limit, on half the stack /// of a render worker. Past that `/N` and `/First` can't be read, so the member reads as missing, /// and a `/Length` that can't be read falls back on `endstream`, so it reads. A short chain reads. + #[cfg(feature = "std")] #[test] fn a_chain_of_object_streams_ends_at_the_limit_of_nested_loads() { for key in ["N", "First", "Length"] { @@ -1507,6 +1509,7 @@ mod tests { /// and an index that fails isn't remembered, so the work doubled at each stream: 65 streams, one /// past the limit, in 8 KB, didn't finish, and other threads waited at the gate. The index reads /// the dictionary alone now. Without that this doesn't end, so the time allowed can't fail it. + #[cfg(feature = "std")] #[test] fn a_chain_of_object_streams_takes_no_more_work_for_two_ways_on() { for (count, ring) in [(65, false), (20, true), (5_000, false)] {