[INFO] crate dynamic-arena 0.1.1 is already in cache [INFO] extracting crate dynamic-arena 0.1.1 into work/ex/clippy-test-run/sources/stable/reg/dynamic-arena/0.1.1 [INFO] extracting crate dynamic-arena 0.1.1 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/dynamic-arena/0.1.1 [INFO] validating manifest of dynamic-arena-0.1.1 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 dynamic-arena-0.1.1 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 dynamic-arena-0.1.1 [INFO] finished frobbing dynamic-arena-0.1.1 [INFO] frobbed toml for dynamic-arena-0.1.1 written to work/ex/clippy-test-run/sources/stable/reg/dynamic-arena/0.1.1/Cargo.toml [INFO] started frobbing dynamic-arena-0.1.1 [INFO] finished frobbing dynamic-arena-0.1.1 [INFO] frobbed toml for dynamic-arena-0.1.1 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/dynamic-arena/0.1.1/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 dynamic-arena-0.1.1 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-5/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/dynamic-arena/0.1.1:/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] 03d5d48cf25e6e17a0cbe467879d6214be2eb2e322193453fb90f8f265df51c6 [INFO] running `"docker" "start" "-a" "03d5d48cf25e6e17a0cbe467879d6214be2eb2e322193453fb90f8f265df51c6"` [INFO] [stderr] Checking dynamic-arena v0.1.1 (/opt/crater/workdir) [INFO] [stderr] Checking compiletest_rs v0.3.18 [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/bytes.rs:19:13 [INFO] [stderr] | [INFO] [stderr] 19 | self.0.as_ptr().offset(capacity as isize) as *mut u8 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `self.0.as_ptr().add(capacity)` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::ptr_offset_with_cast)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] warning: you should consider adding a `Default` implementation for `bytes::ByteArena` [INFO] [stderr] --> src/bytes.rs:38:5 [INFO] [stderr] | [INFO] [stderr] 38 | / pub fn new() -> Self { [INFO] [stderr] 39 | | ByteArena { [INFO] [stderr] 40 | | current: Cell::new(ptr::null_mut()), [INFO] [stderr] 41 | | end: Cell::new(ptr::null_mut()), [INFO] [stderr] 42 | | chunks: RefCell::new(Vec::new()) [INFO] [stderr] 43 | | } [INFO] [stderr] 44 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::new_without_default)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#new_without_default [INFO] [stderr] help: try this [INFO] [stderr] | [INFO] [stderr] 37 | impl Default for bytes::ByteArena { [INFO] [stderr] 38 | fn default() -> Self { [INFO] [stderr] 39 | Self::new() [INFO] [stderr] 40 | } [INFO] [stderr] 41 | } [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: use of `offset` with a `usize` casted to an `isize` [INFO] [stderr] --> src/bytes.rs:67:26 [INFO] [stderr] | [INFO] [stderr] 67 | self.current.set(ptr.offset(amount as isize)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `ptr.add(amount)` [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast [INFO] [stderr] [INFO] [stderr] error: mutable borrow from immutable input(s) [INFO] [stderr] --> src/bytes.rs:71:57 [INFO] [stderr] | [INFO] [stderr] 71 | pub fn alloc_copied<'a>(&'a self, source: &[u8]) -> &'a mut [u8] { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::mut_from_ref)] on by default [INFO] [stderr] note: immutable borrow here [INFO] [stderr] --> src/bytes.rs:71:29 [INFO] [stderr] | [INFO] [stderr] 71 | pub fn alloc_copied<'a>(&'a self, source: &[u8]) -> &'a mut [u8] { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mut_from_ref [INFO] [stderr] [INFO] [stderr] error: mutable borrow from immutable input(s) [INFO] [stderr] --> src/bytes.rs:80:50 [INFO] [stderr] | [INFO] [stderr] 80 | pub fn alloc_zeroed(&self, amount: usize) -> &mut [u8] { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: immutable borrow here [INFO] [stderr] --> src/bytes.rs:80:25 [INFO] [stderr] | [INFO] [stderr] 80 | pub fn alloc_zeroed(&self, amount: usize) -> &mut [u8] { [INFO] [stderr] | ^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mut_from_ref [INFO] [stderr] [INFO] [stderr] error: mutable borrow from immutable input(s) [INFO] [stderr] --> src/lib.rs:149:59 [INFO] [stderr] | [INFO] [stderr] 149 | pub fn alloc_copy(&self, value: T) -> &mut T { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: immutable borrow here [INFO] [stderr] --> src/lib.rs:149:39 [INFO] [stderr] | [INFO] [stderr] 149 | pub fn alloc_copy(&self, value: T) -> &mut T { [INFO] [stderr] | ^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mut_from_ref [INFO] [stderr] [INFO] [stderr] error: mutable borrow from immutable input(s) [INFO] [stderr] --> src/lib.rs:160:58 [INFO] [stderr] | [INFO] [stderr] 160 | pub unsafe fn alloc_unchecked(&self, value: T) -> &mut T { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: immutable borrow here [INFO] [stderr] --> src/lib.rs:160:38 [INFO] [stderr] | [INFO] [stderr] 160 | pub unsafe fn alloc_unchecked(&self, value: T) -> &mut T { [INFO] [stderr] | ^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mut_from_ref [INFO] [stderr] [INFO] [stderr] error: mutable borrow from immutable input(s) [INFO] [stderr] --> src/lib.rs:209:52 [INFO] [stderr] | [INFO] [stderr] 209 | pub fn alloc(&self, value: T) -> &mut T { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: immutable borrow here [INFO] [stderr] --> src/lib.rs:209:32 [INFO] [stderr] | [INFO] [stderr] 209 | pub fn alloc(&self, value: T) -> &mut T { [INFO] [stderr] | ^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mut_from_ref [INFO] [stderr] [INFO] [stderr] error: mutable borrow from immutable input(s) [INFO] [stderr] --> src/lib.rs:236:45 [INFO] [stderr] | [INFO] [stderr] 236 | pub fn alloc(&self, value: T) -> &mut T { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: immutable borrow here [INFO] [stderr] --> src/lib.rs:236:25 [INFO] [stderr] | [INFO] [stderr] 236 | pub fn alloc(&self, value: T) -> &mut T { [INFO] [stderr] | ^^^^^ [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mut_from_ref [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors [INFO] [stderr] [INFO] [stderr] error: Could not compile `dynamic-arena`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0554]: #![feature] may not be used on the stable release channel [INFO] [stderr] --> /opt/crater/cargo-home/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.18/src/lib.rs:13:39 [INFO] [stderr] | [INFO] [stderr] 13 | #![cfg_attr(not(feature = "norustc"), feature(rustc_private))] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0554]: #![feature] may not be used on the stable release channel [INFO] [stderr] --> /opt/crater/cargo-home/registry/src/github.com-1ecc6299db9ec823/compiletest_rs-0.3.18/src/lib.rs:14:38 [INFO] [stderr] | [INFO] [stderr] 14 | #![cfg_attr(not(feature = "stable"), feature(test))] [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0554`. [INFO] [stderr] error: Could not compile `compiletest_rs`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "03d5d48cf25e6e17a0cbe467879d6214be2eb2e322193453fb90f8f265df51c6"` [INFO] running `"docker" "rm" "-f" "03d5d48cf25e6e17a0cbe467879d6214be2eb2e322193453fb90f8f265df51c6"` [INFO] [stdout] 03d5d48cf25e6e17a0cbe467879d6214be2eb2e322193453fb90f8f265df51c6