122 lines
6.4 KiB
Text
122 lines
6.4 KiB
Text
Checking bng v0.1.0 (/home/p6nj/bng)
|
|
error[E0720]: cannot resolve opaque type
|
|
--> src/bng/score/lex/lexer.rs:35:39
|
|
|
|
|
35 | pub fn root<'a, E>(notes: &'a str) -> impl Parser<&'a str, Atoms, E>
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ recursive opaque type
|
|
...
|
|
42 | / terminated(
|
|
43 | | many1(preceded(maybe_yml_str_space(), atom(notes))),
|
|
44 | | maybe_yml_str_space(),
|
|
45 | | )
|
|
46 | | .map(Atoms)
|
|
| |_______________- returning here with type `nom::Map<impl FnMut(&str) -> std::result::Result<(&str, std::vec::Vec<Atom>), nom::Err<E>>, fn(std::vec::Vec<Atom>) -> Atoms {Atoms}, std::vec::Vec<Atom>>`
|
|
|
|
|
::: /home/p6nj/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-7.1.3/src/sequence/mod.rs:100:6
|
|
|
|
|
100 | ) -> impl FnMut(I) -> IResult<I, O1, E>
|
|
| ---------------------------------- returning this type `nom::Map<impl FnMut(&str) -> std::result::Result<(&str, std::vec::Vec<Atom>), nom::Err<E>>, fn(std::vec::Vec<Atom>) -> Atoms {Atoms}, std::vec::Vec<Atom>>`
|
|
|
|
error[E0720]: cannot resolve opaque type
|
|
--> src/bng/score/lex/lexer.rs:98:37
|
|
|
|
|
98 | fn r#loop<'a, E>(notes: &'a str) -> impl Parser<&'a str, Atom, E>
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ recursive opaque type
|
|
...
|
|
105 | / context(
|
|
106 | | "loop",
|
|
107 | | delimited(
|
|
108 | | char(Atom::LOOP.0),
|
|
... |
|
|
121 | | )
|
|
122 | | .map(|(n, v)| Atom::Loop(n, v))
|
|
| |___________________________________- returning here with type `nom::Map<impl FnMut(&str) -> std::result::Result<(&str, (NonZero<u8>, Atoms)), nom::Err<E>>, {closure@src/bng/score/lex/lexer.rs:122:10: 122:18}, (NonZero<u8>, Atoms)>`
|
|
|
|
|
::: /home/p6nj/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-7.1.3/src/error.rs:236:6
|
|
|
|
|
236 | ) -> impl FnMut(I) -> IResult<I, O, E>
|
|
| --------------------------------- returning this type `nom::Map<impl FnMut(&str) -> std::result::Result<(&str, (NonZero<u8>, Atoms)), nom::Err<E>>, {closure@src/bng/score/lex/lexer.rs:122:10: 122:18}, (NonZero<u8>, Atoms)>`
|
|
|
|
error[E0720]: cannot resolve opaque type
|
|
--> src/bng/score/lex/lexer.rs:185:35
|
|
|
|
|
185 | fn atom<'a, E>(notes: &'a str) -> impl Parser<&'a str, Atom, E>
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ recursive opaque type
|
|
...
|
|
192 | / context(
|
|
193 | | "atom",
|
|
194 | | alt((
|
|
195 | | note(notes),
|
|
... |
|
|
204 | | )),
|
|
205 | | )
|
|
| |_____- returning here with type `impl FnMut(&str) -> std::result::Result<(&str, Atom), nom::Err<E>>`
|
|
|
|
|
::: /home/p6nj/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-7.1.3/src/error.rs:236:6
|
|
|
|
|
236 | ) -> impl FnMut(I) -> IResult<I, O, E>
|
|
| --------------------------------- returning this opaque type `impl FnMut(&str) -> std::result::Result<(&str, Atom), nom::Err<E>>`
|
|
|
|
error[E0391]: cycle detected when computing type of opaque `bng::score::lex::lexer::root::{opaque#0}`
|
|
--> src/bng/score/lex/lexer.rs:35:39
|
|
|
|
|
35 | pub fn root<'a, E>(notes: &'a str) -> impl Parser<&'a str, Atoms, E>
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: ...which requires type-checking `bng::score::lex::lexer::root`...
|
|
--> src/bng/score/lex/lexer.rs:46:6
|
|
|
|
|
46 | .map(Atoms)
|
|
| ^^^
|
|
= note: ...which requires evaluating trait selection obligation `nom::sequence::terminated::{opaque#0}: core::marker::Sync`...
|
|
= note: ...which again requires computing type of opaque `bng::score::lex::lexer::root::{opaque#0}`, completing the cycle
|
|
note: cycle used when computing type of `bng::score::lex::lexer::root::{opaque#0}`
|
|
--> src/bng/score/lex/lexer.rs:35:39
|
|
|
|
|
35 | pub fn root<'a, E>(notes: &'a str) -> impl Parser<&'a str, Atoms, E>
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
|
|
|
|
error[E0391]: cycle detected when computing type of opaque `bng::score::lex::lexer::tuple::{opaque#0}`
|
|
--> src/bng/score/lex/lexer.rs:125:36
|
|
|
|
|
125 | fn tuple<'a, E>(notes: &'a str) -> impl Parser<&'a str, Atom, E>
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: ...which requires type-checking `bng::score::lex::lexer::tuple`...
|
|
--> src/bng/score/lex/lexer.rs:136:6
|
|
|
|
|
136 | .map(Atom::Tuple)
|
|
| ^^^
|
|
= note: ...which requires evaluating trait selection obligation `nom::error::context::{opaque#0}: core::marker::Sync`...
|
|
= note: ...which again requires computing type of opaque `bng::score::lex::lexer::tuple::{opaque#0}`, completing the cycle
|
|
note: cycle used when computing type of `bng::score::lex::lexer::tuple::{opaque#0}`
|
|
--> src/bng/score/lex/lexer.rs:125:36
|
|
|
|
|
125 | fn tuple<'a, E>(notes: &'a str) -> impl Parser<&'a str, Atom, E>
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
|
|
|
|
error[E0391]: cycle detected when computing type of opaque `bng::score::lex::lexer::slope::{opaque#0}`
|
|
--> src/bng/score/lex/lexer.rs:139:36
|
|
|
|
|
139 | fn slope<'a, E>(notes: &'a str) -> impl Parser<&'a str, Atom, E>
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: ...which requires type-checking `bng::score::lex::lexer::slope`...
|
|
--> src/bng/score/lex/lexer.rs:165:6
|
|
|
|
|
165 | .map(|((sm, i), v)| Atom::Slope(sm, i, v))
|
|
| ^^^
|
|
= note: ...which requires evaluating trait selection obligation `nom::error::context::{opaque#0}: core::marker::Sync`...
|
|
= note: ...which again requires computing type of opaque `bng::score::lex::lexer::slope::{opaque#0}`, completing the cycle
|
|
note: cycle used when computing type of `bng::score::lex::lexer::slope::{opaque#0}`
|
|
--> src/bng/score/lex/lexer.rs:139:36
|
|
|
|
|
139 | fn slope<'a, E>(notes: &'a str) -> impl Parser<&'a str, Atom, E>
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
= note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information
|
|
|
|
Some errors have detailed explanations: E0391, E0720.
|
|
For more information about an error, try `rustc --explain E0391`.
|
|
error: could not compile `bng` (bin "bng") due to 6 previous errors
|