From d6b86815407495bf50165b43686cccb2a611874b Mon Sep 17 00:00:00 2001 From: Alec Edgington <54802828+cqc-alec@users.noreply.github.com> Date: Tue, 28 Jan 2025 08:41:53 +0000 Subject: [PATCH] docs: Fix deprecation warning messages (#1891) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Agustín Borgna <121866228+aborgna-q@users.noreply.github.com> --- hugr-passes/src/lib.rs | 4 ++-- hugr-passes/src/monomorphize.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hugr-passes/src/lib.rs b/hugr-passes/src/lib.rs index 6ce1a0961..026e817c1 100644 --- a/hugr-passes/src/lib.rs +++ b/hugr-passes/src/lib.rs @@ -13,14 +13,14 @@ mod monomorphize; // TODO: Deprecated re-export. Remove on a breaking release. #[deprecated( since = "0.14.1", - note = "Use `hugr::algorithms::call_graph::RemoveDeadFuncsPass` instead." + note = "Use `hugr_passes::RemoveDeadFuncsPass` instead." )] #[allow(deprecated)] pub use monomorphize::remove_polyfuncs; // TODO: Deprecated re-export. Remove on a breaking release. #[deprecated( since = "0.14.1", - note = "Use `hugr::algorithms::MonomorphizePass` instead." + note = "Use `hugr_passes::MonomorphizePass` instead." )] #[allow(deprecated)] pub use monomorphize::monomorphize; diff --git a/hugr-passes/src/monomorphize.rs b/hugr-passes/src/monomorphize.rs index 95d26c557..1e3b2d9a0 100644 --- a/hugr-passes/src/monomorphize.rs +++ b/hugr-passes/src/monomorphize.rs @@ -32,7 +32,7 @@ use thiserror::Error; /// whenever the names of their parents are unique, but this is not guaranteed. #[deprecated( since = "0.14.1", - note = "Use `hugr::algorithms::MonomorphizePass` instead." + note = "Use `hugr_passes::MonomorphizePass` instead." )] // TODO: Deprecated. Remove on a breaking release and rename private `monomorphize_ref` to `monomorphize`. pub fn monomorphize(mut h: Hugr) -> Hugr { @@ -59,7 +59,7 @@ fn monomorphize_ref(h: &mut impl HugrMut) { /// Deprecated: use [crate::remove_dead_funcs] instead. #[deprecated( since = "0.14.1", - note = "Use hugr::algorithms::dead_funcs::RemoveDeadFuncsPass instead" + note = "Use hugr_passes::RemoveDeadFuncsPass instead" )] pub fn remove_polyfuncs(mut h: Hugr) -> Hugr { #[allow(deprecated)] // we are in a deprecated function, so remove both at same time @@ -69,7 +69,7 @@ pub fn remove_polyfuncs(mut h: Hugr) -> Hugr { #[deprecated( since = "0.14.1", - note = "Use hugr::algorithms::dead_funcs::RemoveDeadFuncsPass instead" + note = "Use hugr_passes::RemoveDeadFuncsPass instead" )] fn remove_polyfuncs_ref(h: &mut impl HugrMut) { let mut pfs_to_delete = Vec::new();