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

rusty_v8 not compiling when cargo build -vv #346

Closed
Drunpy opened this issue Apr 9, 2020 · 1 comment
Closed

rusty_v8 not compiling when cargo build -vv #346

Drunpy opened this issue Apr 9, 2020 · 1 comment

Comments

@Drunpy
Copy link

Drunpy commented Apr 9, 2020

Tried to compile deno with cargo build -vv and got this.

error[E0308]: mismatched types
   --> /home/lorran/.cargo/registry/src/github.com-1ecc6299db9ec823/rusty_v8-0.3.10/src/try_catch.rs:134:5
    |
134 | /     unsafe {
135 | |       let msg = Local::from_raw(v8__TryCatch__Message(&self.0));
136 | |     }
    | |_____^ expected enum `std::option::Option`, found `()`
    |
    = note:   expected enum `std::option::Option<local::Local<'tc, data::Message>>`
            found unit type `()`

cargo 1.42.0 (86334295e 2020-01-31)
rustc 1.42.0 (b8cedc004 2020-03-09)

@Drunpy Drunpy changed the title Not compiling rusty_v8 not compiling when cargo build -vv Apr 9, 2020
@piscisaureus
Copy link
Member

That's odd. The actual file when v0.3.10 was released looked like this: https://github.com/denoland/rusty_v8/blob/v0.3.10/src/try_catch.rs#L134 -- which is correct.

I tried cargo fetch, and the file that it downloaded also had the right content:

image

Long story short, I think your device got struck by a cosmic raysemicolon, or there's a creepy clown editing your files when you sleep at night.

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

No branches or pull requests

2 participants