You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was compiling an internal project with the rust compiler (actually trying clippy) and it ICEd on me. The code had an actual error in it which was hidden by the ICE.
After cargo clean, the compilation worked again, properly showing the error which you can find below. Interestingly I already did a cargo clean an hour earlier before the ICE showed up.
error[E0599]: no method named `body` found for struct `protocol::msg::USPMsg` in the current scope
--> controller/src/nbi/restserver.rs:60:68
|
60 | Ok(Some(data)) => HttpResponse::Ok().json(data.body()),
| ^^^^ method not found in `USPMsg`
For more information about this error, try `rustc --explain E0599`.
error: could not compile `usp-controller` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
Summary
I was compiling an internal project with the rust compiler (actually trying clippy) and it ICEd on me. The code had an actual error in it which was hidden by the ICE.
After
cargo clean
, the compilation worked again, properly showing the error which you can find below. Interestingly I already did a cargo clean an hour earlier before the ICE showed up.Version
rustc 1.81.0 (eeb90cda1 2024-09-04)
binary: rustc
commit-hash: eeb90cda1969383f56a2637cbd3037bdf598841c
commit-date: 2024-09-04
host: aarch64-apple-darwin
release: 1.81.0
LLVM version: 18.1.7
Error output
Backtrace
The text was updated successfully, but these errors were encountered: