Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builds failed #151

Closed
cofeek-codes opened this issue Aug 31, 2023 · 1 comment · Fixed by #153
Closed

builds failed #151

cofeek-codes opened this issue Aug 31, 2023 · 1 comment · Fixed by #153

Comments

@cofeek-codes
Copy link

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

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))
@sajattack
Copy link
Collaborator

sajattack commented Aug 31, 2023

Fucking internal panic shit changed again >:(

I'll take a look after $dayjob

sajattack added a commit to sajattack/rust-psp that referenced this issue Sep 3, 2023
sajattack added a commit to sajattack/rust-psp that referenced this issue Sep 3, 2023
@sajattack sajattack mentioned this issue Sep 3, 2023
@sajattack sajattack linked a pull request Sep 16, 2023 that will close this issue
sajattack added a commit that referenced this issue Sep 16, 2023
* Fix #151

* cargo fmt

* update nightly version from 2023-03-28 to 2023-09-16

---------

Co-authored-by: Paul Sajna <hello@paulsajna.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants