[INFO] fetching crate smcrypto 0.2.1...
[INFO] testing smcrypto-0.2.1 against master#1871252fc8bb672d40787e67404e6eaae7059369 for pr-125151
[INFO] extracting crate smcrypto 0.2.1 into /workspace/builds/worker-2-tc1/source
[INFO] validating manifest of crates.io crate smcrypto 0.2.1 on toolchain 1871252fc8bb672d40787e67404e6eaae7059369
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate smcrypto 0.2.1
[INFO] finished tweaking crates.io crate smcrypto 0.2.1
[INFO] tweaked toml for crates.io crate smcrypto 0.2.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 19 packages to latest compatible versions
[INFO] [stderr]       Adding base64 v0.13.1 (latest: v0.22.1)
[INFO] [stderr]       Adding pem v1.1.1 (latest: v3.0.4)
[INFO] [stderr]       Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.1+wasi-0.2.0)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 30e1c2b11ccbc5666de8c95b2a78137b9deca0f8c5911757830cfa7be0ea99dc
[INFO] running `Command { std: "docker" "start" "-a" "30e1c2b11ccbc5666de8c95b2a78137b9deca0f8c5911757830cfa7be0ea99dc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "30e1c2b11ccbc5666de8c95b2a78137b9deca0f8c5911757830cfa7be0ea99dc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "30e1c2b11ccbc5666de8c95b2a78137b9deca0f8c5911757830cfa7be0ea99dc", kill_on_drop: false }`
[INFO] [stdout] 30e1c2b11ccbc5666de8c95b2a78137b9deca0f8c5911757830cfa7be0ea99dc
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0ef582dd554af0a08e302745c7816dff08e95e36cc31ca5b5ea20af4596dc4d3
[INFO] running `Command { std: "docker" "start" "-a" "0ef582dd554af0a08e302745c7816dff08e95e36cc31ca5b5ea20af4596dc4d3", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling base64 v0.13.1
[INFO] [stderr]    Compiling pem v1.1.1
[INFO] [stderr]    Compiling num-integer v0.1.46
[INFO] [stderr]    Compiling num-bigint v0.4.5
[INFO] [stderr]    Compiling yasna v0.5.2
[INFO] [stderr]    Compiling smcrypto v0.2.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.85s
[INFO] running `Command { std: "docker" "inspect" "0ef582dd554af0a08e302745c7816dff08e95e36cc31ca5b5ea20af4596dc4d3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0ef582dd554af0a08e302745c7816dff08e95e36cc31ca5b5ea20af4596dc4d3", kill_on_drop: false }`
[INFO] [stdout] 0ef582dd554af0a08e302745c7816dff08e95e36cc31ca5b5ea20af4596dc4d3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 632a84cfe2b1ec8352fb36c57c6db861d31e67c6d1e0ce3a06bb83eacd63c1e8
[INFO] running `Command { std: "docker" "start" "-a" "632a84cfe2b1ec8352fb36c57c6db861d31e67c6d1e0ce3a06bb83eacd63c1e8", kill_on_drop: false }`
[INFO] [stderr]    Compiling smcrypto v0.2.1 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.84s
[INFO] running `Command { std: "docker" "inspect" "632a84cfe2b1ec8352fb36c57c6db861d31e67c6d1e0ce3a06bb83eacd63c1e8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "632a84cfe2b1ec8352fb36c57c6db861d31e67c6d1e0ce3a06bb83eacd63c1e8", kill_on_drop: false }`
[INFO] [stdout] 632a84cfe2b1ec8352fb36c57c6db861d31e67c6d1e0ce3a06bb83eacd63c1e8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 687c71c99fe24caf6c6d4b5ebfd3ef94e74e63262c65c16c80a9384ee913c092
[INFO] running `Command { std: "docker" "start" "-a" "687c71c99fe24caf6c6d4b5ebfd3ef94e74e63262c65c16c80a9384ee913c092", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/smcrypto-dd7440ed8af2630b)
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests smcrypto
[INFO] [stdout] 
[INFO] [stdout] running 7 tests
[INFO] [stdout] test src/lib.rs - (line 76) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 7) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 16) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 32) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 42) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 66) ... FAILED
[INFO] [stdout] test src/lib.rs - (line 22) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/lib.rs - (line 76) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sm4`
[INFO] [stdout]  --> src/lib.rs:79:15
[INFO] [stdout]   |
[INFO] [stdout] 5 | let sm4_cbc = sm4::CryptSM4CBC::new(key, iv);
[INFO] [stdout]   |               ^^^ use of undeclared crate or module `sm4`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use smcrypto::sm4::CryptSM4CBC;
[INFO] [stdout]   |
[INFO] [stdout] help: if you import `CryptSM4CBC`, refer to it directly
[INFO] [stdout]   |
[INFO] [stdout] 5 - let sm4_cbc = sm4::CryptSM4CBC::new(key, iv);
[INFO] [stdout] 5 + let sm4_cbc = CryptSM4CBC::new(key, iv);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 7) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sm3`
[INFO] [stdout]  --> src/lib.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 3 | let hash = sm3::sm3_hash(b"abc");
[INFO] [stdout]   |            ^^^ use of undeclared crate or module `sm3`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 2 + use smcrypto::sm3;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 16) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sm2`
[INFO] [stdout]  --> src/lib.rs:17:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | let (sk, pk) = sm2::gen_keypair();
[INFO] [stdout]   |                ^^^ use of undeclared crate or module `sm2`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 2 + use smcrypto::sm2;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 32) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sm2`
[INFO] [stdout]  --> src/lib.rs:33:15
[INFO] [stdout]   |
[INFO] [stdout] 3 | let enc_ctx = sm2::Encrypt::new(&pk);
[INFO] [stdout]   |               ^^^ use of undeclared crate or module `sm2`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use smcrypto::sm2::Encrypt;
[INFO] [stdout]   |
[INFO] [stdout] help: if you import `Encrypt`, refer to it directly
[INFO] [stdout]   |
[INFO] [stdout] 3 - let enc_ctx = sm2::Encrypt::new(&pk);
[INFO] [stdout] 3 + let enc_ctx = Encrypt::new(&pk);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `pk` in this scope
[INFO] [stdout]  --> src/lib.rs:33:34
[INFO] [stdout]   |
[INFO] [stdout] 3 | let enc_ctx = sm2::Encrypt::new(&pk);
[INFO] [stdout]   |                                  ^^ help: a tuple variant with a similar name exists: `Ok`
[INFO] [stdout]  --> /rustc/1871252fc8bb672d40787e67404e6eaae7059369/library/core/src/result.rs:506:5
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named tuple variant `Ok` defined here
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sm2`
[INFO] [stdout]  --> src/lib.rs:35:15
[INFO] [stdout]   |
[INFO] [stdout] 5 | let dec_ctx = sm2::Decrypt::new(&sk);
[INFO] [stdout]   |               ^^^ use of undeclared crate or module `sm2`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use smcrypto::sm2::Decrypt;
[INFO] [stdout]   |
[INFO] [stdout] help: if you import `Decrypt`, refer to it directly
[INFO] [stdout]   |
[INFO] [stdout] 5 - let dec_ctx = sm2::Decrypt::new(&sk);
[INFO] [stdout] 5 + let dec_ctx = Decrypt::new(&sk);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sk` in this scope
[INFO] [stdout]  --> src/lib.rs:35:34
[INFO] [stdout]   |
[INFO] [stdout] 5 | let dec_ctx = sm2::Decrypt::new(&sk);
[INFO] [stdout]   |                                  ^^ help: a tuple variant with a similar name exists: `Ok`
[INFO] [stdout]  --> /rustc/1871252fc8bb672d40787e67404e6eaae7059369/library/core/src/result.rs:506:5
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named tuple variant `Ok` defined here
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 42) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sm2`
[INFO] [stdout]  --> src/lib.rs:46:16
[INFO] [stdout]   |
[INFO] [stdout] 6 | let (ska, _) = sm2::gen_keypair();
[INFO] [stdout]   |                ^^^ use of undeclared crate or module `sm2`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]   |
[INFO] [stdout] 4 + use smcrypto::sm2;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sm2`
[INFO] [stdout]  --> src/lib.rs:47:21
[INFO] [stdout]   |
[INFO] [stdout] 7 | let keyexchange_a = sm2::KeyExchange::new(ida, &ska);
[INFO] [stdout]   |                     ^^^ use of undeclared crate or module `sm2`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 4 + use smcrypto::sm2::KeyExchange;
[INFO] [stdout]   |
[INFO] [stdout] help: if you import `KeyExchange`, refer to it directly
[INFO] [stdout]   |
[INFO] [stdout] 7 - let keyexchange_a = sm2::KeyExchange::new(ida, &ska);
[INFO] [stdout] 7 + let keyexchange_a = KeyExchange::new(ida, &ska);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sm2`
[INFO] [stdout]   --> src/lib.rs:51:16
[INFO] [stdout]    |
[INFO] [stdout] 11 | let (skb, _) = sm2::gen_keypair();
[INFO] [stdout]    |                ^^^ use of undeclared crate or module `sm2`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this module
[INFO] [stdout]    |
[INFO] [stdout] 4  + use smcrypto::sm2;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sm2`
[INFO] [stdout]   --> src/lib.rs:52:21
[INFO] [stdout]    |
[INFO] [stdout] 12 | let keyexchange_b = sm2::KeyExchange::new(idb, &skb);
[INFO] [stdout]    |                     ^^^ use of undeclared crate or module `sm2`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 4  + use smcrypto::sm2::KeyExchange;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `KeyExchange`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 12 - let keyexchange_b = sm2::KeyExchange::new(idb, &skb);
[INFO] [stdout] 12 + let keyexchange_b = KeyExchange::new(idb, &skb);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 66) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sm4`
[INFO] [stdout]  --> src/lib.rs:68:15
[INFO] [stdout]   |
[INFO] [stdout] 4 | let sm4_ecb = sm4::CryptSM4ECB::new(key);
[INFO] [stdout]   |               ^^^ use of undeclared crate or module `sm4`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use smcrypto::sm4::CryptSM4ECB;
[INFO] [stdout]   |
[INFO] [stdout] help: if you import `CryptSM4ECB`, refer to it directly
[INFO] [stdout]   |
[INFO] [stdout] 4 - let sm4_ecb = sm4::CryptSM4ECB::new(key);
[INFO] [stdout] 4 + let sm4_ecb = CryptSM4ECB::new(key);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/lib.rs - (line 22) stdout ----
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sm2`
[INFO] [stdout]  --> src/lib.rs:23:16
[INFO] [stdout]   |
[INFO] [stdout] 3 | let sign_ctx = sm2::Sign::new(&sk);
[INFO] [stdout]   |                ^^^ use of undeclared crate or module `sm2`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing one of these items
[INFO] [stdout]   |
[INFO] [stdout] 2 + use num_bigint::Sign;
[INFO] [stdout]   |
[INFO] [stdout] 2 + use smcrypto::sm2::Sign;
[INFO] [stdout]   |
[INFO] [stdout] help: if you import `Sign`, refer to it directly
[INFO] [stdout]   |
[INFO] [stdout] 3 - let sign_ctx = sm2::Sign::new(&sk);
[INFO] [stdout] 3 + let sign_ctx = Sign::new(&sk);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `sk` in this scope
[INFO] [stdout]  --> src/lib.rs:23:32
[INFO] [stdout]   |
[INFO] [stdout] 3 | let sign_ctx = sm2::Sign::new(&sk);
[INFO] [stdout]   |                                ^^ help: a tuple variant with a similar name exists: `Ok`
[INFO] [stdout]  --> /rustc/1871252fc8bb672d40787e67404e6eaae7059369/library/core/src/result.rs:506:5
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named tuple variant `Ok` defined here
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `sm2`
[INFO] [stdout]  --> src/lib.rs:25:18
[INFO] [stdout]   |
[INFO] [stdout] 5 | let verify_ctx = sm2::Verify::new(&pk);
[INFO] [stdout]   |                  ^^^ use of undeclared crate or module `sm2`
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 2 + use smcrypto::sm2::Verify;
[INFO] [stdout]   |
[INFO] [stdout] help: if you import `Verify`, refer to it directly
[INFO] [stdout]   |
[INFO] [stdout] 5 - let verify_ctx = sm2::Verify::new(&pk);
[INFO] [stdout] 5 + let verify_ctx = Verify::new(&pk);
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `pk` in this scope
[INFO] [stdout]  --> src/lib.rs:25:36
[INFO] [stdout]   |
[INFO] [stdout] 5 | let verify_ctx = sm2::Verify::new(&pk);
[INFO] [stdout]   |                                    ^^ help: a tuple variant with a similar name exists: `Ok`
[INFO] [stdout]  --> /rustc/1871252fc8bb672d40787e67404e6eaae7059369/library/core/src/result.rs:506:5
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named tuple variant `Ok` defined here
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/lib.rs - (line 16)
[INFO] [stdout]     src/lib.rs - (line 22)
[INFO] [stdout]     src/lib.rs - (line 32)
[INFO] [stdout]     src/lib.rs - (line 42)
[INFO] [stdout]     src/lib.rs - (line 66)
[INFO] [stdout]     src/lib.rs - (line 7)
[INFO] [stdout]     src/lib.rs - (line 76)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.29s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "687c71c99fe24caf6c6d4b5ebfd3ef94e74e63262c65c16c80a9384ee913c092", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "687c71c99fe24caf6c6d4b5ebfd3ef94e74e63262c65c16c80a9384ee913c092", kill_on_drop: false }`
[INFO] [stdout] 687c71c99fe24caf6c6d4b5ebfd3ef94e74e63262c65c16c80a9384ee913c092
