chore(source): scope private policy observer and remove redundant import

This commit is contained in:
2026-09-24 21:29:47 -07:00
parent 8555e417ee
commit bab6f96a5b
3 changed files with 14 additions and 2 deletions
@@ -221,6 +221,7 @@ impl Budget {
Ok(value) Ok(value)
} }
/// Immutable exact policy snapshot for private deliberate-snapshot continuation. /// Immutable exact policy snapshot for private deliberate-snapshot continuation.
#[cfg(test)]
pub(super) fn limits(&self) -> Limits { pub(super) fn limits(&self) -> Limits {
self.limits self.limits
} }
+1 -1
View File
@@ -2,7 +2,7 @@
//! Expected models use authored public values, never a parser or formatter oracle. //! Expected models use authored public values, never a parser or formatter oracle.
use oa_core::analysis as a; use oa_core::analysis as a;
use oa_core::analysis_numeric::Exact; use oa_core::analysis_numeric::Exact;
use oa_core::language::{self, ParseLimits, Span}; use oa_core::language::{ParseLimits, Span};
use oa_core::source_project::{ProjectLimits, SourceBundle, SourceDiagnostic}; use oa_core::source_project::{ProjectLimits, SourceBundle, SourceDiagnostic};
pub use oa_core::*; pub use oa_core::*;
use std::collections::BTreeMap; use std::collections::BTreeMap;
@@ -50,3 +50,14 @@ facet-reading behavior. Source inventory found the other shared Parser initializ
in language.rs and mixed.rs already coherent; language::legacy uses its own in language.rs and mixed.rs already coherent; language::legacy uses its own
separate Parser type. No API, test or runtime policy changed. The failed build separate Parser type. No API, test or runtime policy changed. The failed build
record remains preserved; no compiler was run for this repair by the worker. record remains preserved; no compiler was run for this repair by the worker.
## Non-test integration result and warning cleanup
Parent's actual non-test integration suite at 8555e417 passed all ten tests with
the independent complete-model and diagnostic assertions unchanged. Compilation
reported an unused Budget::limits observer and a redundant private language self
import shadowing the integration helper's public glob export. The observer is
now cfg(test), matching all real callers; the integration import drops only self.
No semantic implementation, policy, fixture or expected result changed. Parent
explicitly authorized that one test import-line edit after its independent worker
finished. This is warning cleanup, not a claim that later lint/full/doctest gates
already passed. No compiler was run by this worker.