From ac9cfee8e7355503815194a6ed18d8434ed4fe54 Mon Sep 17 00:00:00 2001 From: Alexey Proshutinskiy Date: Sun, 7 Jul 2024 14:45:40 +0300 Subject: [PATCH 1/3] feat: track nonce --- crates/chain-connector/src/connector.rs | 53 +++++++++++++++---------- 1 file changed, 33 insertions(+), 20 deletions(-) diff --git a/crates/chain-connector/src/connector.rs b/crates/chain-connector/src/connector.rs index 5ebcbf4e0e..0f3b4079ff 100644 --- a/crates/chain-connector/src/connector.rs +++ b/crates/chain-connector/src/connector.rs @@ -1,20 +1,17 @@ /* - * Nox Fluence Peer + * Copyright 2024 Fluence DAO * - * Copyright (C) 2024 Fluence DAO + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation version 3 of the - * License. + * http://www.apache.org/licenses/LICENSE-2.0 * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ use alloy_primitives::hex::ToHexExt; @@ -82,7 +79,7 @@ pub trait ChainConnector: Send + Sync { pub struct HttpChainConnector { client: Arc, config: ChainConfig, - tx_nonce_mutex: Arc>, + tx_nonce_mutex: Arc>>, host_id: PeerId, } @@ -106,7 +103,7 @@ impl HttpChainConnector { let connector = Arc::new(Self { client: Arc::new(HttpClientBuilder::default().build(&config.http_endpoint)?), config, - tx_nonce_mutex: Arc::new(Default::default()), + tx_nonce_mutex: Arc::new(Mutex::new(None)), host_id, }); @@ -458,8 +455,11 @@ impl HttpChainConnector { let max_fee_per_gas = base_fee + max_priority_fee_per_gas; // We use this lock no ensure that we don't send two transactions with the same nonce - let _lock = self.tx_nonce_mutex.lock().await; - let nonce = self.get_tx_nonce().await?; + let mut nonce_guard = self.tx_nonce_mutex.lock().await; + let nonce = match *nonce_guard { + None => self.get_tx_nonce().await?, + Some(n) => n, + }; // Create a new transaction let tx = Transaction::Eip1559 { @@ -487,12 +487,25 @@ impl HttpChainConnector { self.config.wallet_key.to_address() ); - let resp: String = process_response( + let result: Result = process_response( self.client .request("eth_sendRawTransaction", rpc_params![format!("0x{}", tx)]) .await, - )?; - Ok(resp) + ); + + match result { + Ok(resp) => { + let new_nonce = nonce + Uint::from(1); + *nonce_guard = Some(new_nonce); + tracing::debug!(target: "chain-connector", "Incrementing nonce. New nonce {new_nonce}"); + Ok(resp) + } + Err(err) => { + tracing::warn!(target: "chain-connector", "Failed to send tx: {err}, resetting nonce"); + *nonce_guard = None; + Err(err) + } + } } pub async fn register_worker( From 5357ab4b6e644a155773dbbbceb5d0b34201fdc4 Mon Sep 17 00:00:00 2001 From: Alexey Proshutinskiy Date: Sun, 7 Jul 2024 14:59:48 +0300 Subject: [PATCH 2/3] fix copyright --- crates/chain-connector/src/connector.rs | 23 +++++---- rustc-ice-2024-03-06T21_11_36-33718.txt | 63 +++++++++++++++++++++++++ rustc-ice-2024-03-14T00_15_28-80203.txt | 57 ++++++++++++++++++++++ test.aqua | 0 4 files changed, 133 insertions(+), 10 deletions(-) create mode 100644 rustc-ice-2024-03-06T21_11_36-33718.txt create mode 100644 rustc-ice-2024-03-14T00_15_28-80203.txt create mode 100644 test.aqua diff --git a/crates/chain-connector/src/connector.rs b/crates/chain-connector/src/connector.rs index 0f3b4079ff..8fe64e8d1f 100644 --- a/crates/chain-connector/src/connector.rs +++ b/crates/chain-connector/src/connector.rs @@ -1,17 +1,20 @@ /* - * Copyright 2024 Fluence DAO + * Nox Fluence Peer * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at + * Copyright (C) 2024 Fluence DAO * - * http://www.apache.org/licenses/LICENSE-2.0 + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation version 3 of the + * License. * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . */ use alloy_primitives::hex::ToHexExt; diff --git a/rustc-ice-2024-03-06T21_11_36-33718.txt b/rustc-ice-2024-03-06T21_11_36-33718.txt new file mode 100644 index 0000000000..714cb6bf34 --- /dev/null +++ b/rustc-ice-2024-03-06T21_11_36-33718.txt @@ -0,0 +1,63 @@ +thread 'rustc' panicked at /rustc/edf0b1db0a7f29d71ee82cfc53bdc170fe74e501/compiler/rustc_errors/src/lib.rs:1000:33: +Box +stack backtrace: + 0: 0x1050ac2cc - std::backtrace::Backtrace::create::h6858622cac804e1e + 1: 0x10e4cb760 - as core[e84f05aec3508a1b]::ops::function::Fn<(&dyn for<'a, 'b> core[e84f05aec3508a1b]::ops::function::Fn<(&'a core[e84f05aec3508a1b]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[e84f05aec3508a1b]::marker::Send + core[e84f05aec3508a1b]::marker::Sync, &core[e84f05aec3508a1b]::panic::panic_info::PanicInfo)>>::call + 2: 0x1050c41c8 - std::panicking::rust_panic_with_hook::h5e0e3ea3eab0762f + 3: 0x10f2c5e70 - std[fc5d079b268c001b]::panicking::begin_panic::::{closure#0} + 4: 0x10f2c4af8 - std[fc5d079b268c001b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> + 5: 0x1122f86b4 - std[fc5d079b268c001b]::panicking::begin_panic:: + 6: 0x10f2261b8 - ::span_bug:: + 7: 0x10f225d7c - ::span_bug:: + 8: 0x10f24beec - rustc_middle[e980463d3e0fd3c]::util::bug::opt_span_bug_fmt::::{closure#0} + 9: 0x10f24bf20 - rustc_middle[e980463d3e0fd3c]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} + 10: 0x10f2493bc - rustc_middle[e980463d3e0fd3c]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> + 11: 0x1122f8728 - rustc_middle[e980463d3e0fd3c]::util::bug::span_bug_fmt:: + 12: 0x10f1da374 - rustc_mir_transform[b92a66d6aae1cce]::coroutine::mir_coroutine_witnesses + 13: 0x10f6dd4ac - rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::__rust_begin_short_backtrace::> + 14: 0x10f85a020 - >::call_once + 15: 0x10f64fe6c - rustc_query_system[ab8509ee9b52e65a]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::QueryCtxt, true> + 16: 0x10f7fe8bc - rustc_query_impl[aa2e85dfa7ce5c23]::query_impl::mir_coroutine_witnesses::get_query_incr::__rust_end_short_backtrace + 17: 0x10ee8c82c - rustc_middle[e980463d3e0fd3c]::query::plumbing::query_get_at::>> + 18: 0x10efcd654 - >::fold_ty + 19: 0x10efd00d4 - rustc_middle[e980463d3e0fd3c]::ty::util::fold_list:: as rustc_type_ir[dadb12f4d6a7c7f6]::fold::TypeFoldable>::try_fold_with::{closure#0}> + 20: 0x10ef64bf8 - >::try_super_fold_with:: + 21: 0x10efcd458 - >::fold_ty + 22: 0x10efcd3bc - ::expand_opaque_ty + 23: 0x10efcd478 - >::fold_ty + 24: 0x10efcd6c0 - >::fold_ty + 25: 0x10efd00d4 - rustc_middle[e980463d3e0fd3c]::ty::util::fold_list:: as rustc_type_ir[dadb12f4d6a7c7f6]::fold::TypeFoldable>::try_fold_with::{closure#0}> + 26: 0x10ef64bf8 - >::try_super_fold_with:: + 27: 0x10efcd458 - >::fold_ty + 28: 0x10efcd3bc - ::expand_opaque_ty + 29: 0x10ee8ddb0 - ::try_expand_impl_trait_type + 30: 0x10e778980 - rustc_hir_analysis[79a5e603f16ffcf8]::check::check::check_item_type + 31: 0x10e77f000 - rustc_hir_analysis[79a5e603f16ffcf8]::check::check::check_mod_item_types + 32: 0x10f6dc0b0 - rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::__rust_begin_short_backtrace::> + 33: 0x10f6fb754 - >::call_once + 34: 0x10f636a58 - rustc_query_system[ab8509ee9b52e65a]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::QueryCtxt, true> + 35: 0x10f8abec8 - rustc_query_impl[aa2e85dfa7ce5c23]::query_impl::check_mod_item_types::get_query_incr::__rust_end_short_backtrace + 36: 0x10e8166ec - ::for_each_module:: + 37: 0x10e7a05d0 - rustc_hir_analysis[79a5e603f16ffcf8]::check_crate + 38: 0x10ec52ce0 - rustc_interface[4de0952d7d663935]::passes::analysis + 39: 0x10f6de9bc - rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::__rust_begin_short_backtrace::> + 40: 0x10f79937c - >::call_once + 41: 0x10f5f8648 - rustc_query_system[ab8509ee9b52e65a]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::QueryCtxt, true> + 42: 0x10f7fd568 - rustc_query_impl[aa2e85dfa7ce5c23]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 43: 0x10e4d3170 - ::enter::> + 44: 0x10e450c4c - ::enter::, rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>> + 45: 0x10e4d1534 - rustc_span[e4c885c4c47bbc90]::set_source_map::, rustc_interface[4de0952d7d663935]::interface::run_compiler, rustc_driver_impl[a5cbd23e5e1b846f]::run_compiler::{closure#1}>::{closure#0}::{closure#0}> + 46: 0x10e4d9bc4 - std[fc5d079b268c001b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[a5cbd23e5e1b846f]::run_compiler::{closure#1}>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>> + 47: 0x10e4ad308 - <::spawn_unchecked_, rustc_driver_impl[a5cbd23e5e1b846f]::run_compiler::{closure#1}>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#1} as core[e84f05aec3508a1b]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 48: 0x1050cc3c4 - std::sys::unix::thread::Thread::new::thread_start::hf4a34515c60a26a3 + 49: 0x18122e034 - __pthread_joiner_wake + + +rustc version: 1.75.0-nightly (edf0b1db0 2023-11-10) +platform: aarch64-apple-darwin + +query stack during panic: +#0 [mir_coroutine_witnesses] coroutine witness types for `listener::::submit_proof::{closure#0}` +#1 [check_mod_item_types] checking item types in module `listener` +#2 [analysis] running analysis passes on this crate +end of query stack diff --git a/rustc-ice-2024-03-14T00_15_28-80203.txt b/rustc-ice-2024-03-14T00_15_28-80203.txt new file mode 100644 index 0000000000..18d5b29a29 --- /dev/null +++ b/rustc-ice-2024-03-14T00_15_28-80203.txt @@ -0,0 +1,57 @@ +thread 'rustc' panicked at /rustc/edf0b1db0a7f29d71ee82cfc53bdc170fe74e501/compiler/rustc_errors/src/lib.rs:1000:33: +Box +stack backtrace: + 0: 0x1016982cc - std::backtrace::Backtrace::create::h6858622cac804e1e + 1: 0x10aab7760 - as core[e84f05aec3508a1b]::ops::function::Fn<(&dyn for<'a, 'b> core[e84f05aec3508a1b]::ops::function::Fn<(&'a core[e84f05aec3508a1b]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[e84f05aec3508a1b]::marker::Send + core[e84f05aec3508a1b]::marker::Sync, &core[e84f05aec3508a1b]::panic::panic_info::PanicInfo)>>::call + 2: 0x1016b01c8 - std::panicking::rust_panic_with_hook::h5e0e3ea3eab0762f + 3: 0x10b8b1e70 - std[fc5d079b268c001b]::panicking::begin_panic::::{closure#0} + 4: 0x10b8b0af8 - std[fc5d079b268c001b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> + 5: 0x10e8e46b4 - std[fc5d079b268c001b]::panicking::begin_panic:: + 6: 0x10b8121b8 - ::span_bug:: + 7: 0x10b811d7c - ::span_bug:: + 8: 0x10b837eec - rustc_middle[e980463d3e0fd3c]::util::bug::opt_span_bug_fmt::::{closure#0} + 9: 0x10b837f20 - rustc_middle[e980463d3e0fd3c]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} + 10: 0x10b8353bc - rustc_middle[e980463d3e0fd3c]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> + 11: 0x10e8e4728 - rustc_middle[e980463d3e0fd3c]::util::bug::span_bug_fmt:: + 12: 0x10b7c6374 - rustc_mir_transform[b92a66d6aae1cce]::coroutine::mir_coroutine_witnesses + 13: 0x10bcc94ac - rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::__rust_begin_short_backtrace::> + 14: 0x10be46020 - >::call_once + 15: 0x10bc3be6c - rustc_query_system[ab8509ee9b52e65a]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::QueryCtxt, true> + 16: 0x10bdea8bc - rustc_query_impl[aa2e85dfa7ce5c23]::query_impl::mir_coroutine_witnesses::get_query_incr::__rust_end_short_backtrace + 17: 0x10b47882c - rustc_middle[e980463d3e0fd3c]::query::plumbing::query_get_at::>> + 18: 0x10b5b9654 - >::fold_ty + 19: 0x10b5bc0d4 - rustc_middle[e980463d3e0fd3c]::ty::util::fold_list:: as rustc_type_ir[dadb12f4d6a7c7f6]::fold::TypeFoldable>::try_fold_with::{closure#0}> + 20: 0x10b550bf8 - >::try_super_fold_with:: + 21: 0x10b5b9458 - >::fold_ty + 22: 0x10b5b93bc - ::expand_opaque_ty + 23: 0x10b479db0 - ::try_expand_impl_trait_type + 24: 0x10ad64980 - rustc_hir_analysis[79a5e603f16ffcf8]::check::check::check_item_type + 25: 0x10ad6b000 - rustc_hir_analysis[79a5e603f16ffcf8]::check::check::check_mod_item_types + 26: 0x10bcc80b0 - rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::__rust_begin_short_backtrace::> + 27: 0x10bce7754 - >::call_once + 28: 0x10bc22a58 - rustc_query_system[ab8509ee9b52e65a]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::QueryCtxt, true> + 29: 0x10be97ec8 - rustc_query_impl[aa2e85dfa7ce5c23]::query_impl::check_mod_item_types::get_query_incr::__rust_end_short_backtrace + 30: 0x10ae026ec - ::for_each_module:: + 31: 0x10ad8c5d0 - rustc_hir_analysis[79a5e603f16ffcf8]::check_crate + 32: 0x10b23ece0 - rustc_interface[4de0952d7d663935]::passes::analysis + 33: 0x10bcca9bc - rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::__rust_begin_short_backtrace::> + 34: 0x10bd8537c - >::call_once + 35: 0x10bbe4648 - rustc_query_system[ab8509ee9b52e65a]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::QueryCtxt, true> + 36: 0x10bde9568 - rustc_query_impl[aa2e85dfa7ce5c23]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace + 37: 0x10aabf170 - ::enter::> + 38: 0x10aa3cc4c - ::enter::, rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>> + 39: 0x10aabd534 - rustc_span[e4c885c4c47bbc90]::set_source_map::, rustc_interface[4de0952d7d663935]::interface::run_compiler, rustc_driver_impl[a5cbd23e5e1b846f]::run_compiler::{closure#1}>::{closure#0}::{closure#0}> + 40: 0x10aac5bc4 - std[fc5d079b268c001b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[a5cbd23e5e1b846f]::run_compiler::{closure#1}>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>> + 41: 0x10aa99308 - <::spawn_unchecked_, rustc_driver_impl[a5cbd23e5e1b846f]::run_compiler::{closure#1}>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#1} as core[e84f05aec3508a1b]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} + 42: 0x1016b83c4 - std::sys::unix::thread::Thread::new::thread_start::hf4a34515c60a26a3 + 43: 0x18122e034 - __pthread_joiner_wake + + +rustc version: 1.75.0-nightly (edf0b1db0 2023-11-10) +platform: aarch64-apple-darwin + +query stack during panic: +#0 [mir_coroutine_witnesses] coroutine witness types for `listener::::refresh_state::{closure#0}` +#1 [check_mod_item_types] checking item types in module `listener` +#2 [analysis] running analysis passes on this crate +end of query stack diff --git a/test.aqua b/test.aqua new file mode 100644 index 0000000000..e69de29bb2 From 38438ccc9dd1f2f34248134307a05ca90ff011ab Mon Sep 17 00:00:00 2001 From: Alexey Proshutinskiy Date: Sun, 7 Jul 2024 15:02:46 +0300 Subject: [PATCH 3/3] fix copyright --- rustc-ice-2024-03-06T21_11_36-33718.txt | 63 ------------------------- rustc-ice-2024-03-14T00_15_28-80203.txt | 57 ---------------------- test.aqua | 0 3 files changed, 120 deletions(-) delete mode 100644 rustc-ice-2024-03-06T21_11_36-33718.txt delete mode 100644 rustc-ice-2024-03-14T00_15_28-80203.txt delete mode 100644 test.aqua diff --git a/rustc-ice-2024-03-06T21_11_36-33718.txt b/rustc-ice-2024-03-06T21_11_36-33718.txt deleted file mode 100644 index 714cb6bf34..0000000000 --- a/rustc-ice-2024-03-06T21_11_36-33718.txt +++ /dev/null @@ -1,63 +0,0 @@ -thread 'rustc' panicked at /rustc/edf0b1db0a7f29d71ee82cfc53bdc170fe74e501/compiler/rustc_errors/src/lib.rs:1000:33: -Box -stack backtrace: - 0: 0x1050ac2cc - std::backtrace::Backtrace::create::h6858622cac804e1e - 1: 0x10e4cb760 - as core[e84f05aec3508a1b]::ops::function::Fn<(&dyn for<'a, 'b> core[e84f05aec3508a1b]::ops::function::Fn<(&'a core[e84f05aec3508a1b]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[e84f05aec3508a1b]::marker::Send + core[e84f05aec3508a1b]::marker::Sync, &core[e84f05aec3508a1b]::panic::panic_info::PanicInfo)>>::call - 2: 0x1050c41c8 - std::panicking::rust_panic_with_hook::h5e0e3ea3eab0762f - 3: 0x10f2c5e70 - std[fc5d079b268c001b]::panicking::begin_panic::::{closure#0} - 4: 0x10f2c4af8 - std[fc5d079b268c001b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> - 5: 0x1122f86b4 - std[fc5d079b268c001b]::panicking::begin_panic:: - 6: 0x10f2261b8 - ::span_bug:: - 7: 0x10f225d7c - ::span_bug:: - 8: 0x10f24beec - rustc_middle[e980463d3e0fd3c]::util::bug::opt_span_bug_fmt::::{closure#0} - 9: 0x10f24bf20 - rustc_middle[e980463d3e0fd3c]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} - 10: 0x10f2493bc - rustc_middle[e980463d3e0fd3c]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> - 11: 0x1122f8728 - rustc_middle[e980463d3e0fd3c]::util::bug::span_bug_fmt:: - 12: 0x10f1da374 - rustc_mir_transform[b92a66d6aae1cce]::coroutine::mir_coroutine_witnesses - 13: 0x10f6dd4ac - rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::__rust_begin_short_backtrace::> - 14: 0x10f85a020 - >::call_once - 15: 0x10f64fe6c - rustc_query_system[ab8509ee9b52e65a]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::QueryCtxt, true> - 16: 0x10f7fe8bc - rustc_query_impl[aa2e85dfa7ce5c23]::query_impl::mir_coroutine_witnesses::get_query_incr::__rust_end_short_backtrace - 17: 0x10ee8c82c - rustc_middle[e980463d3e0fd3c]::query::plumbing::query_get_at::>> - 18: 0x10efcd654 - >::fold_ty - 19: 0x10efd00d4 - rustc_middle[e980463d3e0fd3c]::ty::util::fold_list:: as rustc_type_ir[dadb12f4d6a7c7f6]::fold::TypeFoldable>::try_fold_with::{closure#0}> - 20: 0x10ef64bf8 - >::try_super_fold_with:: - 21: 0x10efcd458 - >::fold_ty - 22: 0x10efcd3bc - ::expand_opaque_ty - 23: 0x10efcd478 - >::fold_ty - 24: 0x10efcd6c0 - >::fold_ty - 25: 0x10efd00d4 - rustc_middle[e980463d3e0fd3c]::ty::util::fold_list:: as rustc_type_ir[dadb12f4d6a7c7f6]::fold::TypeFoldable>::try_fold_with::{closure#0}> - 26: 0x10ef64bf8 - >::try_super_fold_with:: - 27: 0x10efcd458 - >::fold_ty - 28: 0x10efcd3bc - ::expand_opaque_ty - 29: 0x10ee8ddb0 - ::try_expand_impl_trait_type - 30: 0x10e778980 - rustc_hir_analysis[79a5e603f16ffcf8]::check::check::check_item_type - 31: 0x10e77f000 - rustc_hir_analysis[79a5e603f16ffcf8]::check::check::check_mod_item_types - 32: 0x10f6dc0b0 - rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::__rust_begin_short_backtrace::> - 33: 0x10f6fb754 - >::call_once - 34: 0x10f636a58 - rustc_query_system[ab8509ee9b52e65a]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::QueryCtxt, true> - 35: 0x10f8abec8 - rustc_query_impl[aa2e85dfa7ce5c23]::query_impl::check_mod_item_types::get_query_incr::__rust_end_short_backtrace - 36: 0x10e8166ec - ::for_each_module:: - 37: 0x10e7a05d0 - rustc_hir_analysis[79a5e603f16ffcf8]::check_crate - 38: 0x10ec52ce0 - rustc_interface[4de0952d7d663935]::passes::analysis - 39: 0x10f6de9bc - rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::__rust_begin_short_backtrace::> - 40: 0x10f79937c - >::call_once - 41: 0x10f5f8648 - rustc_query_system[ab8509ee9b52e65a]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::QueryCtxt, true> - 42: 0x10f7fd568 - rustc_query_impl[aa2e85dfa7ce5c23]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace - 43: 0x10e4d3170 - ::enter::> - 44: 0x10e450c4c - ::enter::, rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>> - 45: 0x10e4d1534 - rustc_span[e4c885c4c47bbc90]::set_source_map::, rustc_interface[4de0952d7d663935]::interface::run_compiler, rustc_driver_impl[a5cbd23e5e1b846f]::run_compiler::{closure#1}>::{closure#0}::{closure#0}> - 46: 0x10e4d9bc4 - std[fc5d079b268c001b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[a5cbd23e5e1b846f]::run_compiler::{closure#1}>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>> - 47: 0x10e4ad308 - <::spawn_unchecked_, rustc_driver_impl[a5cbd23e5e1b846f]::run_compiler::{closure#1}>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#1} as core[e84f05aec3508a1b]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} - 48: 0x1050cc3c4 - std::sys::unix::thread::Thread::new::thread_start::hf4a34515c60a26a3 - 49: 0x18122e034 - __pthread_joiner_wake - - -rustc version: 1.75.0-nightly (edf0b1db0 2023-11-10) -platform: aarch64-apple-darwin - -query stack during panic: -#0 [mir_coroutine_witnesses] coroutine witness types for `listener::::submit_proof::{closure#0}` -#1 [check_mod_item_types] checking item types in module `listener` -#2 [analysis] running analysis passes on this crate -end of query stack diff --git a/rustc-ice-2024-03-14T00_15_28-80203.txt b/rustc-ice-2024-03-14T00_15_28-80203.txt deleted file mode 100644 index 18d5b29a29..0000000000 --- a/rustc-ice-2024-03-14T00_15_28-80203.txt +++ /dev/null @@ -1,57 +0,0 @@ -thread 'rustc' panicked at /rustc/edf0b1db0a7f29d71ee82cfc53bdc170fe74e501/compiler/rustc_errors/src/lib.rs:1000:33: -Box -stack backtrace: - 0: 0x1016982cc - std::backtrace::Backtrace::create::h6858622cac804e1e - 1: 0x10aab7760 - as core[e84f05aec3508a1b]::ops::function::Fn<(&dyn for<'a, 'b> core[e84f05aec3508a1b]::ops::function::Fn<(&'a core[e84f05aec3508a1b]::panic::panic_info::PanicInfo<'b>,), Output = ()> + core[e84f05aec3508a1b]::marker::Send + core[e84f05aec3508a1b]::marker::Sync, &core[e84f05aec3508a1b]::panic::panic_info::PanicInfo)>>::call - 2: 0x1016b01c8 - std::panicking::rust_panic_with_hook::h5e0e3ea3eab0762f - 3: 0x10b8b1e70 - std[fc5d079b268c001b]::panicking::begin_panic::::{closure#0} - 4: 0x10b8b0af8 - std[fc5d079b268c001b]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> - 5: 0x10e8e46b4 - std[fc5d079b268c001b]::panicking::begin_panic:: - 6: 0x10b8121b8 - ::span_bug:: - 7: 0x10b811d7c - ::span_bug:: - 8: 0x10b837eec - rustc_middle[e980463d3e0fd3c]::util::bug::opt_span_bug_fmt::::{closure#0} - 9: 0x10b837f20 - rustc_middle[e980463d3e0fd3c]::ty::context::tls::with_opt::::{closure#0}, !>::{closure#0} - 10: 0x10b8353bc - rustc_middle[e980463d3e0fd3c]::ty::context::tls::with_context_opt::::{closure#0}, !>::{closure#0}, !> - 11: 0x10e8e4728 - rustc_middle[e980463d3e0fd3c]::util::bug::span_bug_fmt:: - 12: 0x10b7c6374 - rustc_mir_transform[b92a66d6aae1cce]::coroutine::mir_coroutine_witnesses - 13: 0x10bcc94ac - rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::__rust_begin_short_backtrace::> - 14: 0x10be46020 - >::call_once - 15: 0x10bc3be6c - rustc_query_system[ab8509ee9b52e65a]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::QueryCtxt, true> - 16: 0x10bdea8bc - rustc_query_impl[aa2e85dfa7ce5c23]::query_impl::mir_coroutine_witnesses::get_query_incr::__rust_end_short_backtrace - 17: 0x10b47882c - rustc_middle[e980463d3e0fd3c]::query::plumbing::query_get_at::>> - 18: 0x10b5b9654 - >::fold_ty - 19: 0x10b5bc0d4 - rustc_middle[e980463d3e0fd3c]::ty::util::fold_list:: as rustc_type_ir[dadb12f4d6a7c7f6]::fold::TypeFoldable>::try_fold_with::{closure#0}> - 20: 0x10b550bf8 - >::try_super_fold_with:: - 21: 0x10b5b9458 - >::fold_ty - 22: 0x10b5b93bc - ::expand_opaque_ty - 23: 0x10b479db0 - ::try_expand_impl_trait_type - 24: 0x10ad64980 - rustc_hir_analysis[79a5e603f16ffcf8]::check::check::check_item_type - 25: 0x10ad6b000 - rustc_hir_analysis[79a5e603f16ffcf8]::check::check::check_mod_item_types - 26: 0x10bcc80b0 - rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::__rust_begin_short_backtrace::> - 27: 0x10bce7754 - >::call_once - 28: 0x10bc22a58 - rustc_query_system[ab8509ee9b52e65a]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::QueryCtxt, true> - 29: 0x10be97ec8 - rustc_query_impl[aa2e85dfa7ce5c23]::query_impl::check_mod_item_types::get_query_incr::__rust_end_short_backtrace - 30: 0x10ae026ec - ::for_each_module:: - 31: 0x10ad8c5d0 - rustc_hir_analysis[79a5e603f16ffcf8]::check_crate - 32: 0x10b23ece0 - rustc_interface[4de0952d7d663935]::passes::analysis - 33: 0x10bcca9bc - rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::__rust_begin_short_backtrace::> - 34: 0x10bd8537c - >::call_once - 35: 0x10bbe4648 - rustc_query_system[ab8509ee9b52e65a]::query::plumbing::try_execute_query::>, false, false, false>, rustc_query_impl[aa2e85dfa7ce5c23]::plumbing::QueryCtxt, true> - 36: 0x10bde9568 - rustc_query_impl[aa2e85dfa7ce5c23]::query_impl::analysis::get_query_incr::__rust_end_short_backtrace - 37: 0x10aabf170 - ::enter::> - 38: 0x10aa3cc4c - ::enter::, rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>> - 39: 0x10aabd534 - rustc_span[e4c885c4c47bbc90]::set_source_map::, rustc_interface[4de0952d7d663935]::interface::run_compiler, rustc_driver_impl[a5cbd23e5e1b846f]::run_compiler::{closure#1}>::{closure#0}::{closure#0}> - 40: 0x10aac5bc4 - std[fc5d079b268c001b]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver_impl[a5cbd23e5e1b846f]::run_compiler::{closure#1}>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>> - 41: 0x10aa99308 - <::spawn_unchecked_, rustc_driver_impl[a5cbd23e5e1b846f]::run_compiler::{closure#1}>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#0}::{closure#0}, core[e84f05aec3508a1b]::result::Result<(), rustc_span[e4c885c4c47bbc90]::ErrorGuaranteed>>::{closure#1} as core[e84f05aec3508a1b]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} - 42: 0x1016b83c4 - std::sys::unix::thread::Thread::new::thread_start::hf4a34515c60a26a3 - 43: 0x18122e034 - __pthread_joiner_wake - - -rustc version: 1.75.0-nightly (edf0b1db0 2023-11-10) -platform: aarch64-apple-darwin - -query stack during panic: -#0 [mir_coroutine_witnesses] coroutine witness types for `listener::::refresh_state::{closure#0}` -#1 [check_mod_item_types] checking item types in module `listener` -#2 [analysis] running analysis passes on this crate -end of query stack diff --git a/test.aqua b/test.aqua deleted file mode 100644 index e69de29bb2..0000000000