compile error
/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cap-primitives-0.24.3/src/rustix/linux/fs/set_times_impl.rs:20:25 | 20 | return file.set_times( | ^^^^^^^^^ 21 | atime.map(SystemTimeSpec::into_std), 22 | mtime.map(SystemTimeSpec::into_std), | ----------------------------------- unexpected argument https://github.com/api7/apisix-build-tools/pull/2 of type Option<fs_set_times::SystemTimeSpec> | note: expected FileTimes, found Option<SystemTimeSpec> --> /home/store/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cap-primitives-0.24.3/src/rustix/linux/fs/set_times_impl.rs:21:17 | 21 | atime.map(SystemTimeSpec::into_std), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: expected struct FileTimes found enum Option<fs_set_times::SystemTimeSpec> note: method defined here --> /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/fs.rs:1143:12 help: remove the extra argument | 21 - atime.map(SystemTimeSpec::into_std), 21 + /* FileTimes */, |
error[E0061]: this method takes 1 argument but 2 arguments were supplied --> /home/store/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cap-primitives-0.24.3/src/rustix/linux/fs/set_times_impl.rs:34:25 | 34 | return file.set_times( | ^^^^^^^^^ 35 | atime.map(SystemTimeSpec::into_std), 36 | mtime.map(SystemTimeSpec::into_std), | ----------------------------------- unexpected argument https://github.com/api7/apisix-build-tools/pull/2 of type Option<fs_set_times::SystemTimeSpec> | note: expected FileTimes, found Option<SystemTimeSpec> --> /home/store/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cap-primitives-0.24.3/src/rustix/linux/fs/set_times_impl.rs:35:17 | 35 | atime.map(SystemTimeSpec::into_std), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = note: expected struct FileTimes found enum Option<fs_set_times::SystemTimeSpec> note: method defined here --> /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/fs.rs:1143:12 help: remove the extra argument | 35 - atime.map(SystemTimeSpec::into_std), 35 + /* FileTimes */, |
Compiling tracing-core v0.1.26 Compiling paste v1.0.7 warning: cranelift-codegen-meta (lib) generated 2 warnings Compiling cranelift-codegen v0.85.1 (/tmp/tmp.k38skNwJqM/wasm-nginx-module-0.7.0/wasmtime/cranelift/codegen) Compiling wasi-common v0.38.1 (/tmp/tmp.k38skNwJqM/wasm-nginx-module-0.7.0/wasmtime/crates/wasi-common) Compiling pin-project-lite v0.2.9 Compiling system-interface v0.20.0 For more information about this error, try rustc --explain E0061. error: could not compile cap-primitives (lib) due to 2 previous errors warning: build failed, waiting for other jobs to finish... make: *** [install-runtime] Error 101