[INFO] crate func_swap 0.1.0 is already in cache [INFO] extracting crate func_swap 0.1.0 into work/ex/clippy-test-run/sources/stable/reg/func_swap/0.1.0 [INFO] extracting crate func_swap 0.1.0 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/func_swap/0.1.0 [INFO] validating manifest of func_swap-0.1.0 on toolchain stable [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of func_swap-0.1.0 on toolchain stable+rustflags=-Dclippy::into_iter_on_array [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing func_swap-0.1.0 [INFO] finished frobbing func_swap-0.1.0 [INFO] frobbed toml for func_swap-0.1.0 written to work/ex/clippy-test-run/sources/stable/reg/func_swap/0.1.0/Cargo.toml [INFO] started frobbing func_swap-0.1.0 [INFO] finished frobbing func_swap-0.1.0 [INFO] frobbed toml for func_swap-0.1.0 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/func_swap/0.1.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+stable" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] linting func_swap-0.1.0 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-3/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/func_swap/0.1.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+stable" "clippy" "--frozen" "--all" "--all-targets"` [INFO] [stdout] c155011eb0a773c62f39328e91fb07e60c7e01b2c668d8d8c556bf5f589bcafa [INFO] running `"docker" "start" "-a" "c155011eb0a773c62f39328e91fb07e60c7e01b2c668d8d8c556bf5f589bcafa"` [INFO] [stderr] Checking func_swap v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: unused `#[macro_use]` import [INFO] [stderr] --> src/lib.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | #[macro_use] [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused macro definition [INFO] [stderr] --> src/lib.rs:19:1 [INFO] [stderr] | [INFO] [stderr] 19 | / macro_rules! modfunc { [INFO] [stderr] 20 | | ($STORE:ident,$FP:ident,$NAME:ident ($($name:ident:$args:ty),* ) => $ret:ty$body:block) => { [INFO] [stderr] 21 | | lazy_static! { [INFO] [stderr] 22 | | static ref $FP: ::std::sync::atomic::AtomicPtr$ret> = [INFO] [stderr] ... | [INFO] [stderr] 119 | | }; [INFO] [stderr] 120 | | } [INFO] [stderr] | |_^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_macros)] on by default [INFO] [stderr] [INFO] [stderr] warning: unneeded return statement [INFO] [stderr] --> src/lib.rs:137:9 [INFO] [stderr] | [INFO] [stderr] 137 | return x*x+y; [INFO] [stderr] | ^^^^^^^^^^^^^ help: remove `return` as shown: `x*x+y` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::needless_return)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return [INFO] [stderr] [INFO] [stderr] warning: transmute from an integer to a pointer [INFO] [stderr] --> src/lib.rs:23:60 [INFO] [stderr] | [INFO] [stderr] 23 | ::std::sync::atomic::AtomicPtr::new(unsafe{::std::mem::transmute(0usize)}); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `0usize as *mut fn(u64, u64) -> u64` [INFO] [stderr] ... [INFO] [stderr] 129 | / modfunc!(replace_add,IDC, add(x: u64, y: u64) => u64 { [INFO] [stderr] 130 | | x + y [INFO] [stderr] 131 | | }); [INFO] [stderr] | |_______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::useless_transmute)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_transmute [INFO] [stderr] [INFO] [stderr] warning: transmute from a type (`fn(u64, u64) -> u64`) to a pointer to that type (`*mut fn(u64, u64) -> u64`) [INFO] [stderr] --> src/lib.rs:28:30 [INFO] [stderr] | [INFO] [stderr] 28 | $FP.store(unsafe{transmute(ptr)},Ordering::SeqCst); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 129 | / modfunc!(replace_add,IDC, add(x: u64, y: u64) => u64 { [INFO] [stderr] 130 | | x + y [INFO] [stderr] 131 | | }); [INFO] [stderr] | |_______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::crosspointer_transmute)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#crosspointer_transmute [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.71s [INFO] running `"docker" "inspect" "c155011eb0a773c62f39328e91fb07e60c7e01b2c668d8d8c556bf5f589bcafa"` [INFO] running `"docker" "rm" "-f" "c155011eb0a773c62f39328e91fb07e60c7e01b2c668d8d8c556bf5f589bcafa"` [INFO] [stdout] c155011eb0a773c62f39328e91fb07e60c7e01b2c668d8d8c556bf5f589bcafa