Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c40d30e

Browse files
committed
clippy
1 parent 2cf69da commit c40d30e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/tools/miri/cargo-miri/src/phases.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ pub fn phase_rustc(mut args: impl Iterator<Item = String>, phase: RustcPhase) {
467467
if let Some(i) = val.iter().position(|&s| s == "link") {
468468
emit_link_hack = true;
469469
val.remove(i);
470-
if !val.iter().any(|&s| s == "metadata") {
470+
if !val.contains(&"metadata") {
471471
val.push("metadata");
472472
}
473473
}

src/tools/miri/src/eval.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,6 @@ pub fn create_ecx<'tcx>(
434434
/// Evaluates the entry function specified by `entry_id`.
435435
/// Returns `Some(return_code)` if program execution completed.
436436
/// Returns `None` if an evaluation error occurred.
437-
#[expect(clippy::needless_lifetimes)]
438437
pub fn eval_entry<'tcx>(
439438
tcx: TyCtxt<'tcx>,
440439
entry_id: DefId,

0 commit comments

Comments
 (0)