chore(deps): bump nom from 7.1.3 to 8.0.0 #251
safety.yml
on: pull_request
sanitizers
55s
miri
1m 13s
Annotations
28 errors and 5 warnings
the size for values of type `[u16]` cannot be known at compilation time:
ashen/src/asset/string_table.rs#L9
error[E0277]: the size for values of type `[u16]` cannot be known at compilation time
--> ashen/src/asset/string_table.rs:9:70
|
9 | multi::many_till(number::le_u16, bytes::tag("\0\0"))(input).map(|(input, (bytes, _))| {
| ^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `[u16]`
= note: only the last element of a tuple may have a dynamically sized type
|
the size for values of type `[u16]` cannot be known at compilation time:
ashen/src/asset/string_table.rs#L9
error[E0277]: the size for values of type `[u16]` cannot be known at compilation time
--> ashen/src/asset/string_table.rs:9:79
|
9 | multi::many_till(number::le_u16, bytes::tag("\0\0"))(input).map(|(input, (bytes, _))| {
| ^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `[u16]`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
|
expected function, found `impl nom::Parser<_, Output = (std::vec::Vec<<fn(_) -> std::result::Result<(_, u16), nom::Err<_>> {nom::number::complete::le_u16::<_, _>} as nom::Parser<_>>::Output>, <impl Fn(_) -> std::result::Result<(_, _), nom::Err<_>> as nom::Parser<_>>::Output), Error = _>`:
ashen/src/asset/string_table.rs#L9
error[E0618]: expected function, found `impl nom::Parser<_, Output = (std::vec::Vec<<fn(_) -> std::result::Result<(_, u16), nom::Err<_>> {nom::number::complete::le_u16::<_, _>} as nom::Parser<_>>::Output>, <impl Fn(_) -> std::result::Result<(_, _), nom::Err<_>> as nom::Parser<_>>::Output), Error = _>`
--> ashen/src/asset/string_table.rs:9:5
|
9 | multi::many_till(number::le_u16, bytes::tag("\0\0"))(input).map(|(input, (bytes, _))| {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------
| |
| call expression requires function
|
expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<for<'a> fn(&'a [u8]) -> std::result::Result<(&'a [u8], asset::pack_file::EntryHeader), nom::Err<error::ParseError>> {asset::pack_file::PackFile::entry_headers::entry_header} as nom::Parser<&[u8]>>::Output>, Error = <for<'a> fn(&'a [u8]) -> std::result::Result<(&'a [u8], asset::pack_file::EntryHeader), nom::Err<error::ParseError>> {asset::pack_file::PackFile::entry_headers::entry_header} as nom::Parser<&[u8]>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<for<'a> fn(&'a [u8]) -> std::result::Result<(&'a [u8], asset::pack_file::EntryHeader), nom::Err<error::ParseError>> {asset::pack_file::PackFile::entry_headers::entry_header} as nom::Parser<&[u8]>>::Output>, Error = <for<'a> fn(&'a [u8]) -> std::result::Result<(&'a [u8], asset::pack_file::EntryHeader), nom::Err<error::ParseError>> {asset::pack_file::PackFile::entry_headers::entry_header} as nom::Parser<&[u8]>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/pack_file.rs:65:9
|
65 | multi::count!(entry_header, total_entries as usize)(input)
| ----------------------------------------------------------
| |
| call expression requires function
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
trait takes 1 generic argument but 3 generic arguments were supplied:
ashen/src/utils/nom.rs#L137
error[E0107]: trait takes 1 generic argument but 3 generic arguments were supplied
--> ashen/src/utils/nom.rs:137:50
|
137 | impl<'a, T, O> Parser<'a, O> for T where T: nom::Parser<Input<'a>, O, crate::error::ParseError> {}
| ^^^^^^ expected 1 generic argument
|
note: trait defined here, with 1 generic parameter: `Input`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nom-8.0.0/src/internal.rs:403:11
|
403 | pub trait Parser<Input> {
| ^^^^^^ -----
help: replace the generic bounds with the associated types
|
137 | impl<'a, T, O> Parser<'a, O> for T where T: nom::Parser<Input<'a>, Output = O, Error = crate::error::ParseError> {}
| ++++++++ +++++++
|
trait takes 1 generic argument but 3 generic arguments were supplied:
ashen/src/utils/nom.rs#L134
error[E0107]: trait takes 1 generic argument but 3 generic arguments were supplied
--> ashen/src/utils/nom.rs:134:31
|
134 | pub trait Parser<'a, O>: nom::Parser<Input<'a>, O, crate::error::ParseError> {}
| ^^^^^^ expected 1 generic argument
|
note: trait defined here, with 1 generic parameter: `Input`
--> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/nom-8.0.0/src/internal.rs:403:11
|
403 | pub trait Parser<Input> {
| ^^^^^^ -----
help: replace the generic bounds with the associated types
|
134 | pub trait Parser<'a, O>: nom::Parser<Input<'a>, Output = O, Error = crate::error::ParseError> {}
| ++++++++ +++++++
|
expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::texture::dat::offset::TextureOffset), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::texture::dat::offset::TextureOffset), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`:
ashen/src/asset/texture/mod.rs#L24
error[E0618]: expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::texture::dat::offset::TextureOffset), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::texture::dat::offset::TextureOffset), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`
--> ashen/src/asset/texture/mod.rs:24:32
|
24 | let (_, offsets) = multi::many0(TextureOffset::parser(()))(input)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------
| |
| call expression requires function
|
expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/texture/dat/texture.rs:23:35
|
23 | let (input, colors) = multi::count!(number::le_u8, size.width * size.height)(input)?;
| -------------------------------------------------------------
| |
| call expression requires function
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<for<'a> fn(&'a [u8]) -> std::result::Result<(&'a [u8], std::string::String), nom::Err<error::ParseError>> {asset::string_table::utf_16_string} as nom::Parser<&[u8]>>::Output>, Error = <for<'a> fn(&'a [u8]) -> std::result::Result<(&'a [u8], std::string::String), nom::Err<error::ParseError>> {asset::string_table::utf_16_string} as nom::Parser<&[u8]>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<for<'a> fn(&'a [u8]) -> std::result::Result<(&'a [u8], std::string::String), nom::Err<error::ParseError>> {asset::string_table::utf_16_string} as nom::Parser<&[u8]>>::Output>, Error = <for<'a> fn(&'a [u8]) -> std::result::Result<(&'a [u8], std::string::String), nom::Err<error::ParseError>> {asset::string_table::utf_16_string} as nom::Parser<&[u8]>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/string_table.rs:24:34
|
24 | let (input, table) = multi::count!(utf_16_string, count as usize)(input)?;
| ---------------------------------------------------
| |
| call expression requires function
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/sound/dat/t_song.rs:150:31
|
150 | let (_, orders) = multi::count!(number::le_u8, header.song_length as usize)(
| ---------------------------------------------------------
| |
| _______________________________in this macro invocation
| |
151 | | &input[pointers.orders as usize..],
152 | | )?;
| |_____________- call expression requires function
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::sound::dat::pattern_event::PatternEvent), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::sound::dat::pattern_event::PatternEvent), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::sound::dat::pattern_event::PatternEvent), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::sound::dat::pattern_event::PatternEvent), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/sound/dat/t_song.rs:131:21
|
131 | // multi::count!(
132 | || PatternEvent::parser(&instruments),
133 | || header.channel_count as usize * length as usize
134 | || )(input)
| ||_____________________-______- call expression requires function
| |_____________________|
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u32), nom::Err<_>> {nom::number::complete::le_u32::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u32), nom::Err<_>> {nom::number::complete::le_u32::<_, _>} as nom::Parser<_>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u32), nom::Err<_>> {nom::number::complete::le_u32::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u32), nom::Err<_>> {nom::number::complete::le_u32::<_, _>} as nom::Parser<_>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/sound/dat/t_song.rs:122:17
|
122 | multi::count!(number::le_u32, header.pattern_count as usize)(
| ------------------------------------------------------------
| |
| _________________in this macro invocation
| |
123 | | &input[pointers.patterns as usize..],
124 | | )?
| |_________________- call expression requires function
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/sound/dat/t_song.rs:118:36
|
118 | let (_, lengths) = multi::count!(number::le_u8, header.pattern_count as usize)(
| -----------------------------------------------------------
| |
| ____________________________________in this macro invocation
| |
119 | | &input[pointers.pattern_lengths as usize..],
120 | | )?;
| |_________________- call expression requires function
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::sound::dat::t_instrument::TInstrument), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::sound::dat::t_instrument::TInstrument), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::sound::dat::t_instrument::TInstrument), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::sound::dat::t_instrument::TInstrument), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/sound/dat/t_song.rs:111:36
|
111 | let (_, instruments) = multi::count!(
| ____________________________________-
| |____________________________________|
112 | || TInstrument::parser(&samples),
113 | || header.instrument_count as usize
114 | || )(&input[pointers.instruments as usize..])?;
| ||_____________-________________________________________- call expression requires function
| |_____________|
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::sound::dat::t_instrument::TSample), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::sound::dat::t_instrument::TSample), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::sound::dat::t_instrument::TSample), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::sound::dat::t_instrument::TSample), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/sound/dat/t_song.rs:105:32
|
105 | let (_, samples) = multi::count!(
| ________________________________-
| |________________________________|
106 | || TSample::parser(&samples),
107 | || header.sample_count as usize
108 | || )(&input[pointers.samples as usize..])?;
| ||_____________-____________________________________- call expression requires function
| |_____________|
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/sound/dat/t_instrument.rs:78:33
|
78 | let (input, data) = multi::count!(number::le_u8, TInstrument::ENVELOPE_SIZE)(input)?;
| ---------------------------------------------------------------
| |
| call expression requires function
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::pack_info::PackInfo), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::pack_info::PackInfo), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::pack_info::PackInfo), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::pack_info::PackInfo), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/sound/dat/chunk_header.rs:16:34
|
16 | let (input, infos) = multi::count!(PackInfo::parser(()), count as usize)(input)?;
| ----------------------------------------------------------
| |
| call expression requires function
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u16), nom::Err<_>> {nom::number::complete::le_u16::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u16), nom::Err<_>> {nom::number::complete::le_u16::<_, _>} as nom::Parser<_>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u16), nom::Err<_>> {nom::number::complete::le_u16::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u16), nom::Err<_>> {nom::number::complete::le_u16::<_, _>} as nom::Parser<_>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/skybox.rs:23:36
|
23 | let (input, palette) = multi::count!(number::le_u16, 256)(input)?;
| -----------------------------------------
| |
| call expression requires function
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::frame::ModelFrame), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::frame::ModelFrame), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::frame::ModelFrame), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::frame::ModelFrame), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/model/mod.rs:48:31
|
48 | let (_, frames) = multi::count!(
| _______________________________-
| |_______________________________|
49 | || ModelFrame::parser(ModelSpecs {
50 | || vertex_count: header.vertex_count,
51 | || triangle_count: header.triangle_count,
... ||
54 | || header.frame_count as usize
55 | || )(&input[header.offset_frames as usize..])?;
| ||_____________-________________________________________- call expression requires function
| |_____________|
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::sequence::ModelSequence), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::sequence::ModelSequence), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::sequence::ModelSequence), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::sequence::ModelSequence), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/model/mod.rs:43:34
|
43 | let (_, sequences) = multi::count!(
| __________________________________-
| |__________________________________|
44 | || ModelSequence::parser(input),
45 | || header.sequence_count as usize
46 | || )(&input[header.offset_sequences as usize..])?;
| ||_____________-___________________________________________- call expression requires function
| |_____________|
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::triangle::ModelTriangle), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::triangle::ModelTriangle), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::triangle::ModelTriangle), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::triangle::ModelTriangle), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/model/mod.rs:30:34
|
30 | let (_, triangles) = multi::count!(
| __________________________________-
| |__________________________________|
31 | || ModelTriangle::parser(TextureDimensions {
32 | || width: header.texture_width,
33 | || height: header.texture_height
34 | || }),
35 | || header.triangle_count as usize
36 | || )(&input[header.offset_triangles as usize..])?;
| ||_____________-___________________________________________- call expression requires function
| |_____________|
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u32), nom::Err<_>> {nom::number::complete::le_u32::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u32), nom::Err<_>> {nom::number::complete::le_u32::<_, _>} as nom::Parser<_>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u32), nom::Err<_>> {nom::number::complete::le_u32::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u32), nom::Err<_>> {nom::number::complete::le_u32::<_, _>} as nom::Parser<_>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/model/dat/sequence.rs:18:31
|
18 | let (_, frames) = multi::count!(number::le_u32, frame_count as usize)(
| ---------------------------------------------------
| |
| _______________________________in this macro invocation
| |
19 | | &full_input[offset as usize..],
20 | | )?;
| |_____________- call expression requires function
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<_, Output = std::vec::Vec<<fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Output>, Error = <fn(_) -> std::result::Result<(_, u8), nom::Err<_>> {nom::number::complete::le_u8::<_, _>} as nom::Parser<_>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/model/dat/frame.rs:109:17
|
109 | multi::count!(number::le_u8, model_specs.triangle_count as usize)(input)?;
| ------------------------------------------------------------------------
| |
| call expression requires function
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::frame::ModelVertex), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::frame::ModelVertex), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::frame::ModelVertex), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Output>, Error = <impl for<'a> Fn(&'a [u8]) -> for<'a> std::result::Result<(&'a [u8], asset::model::dat::frame::ModelVertex), nom::Err<error::ParseError>> as nom::Parser<&[u8]>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/model/dat/frame.rs:103:37
|
103 | let (input, vertices) = multi::count!(
| _____________________________________-
| |_____________________________________|
104 | || ModelVertex::parser(VertexTransform { scale, origin }),
105 | || model_specs.vertex_count as usize
106 | || )(input)?;
| ||_____________-______- call expression requires function
| |_____________|
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<{closure@ashen/src/asset/color_map.rs:68:17: 68:57} as nom::Parser<&[u8]>>::Output>, Error = <{closure@ashen/src/asset/color_map.rs:68:17: 68:57} as nom::Parser<&[u8]>>::Error>`:
ashen/src/utils/nom.rs#L84
error[E0618]: expected function, found `impl nom::Parser<&[u8], Output = std::vec::Vec<<{closure@ashen/src/asset/color_map.rs:68:17: 68:57} as nom::Parser<&[u8]>>::Output>, Error = <{closure@ashen/src/asset/color_map.rs:68:17: 68:57} as nom::Parser<&[u8]>>::Error>`
--> ashen/src/utils/nom.rs:84:13
|
84 | $crate::utils::nom::multi::count($fn, $count)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: ashen/src/asset/color_map.rs:67:35
|
67 | let (input, colors) = multi::count!(
| ___________________________________-
| |___________________________________|
68 | || |input| -> Result<[Color; COLORS_COUNT]> {
69 | || multi::count!(Color::parser(()))(input)
70 | || },
71 | || SHADES_COUNT
72 | || )(input)?;
| ||_____________-______- call expression requires function
| |_____________|
| in this macro invocation
|
= note: this error originates in the macro `multi::count` (in Nightly builds, run with -Z macro-backtrace for more info)
|
sanitizers
Process completed with exit code 101.
|
sanitizers
Process completed with exit code 101.
|
miri
Process completed with exit code 101.
|
operator precedence can trip the unwary:
ashen/src/asset/color_map.rs#L28
warning: operator precedence can trip the unwary
--> ashen/src/asset/color_map.rs:28:18
|
28 | let b = (b | b << 4) as u8;
| ^^^^^^^^^^ help: consider parenthesizing your expression: `b | (b << 4)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
ashen/src/asset/color_map.rs#L27
warning: operator precedence can trip the unwary
--> ashen/src/asset/color_map.rs:27:18
|
27 | let g = (g | g << 4) as u8;
| ^^^^^^^^^^ help: consider parenthesizing your expression: `g | (g << 4)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
|
operator precedence can trip the unwary:
ashen/src/asset/color_map.rs#L26
warning: operator precedence can trip the unwary
--> ashen/src/asset/color_map.rs:26:18
|
26 | let r = (r | r << 4) as u8;
| ^^^^^^^^^^ help: consider parenthesizing your expression: `r | (r << 4)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#precedence
= note: `#[warn(clippy::precedence)]` on by default
|
sanitizers
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
miri
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|