From b3ca9a7c06cbc6020191f1a6e65e9ed560234e1d Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Tue, 26 Nov 2024 17:54:21 +0100 Subject: [PATCH] Delete with_observers (#2730) * delete with_observers * import * doc * a * fix markdown --- MIGRATION.md | 6 +++++- libafl/src/executors/mod.rs | 14 +------------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index a5f8f942e0..c441b0a194 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -1 +1,5 @@ -# 0.14.0 -> 0.14.1 \ No newline at end of file +# Pre 0.9 -> 0.9 +- [Migrating from LibAFL <0.9 to 0.9](https://aflplus.plus/libafl-book/design/migration-0.9.html) + +# 0.14.0 -> 0.14.1 +- Removed `with_observers` from `Executor` trait. \ No newline at end of file diff --git a/libafl/src/executors/mod.rs b/libafl/src/executors/mod.rs index 993a85fe2e..606faebec5 100644 --- a/libafl/src/executors/mod.rs +++ b/libafl/src/executors/mod.rs @@ -20,7 +20,7 @@ use serde::{Deserialize, Serialize}; pub use shadow::ShadowExecutor; pub use with_observers::WithObservers; -use crate::{observers::ObserversTuple, state::UsesState, Error}; +use crate::{state::UsesState, Error}; pub mod combined; #[cfg(all(feature = "std", any(unix, doc)))] @@ -130,18 +130,6 @@ where mgr: &mut EM, input: &Self::Input, ) -> Result; - - /// Wraps this Executor with the given [`ObserversTuple`] to implement [`HasObservers`]. - /// - /// If the executor already implements [`HasObservers`], then the original implementation will be overshadowed by - /// the implementation of this wrapper. - fn with_observers(self, observers: OT) -> WithObservers - where - Self: Sized, - OT: ObserversTuple, - { - WithObservers::new(self, observers) - } } /// A trait that allows to get/set an `Executor`'s timeout thresold