]> git.lizzy.rs Git - rust.git/commitdiff
clippy
authorRalf Jung <post@ralfj.de>
Tue, 3 Jan 2023 13:49:53 +0000 (14:49 +0100)
committerRalf Jung <post@ralfj.de>
Tue, 3 Jan 2023 13:49:53 +0000 (14:49 +0100)
src/tools/miri/cargo-miri/src/phases.rs
src/tools/miri/src/range_map.rs

index e51bfa3798f3ecdd0b6a4ed9abf06bc8a8024366..37f66d0033f068e640bfbb15a5d023c66e22c6ff 100644 (file)
@@ -185,7 +185,7 @@ pub fn phase_cargo_miri(mut args: impl Iterator<Item = String>) {
     // explicitly do this even if RUSTC_STAGE is set, since for these builds we do *not* want the
     // bootstrap `rustc` thing in our way! Instead, we have MIRI_HOST_SYSROOT to use for host
     // builds.
-    cmd.env("RUSTC", &fs::canonicalize(find_miri()).unwrap());
+    cmd.env("RUSTC", fs::canonicalize(find_miri()).unwrap());
     cmd.env("MIRI_BE_RUSTC", "target"); // we better remember to *unset* this in the other phases!
 
     // Set rustdoc to us as well, so we can run doctests.
index c8ff06a36652d4d02ed429f4278c699d44673b30..62198061827adb3f1ab3fd1527586102705cdc69 100644 (file)
@@ -219,7 +219,6 @@ mod tests {
     /// Query the map at every offset in the range and collect the results.
     fn to_vec<T: Copy>(map: &RangeMap<T>, offset: u64, len: u64) -> Vec<T> {
         (offset..offset + len)
-            .into_iter()
             .map(|i| {
                 map.iter(Size::from_bytes(i), Size::from_bytes(1)).next().map(|(_, &t)| t).unwrap()
             })