Skip to content

Commit

Permalink
docs: Fix deprecation warning messages (#1891)
Browse files Browse the repository at this point in the history
Co-authored-by: Agustín Borgna <[email protected]>
  • Loading branch information
cqc-alec and aborgna-q authored Jan 28, 2025
1 parent e3b8dca commit d6b8681
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions hugr-passes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions hugr-passes/src/monomorphize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand All @@ -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();
Expand Down

0 comments on commit d6b8681

Please sign in to comment.