Skip to content

Commit 29ed8e4

Browse files
committed
Remove the MaybeTransmutableQuery<&'l Dfa<...>, C> impl.
Because there is also a `MaybeTransmutableQuery<Dfa<...>, C>` impl, and we don't need both.
1 parent 73420fc commit 29ed8e4

File tree

1 file changed

+0
-16
lines changed
  • compiler/rustc_transmute/src/maybe_transmutable

1 file changed

+0
-16
lines changed

compiler/rustc_transmute/src/maybe_transmutable/mod.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,6 @@ where
149149
{
150150
/// Answers whether a `Dfa` is transmutable into another `Dfa`.
151151
pub(crate) fn answer(self) -> Answer<<C as QueryContext>::Ref> {
152-
MaybeTransmutableQuery {
153-
src: &self.src,
154-
dst: &self.dst,
155-
scope: self.scope,
156-
assume: self.assume,
157-
context: self.context,
158-
}
159-
.answer()
160-
}
161-
}
162-
163-
impl<'l, C> MaybeTransmutableQuery<&'l Dfa<<C as QueryContext>::Ref>, C>
164-
where
165-
C: QueryContext,
166-
{
167-
pub(crate) fn answer(&mut self) -> Answer<<C as QueryContext>::Ref> {
168152
self.answer_memo(&mut Map::default(), self.src.start, self.dst.start)
169153
}
170154

0 commit comments

Comments
 (0)