This commit is contained in:
Mateusz Gruszczyński committed 2026-11-28 17:36:53 +01:00
1 parent 5b6d4a7903
commit 4d1087e357
160 files changed
+2407 -1933

No files matched your search

-5
View File
@@ -192,8 +192,6 @@ impl CompiledPolicy {
pub fn has_stage(&self, stage: Stage) -> bool {
self.rules.iter().any(|r| r.stage == stage)
}
/// A backend response selected or changed using client-specific facts must
/// not be admitted to a shared cache merely because it has a public TTL.
pub fn requires_private_response(&self) -> bool {
self.private_response
}
@@ -608,7 +606,6 @@ pub(super) fn compile(settings: &Settings) -> Result<CompiledPolicy> {
<= 1024,
"at most 1024 policy map entries per scope"
);
// Bound total regex programs, including converters, before allocation.
fn regex_count(c: &Condition) -> usize {
match c {
Condition::All { all } | Condition::Any { any: all } => {
@@ -667,8 +664,6 @@ pub(super) fn compile(settings: &Settings) -> Result<CompiledPolicy> {
expression::identifier(name),
"invalid policy ACL name {name:?}"
);
// Unused definitions must still be well formed, and cycles must never
// become latent errors activated by a later edit.
condition(
acl,
Stage::AfterResponse,