From 4457fde1380773dc6324e311726157312e22fd02 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 16 Sep 2026 16:07:47 +0200 Subject: [PATCH] Remove the dead-code expectations from the lens draw and text (L1 c1.s1.f3) Cut 1 marked `Lens::instructions` and `lens::draw` with `cfg_attr(not(test), expect(dead_code))` while only their tests read them. `select_answer` reads both now, so each marker produced an unfulfilled lint expectation warning. `reaches_for`, `leads_with` and the moved `ELABORATION_INSTRUCTIONS` carried no markers. No `expect(dead_code)` remains in `lens.rs`. Builds. The library's warning count returns to 9. Co-Authored-By: Claude Opus 5 --- crates/ghostlight/src/lens.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/crates/ghostlight/src/lens.rs b/crates/ghostlight/src/lens.rs index b529dc0..c14de9d 100644 --- a/crates/ghostlight/src/lens.rs +++ b/crates/ghostlight/src/lens.rs @@ -127,10 +127,6 @@ impl Lens { /// The elaborator's instructions under this lens: the shared sentence, then /// the lens clause. Read once, when a session is first built; the session /// then carries the text, and nothing rebuilds it from here. - #[cfg_attr( - not(test), - expect(dead_code, reason = "read by its tests until a session carries a lens") - )] pub(crate) fn instructions(self) -> String { format!( "{ELABORATION_INSTRUCTIONS} Lens: {}. Reach for {}. Lead with {}; every supplied tool remains available.", @@ -190,10 +186,6 @@ struct LensPreimage { /// `select_band` uses, not a second entropy shape. The same world, session /// identity, and weights draw the same lens. Modulo rather than rejection /// sampling: the bias is bounded by `total_weight / 2^64`. -#[cfg_attr( - not(test), - expect(dead_code, reason = "read by its tests until a session draws its lens") -)] pub(crate) fn draw( weights: &LensWeights, world_id: WorldId,