error[E0061]: this function takes 4 arguments but 3 arguments were supplied
--> /home/cofeek-codes/Desktop/codes/rustlang/rust-psp/psp/src/panic.rs:109:20
|
109 | let mut info = PanicInfo::internal_constructor(message, location, can_unwind);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^------------------------------- an argument of type `bool` is missing
|
note: associated function defined here
--> /home/cofeek-codes/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/panic/panic_info.rs:42:12
|
42 | pub fn internal_constructor(
| ^^^^^^^^^^^^^^^^^^^^
help: provide the argument
|
109 | let mut info = PanicInfo::internal_constructor(message, location, can_unwind, /* bool */);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For more information about this error, try `rustc --explain E0061`.
warning: `psp` (lib) generated 1 warning
error: could not compile `psp` (lib) due to previous error; 1 warning emitted
`cargo build` command exited with status: ExitStatus(unix_wait_status(25856))
cannot build my program and also an example program
to reproduce:
rustup default nightly && rustup component add rust-src
cargo install cargo-psp
git clone https://github.com/overdrivenpotato/rust-psp.git
cd rust-psp/examples/hello-world
cargo psp
expected approach
successful build
actual approach