Skip to content

Commit

Permalink
Avoid reordering RegionKind variants.
Browse files Browse the repository at this point in the history
  • Loading branch information
zrho committed Oct 24, 2024
1 parent e16e036 commit a5a2f47
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hugr-model/src/v0/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,12 +382,12 @@ pub struct Region<'a> {
/// The kind of a region.
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum RegionKind {
/// Module region.
Module,
/// Data flow region.
DataFlow,
DataFlow = 0,
/// Control flow region.
ControlFlow,
ControlFlow = 1,
/// Module region.
Module = 2,
}

/// A function declaration.
Expand Down

0 comments on commit a5a2f47

Please sign in to comment.