[INFO] updating cached repository https://github.com/jonathanmcelroy/freeciv_save_analyzer [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] e686a8ada231fe33f83f32e55438527960bffbcf [INFO] checking jonathanmcelroy/freeciv_save_analyzer against try#e4dba30b9b475d8750370c4dfb49b6541990904d for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonathanmcelroy%2Ffreeciv_save_analyzer" "/workspace/builds/worker-0/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jonathanmcelroy/freeciv_save_analyzer 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/jonathanmcelroy/freeciv_save_analyzer [INFO] finished tweaking git repo https://github.com/jonathanmcelroy/freeciv_save_analyzer [INFO] tweaked toml for git repo https://github.com/jonathanmcelroy/freeciv_save_analyzer written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/jonathanmcelroy/freeciv_save_analyzer already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-0/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+e4dba30b9b475d8750370c4dfb49b6541990904d" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [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-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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] e24b4296829864ca6380f581d8dae12e6aa552402ff6db687ce595c2779f6f37 [INFO] running `"docker" "start" "-a" "e24b4296829864ca6380f581d8dae12e6aa552402ff6db687ce595c2779f6f37"` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking bytes v0.5.4 [INFO] [stderr] Checking combine v4.1.0 [INFO] [stderr] Checking freeciv v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0432]: unresolved import `self::combine::combinator` [INFO] [stderr] --> src/parse/mod.rs:3:20 [INFO] [stderr] | [INFO] [stderr] 3 | use self::combine::combinator::{Many, SepBy}; [INFO] [stderr] | ^^^^^^^^^^ could not find `combinator` in `combine` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `self::combine::primitives` [INFO] [stderr] --> src/parse/mod.rs:4:20 [INFO] [stderr] | [INFO] [stderr] 4 | use self::combine::primitives::{Consumed, Stream}; [INFO] [stderr] | ^^^^^^^^^^ could not find `primitives` in `combine` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:20:24 [INFO] [stderr] | [INFO] [stderr] 20 | fn title_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `alpha_num` in this scope [INFO] [stderr] --> src/parse/mod.rs:21:43 [INFO] [stderr] | [INFO] [stderr] 21 | between(token('['), token(']'), many1(alpha_num())).parse_state(input) [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::alpha_num; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::alpha_num; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:24:25 [INFO] [stderr] | [INFO] [stderr] 24 | fn string_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:25:35 [INFO] [stderr] | [INFO] [stderr] 25 | fn escaped_char_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `string` in this scope [INFO] [stderr] --> src/parse/mod.rs:46:14 [INFO] [stderr] | [INFO] [stderr] 46 | optional(string("_(")) [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::string; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found builtin type `char` [INFO] [stderr] --> src/parse/mod.rs:47:23 [INFO] [stderr] | [INFO] [stderr] 47 | .with(between(char('"'), [INFO] [stderr] | ^^^^ not a function [INFO] [stderr] | [INFO] [stderr] help: possible better candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::char; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found builtin type `char` [INFO] [stderr] --> src/parse/mod.rs:48:23 [INFO] [stderr] | [INFO] [stderr] 48 | char('"'), [INFO] [stderr] | ^^^^ not a function [INFO] [stderr] | [INFO] [stderr] help: possible better candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::char; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found builtin type `char` [INFO] [stderr] --> src/parse/mod.rs:51:24 [INFO] [stderr] | [INFO] [stderr] 51 | .skip(optional(char(')'))).parse_state(input) [INFO] [stderr] | ^^^^ not a function [INFO] [stderr] | [INFO] [stderr] help: possible better candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::char; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:54:27 [INFO] [stderr] | [INFO] [stderr] 54 | fn boolean_parser(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `string` in this scope [INFO] [stderr] --> src/parse/mod.rs:55:5 [INFO] [stderr] | [INFO] [stderr] 55 | string("TRUE").map(|_| Object::Boolean(true)).or(string("FALSE").map(|_| Object::Boolean(false))).parse_state(input) [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::string; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `string` in this scope [INFO] [stderr] --> src/parse/mod.rs:55:54 [INFO] [stderr] | [INFO] [stderr] 55 | string("TRUE").map(|_| Object::Boolean(true)).or(string("FALSE").map(|_| Object::Boolean(false))).parse_state(input) [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::string; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:58:28 [INFO] [stderr] | [INFO] [stderr] 58 | fn wierd_exception(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `string` in this scope [INFO] [stderr] --> src/parse/mod.rs:59:5 [INFO] [stderr] | [INFO] [stderr] 59 | string("$$").with(many1(letter())).map(|string : String| Object::RandomText(string)).parse_state(input) [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::string; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `letter` in this scope [INFO] [stderr] --> src/parse/mod.rs:59:29 [INFO] [stderr] | [INFO] [stderr] 59 | string("$$").with(many1(letter())).map(|string : String| Object::RandomText(string)).parse_state(input) [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::letter; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::letter; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:62:33 [INFO] [stderr] | [INFO] [stderr] 62 | fn single_object_parser(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spaces` in this scope [INFO] [stderr] --> src/parse/mod.rs:63:26 [INFO] [stderr] | [INFO] [stderr] 63 | let integer_parser = spaces().with(many1(digit())).map(|string : String| Object::IntObject(string.parse::().unwrap())); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::spaces; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::spaces; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `digit` in this scope [INFO] [stderr] --> src/parse/mod.rs:63:46 [INFO] [stderr] | [INFO] [stderr] 63 | let integer_parser = spaces().with(many1(digit())).map(|string : String| Object::IntObject(string.parse::().unwrap())); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::digit; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::digit; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:68:25 [INFO] [stderr] | [INFO] [stderr] 68 | fn struct_parser(input: State<&str>) -> ParseResult<(Vec, Vec>), &str> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `self::combine::combinator` [INFO] [stderr] --> src/parse/mod.rs:3:20 [INFO] [stderr] | [INFO] [stderr] 3 | use self::combine::combinator::{Many, SepBy}; [INFO] [stderr] | ^^^^^^^^^^ could not find `combinator` in `combine` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `self::combine::primitives` [INFO] [stderr] --> src/parse/mod.rs:4:20 [INFO] [stderr] | [INFO] [stderr] 4 | use self::combine::primitives::{Consumed, Stream}; [INFO] [stderr] | ^^^^^^^^^^ could not find `primitives` in `combine` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spaces` in this scope [INFO] [stderr] --> src/parse/mod.rs:69:24 [INFO] [stderr] | [INFO] [stderr] 69 | let comma_parser = spaces().with(char(',')).skip(spaces()); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::spaces; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::spaces; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found builtin type `char` [INFO] [stderr] --> src/parse/mod.rs:69:38 [INFO] [stderr] | [INFO] [stderr] 69 | let comma_parser = spaces().with(char(',')).skip(spaces()); [INFO] [stderr] | ^^^^ not a function [INFO] [stderr] | [INFO] [stderr] help: possible better candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::char; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spaces` in this scope [INFO] [stderr] --> src/parse/mod.rs:69:54 [INFO] [stderr] | [INFO] [stderr] 69 | let comma_parser = spaces().with(char(',')).skip(spaces()); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::spaces; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::spaces; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found builtin type `char` [INFO] [stderr] --> src/parse/mod.rs:70:24 [INFO] [stderr] | [INFO] [stderr] 70 | let title_parser = char('{').with(spaces()).with(sep_by(parser(string_parser), comma_parser.clone())); [INFO] [stderr] | ^^^^ not a function [INFO] [stderr] | [INFO] [stderr] help: possible better candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::char; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spaces` in this scope [INFO] [stderr] --> src/parse/mod.rs:70:39 [INFO] [stderr] | [INFO] [stderr] 70 | let title_parser = char('{').with(spaces()).with(sep_by(parser(string_parser), comma_parser.clone())); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::spaces; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::spaces; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spaces` in this scope [INFO] [stderr] --> src/parse/mod.rs:71:27 [INFO] [stderr] | [INFO] [stderr] 71 | let row_parser = many(spaces().with(sep_by(parser(single_object_parser), comma_parser))); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::spaces; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::spaces; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:76:26 [INFO] [stderr] | [INFO] [stderr] 76 | fn object_parser(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:80:30 [INFO] [stderr] | [INFO] [stderr] 80 | fn assignment_parser(input : State<&str>) -> ParseResult<(String, Object), &str> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:84:27 [INFO] [stderr] | [INFO] [stderr] 84 | fn section_parser(input : State<&str>) -> ParseResult<(String, HashMap), &str> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:88:31 [INFO] [stderr] | [INFO] [stderr] 88 | pub fn sections_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/parse/mod.rs:26:26 [INFO] [stderr] | [INFO] [stderr] 26 | let (c, input) = try!(any().parse_lazy(input)); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Result` [INFO] [stderr] --> src/main.rs:4:15 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::{Result}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `parse::*` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use parse::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:20:40 [INFO] [stderr] | [INFO] [stderr] 20 | fn title_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:24:41 [INFO] [stderr] | [INFO] [stderr] 24 | fn string_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:25:51 [INFO] [stderr] | [INFO] [stderr] 25 | fn escaped_char_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:54:43 [INFO] [stderr] | [INFO] [stderr] 54 | fn boolean_parser(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:58:44 [INFO] [stderr] | [INFO] [stderr] 58 | fn wierd_exception(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:62:49 [INFO] [stderr] | [INFO] [stderr] 62 | fn single_object_parser(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:68:41 [INFO] [stderr] | [INFO] [stderr] 68 | fn struct_parser(input: State<&str>) -> ParseResult<(Vec, Vec>), &str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:76:42 [INFO] [stderr] | [INFO] [stderr] 76 | fn object_parser(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:80:46 [INFO] [stderr] | [INFO] [stderr] 80 | fn assignment_parser(input : State<&str>) -> ParseResult<(String, Object), &str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:84:43 [INFO] [stderr] | [INFO] [stderr] 84 | fn section_parser(input : State<&str>) -> ParseResult<(String, HashMap), &str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:88:47 [INFO] [stderr] | [INFO] [stderr] 88 | pub fn sections_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error: aborting due to 41 previous errors; 3 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0423, E0425, E0432, E0581. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `freeciv`. [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[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:20:24 [INFO] [stderr] | [INFO] [stderr] 20 | fn title_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `alpha_num` in this scope [INFO] [stderr] --> src/parse/mod.rs:21:43 [INFO] [stderr] | [INFO] [stderr] 21 | between(token('['), token(']'), many1(alpha_num())).parse_state(input) [INFO] [stderr] | ^^^^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::alpha_num; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::alpha_num; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:24:25 [INFO] [stderr] | [INFO] [stderr] 24 | fn string_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:25:35 [INFO] [stderr] | [INFO] [stderr] 25 | fn escaped_char_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `string` in this scope [INFO] [stderr] --> src/parse/mod.rs:46:14 [INFO] [stderr] | [INFO] [stderr] 46 | optional(string("_(")) [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::string; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found builtin type `char` [INFO] [stderr] --> src/parse/mod.rs:47:23 [INFO] [stderr] | [INFO] [stderr] 47 | .with(between(char('"'), [INFO] [stderr] | ^^^^ not a function [INFO] [stderr] | [INFO] [stderr] help: possible better candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::char; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found builtin type `char` [INFO] [stderr] --> src/parse/mod.rs:48:23 [INFO] [stderr] | [INFO] [stderr] 48 | char('"'), [INFO] [stderr] | ^^^^ not a function [INFO] [stderr] | [INFO] [stderr] help: possible better candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::char; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found builtin type `char` [INFO] [stderr] --> src/parse/mod.rs:51:24 [INFO] [stderr] | [INFO] [stderr] 51 | .skip(optional(char(')'))).parse_state(input) [INFO] [stderr] | ^^^^ not a function [INFO] [stderr] | [INFO] [stderr] help: possible better candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::char; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:54:27 [INFO] [stderr] | [INFO] [stderr] 54 | fn boolean_parser(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `string` in this scope [INFO] [stderr] --> src/parse/mod.rs:55:5 [INFO] [stderr] | [INFO] [stderr] 55 | string("TRUE").map(|_| Object::Boolean(true)).or(string("FALSE").map(|_| Object::Boolean(false))).parse_state(input) [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::string; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `string` in this scope [INFO] [stderr] --> src/parse/mod.rs:55:54 [INFO] [stderr] | [INFO] [stderr] 55 | string("TRUE").map(|_| Object::Boolean(true)).or(string("FALSE").map(|_| Object::Boolean(false))).parse_state(input) [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::string; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:58:28 [INFO] [stderr] | [INFO] [stderr] 58 | fn wierd_exception(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `string` in this scope [INFO] [stderr] --> src/parse/mod.rs:59:5 [INFO] [stderr] | [INFO] [stderr] 59 | string("$$").with(many1(letter())).map(|string : String| Object::RandomText(string)).parse_state(input) [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::string; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `letter` in this scope [INFO] [stderr] --> src/parse/mod.rs:59:29 [INFO] [stderr] | [INFO] [stderr] 59 | string("$$").with(many1(letter())).map(|string : String| Object::RandomText(string)).parse_state(input) [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::letter; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::letter; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:62:33 [INFO] [stderr] | [INFO] [stderr] 62 | fn single_object_parser(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spaces` in this scope [INFO] [stderr] --> src/parse/mod.rs:63:26 [INFO] [stderr] | [INFO] [stderr] 63 | let integer_parser = spaces().with(many1(digit())).map(|string : String| Object::IntObject(string.parse::().unwrap())); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::spaces; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::spaces; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `digit` in this scope [INFO] [stderr] --> src/parse/mod.rs:63:46 [INFO] [stderr] | [INFO] [stderr] 63 | let integer_parser = spaces().with(many1(digit())).map(|string : String| Object::IntObject(string.parse::().unwrap())); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::digit; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::digit; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:68:25 [INFO] [stderr] | [INFO] [stderr] 68 | fn struct_parser(input: State<&str>) -> ParseResult<(Vec, Vec>), &str> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spaces` in this scope [INFO] [stderr] --> src/parse/mod.rs:69:24 [INFO] [stderr] | [INFO] [stderr] 69 | let comma_parser = spaces().with(char(',')).skip(spaces()); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::spaces; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::spaces; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found builtin type `char` [INFO] [stderr] --> src/parse/mod.rs:69:38 [INFO] [stderr] | [INFO] [stderr] 69 | let comma_parser = spaces().with(char(',')).skip(spaces()); [INFO] [stderr] | ^^^^ not a function [INFO] [stderr] | [INFO] [stderr] help: possible better candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::char; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spaces` in this scope [INFO] [stderr] --> src/parse/mod.rs:69:54 [INFO] [stderr] | [INFO] [stderr] 69 | let comma_parser = spaces().with(char(',')).skip(spaces()); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::spaces; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::spaces; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0423]: expected function, found builtin type `char` [INFO] [stderr] --> src/parse/mod.rs:70:24 [INFO] [stderr] | [INFO] [stderr] 70 | let title_parser = char('{').with(spaces()).with(sep_by(parser(string_parser), comma_parser.clone())); [INFO] [stderr] | ^^^^ not a function [INFO] [stderr] | [INFO] [stderr] help: possible better candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::char; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spaces` in this scope [INFO] [stderr] --> src/parse/mod.rs:70:39 [INFO] [stderr] | [INFO] [stderr] 70 | let title_parser = char('{').with(spaces()).with(sep_by(parser(string_parser), comma_parser.clone())); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::spaces; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::spaces; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spaces` in this scope [INFO] [stderr] --> src/parse/mod.rs:71:27 [INFO] [stderr] | [INFO] [stderr] 71 | let row_parser = many(spaces().with(sep_by(parser(single_object_parser), comma_parser))); [INFO] [stderr] | ^^^^^^ not found in this scope [INFO] [stderr] | [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::byte::spaces; [INFO] [stderr] | [INFO] [stderr] 2 | use parse::combine::parser::char::spaces; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:76:26 [INFO] [stderr] | [INFO] [stderr] 76 | fn object_parser(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:80:30 [INFO] [stderr] | [INFO] [stderr] 80 | fn assignment_parser(input : State<&str>) -> ParseResult<(String, Object), &str> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:84:27 [INFO] [stderr] | [INFO] [stderr] 84 | fn section_parser(input : State<&str>) -> ParseResult<(String, HashMap), &str> { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:88:31 [INFO] [stderr] | [INFO] [stderr] 88 | pub fn sections_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `State` in this scope [INFO] [stderr] --> src/parse/mod.rs:102:34 [INFO] [stderr] | [INFO] [stderr] 102 | fn test) -> ParseResult>(my_parser : F, input : &str, output : A) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stderr] --> src/parse/mod.rs:26:26 [INFO] [stderr] | [INFO] [stderr] 26 | let (c, input) = try!(any().parse_lazy(input)); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `Result` [INFO] [stderr] --> src/main.rs:4:15 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::{Result}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `sections_parser` [INFO] [stderr] --> src/parse/mod.rs:98:83 [INFO] [stderr] | [INFO] [stderr] 98 | use super::{assignment_parser, boolean_parser, object_parser, section_parser, sections_parser, single_object_parser, string_parser, struct_parser, title_parser, wierd_exception}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `parse::*` [INFO] [stderr] --> src/main.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 8 | use parse::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:20:40 [INFO] [stderr] | [INFO] [stderr] 20 | fn title_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:24:41 [INFO] [stderr] | [INFO] [stderr] 24 | fn string_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:25:51 [INFO] [stderr] | [INFO] [stderr] 25 | fn escaped_char_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:54:43 [INFO] [stderr] | [INFO] [stderr] 54 | fn boolean_parser(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:58:44 [INFO] [stderr] | [INFO] [stderr] 58 | fn wierd_exception(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:62:49 [INFO] [stderr] | [INFO] [stderr] 62 | fn single_object_parser(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:68:41 [INFO] [stderr] | [INFO] [stderr] 68 | fn struct_parser(input: State<&str>) -> ParseResult<(Vec, Vec>), &str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:76:42 [INFO] [stderr] | [INFO] [stderr] 76 | fn object_parser(input : State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:80:46 [INFO] [stderr] | [INFO] [stderr] 80 | fn assignment_parser(input : State<&str>) -> ParseResult<(String, Object), &str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:84:43 [INFO] [stderr] | [INFO] [stderr] 84 | fn section_parser(input : State<&str>) -> ParseResult<(String, HashMap), &str> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error[E0581]: return type references an anonymous lifetime which is not constrained by the fn input types [INFO] [stderr] --> src/parse/mod.rs:88:47 [INFO] [stderr] | [INFO] [stderr] 88 | pub fn sections_parser(input: State<&str>) -> ParseResult { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: lifetimes appearing in an associated type are not considered constrained [INFO] [stderr] [INFO] [stderr] error: internal compiler error: src/librustc_typeck/astconv.rs:1389: anonymous bound region BrAnon(0) in binding but not trait ref [INFO] [stderr] --> src/parse/mod.rs:102:50 [INFO] [stderr] | [INFO] [stderr] 102 | fn test) -> ParseResult>(my_parser : F, input : &str, output : A) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] thread 'rustc' panicked at 'Box', /rustc/e4dba30b9b475d8750370c4dfb49b6541990904d/src/libstd/macros.rs:13:23 [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x7f5d01507ab4 - backtrace::backtrace::libunwind::trace::h6f1fdce296b4568c [INFO] [stderr] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86 [INFO] [stderr] 1: 0x7f5d01507ab4 - backtrace::backtrace::trace_unsynchronized::h0824f4cb76b782a8 [INFO] [stderr] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66 [INFO] [stderr] 2: 0x7f5d01507ab4 - std::sys_common::backtrace::_print_fmt::hc9ad027a2ec1d486 [INFO] [stderr] at src/libstd/sys_common/backtrace.rs:78 [INFO] [stderr] 3: 0x7f5d01507ab4 - ::fmt::hc92f9fae3f41d466 [INFO] [stderr] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stderr] 4: 0x7f5d015460bc - core::fmt::write::h6e3f1a0635b4e386 [INFO] [stderr] at src/libcore/fmt/mod.rs:1069 [INFO] [stderr] 5: 0x7f5d014f94d3 - std::io::Write::write_fmt::he392f419b7f87fef [INFO] [stderr] at src/libstd/io/mod.rs:1504 [INFO] [stderr] 6: 0x7f5d0150cab5 - std::sys_common::backtrace::_print::hf2161343b596ab76 [INFO] [stderr] at src/libstd/sys_common/backtrace.rs:62 [INFO] [stderr] 7: 0x7f5d0150cab5 - std::sys_common::backtrace::print::hcbfa657355778d58 [INFO] [stderr] at src/libstd/sys_common/backtrace.rs:49 [INFO] [stderr] 8: 0x7f5d0150cab5 - std::panicking::default_hook::{{closure}}::he53abf341150e4be [INFO] [stderr] at src/libstd/panicking.rs:198 [INFO] [stderr] 9: 0x7f5d0150c7f2 - std::panicking::default_hook::hbca798dce458d477 [INFO] [stderr] at src/libstd/panicking.rs:218 [INFO] [stderr] 10: 0x7f5d01aaa3a3 - rustc_driver::report_ice::hd67ceb237ce76cfa [INFO] [stderr] 11: 0x7f5d0150d235 - std::panicking::rust_panic_with_hook::h8cc81269affb1635 [INFO] [stderr] at src/libstd/panicking.rs:515 [INFO] [stderr] 12: 0x7f5d02446e73 - std::panicking::begin_panic::h249f57b097e7c6b5 [INFO] [stderr] 13: 0x7f5d024d940c - rustc_errors::HandlerInner::span_bug::haa5531a70152d36c [INFO] [stderr] 14: 0x7f5d024d9b60 - rustc_errors::Handler::span_bug::h0cf812fa6b501d92 [INFO] [stderr] 15: 0x7f5d0263ecf9 - rustc_middle::util::bug::opt_span_bug_fmt::{{closure}}::h517e038ea1b43010 [INFO] [stderr] 16: 0x7f5d0263e8db - rustc_middle::ty::context::tls::with_opt::{{closure}}::h5a0c556ab5a0f854 [INFO] [stderr] 17: 0x7f5d0263e882 - rustc_middle::ty::context::tls::with_opt::h9abfe3a1ddf4db1f [INFO] [stderr] 18: 0x7f5d0263ebe8 - rustc_middle::util::bug::opt_span_bug_fmt::h8666039ec972a83e [INFO] [stderr] 19: 0x7f5d0263eb9a - rustc_middle::util::bug::span_bug_fmt::ha544c6ea79a37ea7 [INFO] [stderr] 20: 0x7f5d025b0f93 - ::add_predicates_for_ast_type_binding::h5acedd2a882b68c7 [INFO] [stderr] 21: 0x7f5d025ad329 - ::instantiate_poly_trait_ref_inner::h3a2d934fe725d877 [INFO] [stderr] 22: 0x7f5d025ade02 - ::add_bounds::h86a22e9b3a3cfd21 [INFO] [stderr] 23: 0x7f5d025adfea - ::compute_bounds::h0666e10b784c1bb0 [INFO] [stderr] 24: 0x7f5d02560b4d - rustc_typeck::collect::explicit_predicates_of::h179d15db38f55e78 [INFO] [stderr] 25: 0x7f5d025cd10e - rustc_middle::ty::query:: for rustc_middle::ty::query::queries::explicit_predicates_of>::compute::hff1324c0d33908bf [INFO] [stderr] 26: 0x7f5d02472ad1 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::he1ab5912fc1ef5ef [INFO] [stderr] 27: 0x7f5d0260d438 - rustc_query_system::query::plumbing::get_query::h857b9d8cde47bb74 [INFO] [stderr] 28: 0x7f5d0255fa99 - rustc_typeck::collect::predicates_defined_on::h97e053ca6d5d801b [INFO] [stderr] 29: 0x7f5d025ccdae - rustc_middle::ty::query:: for rustc_middle::ty::query::queries::predicates_defined_on>::compute::h28afec417ba87611 [INFO] [stderr] 30: 0x7f5d024702c1 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::hc1caf8ea12c8465e [INFO] [stderr] 31: 0x7f5d026339e8 - rustc_query_system::query::plumbing::get_query::he68ab26f2b2266cc [INFO] [stderr] 32: 0x7f5d0255fd36 - rustc_typeck::collect::predicates_of::haa7f0585af477f1b [INFO] [stderr] 33: 0x7f5d025cb70b - rustc_middle::ty::query:: for rustc_middle::ty::query::queries::predicates_of>::compute::hbc8e10bf0318868d [INFO] [stderr] 34: 0x7f5d02467ec1 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::h57bb0c252c9a0672 [INFO] [stderr] 35: 0x7f5d025e2415 - rustc_query_system::query::plumbing::get_query::h1aff64a8bc0760a3 [INFO] [stderr] 36: 0x7f5d02559314 - ::visit_item::hc098f976e4e932ff [INFO] [stderr] 37: 0x7f5d0249f3c8 - rustc_middle::hir::map::Map::visit_item_likes_in_module::hb7b54d4b779b1a4f [INFO] [stderr] 38: 0x7f5d02558ad4 - rustc_typeck::collect::collect_mod_item_types::h6768543721ce4569 [INFO] [stderr] 39: 0x7f5d025cd032 - rustc_middle::ty::query:: for rustc_middle::ty::query::queries::collect_mod_item_types>::compute::hdaa7341757043932 [INFO] [stderr] 40: 0x7f5d024736a4 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::he1d68ebe417d1060 [INFO] [stderr] 41: 0x7f5d025e5987 - rustc_query_system::query::plumbing::get_query::h1ba179b1225c8765 [INFO] [stderr] 42: 0x7f5d025cdcee - rustc_query_system::query::plumbing::ensure_query::h25438af57c0b323a [INFO] [stderr] 43: 0x7f5d0256c8d8 - rustc_typeck::check_crate::h6ee29bfd02a67efc [INFO] [stderr] 44: 0x7f5d01dfbb94 - rustc_interface::passes::analysis::h7a245597c5e2ee9a [INFO] [stderr] 45: 0x7f5d01ac424b - rustc_middle::ty::query:: for rustc_middle::ty::query::queries::analysis>::compute::hd76410aac2d07a1b [INFO] [stderr] 46: 0x7f5d01bea1d7 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::hbb39868f0fe83861 [INFO] [stderr] 47: 0x7f5d01ac5172 - rustc_query_system::query::plumbing::get_query::h0e3f18a24f3a3513 [INFO] [stderr] 48: 0x7f5d01c2a267 - rustc_middle::ty::context::tls::enter_global::h3346ce00f24568e2 [INFO] [stderr] 49: 0x7f5d01c000f5 - rustc_interface::interface::run_compiler_in_existing_thread_pool::h6cebd53ea4feeb37 [INFO] [stderr] 50: 0x7f5d01ab482d - scoped_tls::ScopedKey::set::hae6ac45fdd4a7c06 [INFO] [stderr] 51: 0x7f5d01ab11b2 - rustc_ast::attr::with_globals::hde7e93fc7be3a957 [INFO] [stderr] 52: 0x7f5d01abc7a1 - std::sys_common::backtrace::__rust_begin_short_backtrace::hfcbcc0a560859305 [INFO] [stderr] 53: 0x7f5d01c0325e - core::ops::function::FnOnce::call_once{{vtable.shim}}::hfbdbba5ac7e72ccc [INFO] [stderr] 54: 0x7f5d0151d2aa - as core::ops::function::FnOnce>::call_once::he1e18e86b0f433e4 [INFO] [stderr] at /rustc/e4dba30b9b475d8750370c4dfb49b6541990904d/src/liballoc/boxed.rs:1008 [INFO] [stderr] 55: 0x7f5d0151d2aa - as core::ops::function::FnOnce>::call_once::h48a7c38b2b7ee853 [INFO] [stderr] at /rustc/e4dba30b9b475d8750370c4dfb49b6541990904d/src/liballoc/boxed.rs:1008 [INFO] [stderr] 56: 0x7f5d0151d2aa - std::sys::unix::thread::Thread::new::thread_start::h153bafe8b044df62 [INFO] [stderr] at src/libstd/sys/unix/thread.rs:87 [INFO] [stderr] 57: 0x7f5d012816db - start_thread [INFO] [stderr] 58: 0x7f5d00b9e88f - __clone [INFO] [stderr] 59: 0x0 - [INFO] [stderr] [INFO] [stderr] note: the compiler unexpectedly panicked. this is a bug. [INFO] [stderr] [INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports [INFO] [stderr] [INFO] [stderr] note: rustc 1.44.0-nightly (e4dba30b9 2020-04-21) running on x86_64-unknown-linux-gnu [INFO] [stderr] [INFO] [stderr] note: compiler flags: -C debuginfo=2 [INFO] [stderr] [INFO] [stderr] note: some of the compiler flags provided by cargo are hidden [INFO] [stderr] [INFO] [stderr] query stack during panic: [INFO] [stderr] #0 [explicit_predicates_of] processing `parse::tests::test` [INFO] [stderr] #1 [predicates_defined_on] processing `parse::tests::test` [INFO] [stderr] #2 [predicates_of] processing `parse::tests::test` [INFO] [stderr] #3 [collect_mod_item_types] collecting item types in module `parse::tests` [INFO] [stderr] #4 [analysis] running analysis passes on this crate [INFO] [stderr] end of query stack [INFO] [stderr] error: aborting due to 43 previous errors; 4 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0412, E0423, E0425, E0432, E0581. [INFO] [stderr] For more information about an error, try `rustc --explain E0412`. [INFO] [stderr] error: could not compile `freeciv`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "e24b4296829864ca6380f581d8dae12e6aa552402ff6db687ce595c2779f6f37"` [INFO] running `"docker" "rm" "-f" "e24b4296829864ca6380f581d8dae12e6aa552402ff6db687ce595c2779f6f37"` [INFO] [stdout] e24b4296829864ca6380f581d8dae12e6aa552402ff6db687ce595c2779f6f37