-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Updating the nightly version of rust gives error on module path: #4115
Comments
I'm having the same problem, but for me it came after updating wasm_bindgen from 0.2.92 to 0.2.93. So I guess it's a combination of wasm_bindgen 0.2.93 and a recent rust nightly version (I'm using |
I'm unable to reproduce it, maybe it was addressed in the latest nightly already? |
Still happening with the current nightly :/ With 1.83.0-nightly (fa724e5d8 2024-09-27): error: constant evaluation is taking a long time
--> /Users/lucasprivat/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/slice/mod.rs:118:9
|
118 | ptr::metadata(self)
| ^^^^^^^^^^^^^^^^^^^
|
= note: this lint makes sure the compiler doesn't get stuck due to infinite loops in const eval.
If your compilation actually takes a long time, you can safely allow the lint.
help: the constant being evaluated
--> hp-mobile-interop/src/web.rs:23:3
|
23 | #[wasm_bindgen(module = "/js/out/index.js")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= note: `#[deny(long_running_const_eval)]` on by default
= note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
note: erroneous constant encountered
--> hp-mobile-interop/src/web.rs:23:3
|
23 | #[wasm_bindgen(module = "/js/out/index.js")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this note originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) The js module is quite big (almost 1mb) maybe it's related to that? |
Thank you for getting back on this, I was able to reproduce it with this. |
Awesome, this fixed it for me! |
While importing the module it now gives following error:
The text was updated successfully, but these errors were encountered: