Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Dec 18, 2024
1 parent f5ca72e commit 112b28d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion hugr-passes/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ mod monomorphize;
)]
#[allow(deprecated)]
pub use monomorphize::monomorphize;
pub use monomorphize::{remove_polyfuncs, MonomorphizePass};
pub use monomorphize::{remove_polyfuncs, MonomorphizeError, MonomorphizePass};
pub mod nest_cfgs;
pub mod non_local;
pub mod validation;
Expand Down
10 changes: 1 addition & 9 deletions hugr-passes/src/monomorphize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,9 @@ use thiserror::Error;
since = "0.14.1",
note = "Use `hugr::algorithms::MonomorphizePass` instead."
)]
// TODO: Deprecated. Remove on a breaking release.
// TODO: Deprecated. Remove on a breaking release and rename private `monomorphize_ref` to `monomorphize`.
pub fn monomorphize(mut h: Hugr) -> Hugr {
let validate = |h: &Hugr| h.validate().unwrap_or_else(|e| panic!("{e}"));

#[cfg(debug_assertions)]
validate(&h);

monomorphize_ref(&mut h);

#[cfg(debug_assertions)]
validate(&h);
h
}

Expand Down

0 comments on commit 112b28d

Please sign in to comment.