[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 master#45d050cde277b22a755847338f2acc2c7b834141 for pr-71393 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonathanmcelroy%2Ffreeciv_save_analyzer" "/workspace/builds/worker-2/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jonathanmcelroy/freeciv_save_analyzer on toolchain 45d050cde277b22a755847338f2acc2c7b834141 [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "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-2/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" "+45d050cde277b22a755847338f2acc2c7b834141" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-2/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" "+45d050cde277b22a755847338f2acc2c7b834141" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "+45d050cde277b22a755847338f2acc2c7b834141" "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] b86d3f26325a6da339ea5cc3191597cd24cd1707d669f0249872ed1b78ea126e [INFO] running `"docker" "start" "-a" "b86d3f26325a6da339ea5cc3191597cd24cd1707d669f0249872ed1b78ea126e"` [INFO] [stderr] Compiling memchr v2.3.3 [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[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[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[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: 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[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/45d050cde277b22a755847338f2acc2c7b834141/src/libstd/macros.rs:13:23 [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x7f8fced76ab4 - backtrace::backtrace::libunwind::trace::hb657e419eb382f5a [INFO] [stderr] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/libunwind.rs:86 [INFO] [stderr] 1: 0x7f8fced76ab4 - backtrace::backtrace::trace_unsynchronized::h63de2160a81d17d0 [INFO] [stderr] at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.46/src/backtrace/mod.rs:66 [INFO] [stderr] 2: 0x7f8fced76ab4 - std::sys_common::backtrace::_print_fmt::hc542595b8774416c [INFO] [stderr] at src/libstd/sys_common/backtrace.rs:78 [INFO] [stderr] 3: 0x7f8fced76ab4 - ::fmt::h8b5627db94fbf233 [INFO] [stderr] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stderr] 4: 0x7f8fcedb50bc - core::fmt::write::h7b159f05674a9488 [INFO] [stderr] at src/libcore/fmt/mod.rs:1069 [INFO] [stderr] 5: 0x7f8fced684d3 - std::io::Write::write_fmt::h8379227660cddc2e [INFO] [stderr] at src/libstd/io/mod.rs:1504 [INFO] [stderr] 6: 0x7f8fced7bab5 - std::sys_common::backtrace::_print::hb3b286bfcc94e0bc [INFO] [stderr] at src/libstd/sys_common/backtrace.rs:62 [INFO] [stderr] 7: 0x7f8fced7bab5 - std::sys_common::backtrace::print::hd75a13b009bc2bde [INFO] [stderr] at src/libstd/sys_common/backtrace.rs:49 [INFO] [stderr] 8: 0x7f8fced7bab5 - std::panicking::default_hook::{{closure}}::h95885250e71c9db2 [INFO] [stderr] at src/libstd/panicking.rs:198 [INFO] [stderr] 9: 0x7f8fced7b7f2 - std::panicking::default_hook::h9c7a080b2c36bec1 [INFO] [stderr] at src/libstd/panicking.rs:218 [INFO] [stderr] 10: 0x7f8fcf319373 - rustc_driver::report_ice::hdb918472d60ee34f [INFO] [stderr] 11: 0x7f8fced7c235 - std::panicking::rust_panic_with_hook::h3a55f8a9f7c957a1 [INFO] [stderr] at src/libstd/panicking.rs:515 [INFO] [stderr] 12: 0x7f8fcfccc503 - std::panicking::begin_panic::h13235615195eb536 [INFO] [stderr] 13: 0x7f8fcfd4623c - rustc_errors::HandlerInner::span_bug::h14c0818908b5bcdc [INFO] [stderr] 14: 0x7f8fcfd46990 - rustc_errors::Handler::span_bug::h49b5d969cd04513b [INFO] [stderr] 15: 0x7f8fcfeabd09 - rustc_middle::util::bug::opt_span_bug_fmt::{{closure}}::heb17bc3254614155 [INFO] [stderr] 16: 0x7f8fcfeab8eb - rustc_middle::ty::context::tls::with_opt::{{closure}}::haa79fa730e8c9638 [INFO] [stderr] 17: 0x7f8fcfeab892 - rustc_middle::ty::context::tls::with_opt::h2a1b47dfec82ad99 [INFO] [stderr] 18: 0x7f8fcfeabbf8 - rustc_middle::util::bug::opt_span_bug_fmt::h8855116b3052b7b6 [INFO] [stderr] 19: 0x7f8fcfeabbaa - rustc_middle::util::bug::span_bug_fmt::he7a0a6f13897096a [INFO] [stderr] 20: 0x7f8fcfe1dfa3 - ::add_predicates_for_ast_type_binding::h2f4ca37b0e0aed6b [INFO] [stderr] 21: 0x7f8fcfe1a339 - ::instantiate_poly_trait_ref_inner::h9ab15c37edefb886 [INFO] [stderr] 22: 0x7f8fcfe1ae12 - ::add_bounds::h491af241e06196ac [INFO] [stderr] 23: 0x7f8fcfe1affa - ::compute_bounds::h9bb5f611430d5d00 [INFO] [stderr] 24: 0x7f8fcfdcdd7d - rustc_typeck::collect::explicit_predicates_of::h49f497f2c3ac1e42 [INFO] [stderr] 25: 0x7f8fcfe3a11e - rustc_middle::ty::query:: for rustc_middle::ty::query::queries::explicit_predicates_of>::compute::h7abf514e64d14ef1 [INFO] [stderr] 26: 0x7f8fcfcb43a1 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::h508730449d1f4e2c [INFO] [stderr] 27: 0x7f8fcfe97ac8 - rustc_query_system::query::plumbing::get_query::hc2b94edab5b66e37 [INFO] [stderr] 28: 0x7f8fcfdcccc9 - rustc_typeck::collect::predicates_defined_on::h6d013bb7bfae0b44 [INFO] [stderr] 29: 0x7f8fcfe39dbe - rustc_middle::ty::query:: for rustc_middle::ty::query::queries::predicates_defined_on>::compute::h0d14a934e2028075 [INFO] [stderr] 30: 0x7f8fcfcbf971 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::hcf85937c755d3697 [INFO] [stderr] 31: 0x7f8fcfea0db8 - rustc_query_system::query::plumbing::get_query::hdeb20659608eb780 [INFO] [stderr] 32: 0x7f8fcfdccf66 - rustc_typeck::collect::predicates_of::h267bf5eed67f070a [INFO] [stderr] 33: 0x7f8fcfe3871b - rustc_middle::ty::query:: for rustc_middle::ty::query::queries::predicates_of>::compute::hbe5e639a457e9575 [INFO] [stderr] 34: 0x7f8fcfcbe281 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::hb53bb337bd2dbf7c [INFO] [stderr] 35: 0x7f8fcfe8b005 - rustc_query_system::query::plumbing::get_query::hb765813613495e01 [INFO] [stderr] 36: 0x7f8fcfdc6544 - ::visit_item::hfad51b67da5222b0 [INFO] [stderr] 37: 0x7f8fcfd0af08 - rustc_middle::hir::map::Map::visit_item_likes_in_module::h26bad595c115c7bd [INFO] [stderr] 38: 0x7f8fcfdc5d04 - rustc_typeck::collect::collect_mod_item_types::he59f236c30878def [INFO] [stderr] 39: 0x7f8fcfe3a042 - rustc_middle::ty::query:: for rustc_middle::ty::query::queries::collect_mod_item_types>::compute::h0457c96a92f5201c [INFO] [stderr] 40: 0x7f8fcfcbf3d4 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::hc8170847df65a1aa [INFO] [stderr] 41: 0x7f8fcfe675e7 - rustc_query_system::query::plumbing::get_query::h64e30caabd184845 [INFO] [stderr] 42: 0x7f8fcfe3b85e - rustc_query_system::query::plumbing::ensure_query::hf154cef3c5e97e0b [INFO] [stderr] 43: 0x7f8fcfdd9b58 - rustc_typeck::check_crate::h42f4a0e0f29323ca [INFO] [stderr] 44: 0x7f8fcf66afd4 - rustc_interface::passes::analysis::hbdb4aa4f4ca31f76 [INFO] [stderr] 45: 0x7f8fcf332f3b - rustc_middle::ty::query:: for rustc_middle::ty::query::queries::analysis>::compute::h995e1e792271b010 [INFO] [stderr] 46: 0x7f8fcf455ab7 - rustc_query_system::dep_graph::graph::DepGraph::with_task_impl::hf9100c6f20b019f0 [INFO] [stderr] 47: 0x7f8fcf333e62 - rustc_query_system::query::plumbing::get_query::h03e4c606704e06eb [INFO] [stderr] 48: 0x7f8fcf4943f7 - rustc_middle::ty::context::tls::enter_global::h61b4c697fa1f5971 [INFO] [stderr] 49: 0x7f8fcf46bda5 - rustc_interface::interface::run_compiler_in_existing_thread_pool::hf832a8853a79dfb7 [INFO] [stderr] 50: 0x7f8fcf32317d - scoped_tls::ScopedKey::set::h3824252c2dcdc56b [INFO] [stderr] 51: 0x7f8fcf3200f2 - rustc_ast::attr::with_globals::h98de9d996090c319 [INFO] [stderr] 52: 0x7f8fcf32b911 - std::sys_common::backtrace::__rust_begin_short_backtrace::hbc284f8d1fcbba60 [INFO] [stderr] 53: 0x7f8fcf46e13e - core::ops::function::FnOnce::call_once{{vtable.shim}}::h2274a3685e4cb275 [INFO] [stderr] 54: 0x7f8fced8c2aa - as core::ops::function::FnOnce>::call_once::hffcdfba5309130c2 [INFO] [stderr] at /rustc/45d050cde277b22a755847338f2acc2c7b834141/src/liballoc/boxed.rs:1008 [INFO] [stderr] 55: 0x7f8fced8c2aa - as core::ops::function::FnOnce>::call_once::he11ea2f4a83e9a29 [INFO] [stderr] at /rustc/45d050cde277b22a755847338f2acc2c7b834141/src/liballoc/boxed.rs:1008 [INFO] [stderr] 56: 0x7f8fced8c2aa - std::sys::unix::thread::Thread::new::thread_start::ha2c60866fd8a7e88 [INFO] [stderr] at src/libstd/sys/unix/thread.rs:87 [INFO] [stderr] 57: 0x7f8fceaf06db - start_thread [INFO] [stderr] 58: 0x7f8fce40d88f - __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 (45d050cde 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" "b86d3f26325a6da339ea5cc3191597cd24cd1707d669f0249872ed1b78ea126e"` [INFO] running `"docker" "rm" "-f" "b86d3f26325a6da339ea5cc3191597cd24cd1707d669f0249872ed1b78ea126e"` [INFO] [stdout] b86d3f26325a6da339ea5cc3191597cd24cd1707d669f0249872ed1b78ea126e