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

deno 1.27.1 fails to build with rust 1.65.0 #16540

Closed
ht990332 opened this issue Nov 4, 2022 · 3 comments · Fixed by #16588
Closed

deno 1.27.1 fails to build with rust 1.65.0 #16540

ht990332 opened this issue Nov 4, 2022 · 3 comments · Fixed by #16588
Assignees

Comments

@ht990332
Copy link

ht990332 commented Nov 4, 2022

   Compiling test_util v0.1.0 (/home/hussam/cache/system/deno/src/deno/test_util)
error[E0277]: the trait bound `LiteralDef: std::cmp::Eq` is not satisfied
   --> /home/hussam/.cargo/registry/src/github.com-1ecc6299db9ec823/deno_doc-0.48.0/src/ts_type.rs:980:3
    |
969 | #[derive(Debug, Default, Serialize, Deserialize, Clone, PartialEq, Eq)]
    |                                                                    -- in this derive macro expansion
...
980 |   pub literal: Option<LiteralDef>,
    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `LiteralDef`
    |
    = help: the trait `std::cmp::Eq` is implemented for `std::option::Option<T>`
    = note: required for `std::option::Option<LiteralDef>` to implement `std::cmp::Eq`
note: required by a bound in `AssertParamIsEq`
    = note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
error: could not compile `deno_doc` due to previous error
@BearLemma
Copy link

BearLemma commented Nov 7, 2022

I've encountered the issue as well. Maybe it's somehow related to rust-lang/rust#98655 ? But it doesn't sound very likely.

@janschiefer
Copy link

janschiefer commented Nov 8, 2022

I have a sililiar isse when building deno 1.27.1 with rustc 1.67.0-nightly (95a3a7277 2022-10-31).

(...)
Compiling deno_graph v0.37.1
Compiling dprint-plugin-typescript v0.76.0
Compiling deno_doc v0.48.0
Compiling eszip v0.29.0
Compiling deno_emit v0.10.0
error[E0277]: the trait bound LiteralDef: std::cmp::Eq is not satisfied
--> /home/jschiefer/.cargo/registry/src/github.com-1ecc6299db9ec823/deno_doc-0.48.0/src/ts_type.rs:980:3
|
969 | #[derive(Debug, Default, Serialize, Deserialize, Clone, PartialEq, Eq)]
| -- in this derive macro expansion
...
980 | pub literal: Option,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait std::cmp::Eq is not implemented for LiteralDef
|
= help: the trait std::cmp::Eq is implemented for std::option::Option<T>
= note: required for std::option::Option<LiteralDef> to implement std::cmp::Eq
note: required by a bound in AssertParamIsEq
--> /home/jschiefer/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/cmp.rs:313:31
|
313 | pub struct AssertParamIsEq<T: Eq + ?Sized> {
| ^^ required by this bound in AssertParamIsEq
= note: this error originates in the derive macro Eq (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try rustc --explain E0277.
error: could not compile deno_doc due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile deno v1.27.1, intermediate artifacts can be found at /tmp/cargo-installYhCsRc

@bartlomieju
Copy link
Member

This will be fixed in coming days, we need to update our internal deno_* crates, however some of the Rust tooling is not yet available for M1 mac and I can't fix it beforehand.

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.

4 participants