[INFO] crate rust-nntp 0.0.1 is already in cache [INFO] extracting crate rust-nntp 0.0.1 into work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/reg/rust-nntp/0.0.1 [INFO] extracting crate rust-nntp 0.0.1 into work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/reg/rust-nntp/0.0.1 [INFO] validating manifest of rust-nntp-0.0.1 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 rust-nntp-0.0.1 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 rust-nntp-0.0.1 [INFO] finished frobbing rust-nntp-0.0.1 [INFO] frobbed toml for rust-nntp-0.0.1 written to work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/reg/rust-nntp/0.0.1/Cargo.toml [INFO] started frobbing rust-nntp-0.0.1 [INFO] finished frobbing rust-nntp-0.0.1 [INFO] frobbed toml for rust-nntp-0.0.1 written to work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/reg/rust-nntp/0.0.1/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [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 rust-nntp-0.0.1 against try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 for pr-63376 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-63376/worker-7/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/reg/rust-nntp/0.0.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" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] df7eb361bde11485410bc11049507c962db8642243b0332f9f593ca08779ab8a [INFO] running `"docker" "start" "-a" "df7eb361bde11485410bc11049507c962db8642243b0332f9f593ca08779ab8a"` [INFO] [stderr] Checking rust-nntp v0.0.1 (/opt/crater/workdir) [INFO] [stderr] error[E0432]: unresolved imports `std::io::IoResult`, `std::io::TcpStream`, `std::io::IoError` [INFO] [stderr] --> src/nntp.rs:5:15 [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::{IoResult, TcpStream, IoError}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^ no `IoError` in `io` [INFO] [stderr] | | | [INFO] [stderr] | | no `TcpStream` in `io` [INFO] [stderr] | no `IoResult` in `io` [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::{Result, TcpStream, IoError}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::{IoResult, TcpStream, Error}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::IoErrorKind` [INFO] [stderr] --> src/nntp.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | use std::io::IoErrorKind::OtherIoError; [INFO] [stderr] | ^^^^^^^^^^^ could not find `IoErrorKind` in `io` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:43:54 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn article_by_number(&mut self, article_number: int) -> Result, String> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:69:51 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn body_by_number(&mut self, article_number: int) -> Result, String> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:121:51 [INFO] [stderr] | [INFO] [stderr] 121 | pub fn head_by_number(&mut self, article_number: int) -> Result, String> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:278:51 [INFO] [stderr] | [INFO] [stderr] 278 | pub fn stat_by_number(&mut self, article_number: int) -> Result { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:307:45 [INFO] [stderr] | [INFO] [stderr] 307 | fn read_response(&mut self, expected_code: int) -> Result<(int, String), String> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:307:61 [INFO] [stderr] | [INFO] [stderr] 307 | fn read_response(&mut self, expected_code: int) -> Result<(int, String), String> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:332:16 [INFO] [stderr] | [INFO] [stderr] 332 | let code: int = from_str(v[0]).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/nntp.rs:332:22 [INFO] [stderr] | [INFO] [stderr] 332 | let code: int = from_str(v[0]).unwrap(); [INFO] [stderr] | ^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `std::io::IoResult`, `std::io::TcpStream`, `std::io::IoError` [INFO] [stderr] --> src/nntp.rs:5:15 [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::{IoResult, TcpStream, IoError}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^^^ ^^^^^^^ no `IoError` in `io` [INFO] [stderr] | | | [INFO] [stderr] | | no `TcpStream` in `io` [INFO] [stderr] | no `IoResult` in `io` [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::{Result, TcpStream, IoError}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 5 | use std::io::{IoResult, TcpStream, Error}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::IoErrorKind` [INFO] [stderr] --> src/nntp.rs:6:14 [INFO] [stderr] | [INFO] [stderr] 6 | use std::io::IoErrorKind::OtherIoError; [INFO] [stderr] | ^^^^^^^^^^^ could not find `IoErrorKind` in `io` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/nntp.rs:21:59 [INFO] [stderr] | [INFO] [stderr] 21 | let tcp_stream = try!(TcpStream::connect(connect_string.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/nntp.rs:34:48 [INFO] [stderr] | [INFO] [stderr] 34 | self.retrieve_article(format!("ARTICLE\r\n").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/nntp.rs:39:63 [INFO] [stderr] | [INFO] [stderr] 39 | self.retrieve_article(format!("ARTICLE {}\r\n", article_id).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/nntp.rs:44:67 [INFO] [stderr] | [INFO] [stderr] 44 | self.retrieve_article(format!("ARTICLE {}\r\n", article_number).as_slice()) [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&str` in the current scope [INFO] [stderr] --> src/nntp.rs:48:41 [INFO] [stderr] | [INFO] [stderr] 48 | self.stream.write_str(article_command.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/nntp.rs:60:42 [INFO] [stderr] | [INFO] [stderr] 60 | self.retrieve_body(format!("BODY\r\n").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/nntp.rs:65:57 [INFO] [stderr] | [INFO] [stderr] 65 | self.retrieve_body(format!("BODY {}\r\n", article_id).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/nntp.rs:70:61 [INFO] [stderr] | [INFO] [stderr] 70 | self.retrieve_body(format!("BODY {}\r\n", article_number).as_slice()) [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&str` in the current scope [INFO] [stderr] --> src/nntp.rs:74:38 [INFO] [stderr] | [INFO] [stderr] 74 | self.stream.write_str(body_command.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/nntp.rs:88:46 [INFO] [stderr] | [INFO] [stderr] 88 | self.stream.write_str(capabilities_command.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/nntp.rs:102:38 [INFO] [stderr] | [INFO] [stderr] 102 | self.stream.write_str(date_command.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/nntp.rs:112:42 [INFO] [stderr] | [INFO] [stderr] 112 | self.retrieve_head(format!("HEAD\r\n").as_slice()) [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:43:54 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn article_by_number(&mut self, article_number: int) -> Result, String> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:69:51 [INFO] [stderr] | [INFO] [stderr] 69 | pub fn body_by_number(&mut self, article_number: int) -> Result, String> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:121:51 [INFO] [stderr] | [INFO] [stderr] 121 | pub fn head_by_number(&mut self, article_number: int) -> Result, String> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:278:51 [INFO] [stderr] | [INFO] [stderr] 278 | pub fn stat_by_number(&mut self, article_number: int) -> Result { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:307:45 [INFO] [stderr] | [INFO] [stderr] 307 | fn read_response(&mut self, expected_code: int) -> Result<(int, String), String> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:307:61 [INFO] [stderr] | [INFO] [stderr] 307 | fn read_response(&mut self, expected_code: int) -> Result<(int, String), String> { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/nntp.rs:332:16 [INFO] [stderr] | [INFO] [stderr] 332 | let code: int = from_str(v[0]).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/nntp.rs:332:22 [INFO] [stderr] | [INFO] [stderr] 332 | let code: int = from_str(v[0]).unwrap(); [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/nntp.rs:117:57 [INFO] [stderr] | [INFO] [stderr] 117 | self.retrieve_head(format!("HEAD {}\r\n", article_id).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/nntp.rs:122:61 [INFO] [stderr] | [INFO] [stderr] 122 | self.retrieve_head(format!("HEAD {}\r\n", article_number).as_slice()) [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&str` in the current scope [INFO] [stderr] --> src/nntp.rs:126:38 [INFO] [stderr] | [INFO] [stderr] 126 | self.stream.write_str(head_command.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/nntp.rs:140:38 [INFO] [stderr] | [INFO] [stderr] 140 | self.stream.write_str(last_command.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/nntp.rs:152:38 [INFO] [stderr] | [INFO] [stderr] 152 | self.stream.write_str(list_command.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/nntp.rs:166:39 [INFO] [stderr] | [INFO] [stderr] 166 | self.stream.write_str(group_command.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/nntp.rs:178:38 [INFO] [stderr] | [INFO] [stderr] 178 | self.stream.write_str(help_command.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/nntp.rs:191:38 [INFO] [stderr] | [INFO] [stderr] 191 | self.stream.write_str(quit_command.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/nntp.rs:206:43 [INFO] [stderr] | [INFO] [stderr] 206 | self.stream.write_str(newgroups_command.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/nntp.rs:223:41 [INFO] [stderr] | [INFO] [stderr] 223 | self.stream.write_str(newnews_command.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/nntp.rs:236:38 [INFO] [stderr] | [INFO] [stderr] 236 | self.stream.write_str(next_command.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/nntp.rs:252:38 [INFO] [stderr] | [INFO] [stderr] 252 | self.stream.write_str(post_command.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/nntp.rs:269:42 [INFO] [stderr] | [INFO] [stderr] 269 | self.retrieve_stat(format!("STAT\r\n").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/nntp.rs:274:57 [INFO] [stderr] | [INFO] [stderr] 274 | self.retrieve_stat(format!("STAT {}\r\n", article_id).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/nntp.rs:279:61 [INFO] [stderr] | [INFO] [stderr] 279 | self.retrieve_stat(format!("STAT {}\r\n", article_number).as_slice()) [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&str` in the current scope [INFO] [stderr] --> src/nntp.rs:283:38 [INFO] [stderr] | [INFO] [stderr] 283 | self.stream.write_str(stat_command.as_slice()); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_str` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/nntp.rs:298:32 [INFO] [stderr] | [INFO] [stderr] 298 | let message_string = String::from_str(message); [INFO] [stderr] | ^^^^^^^^ function or associated item not found in `std::string::String` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 4 | use std::str::FromStr; [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/nntp.rs:21:59 [INFO] [stderr] | [INFO] [stderr] 21 | let tcp_stream = try!(TcpStream::connect(connect_string.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/nntp.rs:325:35 [INFO] [stderr] | [INFO] [stderr] 325 | let trimmed_response = response.as_slice().trim_chars(chars_to_trim); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_str` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/nntp.rs:337:24 [INFO] [stderr] | [INFO] [stderr] 337 | Ok((code, String::from_str(message))) [INFO] [stderr] | ^^^^^^^^ function or associated item not found in `std::string::String` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 4 | use std::str::FromStr; [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/nntp.rs:34:48 [INFO] [stderr] | [INFO] [stderr] 34 | self.retrieve_article(format!("ARTICLE\r\n").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/nntp.rs:39:63 [INFO] [stderr] | [INFO] [stderr] 39 | self.retrieve_article(format!("ARTICLE {}\r\n", article_id).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/nntp.rs:44:67 [INFO] [stderr] | [INFO] [stderr] 44 | self.retrieve_article(format!("ARTICLE {}\r\n", article_number).as_slice()) [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&str` in the current scope [INFO] [stderr] --> src/nntp.rs:48:41 [INFO] [stderr] | [INFO] [stderr] 48 | self.stream.write_str(article_command.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/nntp.rs:60:42 [INFO] [stderr] | [INFO] [stderr] 60 | self.retrieve_body(format!("BODY\r\n").as_slice()) [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 41 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/nntp.rs:65:57 [INFO] [stderr] | [INFO] [stderr] 65 | self.retrieve_body(format!("BODY {}\r\n", article_id).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/nntp.rs:70:61 [INFO] [stderr] | [INFO] [stderr] 70 | self.retrieve_body(format!("BODY {}\r\n", article_number).as_slice()) [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&str` in the current scope [INFO] [stderr] --> src/nntp.rs:74:38 [INFO] [stderr] | [INFO] [stderr] 74 | self.stream.write_str(body_command.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/nntp.rs:88:46 [INFO] [stderr] | [INFO] [stderr] 88 | self.stream.write_str(capabilities_command.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/nntp.rs:102:38 [INFO] [stderr] | [INFO] [stderr] 102 | self.stream.write_str(date_command.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/nntp.rs:112:42 [INFO] [stderr] | [INFO] [stderr] 112 | self.retrieve_head(format!("HEAD\r\n").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/nntp.rs:117:57 [INFO] [stderr] | [INFO] [stderr] 117 | self.retrieve_head(format!("HEAD {}\r\n", article_id).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/nntp.rs:122:61 [INFO] [stderr] | [INFO] [stderr] 122 | self.retrieve_head(format!("HEAD {}\r\n", article_number).as_slice()) [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&str` in the current scope [INFO] [stderr] --> src/nntp.rs:126:38 [INFO] [stderr] | [INFO] [stderr] 126 | self.stream.write_str(head_command.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/nntp.rs:140:38 [INFO] [stderr] | [INFO] [stderr] 140 | self.stream.write_str(last_command.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/nntp.rs:152:38 [INFO] [stderr] | [INFO] [stderr] 152 | self.stream.write_str(list_command.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/nntp.rs:166:39 [INFO] [stderr] | [INFO] [stderr] 166 | self.stream.write_str(group_command.as_slice()); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: Could not compile `rust-nntp`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/nntp.rs:178:38 [INFO] [stderr] | [INFO] [stderr] 178 | self.stream.write_str(help_command.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/nntp.rs:191:38 [INFO] [stderr] | [INFO] [stderr] 191 | self.stream.write_str(quit_command.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/nntp.rs:206:43 [INFO] [stderr] | [INFO] [stderr] 206 | self.stream.write_str(newgroups_command.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/nntp.rs:223:41 [INFO] [stderr] | [INFO] [stderr] 223 | self.stream.write_str(newnews_command.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/nntp.rs:236:38 [INFO] [stderr] | [INFO] [stderr] 236 | self.stream.write_str(next_command.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/nntp.rs:252:38 [INFO] [stderr] | [INFO] [stderr] 252 | self.stream.write_str(post_command.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/nntp.rs:269:42 [INFO] [stderr] | [INFO] [stderr] 269 | self.retrieve_stat(format!("STAT\r\n").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/nntp.rs:274:57 [INFO] [stderr] | [INFO] [stderr] 274 | self.retrieve_stat(format!("STAT {}\r\n", article_id).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/nntp.rs:279:61 [INFO] [stderr] | [INFO] [stderr] 279 | self.retrieve_stat(format!("STAT {}\r\n", article_number).as_slice()) [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `&str` in the current scope [INFO] [stderr] --> src/nntp.rs:283:38 [INFO] [stderr] | [INFO] [stderr] 283 | self.stream.write_str(stat_command.as_slice()); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_str` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/nntp.rs:298:32 [INFO] [stderr] | [INFO] [stderr] 298 | let message_string = String::from_str(message); [INFO] [stderr] | ^^^^^^^^ function or associated item not found in `std::string::String` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 4 | use std::str::FromStr; [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/nntp.rs:325:35 [INFO] [stderr] | [INFO] [stderr] 325 | let trimmed_response = response.as_slice().trim_chars(chars_to_trim); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_str` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/nntp.rs:337:24 [INFO] [stderr] | [INFO] [stderr] 337 | Ok((code, String::from_str(message))) [INFO] [stderr] | ^^^^^^^^ function or associated item not found in `std::string::String` [INFO] [stderr] | [INFO] [stderr] = help: items from traits can only be used if the trait is in scope [INFO] [stderr] help: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] | [INFO] [stderr] 4 | use std::str::FromStr; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: aborting due to 41 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0425, E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: Could not compile `rust-nntp`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "df7eb361bde11485410bc11049507c962db8642243b0332f9f593ca08779ab8a"` [INFO] running `"docker" "rm" "-f" "df7eb361bde11485410bc11049507c962db8642243b0332f9f593ca08779ab8a"` [INFO] [stdout] df7eb361bde11485410bc11049507c962db8642243b0332f9f593ca08779ab8a