Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

the following packages contain code that will be rejected by a future version of Rust: multipart v0.18.0 #146

Open
omac777 opened this issue Jan 27, 2023 · 1 comment

Comments

@omac777
Copy link

omac777 commented Jan 27, 2023

While using the latest nightly, this warning for a future hard error appeared:

The package `multipart v0.18.0` currently triggers the following future incompatibility lints:
> warning: trailing semicolon in macro used in expression position
>    --> /var/home/davidm/.cargo/registry/src/github.com-1ecc6299db9ec823/multipart-0.18.0/src/server/field.rs:30:11
>     |
> 30  |           ));
>     |             ^
> ...
> 174 |               None => invalid_cont_disp!(
>     |  _____________________-
> 175 | |                 "expected additional data after Content-Disposition type",
> 176 | |                 header.val
> 177 | |             ),
>     | |_____________- 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: `-A semicolon-in-expressions-from-macros` implied by `-A warnings`
>     = note: this warning originates in the macro `invalid_cont_disp` (in Nightly builds, run with -Z macro-backtrace for more info)
> 
> warning: trailing semicolon in macro used in expression position
>    --> /var/home/davidm/.cargo/registry/src/github.com-1ecc6299db9ec823/multipart-0.18.0/src/server/field.rs:30:11
>     |
> 30  |           ));
>     |             ^
> ...
> 182 |               None => invalid_cont_disp!(
>     |  _____________________-
> 183 | |                 "expected field name and maybe filename, got",
> 184 | |                 after_disp_type
> 185 | |             ),
>     | |_____________- 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: `-A semicolon-in-expressions-from-macros` implied by `-A warnings`
>     = note: this warning originates in the macro `invalid_cont_disp` (in Nightly builds, run with -Z macro-backtrace for more info)
> 

Thank you.

@michalfita
Copy link

@abonander abandoned this project over 1½ years ago, there's more legacy here that need fixing, but I wouldn't count on it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants