Skip to content

Commit 3568dd2

Browse files
authored
refactor!: remove deprecated runtime extension errors (#2369)
BREAKING CHANGE: Removed unused errors ValidationError::ExtensionError (deprecated in v0.20) and PackageEncodingError::RuntimeExtensionResolution
1 parent 875f50d commit 3568dd2

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

hugr-core/src/envelope/package_json.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use std::io;
66
use super::{ExtensionBreakingError, WithGenerator, check_breaking_extensions};
77
use crate::extension::ExtensionRegistry;
88
use crate::extension::resolution::ExtensionResolutionError;
9-
use crate::hugr::ExtensionError;
109
use crate::package::Package;
1110
use crate::{Extension, Hugr};
1211

@@ -73,8 +72,6 @@ pub enum PackageEncodingError {
7372
ExtensionResolution(WithGenerator<ExtensionResolutionError>),
7473
/// Error raised while checking for breaking extension version mismatch.
7574
ExtensionVersion(WithGenerator<ExtensionBreakingError>),
76-
/// Could not resolve the runtime extensions for the hugr.
77-
RuntimeExtensionResolution(ExtensionError),
7875
}
7976

8077
/// A private package structure implementing the serde traits.

hugr-core/src/hugr/validate.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use crate::types::EdgeKind;
2121
use crate::types::type_param::TypeParam;
2222
use crate::{Direction, Port};
2323

24-
use super::ExtensionError;
2524
use super::internal::PortgraphNodeMap;
2625
use super::views::HugrView;
2726

@@ -692,10 +691,6 @@ pub enum ValidationError<N: HugrNode> {
692691
/// There are invalid inter-graph edges.
693692
#[error(transparent)]
694693
InterGraphEdgeError(#[from] InterGraphEdgeError<N>),
695-
/// There are errors in the extension deltas.
696-
#[deprecated(note = "Never returned since hugr-core-v0.20.0")]
697-
#[error(transparent)]
698-
ExtensionError(#[from] ExtensionError),
699694
/// A node claims to still be awaiting extension inference. Perhaps it is not acted upon by inference.
700695
#[error(
701696
"{node} needs a concrete ExtensionSet - inference will provide this for Case/CFG/Conditional/DataflowBlock/DFG/TailLoop only"

0 commit comments

Comments
 (0)