Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix deprecation warning messages #1891

Merged
merged 4 commits into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading