[INFO] updating cached repository https://github.com/Peekmo/rust-xslgen [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 97a8c1c096ce79e5b63e21cff0451075f5a91366 [INFO] checking Peekmo/rust-xslgen against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPeekmo%2Frust-xslgen" "/workspace/builds/worker-1/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Peekmo/rust-xslgen on toolchain e4dba30b9b475d8750370c4dfb49b6541990904d [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/Peekmo/rust-xslgen [INFO] finished tweaking git repo https://github.com/Peekmo/rust-xslgen [INFO] tweaked toml for git repo https://github.com/Peekmo/rust-xslgen written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/Peekmo/rust-xslgen already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 46ddf54d24b73441c92b49a055aff98e8e415eab389a5cf3b8a2d80c3d99b262 [INFO] running `"docker" "start" "-a" "46ddf54d24b73441c92b49a055aff98e8e415eab389a5cf3b8a2d80c3d99b262"` [INFO] [stderr] Checking xslgen v0.0.1 (/opt/rustwide/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: 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[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] | [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] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/process.rs:56:24 [INFO] [stderr] | [INFO] [stderr] 56 | let mut file = try!(File::open(&Path::new(self.input_arg.as_slice()))); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [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[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] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/process.rs:57:23 [INFO] [stderr] | [INFO] [stderr] 57 | let content = try!(file.read_to_string()); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0734]: 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[E0734]: 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[E0734]: 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[E0734]: 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[E0734]: 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[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] | [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] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/process.rs:56:24 [INFO] [stderr] | [INFO] [stderr] 56 | let mut file = try!(File::open(&Path::new(self.input_arg.as_slice()))); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/process.rs:57:23 [INFO] [stderr] | [INFO] [stderr] 57 | let content = try!(file.read_to_string()); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] error[E0734]: 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[E0734]: 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[E0734]: 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[E0734]: 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[E0734]: 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[E0277]: the type `[&str]` cannot be indexed by `&{integer}` [INFO] [stderr] --> src/main.rs:26:31 [INFO] [stderr] | [INFO] [stderr] 26 | match *argument.index(&0) { [INFO] [stderr] | -^ [INFO] [stderr] | | [INFO] [stderr] | slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | help: consider removing the leading `&`-reference [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 struct `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:69 [INFO] [stderr] | [INFO] [stderr] 28 | process.input_arg = String::from_str(argument.index(&1).clone()); [INFO] [stderr] | -^ [INFO] [stderr] | | [INFO] [stderr] | slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | help: consider removing the leading `&`-reference [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 struct `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:76 [INFO] [stderr] | [INFO] [stderr] 32 | process.output_arg = Some(String::from_str(argument.index(&1).clone())); [INFO] [stderr] | -^ [INFO] [stderr] | | [INFO] [stderr] | slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | help: consider removing the leading `&`-reference [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:63 [INFO] [stderr] | [INFO] [stderr] 34 | _ => panic!("Unknown argument {}", argument.index(&0)) [INFO] [stderr] | -^ [INFO] [stderr] | | [INFO] [stderr] | slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | help: consider removing the leading `&`-reference [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 struct `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 struct `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 struct `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] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_str` found for struct `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 struct `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] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0277]: the type `[&str]` cannot be indexed by `&{integer}` [INFO] [stderr] --> src/main.rs:26:31 [INFO] [stderr] | [INFO] [stderr] 26 | match *argument.index(&0) { [INFO] [stderr] | -^ [INFO] [stderr] | | [INFO] [stderr] | slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | help: consider removing the leading `&`-reference [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 struct `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:69 [INFO] [stderr] | [INFO] [stderr] 28 | process.input_arg = String::from_str(argument.index(&1).clone()); [INFO] [stderr] | -^ [INFO] [stderr] | | [INFO] [stderr] | slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | help: consider removing the leading `&`-reference [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 struct `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[E0599]: no function or associated item named `from_str` found for struct `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[E0277]: the type `[&str]` cannot be indexed by `&{integer}` [INFO] [stderr] --> src/main.rs:32:76 [INFO] [stderr] | [INFO] [stderr] 32 | process.output_arg = Some(String::from_str(argument.index(&1).clone())); [INFO] [stderr] | -^ [INFO] [stderr] | | [INFO] [stderr] | slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | help: consider removing the leading `&`-reference [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 struct `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 struct `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[E0277]: the type `[&str]` cannot be indexed by `&{integer}` [INFO] [stderr] --> src/main.rs:34:63 [INFO] [stderr] | [INFO] [stderr] 34 | _ => panic!("Unknown argument {}", argument.index(&0)) [INFO] [stderr] | -^ [INFO] [stderr] | | [INFO] [stderr] | slice indices are of type `usize` or ranges of `usize` [INFO] [stderr] | help: consider removing the leading `&`-reference [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 struct `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 function or associated item named `from_str` found for struct `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 struct `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 struct `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] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/process.rs:56:66 [INFO] [stderr] | [INFO] [stderr] 56 | let mut file = try!(File::open(&Path::new(self.input_arg.as_slice()))); [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_str` found for struct `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 struct `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] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_str` found for struct `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 struct `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 struct `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 struct `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 struct `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 struct `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 struct `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 struct `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 struct `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] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/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] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/xsl.rs:29:69 [INFO] [stderr] | [INFO] [stderr] 29 | string.push_str(format!(" {}={}", attr.key, attr.value).as_slice()); [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for reference `&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] | ^^^^^^^^ method not found in `&std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_str` found for struct `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 struct `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 struct `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[E0599]: no method named `as_slice` found for struct `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] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/xsl.rs:70:31 [INFO] [stderr] | [INFO] [stderr] 70 | string.push_str(node.name.as_slice()); [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [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: aborting due to 46 previous errors; 4 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0425, E0432, E0599, E0734. [INFO] [stderr] For more information about an error, try `rustc --explain E0277`. [INFO] [stderr] error[E0599]: no function or associated item named `from_str` found for struct `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 struct `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] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error: could not compile `xslgen`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `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] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no function or associated item named `from_str` found for struct `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 struct `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 struct `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 struct `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 struct `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 struct `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 struct `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 struct `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 struct `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] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/xsl.rs:29:69 [INFO] [stderr] | [INFO] [stderr] 29 | string.push_str(format!(" {}={}", attr.key, attr.value).as_slice()); [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for reference `&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] | ^^^^^^^^ method not found in `&std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/xsl.rs:66:74 [INFO] [stderr] | [INFO] [stderr] 66 | Some(ref namespace) => string.push_str(format!("{}:", namespace).as_slice()), [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `as_slice` found for struct `std::string::String` in the current scope [INFO] [stderr] --> src/xsl.rs:70:31 [INFO] [stderr] | [INFO] [stderr] 70 | string.push_str(node.name.as_slice()); [INFO] [stderr] | ^^^^^^^^ method not found in `std::string::String` [INFO] [stderr] [INFO] [stderr] error: aborting due to 46 previous errors; 4 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0277, E0425, E0432, E0599, E0734. [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" "46ddf54d24b73441c92b49a055aff98e8e415eab389a5cf3b8a2d80c3d99b262"` [INFO] running `"docker" "rm" "-f" "46ddf54d24b73441c92b49a055aff98e8e415eab389a5cf3b8a2d80c3d99b262"` [INFO] [stdout] 46ddf54d24b73441c92b49a055aff98e8e415eab389a5cf3b8a2d80c3d99b262