[INFO] fetching crate pink-extension-macro 0.4.4... [INFO] testing pink-extension-macro-0.4.4 against 1.90.0 for beta-1.91-3 [INFO] extracting crate pink-extension-macro 0.4.4 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate pink-extension-macro 0.4.4 [INFO] finished tweaking crates.io crate pink-extension-macro 0.4.4 [INFO] tweaked toml for crates.io crate pink-extension-macro 0.4.4 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate pink-extension-macro 0.4.4 on toolchain 1.90.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 42 packages to latest compatible versions [INFO] [stderr] Adding heck v0.4.1 (available: v0.5.0) [INFO] [stderr] Adding ink_ir v4.3.0 (available: v5.1.1) [INFO] [stderr] Adding proc-macro-crate v1.3.1 (available: v3.4.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded unzip3 v1.0.0 [INFO] [stderr] Downloaded ink_ir v4.3.0 [INFO] [stderr] Downloaded rustfmt-snippet v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b959393cbd845a236e04d1a168068790a7f3e5d5db40c95cad6ed6c3250c7edd [INFO] running `Command { std: "docker" "start" "-a" "b959393cbd845a236e04d1a168068790a7f3e5d5db40c95cad6ed6c3250c7edd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b959393cbd845a236e04d1a168068790a7f3e5d5db40c95cad6ed6c3250c7edd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b959393cbd845a236e04d1a168068790a7f3e5d5db40c95cad6ed6c3250c7edd", kill_on_drop: false }` [INFO] [stdout] b959393cbd845a236e04d1a168068790a7f3e5d5db40c95cad6ed6c3250c7edd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 230e21949e1505287d10c8a8d716b9298e85a7324445003cd62b307a328ea406 [INFO] running `Command { std: "docker" "start" "-a" "230e21949e1505287d10c8a8d716b9298e85a7324445003cd62b307a328ea406", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling hashbrown v0.16.0 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling unzip3 v1.0.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling indexmap v2.11.4 [INFO] [stderr] Compiling blake2 v0.10.6 [INFO] [stderr] Compiling ink_ir v4.3.0 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling pink-extension-macro v0.4.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `MetaNameValue` is never constructed [INFO] [stdout] --> src/chain_extension.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct MetaNameValue { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.90s [INFO] running `Command { std: "docker" "inspect" "230e21949e1505287d10c8a8d716b9298e85a7324445003cd62b307a328ea406", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "230e21949e1505287d10c8a8d716b9298e85a7324445003cd62b307a328ea406", kill_on_drop: false }` [INFO] [stdout] 230e21949e1505287d10c8a8d716b9298e85a7324445003cd62b307a328ea406 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 050c355a541b9764e7ca19b95d076a9a34f8948b2ce97fe2442e716c03c7d71b [INFO] running `Command { std: "docker" "start" "-a" "050c355a541b9764e7ca19b95d076a9a34f8948b2ce97fe2442e716c03c7d71b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling rustfmt-snippet v0.1.2 [INFO] [stderr] Compiling pink-extension-macro v0.4.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `MetaNameValue` is never constructed [INFO] [stdout] --> src/chain_extension.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct MetaNameValue { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling console v0.15.11 [INFO] [stderr] Compiling insta v1.43.2 [INFO] [stdout] warning: use of deprecated macro `insta::assert_display_snapshot`: use assert_snapshot!() instead [INFO] [stdout] --> src/driver_system.rs:286:9 [INFO] [stdout] | [INFO] [stdout] 286 | insta::assert_display_snapshot!(rustfmt_snippet::rustfmt_token_stream(&stream).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MetaNameValue` is never constructed [INFO] [stdout] --> src/chain_extension.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct MetaNameValue { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.81s [INFO] running `Command { std: "docker" "inspect" "050c355a541b9764e7ca19b95d076a9a34f8948b2ce97fe2442e716c03c7d71b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "050c355a541b9764e7ca19b95d076a9a34f8948b2ce97fe2442e716c03c7d71b", kill_on_drop: false }` [INFO] [stdout] 050c355a541b9764e7ca19b95d076a9a34f8948b2ce97fe2442e716c03c7d71b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 142f19827e8295a257d98a34b688b10eedcbb78c3d8d5dab2f580bcdea509156 [INFO] running `Command { std: "docker" "start" "-a" "142f19827e8295a257d98a34b688b10eedcbb78c3d8d5dab2f580bcdea509156", kill_on_drop: false }` [INFO] [stderr] warning: struct `MetaNameValue` is never constructed [INFO] [stderr] --> src/chain_extension.rs:9:8 [INFO] [stderr] | [INFO] [stderr] 9 | struct MetaNameValue { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `insta::assert_display_snapshot`: use assert_snapshot!() instead [INFO] [stderr] --> src/driver_system.rs:286:9 [INFO] [stderr] | [INFO] [stderr] 286 | insta::assert_display_snapshot!(rustfmt_snippet::rustfmt_token_stream(&stream).unwrap()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `pink-extension-macro` (lib) generated 1 warning [INFO] [stderr] warning: `pink-extension-macro` (lib test) generated 2 warnings (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pink_extension_macro-050e92c4a1c57649) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stderr] error: 'rustfmt' is not installed for the toolchain '1.90.0-x86_64-unknown-linux-gnu'. [INFO] [stderr] To install, run `rustup component add --toolchain 1.90.0-x86_64-unknown-linux-gnu rustfmt` [INFO] [stdout] test driver_system::tests::show_patch_result ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- driver_system::tests::show_patch_result stdout ---- [INFO] [stdout] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ [INFO] [stdout] Snapshot file: src/snapshots/pink_extension_macro__driver_system__tests__show_patch_result.snap [INFO] [stdout] Snapshot: show_patch_result [INFO] [stdout] Source: src/driver_system.rs:286 [INFO] [stdout] ──────────────────────────────────────────────────────────────────────────────── [INFO] [stdout] Expression: rustfmt_snippet::rustfmt_token_stream(&stream).unwrap() [INFO] [stdout] ──────────────────────────────────────────────────────────────────────────────── [INFO] [stdout] -old snapshot [INFO] [stdout] +new results [INFO] [stdout] ────────────┬─────────────────────────────────────────────────────────────────── [INFO] [stdout] 1 │-#[doc = "**The doc is messed up by the ink macro. See [`SystemForDoc`] for a clean version**\n\n"] [INFO] [stdout] 2 │-#[ink::trait_definition(namespace = "pink_system")] [INFO] [stdout] 3 │-pub trait System { [INFO] [stdout] 4 │- #[ink(message)] [INFO] [stdout] 5 │- fn get_driver(&self, name: String) -> Option; [INFO] [stdout] 6 │- #[ink(message)] [INFO] [stdout] 7 │- fn set_driver(&self, name: String, driver: AccountId); [INFO] [stdout] 8 │- #[ink(message)] [INFO] [stdout] 9 │- fn deploy_sidevm_to(&self, code_hash: Hash, contract_id: AccountId) -> Result<()>; [INFO] [stdout] 10 │-} [INFO] [stdout] 11 │-#[cfg(doc)] [INFO] [stdout] 12 │-#[doc = "**This is the clean version doc of [`System`]**\n\n"] [INFO] [stdout] 13 │-pub trait SystemForDoc { [INFO] [stdout] 14 │- fn get_driver(&self, name: String) -> Option; [INFO] [stdout] 15 │- fn set_driver(&self, name: String, driver: AccountId); [INFO] [stdout] 16 │- fn deploy_sidevm_to(&self, code_hash: Hash, contract_id: AccountId) -> Result<()>; [INFO] [stdout] 17 │-} [INFO] [stdout] 18 │-pub use _pink_system_impl::SystemRef; [INFO] [stdout] 19 │-mod _pink_system_impl { [INFO] [stdout] 20 │- use super::*; [INFO] [stdout] 21 │- use ink::env::call::FromAccountId; [INFO] [stdout] 22 │- use ink::env::CallFlags; [INFO] [stdout] 23 │- use ink::{codegen::TraitCallForwarder, reflect::TraitDefinitionRegistry}; [INFO] [stdout] 24 │- use pink_extension::PinkEnvironment; [INFO] [stdout] 25 │- type TraitInfo = as System>::__ink_TraitInfo; [INFO] [stdout] 26 │- type Forwarder = ::Forwarder; [INFO] [stdout] 27 │- pub enum SystemRef { [INFO] [stdout] 28 │- Instance { [INFO] [stdout] 29 │- address: AccountId, [INFO] [stdout] 30 │- call_flags: CallFlags, [INFO] [stdout] 31 │- }, [INFO] [stdout] 32 │- #[cfg(feature = "std")] [INFO] [stdout] 33 │- Mock, [INFO] [stdout] 34 │- } [INFO] [stdout] 35 │- #[cfg(feature = "std")] [INFO] [stdout] 36 │- thread_local! { static MOCK : core :: cell :: RefCell < Option < (AccountId , Box < dyn System < Env = PinkEnvironment , __ink_TraitInfo = TraitInfo , getDriverOutput = Option < AccountId > , setDriverOutput = () , deploySidevmToOutput = Result < () > , > , >) > , > = Default :: default () ; } [INFO] [stdout] 37 │- impl SystemRef { [INFO] [stdout] 38 │- #[cfg(feature = "std")] [INFO] [stdout] 39 │- pub fn mock_with( [INFO] [stdout] 40 │- contract: impl System< [INFO] [stdout] 41 │- Env = PinkEnvironment, [INFO] [stdout] 42 │- __ink_TraitInfo = TraitInfo, [INFO] [stdout] 43 │- getDriverOutput = Option, [INFO] [stdout] 44 │- setDriverOutput = (), [INFO] [stdout] 45 │- deploySidevmToOutput = Result<()>, [INFO] [stdout] 46 │- > + 'static, [INFO] [stdout] 47 │- ) { [INFO] [stdout] 48 │- MOCK.with(|x| { [INFO] [stdout] 49 │- let callee = ink::env::test::callee::(); [INFO] [stdout] 50 │- *x.borrow_mut() = Some((callee, Box::new(contract))); [INFO] [stdout] 51 │- }); [INFO] [stdout] 52 │- } [INFO] [stdout] 53 │- pub fn set_call_flags(&mut self, flags: CallFlags) { [INFO] [stdout] 54 │- if let Self::Instance { call_flags, .. } = self { [INFO] [stdout] 55 │- *call_flags = flags; [INFO] [stdout] 56 │- } [INFO] [stdout] 57 │- } [INFO] [stdout] 58 │- pub fn instance() -> Self { [INFO] [stdout] 59 │- Self::instance_with_call_flags(CallFlags::default()) [INFO] [stdout] 60 │- } [INFO] [stdout] 61 │- pub fn instance_with_call_flags(call_flags: CallFlags) -> Self { [INFO] [stdout] 62 │- #[cfg(feature = "std")] [INFO] [stdout] 63 │- if MOCK.with(|x| x.borrow_mut().is_some()) { [INFO] [stdout] 64 │- return Self::Mock; [INFO] [stdout] 65 │- } [INFO] [stdout] 66 │- Self::Instance { [INFO] [stdout] 67 │- address: pink_extension::ext().system_contract_id(), [INFO] [stdout] 68 │- call_flags, [INFO] [stdout] 69 │- } [INFO] [stdout] 70 │- } [INFO] [stdout] 71 │- } [INFO] [stdout] 72 │- impl SystemRef { [INFO] [stdout] 73 │- pub fn get_driver(&self, name: String) -> Option { [INFO] [stdout] 74 │- match self { [INFO] [stdout] 75 │- SystemRef::Instance { [INFO] [stdout] 76 │- address, [INFO] [stdout] 77 │- call_flags, [INFO] [stdout] 78 │- } => { [INFO] [stdout] 79 │- use ink::codegen::TraitCallBuilder; [INFO] [stdout] 80 │- let mut forwarder = Forwarder::from_account_id(*address); [INFO] [stdout] 81 │- forwarder [INFO] [stdout] 82 │- .call() [INFO] [stdout] 83 │- .get_driver(name) [INFO] [stdout] 84 │- .call_flags(call_flags.clone()) [INFO] [stdout] 85 │- .invoke() [INFO] [stdout] 86 │- } [INFO] [stdout] 87 │- #[cfg(feature = "std")] [INFO] [stdout] 88 │- SystemRef::Mock => MOCK.with(move |x| { [INFO] [stdout] 89 │- let mut borrow = x.borrow_mut(); [INFO] [stdout] 90 │- let (callee, forwarder) = borrow.as_mut().unwrap(); [INFO] [stdout] 91 │- let prev_callee = ink::env::test::callee::(); [INFO] [stdout] 92 │- let prev_caller = ink::env::caller::(); [INFO] [stdout] 93 │- ink::env::test::set_caller::(prev_callee.clone()); [INFO] [stdout] 94 │- ink::env::test::set_callee::(callee.clone()); [INFO] [stdout] 95 │- let ret = forwarder.get_driver(name); [INFO] [stdout] 96 │- ink::env::test::set_callee::(prev_callee); [INFO] [stdout] 97 │- ink::env::test::set_caller::(prev_caller); [INFO] [stdout] 98 │- ret [INFO] [stdout] 99 │- }), [INFO] [stdout] 100 │- } [INFO] [stdout] 101 │- } [INFO] [stdout] 102 │- pub fn set_driver(&self, name: String, driver: AccountId) { [INFO] [stdout] 103 │- match self { [INFO] [stdout] 104 │- SystemRef::Instance { [INFO] [stdout] 105 │- address, [INFO] [stdout] 106 │- call_flags, [INFO] [stdout] 107 │- } => { [INFO] [stdout] 108 │- use ink::codegen::TraitCallBuilder; [INFO] [stdout] 109 │- let mut forwarder = Forwarder::from_account_id(*address); [INFO] [stdout] 110 │- forwarder [INFO] [stdout] 111 │- .call() [INFO] [stdout] 112 │- .set_driver(name, driver) [INFO] [stdout] 113 │- .call_flags(call_flags.clone()) [INFO] [stdout] 114 │- .invoke() [INFO] [stdout] 115 │- } [INFO] [stdout] 116 │- #[cfg(feature = "std")] [INFO] [stdout] 117 │- SystemRef::Mock => MOCK.with(move |x| { [INFO] [stdout] 118 │- let mut borrow = x.borrow_mut(); [INFO] [stdout] 119 │- let (callee, forwarder) = borrow.as_mut().unwrap(); [INFO] [stdout] 120 │- let prev_callee = ink::env::test::callee::(); [INFO] [stdout] 121 │- let prev_caller = ink::env::caller::(); [INFO] [stdout] 122 │- ink::env::test::set_caller::(prev_callee.clone()); [INFO] [stdout] 123 │- ink::env::test::set_callee::(callee.clone()); [INFO] [stdout] 124 │- let ret = forwarder.set_driver(name, driver); [INFO] [stdout] 125 │- ink::env::test::set_callee::(prev_callee); [INFO] [stdout] 126 │- ink::env::test::set_caller::(prev_caller); [INFO] [stdout] 127 │- ret [INFO] [stdout] 128 │- }), [INFO] [stdout] 129 │- } [INFO] [stdout] 130 │- } [INFO] [stdout] 131 │- pub fn deploy_sidevm_to(&self, code_hash: Hash, contract_id: AccountId) -> Result<()> { [INFO] [stdout] 132 │- match self { [INFO] [stdout] 133 │- SystemRef::Instance { [INFO] [stdout] 134 │- address, [INFO] [stdout] 135 │- call_flags, [INFO] [stdout] 136 │- } => { [INFO] [stdout] 137 │- use ink::codegen::TraitCallBuilder; [INFO] [stdout] 138 │- let mut forwarder = Forwarder::from_account_id(*address); [INFO] [stdout] 139 │- forwarder [INFO] [stdout] 140 │- .call() [INFO] [stdout] 141 │- .deploy_sidevm_to(code_hash, contract_id) [INFO] [stdout] 142 │- .call_flags(call_flags.clone()) [INFO] [stdout] 143 │- .invoke() [INFO] [stdout] 144 │- } [INFO] [stdout] 145 │- #[cfg(feature = "std")] [INFO] [stdout] 146 │- SystemRef::Mock => MOCK.with(move |x| { [INFO] [stdout] 147 │- let mut borrow = x.borrow_mut(); [INFO] [stdout] 148 │- let (callee, forwarder) = borrow.as_mut().unwrap(); [INFO] [stdout] 149 │- let prev_callee = ink::env::test::callee::(); [INFO] [stdout] 150 │- let prev_caller = ink::env::caller::(); [INFO] [stdout] 151 │- ink::env::test::set_caller::(prev_callee.clone()); [INFO] [stdout] 152 │- ink::env::test::set_callee::(callee.clone()); [INFO] [stdout] 153 │- let ret = forwarder.deploy_sidevm_to(code_hash, contract_id); [INFO] [stdout] 154 │- ink::env::test::set_callee::(prev_callee); [INFO] [stdout] 155 │- ink::env::test::set_caller::(prev_caller); [INFO] [stdout] 156 │- ret [INFO] [stdout] 157 │- }), [INFO] [stdout] 158 │- } [INFO] [stdout] 159 │- } [INFO] [stdout] 160 │- } [INFO] [stdout] 161 │-} [INFO] [stdout] ────────────┴─────────────────────────────────────────────────────────────────── [INFO] [stdout] [INFO] [stdout] thread 'driver_system::tests::show_patch_result' panicked at src/driver_system.rs:286:9: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: FileIo(Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" }, "/opt/rustwide/workdir/src/snapshots/pink_extension_macro__driver_system__tests__show_patch_result.snap.new") [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x738109310c92 - std::backtrace_rs::backtrace::libunwind::trace::h2d45396358f41939 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x738109310c92 - std::backtrace_rs::backtrace::trace_unsynchronized::hffcefc0b67f1d6e2 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x738109310c92 - std::sys::backtrace::_print_fmt::hd72f71d23b436b92 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x738109310c92 - ::fmt::hdcfcb6d4c8489523 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x738109361a13 - core::fmt::rt::Argument::fmt::h2c56b3114963061a [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x738109361a13 - core::fmt::write::h8a494366950f23bb [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/fmt/mod.rs:1468:25 [INFO] [stdout] 6: 0x738109304843 - std::io::default_write_fmt::h7b8824096454f323 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x738109304843 - std::io::Write::write_fmt::h4e71294925c334d0 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x738109310ae2 - std::sys::backtrace::BacktraceLock::print::hb2a626a81e06b2dc [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x7381093147a9 - std::panicking::default_hook::{{closure}}::h4f78485264f12d10 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:300:27 [INFO] [stdout] 10: 0x7381093145de - std::panicking::default_hook::h2c66fc99e962531d [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x5df40a773964 - as core::ops::function::Fn>::call::hb6bd65493727d71a [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 12: 0x5df40a773964 - test::test_main_with_exit_callback::{{closure}}::h60217ec76a0ece4a [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x7381093152ee - as core::ops::function::Fn>::call::h318e4efb8c1a5689 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1985:9 [INFO] [stdout] 14: 0x7381093152ee - std::panicking::rust_panic_with_hook::h33ac55f64bbd807d [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x738109314fba - std::panicking::begin_panic_handler::{{closure}}::h30e7cb89678a57fe [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x738109311199 - std::sys::backtrace::__rust_end_short_backtrace::hed60f27456c16ced [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 17: 0x738109314c4d - __rustc[de2ca18b4c54d5b8]::rust_begin_unwind [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x73810935cc30 - core::panicking::panic_fmt::h62f63d096dd276af [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x73810935d236 - core::result::unwrap_failed::h95bc3f5a607b2c95 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/result.rs:1765:5 [INFO] [stdout] 20: 0x5df40a62d9c5 - core::result::Result::unwrap::haf9158a9f4e905e8 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/result.rs:1167:23 [INFO] [stdout] 21: 0x5df40a62d9c5 - pink_extension_macro::driver_system::tests::show_patch_result::hd6505b633f85b5ed [INFO] [stdout] at /opt/rustwide/workdir/src/driver_system.rs:286:9 [INFO] [stdout] 22: 0x5df40a62c6f7 - pink_extension_macro::driver_system::tests::show_patch_result::{{closure}}::h47d44c2a922ea9d5 [INFO] [stdout] at /opt/rustwide/workdir/src/driver_system.rs:268:27 [INFO] [stdout] 23: 0x5df40a629516 - core::ops::function::FnOnce::call_once::h078c604715acfc88 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 24: 0x5df40a7791cb - core::ops::function::FnOnce::call_once::h1f9474f1347fff52 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 25: 0x5df40a7791cb - test::__rust_begin_short_backtrace::ha52ab26e77157f03 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x5df40a778305 - test::run_test_in_process::{{closure}}::h229c1a11a50b261f [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:671:74 [INFO] [stdout] 27: 0x5df40a778305 - as core::ops::function::FnOnce<()>>::call_once::h78821afbf97b39a9 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x5df40a778305 - std::panicking::catch_unwind::do_call::h53abf3ed5bd32ba3 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x5df40a778305 - std::panicking::catch_unwind::h6deb5fe1e91873c9 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x5df40a778305 - std::panic::catch_unwind::hea0829b6b565654b [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x5df40a778305 - test::run_test_in_process::hdc44dfecea3db21b [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x5df40a778305 - test::run_test::{{closure}}::h0364ba59bf23f652 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x5df40a73bf04 - test::run_test::{{closure}}::h32730b304eec05da [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x5df40a73bf04 - std::sys::backtrace::__rust_begin_short_backtrace::h177cb952fc54ad2c [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:158:18 [INFO] [stdout] 35: 0x5df40a73f8da - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h119d903520007597 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x5df40a73f8da - as core::ops::function::FnOnce<()>>::call_once::hab88401d606702a6 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x5df40a73f8da - std::panicking::catch_unwind::do_call::h163fe12cca9901c2 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x5df40a73f8da - std::panicking::catch_unwind::he81557d0e17cc1bc [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x5df40a73f8da - std::panic::catch_unwind::hc2b8e79c20593955 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x5df40a73f8da - std::thread::Builder::spawn_unchecked_::{{closure}}::hfa6b4978e07815cc [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x5df40a73f8da - core::ops::function::FnOnce::call_once{{vtable.shim}}::hddcd7484a13fd793 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5 [INFO] [stdout] 42: 0x738109319adf - as core::ops::function::FnOnce>::call_once::h5924238c754de3b8 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1971:9 [INFO] [stdout] 43: 0x738109319adf - std::sys::pal::unix::thread::Thread::new::thread_start::hb6e99e73da4d28f8 [INFO] [stdout] at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/pal/unix/thread.rs:107:17 [INFO] [stdout] 44: 0x738109083aa4 - [INFO] [stdout] 45: 0x738109110a34 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] driver_system::tests::show_patch_result [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.25s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] running `Command { std: "docker" "inspect" "142f19827e8295a257d98a34b688b10eedcbb78c3d8d5dab2f580bcdea509156", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "142f19827e8295a257d98a34b688b10eedcbb78c3d8d5dab2f580bcdea509156", kill_on_drop: false }` [INFO] [stdout] 142f19827e8295a257d98a34b688b10eedcbb78c3d8d5dab2f580bcdea509156