-
Notifications
You must be signed in to change notification settings - Fork 221
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
subtle-2.3.0 and clear_on_drop CANNOT compile. HELP #336
Comments
Hi, this is caused by the Rust 1.41 MSRV requirement on |
D:\Projects\bulletproofs-main>rustup update stable-x86_64-pc-windows-msvc unchanged - rustc 1.47.0 (18bf6b4f0 2020-10-07) info: cleaning up downloads & tmp directories My rust version maybe 1.41 or above.....but still cannot comile subtle |
error[E0432]: unresolved import When I edit environment variety, change to 1.49-nightly. Occur the new error..... |
Hmm, does that error occur on stable rust without using the |
rust-lang/packed_simd#288 (comment) I use this, then |
build passed with recent nightly and several lines deleted
|
Hi all, the upstream for this crate is now https://github.com/zkcrypto/bulletproofs and this issue should be already fixed there. |
I cann't compile some packge, please help , thank you.
Output of "cargo build"
error[E0210]: type parameter
T
must be used as the type parameter for some local type (e.g.,MyStruct<T>
)--> C:\Users\KAIDO.cargo\registry\src\mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b\subtle-2.3.0\src\lib.rs:510:1
|
510 | impl From<CtOption> for Option {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type parameter
T
must be used as the type parameter for some local type|
= note: only traits defined in the current crate can be implemented for a type parameter
error: aborting due to previous error
For more information about this error, try
rustc --explain E0210
.error: Could not compile
subtle
.warning: build failed, waiting for other jobs to finish...
error: cannot find macro
llvm_asm!
in this scope--> C:\Users\KAIDO.cargo\registry\src\mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b\clear_on_drop-0.2.4\src\hide.rs:38:17
|
38 | llvm_asm!("" : : "r" (ptr as *mut u8) : "memory");
| ^^^^^^^^
error: cannot find macro
llvm_asm!
in this scope--> C:\Users\KAIDO.cargo\registry\src\mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b\clear_on_drop-0.2.4\src\hide.rs:48:17
|
48 | llvm_asm!("" : "=*m" (ptr) : "*0" (ptr));
| ^^^^^^^^
error: aborting due to 2 previous errors
error: Could not compile
clear_on_drop
.warning: build failed, waiting for other jobs to finish...
error: build failed
The text was updated successfully, but these errors were encountered: