[INFO] updating cached repository https://github.com/pgarland/rosalind-rust [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/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] 76c923648161bfb564ace192c5f5209e416ddfe2 [INFO] testing pgarland/rosalind-rust against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpgarland%2Frosalind-rust" "/workspace/builds/worker-12/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/pgarland/rosalind-rust on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/pgarland/rosalind-rust [INFO] finished tweaking git repo https://github.com/pgarland/rosalind-rust [INFO] tweaked toml for git repo https://github.com/pgarland/rosalind-rust written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/pgarland/rosalind-rust already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-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.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 980cf8cb527fb6585554a51f6b02fa140d7d6a9333a6aac501bbfd3769800078 [INFO] running `"docker" "start" "-a" "980cf8cb527fb6585554a51f6b02fa140d7d6a9333a6aac501bbfd3769800078"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling rosalind-rust v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/main.rs:407:24 [INFO] [stderr] | [INFO] [stderr] 407 | let mut distance = 0u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::File` [INFO] [stderr] --> src/main.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use std::io::File; [INFO] [stderr] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::BufferedReader` [INFO] [stderr] --> src/main.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | use std::io::BufferedReader; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ no `BufferedReader` in `io` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:75:16 [INFO] [stderr] | [INFO] [stderr] 75 | let path = Path::new(fname); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:232:16 [INFO] [stderr] | [INFO] [stderr] 232 | let path = Path::new(fname); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:319:16 [INFO] [stderr] | [INFO] [stderr] 319 | let path = Path::new(fname); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `args` in module `os` [INFO] [stderr] --> src/main.rs:15:20 [INFO] [stderr] | [INFO] [stderr] 15 | let args = os::args(); [INFO] [stderr] | ^^^^ not found in `os` [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 5 | use std::env::args; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `from_str` in this scope [INFO] [stderr] --> src/main.rs:29:26 [INFO] [stderr] | [INFO] [stderr] 29 | let homo_d = from_str(args[2].as_slice()).unwrap(); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `from_str` in this scope [INFO] [stderr] --> src/main.rs:30:23 [INFO] [stderr] | [INFO] [stderr] 30 | let het = from_str(args[3].as_slice()).unwrap(); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `from_str` in this scope [INFO] [stderr] --> src/main.rs:31:26 [INFO] [stderr] | [INFO] [stderr] 31 | let homo_r = from_str(args[4].as_slice()).unwrap(); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `from_str` in this scope [INFO] [stderr] --> src/main.rs:36:21 [INFO] [stderr] | [INFO] [stderr] 36 | let n = from_str(args[2].as_slice()).unwrap(); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `from_str` in this scope [INFO] [stderr] --> src/main.rs:37:21 [INFO] [stderr] | [INFO] [stderr] 37 | let k = from_str(args[3].as_slice()).unwrap(); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:178:17 [INFO] [stderr] | [INFO] [stderr] 178 | fn iprb(homo_d: uint, het: uint, homo_r: uint) -> f32 { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:178:28 [INFO] [stderr] | [INFO] [stderr] 178 | fn iprb(homo_d: uint, het: uint, homo_r: uint) -> f32 { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:178:42 [INFO] [stderr] | [INFO] [stderr] 178 | fn iprb(homo_d: uint, het: uint, homo_r: uint) -> f32 { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:203:20 [INFO] [stderr] | [INFO] [stderr] 203 | fn do_iprb(homo_d: uint, het: uint, homo_r: uint) -> () { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:203:31 [INFO] [stderr] | [INFO] [stderr] 203 | fn do_iprb(homo_d: uint, het: uint, homo_r: uint) -> () { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:203:45 [INFO] [stderr] | [INFO] [stderr] 203 | fn do_iprb(homo_d: uint, het: uint, homo_r: uint) -> () { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:217:12 [INFO] [stderr] | [INFO] [stderr] 217 | fn fib( n: uint, k: uint) -> uint { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:217:21 [INFO] [stderr] | [INFO] [stderr] 217 | fn fib( n: uint, k: uint) -> uint { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:217:30 [INFO] [stderr] | [INFO] [stderr] 217 | fn fib( n: uint, k: uint) -> uint { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:339:18 [INFO] [stderr] | [INFO] [stderr] 339 | let mut it = range(0, rna.len()).filter(|idx| *idx % 3 == 0); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:370:40 [INFO] [stderr] | [INFO] [stderr] 370 | fn hash_genome(genome: &str, kmer_len: uint) -> HashMap> { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:370:69 [INFO] [stderr] | [INFO] [stderr] 370 | fn hash_genome(genome: &str, kmer_len: uint) -> HashMap> { [INFO] [stderr] | - ^^^^ not found in this scope [INFO] [stderr] | | [INFO] [stderr] | help: you might be missing a type parameter: `` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:372:47 [INFO] [stderr] | [INFO] [stderr] 370 | fn hash_genome(genome: &str, kmer_len: uint) -> HashMap> { [INFO] [stderr] | - help: you might be missing a type parameter: `` [INFO] [stderr] 371 | [INFO] [stderr] 372 | let mut genome_hash : HashMap> = HashMap::new(); [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:374:16 [INFO] [stderr] | [INFO] [stderr] 374 | for pos in range(0, genome.len() - kmer_len) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:389:50 [INFO] [stderr] | [INFO] [stderr] 389 | fn subs(genome: &str, probe: &str) -> Option> { [INFO] [stderr] | - ^^^^ not found in this scope [INFO] [stderr] | | [INFO] [stderr] | help: you might be missing a type parameter: `` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:406:42 [INFO] [stderr] | [INFO] [stderr] 406 | fn hamming_distance(s: &str, t: &str) -> uint { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:50:37 [INFO] [stderr] | [INFO] [stderr] 50 | println!("{}", prot(rna.as_slice(), codon_table)); [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:88:37 [INFO] [stderr] | [INFO] [stderr] 88 | let nuc_count = count_nucs(nucs.as_slice()); [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:125:30 [INFO] [stderr] | [INFO] [stderr] 125 | let rna = transcribe(dna.as_slice()); [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:241:19 [INFO] [stderr] | [INFO] [stderr] 241 | if id.as_slice() == "" { panic!("Invalid FASTA file: sequence does not have id") } [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:246:19 [INFO] [stderr] | [INFO] [stderr] 246 | if id.as_slice() != "" { [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `trim_left_chars` found for reference `&str` in the current scope [INFO] [stderr] --> src/main.rs:269:10 [INFO] [stderr] | [INFO] [stderr] 269 | line.trim_left_chars('>').to_string() [INFO] [stderr] | ^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `trim_left_matches` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for reference `&std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:292:34 [INFO] [stderr] | [INFO] [stderr] 292 | this_gc = gc_content(seq.as_slice()); [INFO] [stderr] | ^^^^^^^^ method not found in `&std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `slice` found for reference `&'a str` in the current scope [INFO] [stderr] --> src/main.rs:342:25 [INFO] [stderr] | [INFO] [stderr] 342 | let codon = rna.slice(idx, idx + 3).to_string(); [INFO] [stderr] | ^^^^^ method not found in `&'a str` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for reference `&std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:345:15 [INFO] [stderr] | [INFO] [stderr] 345 | if aa.as_slice() == "(Stop)" { [INFO] [stderr] | ^^^^^^^^ method not found in `&std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:349:32 [INFO] [stderr] | [INFO] [stderr] 349 | peptide.push_str((*aa).as_slice()); [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `slice` found for reference `&str` in the current scope [INFO] [stderr] --> src/main.rs:375:27 [INFO] [stderr] | [INFO] [stderr] 375 | let kmer = genome.slice(pos, pos + kmer_len).to_string(); [INFO] [stderr] | ^^^^^ method not found in `&str` [INFO] [stderr] [INFO] [stderr] error: aborting due to 39 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0432, E0433, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `rosalind-rust`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "980cf8cb527fb6585554a51f6b02fa140d7d6a9333a6aac501bbfd3769800078"` [INFO] running `"docker" "rm" "-f" "980cf8cb527fb6585554a51f6b02fa140d7d6a9333a6aac501bbfd3769800078"` [INFO] [stdout] 980cf8cb527fb6585554a51f6b02fa140d7d6a9333a6aac501bbfd3769800078