Skip to content

Commit 9f7c184

Browse files
committed
chore: merge main (clippy 1.96 debt fixes) into feat/result-arbiter
2 parents 97cc448 + 1e91510 commit 9f7c184

11 files changed

Lines changed: 33 additions & 32 deletions

File tree

.github/workflows/security-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ permissions:
2020

2121
jobs:
2222
scan:
23-
uses: hyperpolymath/panic-attack/.github/workflows/scan-and-report.yml@6a1feb26290ae16f7952fa0ff765a7b061bd50c8 # main 2026-05-20
23+
uses: hyperpolymath/panic-attack/.github/workflows/scan-and-report.yml@6693e01727aefdc01cbb5ddd728e9a510128f2a2 # main 2026-07-07 (skip dispatch without VERISIMDB_PAT)
2424
secrets:
2525
VERISIMDB_PAT: ${{ secrets.VERISIMDB_PAT }}

benches/proof_benchmarks.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
//! Run with: cargo bench
77
//! Generates HTML reports in target/criterion/
88
9-
use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion};
9+
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
10+
use std::hint::black_box;
1011

1112
use echidna::core::{Context, Goal, Hypothesis, ProofState, Term};
1213
use echidna::provers::{ProverConfig, ProverFactory, ProverKind};

benches/routing_benchmarks.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
//! Run with: `cargo bench --bench routing_benchmarks`
1515
//! Generates HTML reports in `target/criterion/`
1616
17-
use criterion::{black_box, criterion_group, criterion_main, BenchmarkId, Criterion};
17+
use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
18+
use std::hint::black_box;
1819

1920
use echidna::agent::AgentConfig;
2021
use echidna::dispatch::DispatchConfig;

src/rust/corpus/acl2_books.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,10 @@ fn classify_form(form: &str, line: usize, pf: &mut ParsedFile) {
361361
if name.is_empty() {
362362
return;
363363
}
364-
let mut hz = AxiomUsage::default();
365-
hz.postulate = true;
364+
let mut hz = AxiomUsage {
365+
postulate: true,
366+
..Default::default()
367+
};
366368
hz.other.push("defaxiom".to_string());
367369
flag_hazards(rest_body, &mut hz);
368370
pf.decls.push(DraftDecl {
@@ -379,8 +381,10 @@ fn classify_form(form: &str, line: usize, pf: &mut ParsedFile) {
379381
if name.is_empty() {
380382
return;
381383
}
382-
let mut hz = AxiomUsage::default();
383-
hz.postulate = true;
384+
let mut hz = AxiomUsage {
385+
postulate: true,
386+
..Default::default()
387+
};
384388
hz.other.push("defstub".to_string());
385389
pf.decls.push(DraftDecl {
386390
name,

src/rust/corpus/isabelle.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -546,10 +546,8 @@ fn parse_theorem_like(
546546
}
547547
// `using … by …` and `unfolding … by …` patterns also
548548
// terminate on the trailing `by`.
549-
if t.contains(" by ") || t.ends_with(" by") {
550-
if !t.starts_with("proof") {
551-
terminated = true;
552-
}
549+
if (t.contains(" by ") || t.ends_with(" by")) && !t.starts_with("proof") {
550+
terminated = true;
553551
}
554552
}
555553
j += 1;

src/rust/corpus/metamath.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,10 @@ fn extract_module_name(src: &str) -> Option<String> {
314314
}
315315

316316
fn parse_mm_file(raw: &str) -> ParsedFile {
317-
let mut pf = ParsedFile::default();
318-
pf.module_name = extract_module_name(raw);
317+
let mut pf = ParsedFile {
318+
module_name: extract_module_name(raw),
319+
..Default::default()
320+
};
319321

320322
let toks = lex(raw);
321323
let mut scope_stack: Vec<String> = Vec::new();

src/rust/corpus/minif2f.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ fn terminators(ext: &str) -> &'static [&'static str] {
160160

161161
/// Identify the start-of-statement on a line and return
162162
/// `(opening_token_index, name)` if found.
163-
fn match_opening<'a>(line: &'a str, ext: &str) -> Option<(usize, String)> {
163+
fn match_opening(line: &str, ext: &str) -> Option<(usize, String)> {
164164
let trim = line.trim_start();
165165
for kw in opening_tokens(ext) {
166166
if let Some(rest) = trim.strip_prefix(*kw) {

src/rust/corpus/tptp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,9 @@ fn parse_annotated_formula(stmt: &str, line: usize) -> Option<DraftDecl> {
372372
for k in &kinds {
373373
if let Some(r) = stmt.strip_prefix(k) {
374374
let r2 = r.trim_start();
375-
if r2.starts_with('(') {
375+
if let Some(stripped) = r2.strip_prefix('(') {
376376
head = Some(k);
377-
rest = Some(&r2[1..]);
377+
rest = Some(stripped);
378378
break;
379379
}
380380
}

src/rust/corpus/why3.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ fn parse_envelope(
329329
}
330330

331331
// Imports / clones inside the envelope.
332-
for k in (start + 1)..body_end {
333-
let t = lines[k].trim_start();
332+
for line in lines.iter().take(body_end).skip(start + 1) {
333+
let t = line.trim_start();
334334
let import_rest = t
335335
.strip_prefix("use import ")
336336
.or_else(|| t.strip_prefix("use export "))

src/rust/exchange/smtlib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ impl SmtLibExchange {
144144
}
145145
}
146146

147-
infos.sort_by(|a, b| key_of(a).cmp(&key_of(b)));
148-
options.sort_by(|a, b| key_of(a).cmp(&key_of(b)));
149-
sorts.sort_by(|a, b| key_of(a).cmp(&key_of(b)));
150-
funs.sort_by(|a, b| key_of(a).cmp(&key_of(b)));
147+
infos.sort_by_key(key_of);
148+
options.sort_by_key(key_of);
149+
sorts.sort_by_key(key_of);
150+
funs.sort_by_key(key_of);
151151
// defs preserve original order: dependencies between defines are
152152
// significant and we don't track them here.
153153

0 commit comments

Comments
 (0)