steamlocate-rs will eventually fail to compile #82

Closed
opened 2023-03-21 10:27:13 +01:00 by lucas · 2 comments
Owner

steamlocate-rs transitively includes a very old version of nom, which triggers a compiler warning:

warning: the following packages contain code that will be rejected by a future version of Rust: nom v1.2.4
note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`

So it seems like I will have to vendor that crate and the serde plugin it uses to fix this.

The future incompatibilities report:

The following warnings were discovered during the build. These warnings are an
indication that the packages contain code that will become an error in a
future release of Rust. These warnings typically cover changes to close
soundness problems, unintended or undocumented behavior, or critical problems
that cannot be fixed in a backwards-compatible fashion, and are not expected
to be in wide use.

Each warning should contain a link for more information on what the warning
means and how to resolve it.


To solve this problem, you can try the following approaches:


- Some affected dependencies have newer versions available.
You may want to consider updating them to a newer version to see if the issue has been fixed.

nom v1.2.4 has the following newer versions available: 2.0.0, 2.0.1, 2.1.0, 2.2.0, 2.2.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 4.0.0-alpha1, 4.0.0-alpha2, 4.0.0-beta1, 4.0.0-beta2, 4.0.0-beta3, 4.0.0,
4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 5.0.0-alpha1, 5.0.0-alpha2, 5.0.0-beta1, 5.0.0-beta2, 5.0.0-beta3, 5.0.0, 5.0.1, 5.1.0, 5.1.1, 5.1.2, 6.0.0-alpha1, 6.0.0-alpha2, 6.0.0-alpha3, 6.0.0-beta1, 6.0.0-beta2, 6.0.0-beta3, 6.0.0-beta4, 6.0.0-beta5, 6.0.0, 6.0.1, 6.1.0, 6.1.1, 6.1.2, 6.2.0, 6.2.1, 7.0.0-alpha1, 7.0.0-alpha2, 7.0.0-alpha3, 7.0.0, 7.1.0, 7.1.1, 7.1.2, 7.1.3


- If the issue is not solved by updating the dependencies, a fix has to be
implemented by those dependencies. You can help with that by notifying the
maintainers of this problem (e.g. by creating a bug report) or by proposing a
fix to the maintainers (e.g. by creating a pull request):

  - nom@1.2.4
  - Repository: https://github.com/Geal/nom
  - Detailed warning command: `cargo report future-incompatibilities --id 1 --package nom@1.2.4`

- If waiting for an upstream fix is not an option, you can use the `[patch]`
section in `Cargo.toml` to use your own version of the dependency. For more
information, see:
https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch-section

The package `nom v1.2.4` currently triggers the following future incompatibility lints:
> warning: trailing semicolon in macro used in expression position
>    --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40
>     |
> 482 |     map_impl!($i, call!($f), call!($g));
>     |                                        ^
>     |
>    ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:329:3
>     |
> 329 |   map!(i, be_u8, | x | { x as i8 })
>     |   --------------------------------- in this macro invocation
>     |
>     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
>     = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
>     = note: macro invocations at the end of a block are treated as expressions
>     = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map`
>     = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default
>     = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info)
>
> warning: trailing semicolon in macro used in expression position
>    --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40
>     |
> 482 |     map_impl!($i, call!($f), call!($g));
>     |                                        ^
>     |
>    ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:335:3
>     |
> 335 |   map!(i, be_u16, | x | { x as i16 })
>     |   ----------------------------------- in this macro invocation
>     |
>     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
>     = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
>     = note: macro invocations at the end of a block are treated as expressions
>     = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map`
>     = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default
>     = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info)
>
> warning: trailing semicolon in macro used in expression position
>    --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40
>     |
> 482 |     map_impl!($i, call!($f), call!($g));
>     |                                        ^
>     |
>    ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:341:3
>     |
> 341 |   map!(i, be_u32, | x | { x as i32 })
>     |   ----------------------------------- in this macro invocation
>     |
>     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
>     = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
>     = note: macro invocations at the end of a block are treated as expressions
>     = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map`
>     = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default
>     = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info)
>
> warning: trailing semicolon in macro used in expression position
>    --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40
>     |
> 482 |     map_impl!($i, call!($f), call!($g));
>     |                                        ^
>     |
>    ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:347:3
>     |
> 347 |   map!(i, be_u64, | x | { x as i64 })
>     |   ----------------------------------- in this macro invocation
>     |
>     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
>     = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
>     = note: macro invocations at the end of a block are treated as expressions
>     = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map`
>     = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default
>     = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info)
>
> warning: trailing semicolon in macro used in expression position
>    --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40
>     |
> 482 |     map_impl!($i, call!($f), call!($g));
>     |                                        ^
>     |
>    ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:397:3
>     |
> 397 |   map!(i, le_u8, | x | { x as i8 })
>     |   --------------------------------- in this macro invocation
>     |
>     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
>     = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
>     = note: macro invocations at the end of a block are treated as expressions
>     = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map`
>     = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default
>     = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info)
>
> warning: trailing semicolon in macro used in expression position
>    --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40
>     |
> 482 |     map_impl!($i, call!($f), call!($g));
>     |                                        ^
>     |
>    ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:403:3
>     |
> 403 |   map!(i, le_u16, | x | { x as i16 })
>     |   ----------------------------------- in this macro invocation
>     |
>     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
>     = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
>     = note: macro invocations at the end of a block are treated as expressions
>     = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map`
>     = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default
>     = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info)
>
> warning: trailing semicolon in macro used in expression position
>    --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40
>     |
> 482 |     map_impl!($i, call!($f), call!($g));
>     |                                        ^
>     |
>    ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:409:3
>     |
> 409 |   map!(i, le_u32, | x | { x as i32 })
>     |   ----------------------------------- in this macro invocation
>     |
>     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
>     = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
>     = note: macro invocations at the end of a block are treated as expressions
>     = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map`
>     = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default
>     = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info)
>
> warning: trailing semicolon in macro used in expression position
>    --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40
>     |
> 482 |     map_impl!($i, call!($f), call!($g));
>     |                                        ^
>     |
>    ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:415:3
>     |
> 415 |   map!(i, le_u64, | x | { x as i64 })
>     |   ----------------------------------- in this macro invocation
>     |
>     = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
>     = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
>     = note: macro invocations at the end of a block are treated as expressions
>     = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map`
>     = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default
>     = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info)
>
> warning: trailing semicolon in macro used in expression position
>     --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:1221:43
>      |
> 1221 |     alt_parser!($i, call!($e) | $($rest)*);
>      |                                           ^
>      |
>     ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/character.rs:135:1
>      |
> 135  | named!(pub eol<char>, alt!(crlf | newline));
>      | ------------------------------------------- in this macro invocation
>      |
>      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
>      = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
>      = note: macro invocations at the end of a block are treated as expressions
>      = note: to ignore the value produced by the macro, add a semicolon after the invocation of `alt_parser`
>      = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default
>      = note: this warning originates in the macro `alt_parser` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info)
>
> warning: trailing semicolon in macro used in expression position
>     --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:1268:31
>      |
> 1268 |     alt_parser!($i, call!($e));
>      |                               ^
>      |
>     ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/character.rs:135:1
>      |
> 135  | named!(pub eol<char>, alt!(crlf | newline));
>      | ------------------------------------------- in this macro invocation
>      |
>      = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
>      = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
>      = note: macro invocations at the end of a block are treated as expressions
>      = note: to ignore the value produced by the macro, add a semicolon after the invocation of `alt_parser`
>      = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default
>      = note: this warning originates in the macro `alt_parser` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info)
>
`steamlocate-rs` transitively includes a very old version of `nom`, which triggers a compiler warning: ``` warning: the following packages contain code that will be rejected by a future version of Rust: nom v1.2.4 note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` ``` So it seems like I will have to vendor that crate and the serde plugin it uses to fix this. The future incompatibilities report: ``` The following warnings were discovered during the build. These warnings are an indication that the packages contain code that will become an error in a future release of Rust. These warnings typically cover changes to close soundness problems, unintended or undocumented behavior, or critical problems that cannot be fixed in a backwards-compatible fashion, and are not expected to be in wide use. Each warning should contain a link for more information on what the warning means and how to resolve it. To solve this problem, you can try the following approaches: - Some affected dependencies have newer versions available. You may want to consider updating them to a newer version to see if the issue has been fixed. nom v1.2.4 has the following newer versions available: 2.0.0, 2.0.1, 2.1.0, 2.2.0, 2.2.1, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 4.0.0-alpha1, 4.0.0-alpha2, 4.0.0-beta1, 4.0.0-beta2, 4.0.0-beta3, 4.0.0, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.2.2, 4.2.3, 5.0.0-alpha1, 5.0.0-alpha2, 5.0.0-beta1, 5.0.0-beta2, 5.0.0-beta3, 5.0.0, 5.0.1, 5.1.0, 5.1.1, 5.1.2, 6.0.0-alpha1, 6.0.0-alpha2, 6.0.0-alpha3, 6.0.0-beta1, 6.0.0-beta2, 6.0.0-beta3, 6.0.0-beta4, 6.0.0-beta5, 6.0.0, 6.0.1, 6.1.0, 6.1.1, 6.1.2, 6.2.0, 6.2.1, 7.0.0-alpha1, 7.0.0-alpha2, 7.0.0-alpha3, 7.0.0, 7.1.0, 7.1.1, 7.1.2, 7.1.3 - If the issue is not solved by updating the dependencies, a fix has to be implemented by those dependencies. You can help with that by notifying the maintainers of this problem (e.g. by creating a bug report) or by proposing a fix to the maintainers (e.g. by creating a pull request): - nom@1.2.4 - Repository: https://github.com/Geal/nom - Detailed warning command: `cargo report future-incompatibilities --id 1 --package nom@1.2.4` - If waiting for an upstream fix is not an option, you can use the `[patch]` section in `Cargo.toml` to use your own version of the dependency. For more information, see: https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html#the-patch-section The package `nom v1.2.4` currently triggers the following future incompatibility lints: > warning: trailing semicolon in macro used in expression position > --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40 > | > 482 | map_impl!($i, call!($f), call!($g)); > | ^ > | > ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:329:3 > | > 329 | map!(i, be_u8, | x | { x as i8 }) > | --------------------------------- in this macro invocation > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> > = note: macro invocations at the end of a block are treated as expressions > = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map` > = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default > = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info) > > warning: trailing semicolon in macro used in expression position > --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40 > | > 482 | map_impl!($i, call!($f), call!($g)); > | ^ > | > ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:335:3 > | > 335 | map!(i, be_u16, | x | { x as i16 }) > | ----------------------------------- in this macro invocation > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> > = note: macro invocations at the end of a block are treated as expressions > = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map` > = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default > = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info) > > warning: trailing semicolon in macro used in expression position > --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40 > | > 482 | map_impl!($i, call!($f), call!($g)); > | ^ > | > ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:341:3 > | > 341 | map!(i, be_u32, | x | { x as i32 }) > | ----------------------------------- in this macro invocation > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> > = note: macro invocations at the end of a block are treated as expressions > = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map` > = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default > = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info) > > warning: trailing semicolon in macro used in expression position > --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40 > | > 482 | map_impl!($i, call!($f), call!($g)); > | ^ > | > ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:347:3 > | > 347 | map!(i, be_u64, | x | { x as i64 }) > | ----------------------------------- in this macro invocation > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> > = note: macro invocations at the end of a block are treated as expressions > = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map` > = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default > = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info) > > warning: trailing semicolon in macro used in expression position > --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40 > | > 482 | map_impl!($i, call!($f), call!($g)); > | ^ > | > ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:397:3 > | > 397 | map!(i, le_u8, | x | { x as i8 }) > | --------------------------------- in this macro invocation > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> > = note: macro invocations at the end of a block are treated as expressions > = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map` > = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default > = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info) > > warning: trailing semicolon in macro used in expression position > --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40 > | > 482 | map_impl!($i, call!($f), call!($g)); > | ^ > | > ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:403:3 > | > 403 | map!(i, le_u16, | x | { x as i16 }) > | ----------------------------------- in this macro invocation > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> > = note: macro invocations at the end of a block are treated as expressions > = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map` > = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default > = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info) > > warning: trailing semicolon in macro used in expression position > --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40 > | > 482 | map_impl!($i, call!($f), call!($g)); > | ^ > | > ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:409:3 > | > 409 | map!(i, le_u32, | x | { x as i32 }) > | ----------------------------------- in this macro invocation > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> > = note: macro invocations at the end of a block are treated as expressions > = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map` > = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default > = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info) > > warning: trailing semicolon in macro used in expression position > --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:482:40 > | > 482 | map_impl!($i, call!($f), call!($g)); > | ^ > | > ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/nom.rs:415:3 > | > 415 | map!(i, le_u64, | x | { x as i64 }) > | ----------------------------------- in this macro invocation > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> > = note: macro invocations at the end of a block are treated as expressions > = note: to ignore the value produced by the macro, add a semicolon after the invocation of `map` > = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default > = note: this warning originates in the macro `map` (in Nightly builds, run with -Z macro-backtrace for more info) > > warning: trailing semicolon in macro used in expression position > --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:1221:43 > | > 1221 | alt_parser!($i, call!($e) | $($rest)*); > | ^ > | > ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/character.rs:135:1 > | > 135 | named!(pub eol<char>, alt!(crlf | newline)); > | ------------------------------------------- in this macro invocation > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> > = note: macro invocations at the end of a block are treated as expressions > = note: to ignore the value produced by the macro, add a semicolon after the invocation of `alt_parser` > = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default > = note: this warning originates in the macro `alt_parser` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info) > > warning: trailing semicolon in macro used in expression position > --> /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/macros.rs:1268:31 > | > 1268 | alt_parser!($i, call!($e)); > | ^ > | > ::: /home/lucas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/nom-1.2.4/src/character.rs:135:1 > | > 135 | named!(pub eol<char>, alt!(crlf | newline)); > | ------------------------------------------- in this macro invocation > | > = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! > = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> > = note: macro invocations at the end of a block are treated as expressions > = note: to ignore the value produced by the macro, add a semicolon after the invocation of `alt_parser` > = note: `#[allow(semicolon_in_expressions_from_macros)]` on by default > = note: this warning originates in the macro `alt_parser` which comes from the expansion of the macro `named` (in Nightly builds, run with -Z macro-backtrace for more info) > ```
lucas added the
stage
actionable
kind
upstream
labels 2023-03-21 10:27:13 +01:00
lucas added the
status/good first issue
label 2023-04-25 16:54:25 +02:00
Author
Owner

A second report for a different nom version is now coming as well. Will have to investigate where that version is used.

A second report for a different `nom` version is now coming as well. Will have to investigate where that version is used.
Author
Owner

Fixed in #121.

Fixed in #121.
lucas closed this issue 2023-11-08 11:16:55 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: bitsquid_dt/dtmt#82
No description provided.