-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
deficiencySomething doesn't work as well as it couldSomething doesn't work as well as it couldupstreamAn unresolvable issue: an upstream dependency bugAn unresolvable issue: an upstream dependency bug
Description
Rocket Version
0.5.0
Operating System
macOS 14.1.2, ubuntu-latest in GitHub Actions
Rust Toolchain Version
rustc 1.68.2 (9eb3afe9e 2023-03-27)
What happened?
With rustc version <=1.68.2, compilation fails like this CI failure.
Test Case
// just include `rocket = "0.5.0"` in Cargo.toml
fn main() {
println!("Hello, world!")
}Log Output
error[E0061]: this function takes 1 argument but 0 arguments were supplied
--> /Users/kh/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.5.0/src/server.rs:76:5
|
76 | debug!("Received request: {:#?}", hyp_req);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an argument of type `UnsafeArg` is missing
|
note: associated function defined here
--> /Users/kh/.cargo/registry/src/github.com-1ecc6299db9ec823/yansi-1.0.0-rc.1/src/paint.rs:56:8
|
56 | fn new(self) -> Painted<Self> where Self: Sized {
| ^^^
= note: this error originates in the macro `$crate::__private_api::format_args` which comes from the expansion of the macro `debug` (in Nightly builds, run with -Z macro-backtrace for more info)
help: provide the argument
--> /Users/kh/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.20/src/macros.rs:51:62
|
51 | $crate::__private_api::format_args!($($arg)+)(/* UnsafeArg */),
| +++++++++++++++++
error[E0308]: mismatched types
--> /Users/kh/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.5.0/src/server.rs:76:5
|
76 | debug!("Received request: {:#?}", hyp_req);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `UnsafeArg`, found struct `Painted`
|
= note: expected struct `UnsafeArg`
found struct `Painted<UnsafeArg>`
= note: this error originates in the macro `$crate::__private_api::format_args` which comes from the expansion of the macro `debug` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0061]: this function takes 1 argument but 0 arguments were supplied
--> /Users/kh/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.5.0/src/server.rs:163:9
|
163 | debug!("sending response: {:#?}", hyp_response);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an argument of type `UnsafeArg` is missing
|
note: associated function defined here
--> /Users/kh/.cargo/registry/src/github.com-1ecc6299db9ec823/yansi-1.0.0-rc.1/src/paint.rs:56:8
|
56 | fn new(self) -> Painted<Self> where Self: Sized {
| ^^^
= note: this error originates in the macro `$crate::__private_api::format_args` which comes from the expansion of the macro `debug` (in Nightly builds, run with -Z macro-backtrace for more info)
help: provide the argument
--> |/Users/kh/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.4.20/src/macros.rs:51:62
|
51 | $crate::__private_api::format_args!($($arg)+)(/* UnsafeArg */),
| +++++++++++++++++
error[E0308]: mismatched types
--> /Users/kh/.cargo/registry/src/github.com-1ecc6299db9ec823/rocket-0.5.0/src/server.rs:163:9
|
163 | debug!("sending response: {:#?}", hyp_response);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `UnsafeArg`, found struct `Painted`
|
= note: expected struct `UnsafeArg`
found struct `Painted<UnsafeArg>`
= note: this error originates in the macro `$crate::__private_api::format_args` which comes from the expansion of the macro `debug` (in Nightly builds, run with -Z macro-backtrace for more info)
Some errors have detailed explanations: E0061, E0308.
For more information about an error, try `rustc --explain E0061`.
error: could not compile `rocket` due to 4 previous errorsAdditional Context
I guessed that some changes in 1.69.0 introduced this bug, so I digged 1.69.0 changes but couldn't find any obvious one. :cry
System Checks
- My bug report relates to functionality.
- I have tested against the latest Rocket release or a recent git commit.
- I have tested against the latest stable
rustctoolchain. - I was unable to find this issue previously reported.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
deficiencySomething doesn't work as well as it couldSomething doesn't work as well as it couldupstreamAn unresolvable issue: an upstream dependency bugAn unresolvable issue: an upstream dependency bug