We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Nfa::union
1 parent b78c3da commit 2268603Copy full SHA for 2268603
compiler/rustc_transmute/src/layout/nfa.rs
@@ -92,7 +92,7 @@ where
92
let mut alts = alts.into_iter().map(Self::from_tree);
93
let mut nfa = alts.next().ok_or(Uninhabited)??;
94
for alt in alts {
95
- nfa = nfa.union(&alt?);
+ nfa = nfa.union(alt?);
96
}
97
nfa
98
@@ -136,7 +136,7 @@ where
136
137
138
/// Compute the union of two `Nfa`s.
139
- pub(crate) fn union(&self, other: &Self) -> Self {
+ pub(crate) fn union(self, other: Self) -> Self {
140
let start = self.start;
141
let accepting = self.accepting;
142
0 commit comments