diff --git a/gtest/src/log.rs b/gtest/src/log.rs index 7250cb0794d..03b7a2616c2 100644 --- a/gtest/src/log.rs +++ b/gtest/src/log.rs @@ -225,7 +225,6 @@ impl Log { } /// Set the payload of the log with bytes. - #[track_caller] pub fn payload_bytes(mut self, payload: impl AsRef<[u8]>) -> Self { if self.payload.is_some() { panic!("Payload was already set for this log"); @@ -241,7 +240,6 @@ impl Log { } /// Set the source of the log. - #[track_caller] pub fn source(mut self, source: impl Into) -> Self { if self.source.is_some() { panic!("Source was already set for this log"); @@ -253,7 +251,6 @@ impl Log { } /// Set the destination of the log. - #[track_caller] pub fn dest(mut self, dest: impl Into) -> Self { if self.destination.is_some() { panic!("Destination was already set for this log"); @@ -264,7 +261,6 @@ impl Log { } /// Set the reply code for this log. - #[track_caller] pub fn reply_code(mut self, reply_code: ReplyCode) -> Self { if self.reply_code.is_some() { panic!("Reply code was already set for this log"); @@ -279,7 +275,6 @@ impl Log { } /// Set the reply destination for this log. - #[track_caller] pub fn reply_to(mut self, reply_to: MessageId) -> Self { if self.reply_to.is_some() { panic!("Reply destination was already set for this log"); @@ -431,7 +426,6 @@ impl BlockRunResult { /// Asserts that the message panicked and that the panic contained a /// given message. - #[track_caller] pub fn assert_panicked_with(&self, message_id: MessageId, msg: impl Into) { let panic_log = self.message_panic_log(message_id); assert!(panic_log.is_some(), "Program did not panic"); diff --git a/gtest/src/manager/memory.rs b/gtest/src/manager/memory.rs index 5b3e08d5ea7..643d6d82404 100644 --- a/gtest/src/manager/memory.rs +++ b/gtest/src/manager/memory.rs @@ -90,7 +90,6 @@ impl ExtManager { .map_err(TestError::ReadStateError) } - #[track_caller] pub(crate) fn read_memory_pages(&self, program_id: &ProgramId) -> BTreeMap { Actors::access(*program_id, |actor| { let program = match actor.unwrap_or_else(|| panic!("Actor id {program_id:?} not found")) diff --git a/gtest/src/state/accounts.rs b/gtest/src/state/accounts.rs index f66e8a767ad..3408afeb607 100644 --- a/gtest/src/state/accounts.rs +++ b/gtest/src/state/accounts.rs @@ -44,7 +44,6 @@ struct Balance { } impl Balance { - #[track_caller] fn new(amount: Value) -> Self { if amount < EXISTENTIAL_DEPOSIT { panic!(