mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
fix(semantic): Add Eq to CtxFlags (#3651)
I've just created example using `oxc_semantic`. > https://gist.github.com/leaysgur/bcb748daa665d1615eabda6967366d05 But it could not be compiled due to: ``` error: to use a constant of type `CtxFlags` in a pattern, `CtxFlags` must be annotated with `#[derive(PartialEq, Eq)]` ``` - 0.14.0: 🆖 - ... - 0.13.0: 🆖 - 0.12.5: 🆗 This change seems to fix this.
This commit is contained in:
parent
dbf7c3aaa2
commit
70fc69b916
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@ use crate::{BasicBlockId, EdgeType};
|
|||
use super::ControlFlowGraphBuilder;
|
||||
|
||||
bitflags::bitflags! {
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct CtxFlags: u8 {
|
||||
/// Anything above a `FUNCTION` is unreachable.
|
||||
const FUNCTION = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue