[INFO] updating cached repository eginez/rust_parser [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/eginez/rust_parser [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/eginez/rust_parser" "work/ex/beta-1.38-1/sources/1.37.0/gh/eginez/rust_parser"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/eginez/rust_parser'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/eginez/rust_parser" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/eginez/rust_parser"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/eginez/rust_parser'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 97104b8dd4979d570955b736ba7eea7917e9111d [INFO] sha for GitHub repo eginez/rust_parser: 97104b8dd4979d570955b736ba7eea7917e9111d [INFO] validating manifest of eginez/rust_parser on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of eginez/rust_parser on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing eginez/rust_parser [INFO] finished frobbing eginez/rust_parser [INFO] frobbed toml for eginez/rust_parser written to work/ex/beta-1.38-1/sources/1.37.0/gh/eginez/rust_parser/Cargo.toml [INFO] started frobbing eginez/rust_parser [INFO] finished frobbing eginez/rust_parser [INFO] frobbed toml for eginez/rust_parser written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/eginez/rust_parser/Cargo.toml [INFO] crate eginez/rust_parser already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] testing eginez/rust_parser against 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-1/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/eginez/rust_parser:/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=warn" "-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" "+1.37.0" "build" "--frozen"` [INFO] [stdout] a132fe639e6684aad0afeb4064c33cdc47f89f35eecd18f4db7f1a33c8edf84c [INFO] running `"docker" "start" "-a" "a132fe639e6684aad0afeb4064c33cdc47f89f35eecd18f4db7f1a33c8edf84c"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling rust_parser v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/main.rs:88:16 [INFO] [stderr] | [INFO] [stderr] 88 | 'a'...'z'|'A'...'Z' => tokenized.push(parse_identifer(tokens)), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: #[warn(ellipsis_inclusive_range_patterns)] on by default [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/main.rs:88:26 [INFO] [stderr] | [INFO] [stderr] 88 | 'a'...'z'|'A'...'Z' => tokenized.push(parse_identifer(tokens)), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> src/main.rs:89:16 [INFO] [stderr] | [INFO] [stderr] 89 | '0'...'9' => tokenized.push(parse_number(tokens)), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] [INFO] [stderr] error[E0515]: cannot return value referencing temporary value [INFO] [stderr] --> src/main.rs:51:44 [INFO] [stderr] | [INFO] [stderr] 51 | "NUMBER" | "IDENTIFIER" => Some(Node { node:*t, children: &mut Vec::new() }), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----------^^^ [INFO] [stderr] | | | [INFO] [stderr] | | temporary value created here [INFO] [stderr] | returns a value referencing data owned by the current function [INFO] [stderr] [INFO] [stderr] error[E0507]: cannot move out of `*t` which is behind a shared reference [INFO] [stderr] --> src/main.rs:51:61 [INFO] [stderr] | [INFO] [stderr] 51 | "NUMBER" | "IDENTIFIER" => Some(Node { node:*t, children: &mut Vec::new() }), [INFO] [stderr] | ^^ move occurs because `*t` has type `Token`, which does not implement the `Copy` trait [INFO] [stderr] [INFO] [stderr] error[E0515]: cannot return value referencing temporary value [INFO] [stderr] --> src/main.rs:63:38 [INFO] [stderr] | [INFO] [stderr] 63 | "+" | "-"|"*"|"/" => Some(Node { node:*t, children: &mut Vec::new() }), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^----------^^^ [INFO] [stderr] | | | [INFO] [stderr] | | temporary value created here [INFO] [stderr] | returns a value referencing data owned by the current function [INFO] [stderr] [INFO] [stderr] error[E0507]: cannot move out of `*t` which is behind a shared reference [INFO] [stderr] --> src/main.rs:63:55 [INFO] [stderr] | [INFO] [stderr] 63 | "+" | "-"|"*"|"/" => Some(Node { node:*t, children: &mut Vec::new() }), [INFO] [stderr] | ^^ move occurs because `*t` has type `Token`, which does not implement the `Copy` trait [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:71:9 [INFO] [stderr] | [INFO] [stderr] 71 | let mut tokens = &mut allTokens.iter(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_mut)] on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:74:13 [INFO] [stderr] | [INFO] [stderr] 74 | let mut root = accept_operator(tokens).unwrap(); [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0507, E0515. [INFO] [stderr] For more information about an error, try `rustc --explain E0507`. [INFO] [stderr] error: Could not compile `rust_parser`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "a132fe639e6684aad0afeb4064c33cdc47f89f35eecd18f4db7f1a33c8edf84c"` [INFO] running `"docker" "rm" "-f" "a132fe639e6684aad0afeb4064c33cdc47f89f35eecd18f4db7f1a33c8edf84c"` [INFO] [stdout] a132fe639e6684aad0afeb4064c33cdc47f89f35eecd18f4db7f1a33c8edf84c