[INFO] updating cached repository Peekmo/rust-xslgen [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/Peekmo/rust-xslgen [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/Peekmo/rust-xslgen" "work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/Peekmo/rust-xslgen"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/Peekmo/rust-xslgen'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/Peekmo/rust-xslgen" "work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/Peekmo/rust-xslgen"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/Peekmo/rust-xslgen'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 97a8c1c096ce79e5b63e21cff0451075f5a91366 [INFO] sha for GitHub repo Peekmo/rust-xslgen: 97a8c1c096ce79e5b63e21cff0451075f5a91366 [INFO] validating manifest of Peekmo/rust-xslgen 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 Peekmo/rust-xslgen 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 Peekmo/rust-xslgen [INFO] finished frobbing Peekmo/rust-xslgen [INFO] frobbed toml for Peekmo/rust-xslgen written to work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/Peekmo/rust-xslgen/Cargo.toml [INFO] started frobbing Peekmo/rust-xslgen [INFO] finished frobbing Peekmo/rust-xslgen [INFO] frobbed toml for Peekmo/rust-xslgen written to work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/Peekmo/rust-xslgen/Cargo.toml [INFO] crate Peekmo/rust-xslgen 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 Peekmo/rust-xslgen against try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 for pr-63376 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-63376/worker-3/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/Peekmo/rust-xslgen:/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] 61fd2951e8c47edcd591d5c883c412a8178e607fb7eb375125565ee096a1ef5a [INFO] running `"docker" "start" "-a" "61fd2951e8c47edcd591d5c883c412a8178e607fb7eb375125565ee096a1ef5a"` [INFO] [stderr] Checking xslgen v0.0.1 (/opt/crater/workdir) [INFO] [stderr] warning: unknown lint: `unstable` [INFO] [stderr] --> src/main.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #![allow(unstable)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unknown_lints)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unknown lint: `unstable` [INFO] [stderr] --> src/process.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #![allow(unstable)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unknown lint: `unstable` [INFO] [stderr] --> src/main.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #![allow(unstable)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unknown_lints)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unknown lint: `unstable` [INFO] [stderr] --> src/process.rs:1:10 [INFO] [stderr] | [INFO] [stderr] 1 | #![allow(unstable)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::fs` [INFO] [stderr] --> src/process.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io::fs::File; [INFO] [stderr] | ^^ could not find `fs` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::path::posix` [INFO] [stderr] --> src/process.rs:3:16 [INFO] [stderr] | [INFO] [stderr] 3 | use std::path::posix::Path; [INFO] [stderr] | ^^^^^ could not find `posix` in `path` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::IoError` [INFO] [stderr] --> src/process.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::IoError; [INFO] [stderr] | ^^^^^^^^^------- [INFO] [stderr] | | | [INFO] [stderr] | | help: a similar name exists in the module: `Error` [INFO] [stderr] | no `IoError` in `io` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/xsl.rs:75:14 [INFO] [stderr] | [INFO] [stderr] 75 | for _ in range(0, *nb) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `args` in module `os` [INFO] [stderr] --> src/main.rs:14:24 [INFO] [stderr] | [INFO] [stderr] 14 | let mut 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] 4 | use std::env::args; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: malformed `stable` attribute input [INFO] [stderr] --> src/process.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | #[stable] [INFO] [stderr] | ^^^^^^^^^ help: must be of the form: `#[stable(feature = "name", since = "version")]` [INFO] [stderr] [INFO] [stderr] error: malformed `unstable` attribute input [INFO] [stderr] --> src/process.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | #[unstable] [INFO] [stderr] | ^^^^^^^^^^^ help: must be of the form: `#[unstable(feature = "name", reason = "...", issue = "N")]` [INFO] [stderr] [INFO] [stderr] error: malformed `stable` attribute input [INFO] [stderr] --> src/process.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | #[stable] [INFO] [stderr] | ^^^^^^^^^ help: must be of the form: `#[stable(feature = "name", since = "version")]` [INFO] [stderr] [INFO] [stderr] error: malformed `unstable` attribute input [INFO] [stderr] --> src/process.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | #[unstable] [INFO] [stderr] | ^^^^^^^^^^^ help: must be of the form: `#[unstable(feature = "name", reason = "...", issue = "N")]` [INFO] [stderr] [INFO] [stderr] error: malformed `stable` attribute input [INFO] [stderr] --> src/process.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | #[stable] [INFO] [stderr] | ^^^^^^^^^ help: must be of the form: `#[stable(feature = "name", since = "version")]` [INFO] [stderr] [INFO] [stderr] error: stability attributes may not be used outside of the standard library [INFO] [stderr] --> src/process.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | #[stable] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: stability attributes may not be used outside of the standard library [INFO] [stderr] --> src/process.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | #[unstable] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: stability attributes may not be used outside of the standard library [INFO] [stderr] --> src/process.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | #[stable] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: stability attributes may not be used outside of the standard library [INFO] [stderr] --> src/process.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | #[unstable] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: stability attributes may not be used outside of the standard library [INFO] [stderr] --> src/process.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | #[stable] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::fs` [INFO] [stderr] --> src/process.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io::fs::File; [INFO] [stderr] | ^^ could not find `fs` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::path::posix` [INFO] [stderr] --> src/process.rs:3:16 [INFO] [stderr] | [INFO] [stderr] 3 | use std::path::posix::Path; [INFO] [stderr] | ^^^^^ could not find `posix` in `path` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::IoError` [INFO] [stderr] --> src/process.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::IoError; [INFO] [stderr] | ^^^^^^^^^------- [INFO] [stderr] | | | [INFO] [stderr] | | help: a similar name exists in the module: `Error` [INFO] [stderr] | no `IoError` in `io` [INFO] [stderr] [INFO] [stderr] error[E0277]: the type `[&str]` cannot be indexed by `&{integer}` [INFO] [stderr] --> src/main.rs:26:25 [INFO] [stderr] | [INFO] [stderr] 26 | match *argument.index(&0) { [INFO] [stderr] | ^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[&str]>` is not implemented for `&{integer}` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index<&{integer}>` for `std::vec::Vec<&str>` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/xsl.rs:75:14 [INFO] [stderr] | [INFO] [stderr] 75 | for _ in range(0, *nb) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `args` in module `os` [INFO] [stderr] --> src/main.rs:14:24 [INFO] [stderr] | [INFO] [stderr] 14 | let mut 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] 4 | use std::env::args; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: malformed `stable` attribute input [INFO] [stderr] --> src/process.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | #[stable] [INFO] [stderr] | ^^^^^^^^^ help: must be of the form: `#[stable(feature = "name", since = "version")]` [INFO] [stderr] [INFO] [stderr] error: malformed `unstable` attribute input [INFO] [stderr] --> src/process.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | #[unstable] [INFO] [stderr] | ^^^^^^^^^^^ help: must be of the form: `#[unstable(feature = "name", reason = "...", issue = "N")]` [INFO] [stderr] [INFO] [stderr] error: malformed `stable` attribute input [INFO] [stderr] --> src/process.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | #[stable] [INFO] [stderr] | ^^^^^^^^^ help: must be of the form: `#[stable(feature = "name", since = "version")]` [INFO] [stderr] [INFO] [stderr] error: malformed `unstable` attribute input [INFO] [stderr] --> src/process.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | #[unstable] [INFO] [stderr] | ^^^^^^^^^^^ help: must be of the form: `#[unstable(feature = "name", reason = "...", issue = "N")]` [INFO] [stderr] [INFO] [stderr] error: malformed `stable` attribute input [INFO] [stderr] --> src/process.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | #[stable] [INFO] [stderr] | ^^^^^^^^^ help: must be of the form: `#[stable(feature = "name", since = "version")]` [INFO] [stderr] [INFO] [stderr] error: stability attributes may not be used outside of the standard library [INFO] [stderr] --> src/process.rs:8:1 [INFO] [stderr] | [INFO] [stderr] 8 | #[stable] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: stability attributes may not be used outside of the standard library [INFO] [stderr] --> src/process.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | #[unstable] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: stability attributes may not be used outside of the standard library [INFO] [stderr] --> src/process.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | #[stable] [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: stability attributes may not be used outside of the standard library [INFO] [stderr] --> src/process.rs:40:5 [INFO] [stderr] | [INFO] [stderr] 40 | #[unstable] [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: stability attributes may not be used outside of the standard library [INFO] [stderr] --> src/process.rs:54:5 [INFO] [stderr] | [INFO] [stderr] 54 | #[stable] [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/main.rs:28:45 [INFO] [stderr] | [INFO] [stderr] 28 | process.input_arg = String::from_str(argument.index(&1).clone()); [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[E0277]: the type `[&str]` cannot be indexed by `&{integer}` [INFO] [stderr] --> src/main.rs:28:63 [INFO] [stderr] | [INFO] [stderr] 28 | process.input_arg = String::from_str(argument.index(&1).clone()); [INFO] [stderr] | ^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[&str]>` is not implemented for `&{integer}` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index<&{integer}>` for `std::vec::Vec<&str>` [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/main.rs:32:52 [INFO] [stderr] | [INFO] [stderr] 32 | process.output_arg = Some(String::from_str(argument.index(&1).clone())); [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[E0277]: the type `[&str]` cannot be indexed by `&{integer}` [INFO] [stderr] --> src/main.rs:32:70 [INFO] [stderr] | [INFO] [stderr] 32 | process.output_arg = Some(String::from_str(argument.index(&1).clone())); [INFO] [stderr] | ^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[&str]>` is not implemented for `&{integer}` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index<&{integer}>` for `std::vec::Vec<&str>` [INFO] [stderr] [INFO] [stderr] error[E0277]: the type `[&str]` cannot be indexed by `&{integer}` [INFO] [stderr] --> src/main.rs:34:57 [INFO] [stderr] | [INFO] [stderr] 34 | _ => panic!("Unknown argument {}", argument.index(&0)) [INFO] [stderr] | ^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[&str]>` is not implemented for `&{integer}` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index<&{integer}>` for `std::vec::Vec<&str>` [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/process.rs:30:32 [INFO] [stderr] | [INFO] [stderr] 30 | input_arg: String::from_str(""), [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/process.rs:43:32 [INFO] [stderr] | [INFO] [stderr] 43 | return Err(String::from_str("No input file found (option --file=path/to/file.xslg)")); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/process.rs:56:66 [INFO] [stderr] | [INFO] [stderr] 56 | let mut file = try!(File::open(&Path::new(self.input_arg.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/process.rs:67:44 [INFO] [stderr] | [INFO] [stderr] 67 | lines.push(String::from_str(line.trim())); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/parser.rs:153:144 [INFO] [stderr] | [INFO] [stderr] 153 | Some (ref attribute) => { self.parsing_error(format!("Unexpected new line. Attribute {} is not closed", attribute.key).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/parser.rs:226:67 [INFO] [stderr] | [INFO] [stderr] 226 | let mut content = String::from_str(self.buffer.trim()); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:231:101 [INFO] [stderr] | [INFO] [stderr] 231 | let mut attribute = Box::new(Attribute::new(String::from_str("test"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:236:101 [INFO] [stderr] | [INFO] [stderr] 236 | let mut attribute = Box::new(Attribute::new(String::from_str("select"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [INFO] [stderr] [INFO] [stderr] error[E0277]: the type `std::string::String` cannot be indexed by `&std::ops::RangeFrom` [INFO] [stderr] --> src/parser.rs:273:76 [INFO] [stderr] | [INFO] [stderr] 273 | if !self.buffer.is_empty() && (self.buffer.index(&RangeFrom {start: self.buffer.len() - 1}) == "\\") { [INFO] [stderr] | ^^^^^ `std::string::String` cannot be indexed by `&std::ops::RangeFrom` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::Index<&std::ops::RangeFrom>` is not implemented for `std::string::String` [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/parser.rs:310:43 [INFO] [stderr] | [INFO] [stderr] 310 | '@' => { Some(String::from_str("xsl")) }, [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/parser.rs:323:35 [INFO] [stderr] | [INFO] [stderr] 323 | match self.buffer.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/parser.rs:330:40 [INFO] [stderr] | [INFO] [stderr] 330 | if self.buffer.as_slice() == "if" { [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/parser.rs:331:76 [INFO] [stderr] | [INFO] [stderr] 331 | let node_choose = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("choose"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:331:107 [INFO] [stderr] | [INFO] [stderr] 331 | let node_choose = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("choose"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:335:70 [INFO] [stderr] | [INFO] [stderr] 335 | let node_when = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("when"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:335:101 [INFO] [stderr] | [INFO] [stderr] 335 | let node_when = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("when"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:344:75 [INFO] [stderr] | [INFO] [stderr] 344 | let node_otherwise = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("otherwise"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:344:106 [INFO] [stderr] | [INFO] [stderr] 344 | let node_otherwise = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("otherwise"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:352:73 [INFO] [stderr] | [INFO] [stderr] 352 | let node_foreach = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("for-each"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:352:104 [INFO] [stderr] | [INFO] [stderr] 352 | let node_foreach = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("for-each"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/parser.rs:428:108 [INFO] [stderr] | [INFO] [stderr] 428 | self.parsing_error(format!("Unexpected character - Expected '[' or '{}'", "{").as_slice()); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0277]: the type `[&str]` cannot be indexed by `&{integer}` [INFO] [stderr] --> src/main.rs:26:25 [INFO] [stderr] | [INFO] [stderr] 26 | match *argument.index(&0) { [INFO] [stderr] | ^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[&str]>` is not implemented for `&{integer}` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index<&{integer}>` for `std::vec::Vec<&str>` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/xsl.rs:29:69 [INFO] [stderr] | [INFO] [stderr] 29 | string.push_str(format!(" {}={}", attr.key, attr.value).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/xsl.rs:39:47 [INFO] [stderr] | [INFO] [stderr] 39 | string.push_str(value.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/xsl.rs:66:74 [INFO] [stderr] | [INFO] [stderr] 66 | Some(ref namespace) => string.push_str(format!("{}:", namespace).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/xsl.rs:70:31 [INFO] [stderr] | [INFO] [stderr] 70 | string.push_str(node.name.as_slice()); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 46 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0425, E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: Could not compile `xslgen`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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/main.rs:28:45 [INFO] [stderr] | [INFO] [stderr] 28 | process.input_arg = String::from_str(argument.index(&1).clone()); [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[E0277]: the type `[&str]` cannot be indexed by `&{integer}` [INFO] [stderr] --> src/main.rs:28:63 [INFO] [stderr] | [INFO] [stderr] 28 | process.input_arg = String::from_str(argument.index(&1).clone()); [INFO] [stderr] | ^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[&str]>` is not implemented for `&{integer}` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index<&{integer}>` for `std::vec::Vec<&str>` [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/main.rs:32:52 [INFO] [stderr] | [INFO] [stderr] 32 | process.output_arg = Some(String::from_str(argument.index(&1).clone())); [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[E0277]: the type `[&str]` cannot be indexed by `&{integer}` [INFO] [stderr] --> src/main.rs:32:70 [INFO] [stderr] | [INFO] [stderr] 32 | process.output_arg = Some(String::from_str(argument.index(&1).clone())); [INFO] [stderr] | ^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[&str]>` is not implemented for `&{integer}` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index<&{integer}>` for `std::vec::Vec<&str>` [INFO] [stderr] [INFO] [stderr] error[E0277]: the type `[&str]` cannot be indexed by `&{integer}` [INFO] [stderr] --> src/main.rs:34:57 [INFO] [stderr] | [INFO] [stderr] 34 | _ => panic!("Unknown argument {}", argument.index(&0)) [INFO] [stderr] | ^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::slice::SliceIndex<[&str]>` is not implemented for `&{integer}` [INFO] [stderr] = note: required because of the requirements on the impl of `std::ops::Index<&{integer}>` for `std::vec::Vec<&str>` [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/process.rs:30:32 [INFO] [stderr] | [INFO] [stderr] 30 | input_arg: String::from_str(""), [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/process.rs:43:32 [INFO] [stderr] | [INFO] [stderr] 43 | return Err(String::from_str("No input file found (option --file=path/to/file.xslg)")); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/process.rs:56:66 [INFO] [stderr] | [INFO] [stderr] 56 | let mut file = try!(File::open(&Path::new(self.input_arg.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/process.rs:67:44 [INFO] [stderr] | [INFO] [stderr] 67 | lines.push(String::from_str(line.trim())); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/parser.rs:153:144 [INFO] [stderr] | [INFO] [stderr] 153 | Some (ref attribute) => { self.parsing_error(format!("Unexpected new line. Attribute {} is not closed", attribute.key).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/parser.rs:226:67 [INFO] [stderr] | [INFO] [stderr] 226 | let mut content = String::from_str(self.buffer.trim()); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:231:101 [INFO] [stderr] | [INFO] [stderr] 231 | let mut attribute = Box::new(Attribute::new(String::from_str("test"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:236:101 [INFO] [stderr] | [INFO] [stderr] 236 | let mut attribute = Box::new(Attribute::new(String::from_str("select"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [INFO] [stderr] [INFO] [stderr] error[E0277]: the type `std::string::String` cannot be indexed by `&std::ops::RangeFrom` [INFO] [stderr] --> src/parser.rs:273:76 [INFO] [stderr] | [INFO] [stderr] 273 | if !self.buffer.is_empty() && (self.buffer.index(&RangeFrom {start: self.buffer.len() - 1}) == "\\") { [INFO] [stderr] | ^^^^^ `std::string::String` cannot be indexed by `&std::ops::RangeFrom` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::Index<&std::ops::RangeFrom>` is not implemented for `std::string::String` [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/parser.rs:310:43 [INFO] [stderr] | [INFO] [stderr] 310 | '@' => { Some(String::from_str("xsl")) }, [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/parser.rs:323:35 [INFO] [stderr] | [INFO] [stderr] 323 | match self.buffer.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/parser.rs:330:40 [INFO] [stderr] | [INFO] [stderr] 330 | if self.buffer.as_slice() == "if" { [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/parser.rs:331:76 [INFO] [stderr] | [INFO] [stderr] 331 | let node_choose = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("choose"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:331:107 [INFO] [stderr] | [INFO] [stderr] 331 | let node_choose = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("choose"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:335:70 [INFO] [stderr] | [INFO] [stderr] 335 | let node_when = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("when"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:335:101 [INFO] [stderr] | [INFO] [stderr] 335 | let node_when = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("when"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:344:75 [INFO] [stderr] | [INFO] [stderr] 344 | let node_otherwise = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("otherwise"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:344:106 [INFO] [stderr] | [INFO] [stderr] 344 | let node_otherwise = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("otherwise"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:352:73 [INFO] [stderr] | [INFO] [stderr] 352 | let node_foreach = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("for-each"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [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/parser.rs:352:104 [INFO] [stderr] | [INFO] [stderr] 352 | let node_foreach = Node::new(self, Some(String::from_str("xsl")), Some(String::from_str("for-each"))); [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] = note: the following trait is implemented but not in scope, perhaps add a `use` for it: [INFO] [stderr] `use std::str::FromStr;` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for type `std::string::String` in the current scope [INFO] [stderr] --> src/parser.rs:428:108 [INFO] [stderr] | [INFO] [stderr] 428 | self.parsing_error(format!("Unexpected character - Expected '[' or '{}'", "{").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/xsl.rs:29:69 [INFO] [stderr] | [INFO] [stderr] 29 | string.push_str(format!(" {}={}", attr.key, attr.value).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/xsl.rs:39:47 [INFO] [stderr] | [INFO] [stderr] 39 | string.push_str(value.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/xsl.rs:66:74 [INFO] [stderr] | [INFO] [stderr] 66 | Some(ref namespace) => string.push_str(format!("{}:", namespace).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/xsl.rs:70:31 [INFO] [stderr] | [INFO] [stderr] 70 | string.push_str(node.name.as_slice()); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 46 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0425, E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error: Could not compile `xslgen`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "61fd2951e8c47edcd591d5c883c412a8178e607fb7eb375125565ee096a1ef5a"` [INFO] running `"docker" "rm" "-f" "61fd2951e8c47edcd591d5c883c412a8178e607fb7eb375125565ee096a1ef5a"` [INFO] [stdout] 61fd2951e8c47edcd591d5c883c412a8178e607fb7eb375125565ee096a1ef5a