Update Rust crate nom to v8 #733
rust.yml
on: pull_request
lints
24s
benchmarks
1m 23s
Matrix: tests
Annotations
53 errors and 42 warnings
tests (ubuntu-latest):
src/refs/parser.rs#L6
unresolved import `nom::error::VerboseError`
|
tests (ubuntu-latest):
src/refs/mod.rs#L5
unresolved imports `nom::error::convert_error`, `nom::error::VerboseError`
|
tests (ubuntu-latest):
src/refs/parser.rs#L40
expected function, found `nom::error::Context<impl Fn(_) -> Result<(_, _), nom::Err<_>>>`
|
tests (ubuntu-latest):
src/refs/parser.rs#L44
expected function, found `nom::error::Context<impl Fn(_) -> Result<(_, _), nom::Err<_>>>`
|
tests (ubuntu-latest):
src/refs/parser.rs#L48
expected function, found `nom::error::Context<impl Fn(_) -> Result<(_, _), nom::Err<_>>>`
|
tests (ubuntu-latest):
src/refs/parser.rs#L76
the trait bound `Choice<(for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_open}, for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_close})>: Parser<_>` is not satisfied
|
tests (ubuntu-latest):
src/refs/parser.rs#L76
the trait bound `Choice<(for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_open}, for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_close})>: Parser<_>` is not satisfied
|
tests (ubuntu-latest):
src/refs/parser.rs#L76
the trait bound `Choice<(for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_open}, for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_close})>: Parser<_>` is not satisfied
|
tests (ubuntu-latest):
src/refs/parser.rs#L76
the trait bound `Choice<(for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_open}, for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_close})>: Parser<_>` is not satisfied
|
tests (ubuntu-latest):
src/refs/parser.rs#L74
the trait bound `Choice<(for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_open}, for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_close})>: Parser<_>` is not satisfied
|
expected function, found `nom::error::Context<nom::branch::Choice<(impl nom::Parser<_, Output = std::string::String, Error = _>, impl nom::Parser<&_, Output = std::string::String, Error = _>)>>`:
src/refs/parser.rs#L172
error[E0618]: expected function, found `nom::error::Context<nom::branch::Choice<(impl nom::Parser<_, Output = std::string::String, Error = _>, impl nom::Parser<&_, Output = std::string::String, Error = _>)>>`
--> src/refs/parser.rs:172:9
|
172 | // context(
173 | || "text",
174 | || alt((
175 | || map(many1(none_of("${}\\")), |ch| ch.iter().collect::<String>()),
176 | || map(take(1usize), std::string::ToString::to_string),
177 | || )),
178 | || )(input)
| ||_________^______- call expression requires function
| |_________|
|
|
expected function, found `nom::error::Context<nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::string::content})>>`:
src/refs/parser.rs#L190
error[E0618]: expected function, found `nom::error::Context<nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::string::content})>>`
--> src/refs/parser.rs:190:5
|
190 | // context(
191 | || "string",
192 | || alt((double_escape, ref_escape_open, inv_escape_open, content)),
193 | || )(input)
| ||_____^______- call expression requires function
| |_____|
|
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L136
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:136:5
|
136 | / map(
137 | | context(
138 | | "ref_string",
139 | | many1(alt((
... |
147 | | |s| s.join(""),
148 | | )(input)
| |____________^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> ... {double_escape}, ..., ..., ..., ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::multi::many1`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/multi/mod.rs:155:6
|
150 | pub fn many1<I, F>(
| ----- required by a bound in this function
...
155 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `many1`
|
the trait bound `nom::error::Context<impl nom::Parser<_, Output = std::vec::Vec<<nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})> as nom::Parser<_>>::Output>, Error = <nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), no:
src/refs/parser.rs#L136
error[E0277]: the trait bound `nom::error::Context<impl nom::Parser<_, Output = std::vec::Vec<<nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})> as nom::Parser<_>>::Output>, Error = <nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})> as nom::Parser<_>>::Error>>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:136:5
|
136 | / map(
137 | | context(
138 | | "ref_string",
139 | | many1(alt((
... |
147 | | |s| s.join(""),
148 | | )(input)
| |____________^ the trait `nom::Parser<_>` is not implemented for `Context<impl Parser<_, Output = Vec<...>, Error = ...>>`
|
= help: the trait `nom::Parser<I>` is implemented for `nom::error::Context<F>`
note: required by a bound in `nom::combinator::map`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/combinator/mod.rs:76:6
|
74 | pub fn map<I, O, E: ParseError<I>, F, G>(parser: F, f: G) -> impl Parser<I, Output = O, Error = E>
| --- required by a bound in this function
75 | where
76 | F: Parser<I, Error = E>,
| ^^^^^^^^^^^^^^^^^^^^ required by this bound in `map`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L136
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:136:5
|
136 | / map(
137 | | context(
138 | | "ref_string",
139 | | many1(alt((
... |
147 | | |s| s.join(""),
148 | | )(input)
| |_____^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> ... {double_escape}, ..., ..., ..., ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::multi::many1`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/multi/mod.rs:155:6
|
150 | pub fn many1<I, F>(
| ----- required by a bound in this function
...
155 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `many1`
|
the trait bound `nom::error::Context<impl nom::Parser<_, Output = std::vec::Vec<<nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})> as nom::Parser<_>>::Output>, Error = <nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), no:
src/refs/parser.rs#L136
error[E0277]: the trait bound `nom::error::Context<impl nom::Parser<_, Output = std::vec::Vec<<nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})> as nom::Parser<_>>::Output>, Error = <nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})> as nom::Parser<_>>::Error>>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:136:5
|
136 | / map(
137 | | context(
138 | | "ref_string",
139 | | many1(alt((
... |
147 | | |s| s.join(""),
148 | | )(input)
| |_____^ the trait `nom::Parser<_>` is not implemented for `Context<impl Parser<_, Output = Vec<...>, Error = ...>>`
|
= help: the trait `nom::Parser<I>` is implemented for `nom::error::Context<F>`
note: required by a bound in `nom::combinator::map`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/combinator/mod.rs:76:6
|
74 | pub fn map<I, O, E: ParseError<I>, F, G>(parser: F, f: G) -> impl Parser<I, Output = O, Error = E>
| --- required by a bound in this function
75 | where
76 | F: Parser<I, Error = E>,
| ^^^^^^^^^^^^^^^^^^^^ required by this bound in `map`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L136
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:136:5
|
136 | map(
| ^^^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> ... {double_escape}, ..., ..., ..., ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::multi::many1`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/multi/mod.rs:155:6
|
150 | pub fn many1<I, F>(
| ----- required by a bound in this function
...
155 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `many1`
|
the trait bound `nom::error::Context<impl nom::Parser<_, Output = std::vec::Vec<<nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})> as nom::Parser<_>>::Output>, Error = <nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), no:
src/refs/parser.rs#L137
error[E0277]: the trait bound `nom::error::Context<impl nom::Parser<_, Output = std::vec::Vec<<nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})> as nom::Parser<_>>::Output>, Error = <nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})> as nom::Parser<_>>::Error>>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:137:9
|
136 | map(
| --- required by a bound introduced by this call
137 | / context(
138 | | "ref_string",
139 | | many1(alt((
140 | | double_escape,
... |
145 | | ))),
146 | | ),
| |_________^ the trait `nom::Parser<_>` is not implemented for `Context<impl Parser<_, Output = Vec<...>, Error = ...>>`
|
= help: the trait `nom::Parser<I>` is implemented for `nom::error::Context<F>`
note: required by a bound in `nom::combinator::map`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/combinator/mod.rs:76:6
|
74 | pub fn map<I, O, E: ParseError<I>, F, G>(parser: F, f: G) -> impl Parser<I, Output = O, Error = E>
| --- required by a bound in this function
75 | where
76 | F: Parser<I, Error = E>,
| ^^^^^^^^^^^^^^^^^^^^ required by this bound in `map`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L137
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:137:9
|
137 | / context(
138 | | "ref_string",
139 | | many1(alt((
140 | | double_escape,
... |
145 | | ))),
146 | | ),
| |_________^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> ... {double_escape}, ..., ..., ..., ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::multi::many1`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/multi/mod.rs:155:6
|
150 | pub fn many1<I, F>(
| ----- required by a bound in this function
...
155 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `many1`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L137
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:137:9
|
137 | context(
| ^^^^^^^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> ... {double_escape}, ..., ..., ..., ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::multi::many1`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/multi/mod.rs:155:6
|
150 | pub fn many1<I, F>(
| ----- required by a bound in this function
...
155 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `many1`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L139
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:139:13
|
139 | / many1(alt((
140 | | double_escape,
141 | | ref_escape_open,
142 | | ref_escape_close,
143 | | inv_escape_open,
144 | | ref_content,
145 | | ))),
| |_______________^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> ... {double_escape}, ..., ..., ..., ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::multi::many1`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/multi/mod.rs:155:6
|
150 | pub fn many1<I, F>(
| ----- required by a bound in this function
...
155 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `many1`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L139
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::double_escape}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_escape_close}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::inv_escape_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, std::string::String), nom::Err<{type error}>> {refs::parser::ref_content})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:139:19
|
139 | many1(alt((
| _____________-----_^
| | |
| | required by a bound introduced by this call
140 | | double_escape,
141 | | ref_escape_open,
142 | | ref_escape_close,
143 | | inv_escape_open,
144 | | ref_content,
145 | | ))),
| |______________^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> ... {double_escape}, ..., ..., ..., ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::multi::many1`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/multi/mod.rs:155:6
|
150 | pub fn many1<I, F>(
| ----- required by a bound in this function
...
155 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `many1`
|
expected function, found `nom::error::Context<nom::branch::Choice<(impl nom::Parser<_, Output = std::string::String, Error = _>, impl nom::Parser<&str, Output = std::string::String, Error = _>)>>`:
src/refs/parser.rs#L112
error[E0618]: expected function, found `nom::error::Context<nom::branch::Choice<(impl nom::Parser<_, Output = std::string::String, Error = _>, impl nom::Parser<&str, Output = std::string::String, Error = _>)>>`
--> src/refs/parser.rs:112:9
|
112 | // context(
113 | || "ref_text",
114 | || alt((
115 | || map(many1(none_of("\\${}")), |ch| ch.iter().collect::<String>()),
... ||
120 | || )),
121 | || )(input)
| ||_________^______- call expression requires function
| |_________|
|
|
expected function, found `impl nom::Parser<_, Output = (), Error = _>`:
src/refs/parser.rs#L102
error[E0618]: expected function, found `impl nom::Parser<_, Output = (), Error = _>`
--> src/refs/parser.rs:102:9
|
102 | // map(
103 | || context(
104 | || "ref_not_close",
105 | || tuple((not(tag("}")), not(tag("\\}")), not(tag("\\\\}")))),
106 | || ),
107 | || |((), (), ())| (),
108 | || )(input)
| ||_________^______- call expression requires function
| |_________|
|
|
expected function, found `impl nom::Parser<_, Output = (), Error = _>`:
src/refs/parser.rs#L84
error[E0618]: expected function, found `impl nom::Parser<_, Output = (), Error = _>`
--> src/refs/parser.rs:84:5
|
84 | // map(
85 | || context(
86 | || "ref_not_open",
87 | || tuple((
... ||
94 | || |_| (),
95 | || )(input)
| ||_____^______- call expression requires function
| |_____|
|
|
expected function, found `impl nom::Parser<_, Output = std::string::String, Error = _>`:
src/refs/parser.rs#L73
error[E0618]: expected function, found `impl nom::Parser<_, Output = std::string::String, Error = _>`
--> src/refs/parser.rs:73:5
|
73 | // map(
74 | || context(
75 | || "double_escape",
76 | || tuple((tag(r"\\"), peek(alt((ref_open, ref_close))))),
77 | || ),
78 | || |_| r"\".to_string(),
79 | || )(input)
| ||_____^______- call expression requires function
| |_____|
|
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L73
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:73:5
|
73 | / map(
74 | | context(
75 | | "double_escape",
76 | | tuple((tag(r"\\"), peek(alt((ref_open, ref_close))))),
77 | | ),
78 | | |_| r"\".to_string(),
79 | | )(input)
| |_____^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> Result<(&str, &str), Err<...>> {ref_open}, ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::combinator::peek`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/combinator/mod.rs:323:6
|
319 | pub fn peek<I: Clone, F>(
| ---- required by a bound in this function
...
323 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `peek`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L73
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:73:5
|
73 | map(
| ^^^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> Result<(&str, &str), Err<...>> {ref_open}, ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::combinator::peek`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/combinator/mod.rs:323:6
|
319 | pub fn peek<I: Clone, F>(
| ---- required by a bound in this function
...
323 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `peek`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L74
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:74:9
|
74 | / context(
75 | | "double_escape",
76 | | tuple((tag(r"\\"), peek(alt((ref_open, ref_close))))),
77 | | ),
| |_________^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> Result<(&str, &str), Err<...>> {ref_open}, ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::combinator::peek`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/combinator/mod.rs:323:6
|
319 | pub fn peek<I: Clone, F>(
| ---- required by a bound in this function
...
323 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `peek`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L74
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:74:9
|
74 | context(
| ^^^^^^^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> Result<(&str, &str), Err<...>> {ref_open}, ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::combinator::peek`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/combinator/mod.rs:323:6
|
319 | pub fn peek<I: Clone, F>(
| ---- required by a bound in this function
...
323 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `peek`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L76
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:76:13
|
76 | tuple((tag(r"\\"), peek(alt((ref_open, ref_close))))),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> Result<(&str, &str), Err<...>> {ref_open}, ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::combinator::peek`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/combinator/mod.rs:323:6
|
319 | pub fn peek<I: Clone, F>(
| ---- required by a bound in this function
...
323 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `peek`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L76
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:76:13
|
76 | tuple((tag(r"\\"), peek(alt((ref_open, ref_close))))),
| ^^^^^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> Result<(&str, &str), Err<...>> {ref_open}, ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::combinator::peek`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/combinator/mod.rs:323:6
|
319 | pub fn peek<I: Clone, F>(
| ---- required by a bound in this function
...
323 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `peek`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L76
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:76:32
|
76 | tuple((tag(r"\\"), peek(alt((ref_open, ref_close))))),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> Result<(&str, &str), Err<...>> {ref_open}, ...)>`
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::combinator::peek`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/combinator/mod.rs:323:6
|
319 | pub fn peek<I: Clone, F>(
| ---- required by a bound in this function
...
323 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `peek`
|
the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied:
src/refs/parser.rs#L76
error[E0277]: the trait bound `nom::branch::Choice<(for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_open}, for<'a> fn(&'a str) -> std::result::Result<(&'a str, &'a str), nom::Err<{type error}>> {refs::parser::ref_close})>: nom::Parser<_>` is not satisfied
--> src/refs/parser.rs:76:37
|
76 | tuple((tag(r"\\"), peek(alt((ref_open, ref_close))))),
| ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `nom::Parser<_>` is not implemented for `Choice<(fn(&str) -> Result<(&str, &str), Err<...>> {ref_open}, ...)>`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `nom::Parser<Input>`:
nom::branch::Choice<&mut [A]>
nom::branch::Choice<(A, B)>
nom::branch::Choice<(A, B, C)>
nom::branch::Choice<(A, B, C, D)>
nom::branch::Choice<(A, B, C, D, E)>
nom::branch::Choice<(A, B, C, D, E, F)>
nom::branch::Choice<(A, B, C, D, E, F, G)>
nom::branch::Choice<(A, B, C, D, E, F, G, H)>
and 15 others
note: required by a bound in `nom::combinator::peek`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-8.0.0/src/combinator/mod.rs:323:6
|
319 | pub fn peek<I: Clone, F>(
| ---- required by a bound in this function
...
323 | F: Parser<I>,
| ^^^^^^^^^ required by this bound in `peek`
|
expected function, found `nom::error::Context<impl Fn(_) -> std::result::Result<(_, _), nom::Err<_>>>`:
src/refs/parser.rs#L48
error[E0618]: expected function, found `nom::error::Context<impl Fn(_) -> std::result::Result<(_, _), nom::Err<_>>>`
--> src/refs/parser.rs:48:5
|
48 | context("inv_open", tag("$["))(input)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------
| |
| call expression requires function
|
expected function, found `nom::error::Context<impl Fn(_) -> std::result::Result<(_, _), nom::Err<_>>>`:
src/refs/parser.rs#L44
error[E0618]: expected function, found `nom::error::Context<impl Fn(_) -> std::result::Result<(_, _), nom::Err<_>>>`
--> src/refs/parser.rs:44:5
|
44 | context("ref_close", tag("}"))(input)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------
| |
| call expression requires function
|
expected function, found `nom::error::Context<impl Fn(_) -> std::result::Result<(_, _), nom::Err<_>>>`:
src/refs/parser.rs#L40
error[E0618]: expected function, found `nom::error::Context<impl Fn(_) -> std::result::Result<(_, _), nom::Err<_>>>`
--> src/refs/parser.rs:40:5
|
40 | context("ref_open", tag("${"))(input)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------
| |
| call expression requires function
|
unresolved imports `nom::error::convert_error`, `nom::error::VerboseError`:
src/refs/mod.rs#L5
error[E0432]: unresolved imports `nom::error::convert_error`, `nom::error::VerboseError`
--> src/refs/mod.rs:5:18
|
5 | use nom::error::{convert_error, VerboseError};
| ^^^^^^^^^^^^^ ^^^^^^^^^^^^
| | |
| | no `VerboseError` in `error`
| | help: a similar name exists in the module: `ParseError`
| no `convert_error` in `error`
|
unresolved import `nom::error::VerboseError`:
src/refs/parser.rs#L6
error[E0432]: unresolved import `nom::error::VerboseError`
--> src/refs/parser.rs:6:22
|
6 | error::{context, VerboseError},
| ^^^^^^^^^^^^
| |
| no `VerboseError` in `error`
| help: a similar name exists in the module: `ParseError`
|
tests (macos-latest)
The job was canceled because "ubuntu-latest" failed.
|
tests (macos-latest):
src/refs/parser.rs#L6
unresolved import `nom::error::VerboseError`
|
tests (macos-latest):
src/refs/mod.rs#L5
unresolved imports `nom::error::convert_error`, `nom::error::VerboseError`
|
tests (macos-latest):
src/refs/parser.rs#L40
expected function, found `nom::error::Context<impl Fn(_) -> Result<(_, _), nom::Err<_>>>`
|
tests (macos-latest):
src/refs/parser.rs#L44
expected function, found `nom::error::Context<impl Fn(_) -> Result<(_, _), nom::Err<_>>>`
|
tests (macos-latest):
src/refs/parser.rs#L48
expected function, found `nom::error::Context<impl Fn(_) -> Result<(_, _), nom::Err<_>>>`
|
tests (macos-latest):
src/refs/parser.rs#L76
the trait bound `Choice<(for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_open}, for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_close})>: Parser<_>` is not satisfied
|
tests (macos-latest):
src/refs/parser.rs#L76
the trait bound `Choice<(for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_open}, for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_close})>: Parser<_>` is not satisfied
|
tests (macos-latest):
src/refs/parser.rs#L76
the trait bound `Choice<(for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_open}, for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_close})>: Parser<_>` is not satisfied
|
tests (macos-latest):
src/refs/parser.rs#L76
the trait bound `Choice<(for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_open}, for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_close})>: Parser<_>` is not satisfied
|
tests (macos-latest):
src/refs/parser.rs#L74
the trait bound `Choice<(for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_open}, for<'a> fn(&'a str) -> Result<(&'a str, &'a str), nom::Err<{type error}>> {ref_close})>: Parser<_>` is not satisfied
|
lints
could not compile `reclass-rs` (lib) due to 29 previous errors; 7 warnings emitted
|
lints
Clippy had exited with the 101 exit code
|
benchmarks
Unhanded error:
Error: The process '/home/runner/.cargo/bin/cargo' failed with exit code 101
|
tests (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
tests (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests (ubuntu-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests (ubuntu-latest):
src/refs/parser.rs#L8
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (ubuntu-latest):
src/refs/parser.rs#L76
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (ubuntu-latest):
src/refs/parser.rs#L87
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (ubuntu-latest):
src/refs/parser.rs#L127
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (ubuntu-latest):
src/refs/parser.rs#L105
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (ubuntu-latest):
src/refs/parser.rs#L117
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (ubuntu-latest):
src/refs/parser.rs#L184
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (ubuntu-latest)
`reclass-rs` (lib) generated 7 warnings
|
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples:
src/refs/parser.rs#L184
warning: use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
--> src/refs/parser.rs:184:23
|
184 | map(many1(tuple((ref_not_open, text))), |strings| {
| ^^^^^
|
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples:
src/refs/parser.rs#L117
warning: use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
--> src/refs/parser.rs:117:21
|
117 | tuple((not(tag("}")), take(1usize))),
| ^^^^^
|
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples:
src/refs/parser.rs#L105
warning: use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
--> src/refs/parser.rs:105:17
|
105 | tuple((not(tag("}")), not(tag("\\}")), not(tag("\\\\}")))),
| ^^^^^
|
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples:
src/refs/parser.rs#L127
warning: use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
--> src/refs/parser.rs:127:13
|
127 | tuple((ref_not_open, ref_not_close, ref_text)),
| ^^^^^
|
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples:
src/refs/parser.rs#L87
warning: use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
--> src/refs/parser.rs:87:13
|
87 | tuple((
| ^^^^^
|
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples:
src/refs/parser.rs#L76
warning: use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
--> src/refs/parser.rs:76:13
|
76 | tuple((tag(r"\\"), peek(alt((ref_open, ref_close))))),
| ^^^^^
|
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples:
src/refs/parser.rs#L8
warning: use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
--> src/refs/parser.rs:8:37
|
8 | sequence::{delimited, preceded, tuple},
| ^^^^^
|
= note: `#[warn(deprecated)]` on by default
|
tests (macos-latest):
src/refs/parser.rs#L8
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (macos-latest):
src/refs/parser.rs#L76
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (macos-latest):
src/refs/parser.rs#L87
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (macos-latest):
src/refs/parser.rs#L127
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (macos-latest):
src/refs/parser.rs#L105
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (macos-latest):
src/refs/parser.rs#L117
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (macos-latest):
src/refs/parser.rs#L184
use of deprecated function `nom::sequence::tuple`: `Parser` is directly implemented for tuples
|
tests (macos-latest)
`reclass-rs` (lib) generated 7 warnings
|
tests (macos-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests (macos-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests (macos-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
tests (macos-latest)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lints
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
lints
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lints
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lints
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lints
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
benchmarks
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
benchmarks
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
benchmarks
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
benchmarks
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
benchmarks
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|