Skip to content
Merged
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
3 changes: 3 additions & 0 deletions compiler/rustc_transmute/src/layout/dfa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ where
#[derive(Hash, Eq, PartialEq, PartialOrd, Ord, Copy, Clone)]
pub(crate) struct State(u32);

#[cfg(test)]
#[derive(Hash, Eq, PartialEq, Clone, Copy)]
pub(crate) enum Transition<R>
where
Expand All @@ -70,6 +71,7 @@ impl fmt::Debug for State {
}
}

#[cfg(test)]
impl<R> fmt::Debug for Transition<R>
where
R: Ref,
Expand Down Expand Up @@ -166,6 +168,7 @@ impl State {
}
}

#[cfg(test)]
impl<R> From<nfa::Transition<R>> for Transition<R>
where
R: Ref,
Expand Down
Loading