[INFO] updating cached repository https://github.com/andresilva/rust-okasaki [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/big/crater/work/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] da0f298d49be46ba9899f78944ec2b0fbbf64885 [INFO] testing andresilva/rust-okasaki against 1.38.0 for beta-1.39-1 [INFO] running `"git" "clone" "work/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandresilva%2Frust-okasaki" "work/builds/worker-11/source"` [INFO] [stderr] Cloning into 'work/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/andresilva/rust-okasaki on toolchain 1.38.0 [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/andresilva/rust-okasaki [INFO] finished tweaking git repo https://github.com/andresilva/rust-okasaki [INFO] tweaked toml for git repo https://github.com/andresilva/rust-okasaki written to work/builds/worker-11/source/Cargo.toml [INFO] crate git repo https://github.com/andresilva/rust-okasaki already has a lockfile, it will not be regenerated [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.38.0" "build" "--frozen"` [INFO] [stdout] e6187941cf8fff69f014dc69e5f9a2547c34de291389855f39eddab660d8d53a [INFO] running `"docker" "start" "-a" "e6187941cf8fff69f014dc69e5f9a2547c34de291389855f39eddab660d8d53a"` [INFO] [stderr] Compiling okasaki v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] error[E0432]: unresolved import `std::num::Int` [INFO] [stderr] --> src/tree.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::num::Int; [INFO] [stderr] | ^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::num::Float` [INFO] [stderr] --> src/tree_layout.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::num::Float; [INFO] [stderr] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/heap.rs:184:16 [INFO] [stderr] | [INFO] [stderr] 184 | if (root(t) < root(&t1)) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::cmp::max` [INFO] [stderr] --> src/tree.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::cmp::max; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `for` head expression [INFO] [stderr] --> src/tree_layout.rs:14:18 [INFO] [stderr] | [INFO] [stderr] 14 | for _ in (0..n) { [INFO] [stderr] | ^^^^^^ help: remove these parentheses [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `tail` found for type `std::vec::Vec>` in the current scope [INFO] [stderr] --> src/tree_layout.rs:45:29 [INFO] [stderr] | [INFO] [stderr] 45 | aux(current.tail().to_vec(), next, o); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `tail`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `stack::Stack` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `tail` found for type `std::vec::Vec>` in the current scope [INFO] [stderr] --> src/tree_layout.rs:172:36 [INFO] [stderr] | [INFO] [stderr] 172 | let mut r = aux(es.tail().to_vec(), merge_extent(acc.clone(), move_extent(e.clone().to_vec(), x))); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `tail`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `stack::Stack` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `tail` found for type `std::vec::Vec<(f64, f64)>` in the current scope [INFO] [stderr] --> src/tree_layout.rs:189:25 [INFO] [stderr] | [INFO] [stderr] 189 | rmax(fit(e1.tail().to_vec(), e2.tail().to_vec()), p - q + 1.0), [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `tail`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `stack::Stack` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `tail` found for type `std::vec::Vec<(f64, f64)>` in the current scope [INFO] [stderr] --> src/tree_layout.rs:189:45 [INFO] [stderr] | [INFO] [stderr] 189 | rmax(fit(e1.tail().to_vec(), e2.tail().to_vec()), p - q + 1.0), [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `tail`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `stack::Stack` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `tail` found for type `std::vec::Vec<(f64, f64)>` in the current scope [INFO] [stderr] --> src/tree_layout.rs:199:41 [INFO] [stderr] | [INFO] [stderr] 199 | let mut m = merge_extent(e1.tail().to_vec(), e2.tail().to_vec()); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `tail`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `stack::Stack` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `tail` found for type `std::vec::Vec<(f64, f64)>` in the current scope [INFO] [stderr] --> src/tree_layout.rs:199:61 [INFO] [stderr] | [INFO] [stderr] 199 | let mut m = merge_extent(e1.tail().to_vec(), e2.tail().to_vec()); [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stderr] = note: the following trait defines an item `tail`, perhaps you need to implement it: [INFO] [stderr] candidate #1: `stack::Stack` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `char_at` found for type `&str` in the current scope [INFO] [stderr] --> src/trie.rs:59:40 [INFO] [stderr] | [INFO] [stderr] 59 | children.insert(k1.char_at(0), Rc::new(add_children(self, k1.to_string(), v))); [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `char_at` found for type `&str` in the current scope [INFO] [stderr] --> src/trie.rs:67:28 [INFO] [stderr] | [INFO] [stderr] 67 | k1.char_at(0) => Rc::new(Node { key: k1.to_string(), value: value.clone(), children: children.clone() })]; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `char_at` found for type `&str` in the current scope [INFO] [stderr] --> src/trie.rs:78:28 [INFO] [stderr] | [INFO] [stderr] 78 | k1.char_at(0) => Rc::new(Node { key: k1.to_string(), value: value.clone(), children: children.clone() }), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `char_at` found for type `&str` in the current scope [INFO] [stderr] --> src/trie.rs:79:28 [INFO] [stderr] | [INFO] [stderr] 79 | k2.char_at(0) => Rc::new(Node { key: k2.to_string(), value: Some(v), children: hashmap![] })]; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `char_at` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/trie.rs:38:43 [INFO] [stderr] | [INFO] [stderr] 38 | match children.get(&k.char_at(0)) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `char_at` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/trie.rs:97:43 [INFO] [stderr] | [INFO] [stderr] 97 | match children.get(&k.char_at(key.len())) { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 14 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0432`. [INFO] [stderr] error: Could not compile `okasaki`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "e6187941cf8fff69f014dc69e5f9a2547c34de291389855f39eddab660d8d53a"` [INFO] running `"docker" "rm" "-f" "e6187941cf8fff69f014dc69e5f9a2547c34de291389855f39eddab660d8d53a"` [INFO] [stdout] e6187941cf8fff69f014dc69e5f9a2547c34de291389855f39eddab660d8d53a