[INFO] updating cached repository pgarland/rosalind-rust [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/pgarland/rosalind-rust [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/pgarland/rosalind-rust" "work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/pgarland/rosalind-rust"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/pgarland/rosalind-rust'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/pgarland/rosalind-rust" "work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/pgarland/rosalind-rust"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/pgarland/rosalind-rust'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 76c923648161bfb564ace192c5f5209e416ddfe2 [INFO] sha for GitHub repo pgarland/rosalind-rust: 76c923648161bfb564ace192c5f5209e416ddfe2 [INFO] validating manifest of pgarland/rosalind-rust on toolchain master#60960a260f7b5c695fd0717311d72ce62dd4eb43 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of pgarland/rosalind-rust on toolchain try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing pgarland/rosalind-rust [INFO] finished frobbing pgarland/rosalind-rust [INFO] frobbed toml for pgarland/rosalind-rust written to work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/pgarland/rosalind-rust/Cargo.toml [INFO] started frobbing pgarland/rosalind-rust [INFO] finished frobbing pgarland/rosalind-rust [INFO] frobbed toml for pgarland/rosalind-rust written to work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/pgarland/rosalind-rust/Cargo.toml [INFO] crate pgarland/rosalind-rust already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] checking pgarland/rosalind-rust against master#60960a260f7b5c695fd0717311d72ce62dd4eb43 for pr-63376 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-63376/worker-5/master#60960a260f7b5c695fd0717311d72ce62dd4eb43:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/pgarland/rosalind-rust:/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" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 0af3ffca6fc11e29ab4c8d80cd995c3208266e554b2c579ce52b0b72d831d4bd [INFO] running `"docker" "start" "-a" "0af3ffca6fc11e29ab4c8d80cd995c3208266e554b2c579ce52b0b72d831d4bd"` [INFO] [stderr] Checking rosalind-rust v0.0.1 (/opt/crater/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: 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] 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] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:372:47 [INFO] [stderr] | [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] 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: only functions may be used as tests [INFO] [stderr] --> src/main.rs:11:1 [INFO] [stderr] | [INFO] [stderr] 11 | use std::num::FloatMath; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `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] | ^^^^^^^^ [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] error[E0599]: no method named `as_slice` found for type `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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `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] | ^^^^^^^^ [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[E0432]: unresolved import `std::num::FloatMath` [INFO] [stderr] --> src/main.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 11 | use std::num::FloatMath; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ no `FloatMath` in `num` [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `trim_left_chars` found for type `&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 a method with a similar name: `trim_left_matches` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `slice` found for type `&'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] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `slice` found for type `&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] | ^^^^^ [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] warning: build failed, waiting for other jobs to finish... [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] 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] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:372:47 [INFO] [stderr] | [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] 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 type `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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `trim_left_chars` found for type `&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 a method with a similar name: `trim_left_matches` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:310:16 [INFO] [stderr] | [INFO] [stderr] 310 | assert!(id.as_slice() == "Rosalind_0808"); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `slice` found for type `&'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] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `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] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:365:22 [INFO] [stderr] | [INFO] [stderr] 365 | assert!(prot(rna.as_slice(), codon_table).as_slice() == "MAMAPRTEINSTRING"); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/main.rs:365:47 [INFO] [stderr] | [INFO] [stderr] 365 | assert!(prot(rna.as_slice(), codon_table).as_slice() == "MAMAPRTEINSTRING"); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `slice` found for type `&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] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 44 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" "0af3ffca6fc11e29ab4c8d80cd995c3208266e554b2c579ce52b0b72d831d4bd"` [INFO] running `"docker" "rm" "-f" "0af3ffca6fc11e29ab4c8d80cd995c3208266e554b2c579ce52b0b72d831d4bd"` [INFO] [stdout] 0af3ffca6fc11e29ab4c8d80cd995c3208266e554b2c579ce52b0b72d831d4bd