[INFO] crate ptb-reader 0.9.1 is already in cache [INFO] extracting crate ptb-reader 0.9.1 into work/ex/clippy-test-run/sources/stable/reg/ptb-reader/0.9.1 [INFO] extracting crate ptb-reader 0.9.1 into work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/ptb-reader/0.9.1 [INFO] validating manifest of ptb-reader-0.9.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 ptb-reader-0.9.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 ptb-reader-0.9.1 [INFO] finished frobbing ptb-reader-0.9.1 [INFO] frobbed toml for ptb-reader-0.9.1 written to work/ex/clippy-test-run/sources/stable/reg/ptb-reader/0.9.1/Cargo.toml [INFO] started frobbing ptb-reader-0.9.1 [INFO] finished frobbing ptb-reader-0.9.1 [INFO] frobbed toml for ptb-reader-0.9.1 written to work/ex/clippy-test-run/sources/stable+rustflags=-Dclippy%3A%3Ainto_iter_on_array/reg/ptb-reader/0.9.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 ptb-reader-0.9.1 against stable for clippy-test-run [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/clippy-test-run/worker-0/stable:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/clippy-test-run/sources/stable/reg/ptb-reader/0.9.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] 4cf741abb11f9386bd47ce6dec2e7afede0995d213f3cc45d2034a761be7414a [INFO] running `"docker" "start" "-a" "4cf741abb11f9386bd47ce6dec2e7afede0995d213f3cc45d2034a761be7414a"` [INFO] [stderr] Checking ptb-reader v0.9.1 (/opt/crater/workdir) [INFO] [stderr] error: this .into_iter() call is equivalent to .iter() and will not move the array [INFO] [stderr] --> src/lib.rs:172:84 [INFO] [stderr] | [INFO] [stderr] 172 | for pref in ["*-", "*T*-", "*ICH*-", "*PPA*-", "*RNR*-", "*EXP*-"].into_iter() { [INFO] [stderr] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::into_iter_on_array)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::block_in_if_condition_stmt)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/lib.rs:319:69 [INFO] [stderr] | [INFO] [stderr] 319 | let newlabel = if remove_after_dash {newlabel.split("-").next().unwrap().to_string()} else {newlabel}; [INFO] [stderr] | ^^^ help: try using a char instead: `'-'` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_char_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `ptb-reader`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: this .into_iter() call is equivalent to .iter() and will not move the array [INFO] [stderr] --> src/lib.rs:172:84 [INFO] [stderr] | [INFO] [stderr] 172 | for pref in ["*-", "*T*-", "*ICH*-", "*PPA*-", "*RNR*-", "*EXP*-"].into_iter() { [INFO] [stderr] | ^^^^^^^^^ help: call directly: `iter` [INFO] [stderr] | [INFO] [stderr] = note: #[deny(clippy::into_iter_on_array)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#into_iter_on_array [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::block_in_if_condition_stmt)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: in an 'if' condition, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a 'let' [INFO] [stderr] --> src/lib.rs:205:5 [INFO] [stderr] | [INFO] [stderr] 205 | / impl_rdp! { [INFO] [stderr] 206 | | grammar! { [INFO] [stderr] 207 | | wholefile = { myws* ~ singletree+ } [INFO] [stderr] 208 | | singletree = { ["("] ~ myws* ~ node ~ myws* ~ endmarker ~ myws* } [INFO] [stderr] ... | [INFO] [stderr] 250 | | } [INFO] [stderr] 251 | | } [INFO] [stderr] | |_____^ [INFO] [stderr] | [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#block_in_if_condition_stmt [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: single-character string constant used as pattern [INFO] [stderr] --> src/lib.rs:319:69 [INFO] [stderr] | [INFO] [stderr] 319 | let newlabel = if remove_after_dash {newlabel.split("-").next().unwrap().to_string()} else {newlabel}; [INFO] [stderr] | ^^^ help: try using a char instead: `'-'` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(clippy::single_char_pattern)] on by default [INFO] [stderr] = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] error: Could not compile `ptb-reader`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "4cf741abb11f9386bd47ce6dec2e7afede0995d213f3cc45d2034a761be7414a"` [INFO] running `"docker" "rm" "-f" "4cf741abb11f9386bd47ce6dec2e7afede0995d213f3cc45d2034a761be7414a"` [INFO] [stdout] 4cf741abb11f9386bd47ce6dec2e7afede0995d213f3cc45d2034a761be7414a