From 97a8703adc75467a7f8e75f5c6cb00ca542b707c Mon Sep 17 00:00:00 2001 From: "sorokin.oleg.edu" Date: Thu, 24 Sep 2026 18:57:41 -0700 Subject: [PATCH] Use direct matching in mixed quoted text hook --- crates/oa-core/src/language.rs | 11 ++++------- .../analysis-text-producer-implementation-20260925.md | 6 ++++++ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/crates/oa-core/src/language.rs b/crates/oa-core/src/language.rs index 0321cfc6..16791650 100644 --- a/crates/oa-core/src/language.rs +++ b/crates/oa-core/src/language.rs @@ -1221,14 +1221,11 @@ impl Parser<'_> { return Err(self.error("Expected a double-quoted string.")); } #[cfg(test)] - if self.mixed.is_some() { - let span = self.current().span; + let span = self.current().span; + #[cfg(test)] + if let Some(mixed) = &mut self.mixed { let raw = &self.source[span.start..span.end]; - let value = self - .mixed - .as_mut() - .expect("mixed quoted consumer") - .quoted_text(raw, span)?; + let value = mixed.quoted_text(raw, span)?; self.cursor += 1; return Ok(value); } diff --git a/harness/analysis-text-producer-implementation-20260925.md b/harness/analysis-text-producer-implementation-20260925.md index f9f52efc..a68dc8c8 100644 --- a/harness/analysis-text-producer-implementation-20260925.md +++ b/harness/analysis-text-producer-implementation-20260925.md @@ -24,3 +24,9 @@ All new names are under `mixed::carried::text_producer`, selected by filter `tex - Project and typed duplicate descriptions with enough room for the first grammar decode but not a second, asserting the existing duplicate errors rather than a false successful overwrite. No old test or worker-stack allowance changed. Implementer ran no Cargo, test executable or rustfmt; parent owns formatting, compiler, prologue/headroom and runtime gates. Independent production review found no initial semantic blocker; final review binds parent-formatted source and authored tests before commit. Preserve all prior recorded failures and compare actual full-suite dispositions rather than claiming they are unchanged from source inspection. + +Parent gates at initial source6b0ef99 passed all six focused tests and completed +the full library with259 passed /16 inherited failures. Strict Clippy rejected +the ordinary quoted hook's is_some/expect pattern. The successor uses direct +if-let matching with the same token span and decoder; no tests, limits or +accounting operations changed. Final source gates remain separately required.