Skip to content

Commit

Permalink
Remove the MaybeTransmutableQuery<&'l Dfa<...>, C> impl.
Browse files Browse the repository at this point in the history
Because there is also a `MaybeTransmutableQuery<Dfa<...>, C>` impl, and
we don't need both.
  • Loading branch information
nnethercote committed Oct 6, 2023
1 parent 73420fc commit 29ed8e4
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions compiler/rustc_transmute/src/maybe_transmutable/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,22 +149,6 @@ where
{
/// Answers whether a `Dfa` is transmutable into another `Dfa`.
pub(crate) fn answer(self) -> Answer<<C as QueryContext>::Ref> {
MaybeTransmutableQuery {
src: &self.src,
dst: &self.dst,
scope: self.scope,
assume: self.assume,
context: self.context,
}
.answer()
}
}

impl<'l, C> MaybeTransmutableQuery<&'l Dfa<<C as QueryContext>::Ref>, C>
where
C: QueryContext,
{
pub(crate) fn answer(&mut self) -> Answer<<C as QueryContext>::Ref> {
self.answer_memo(&mut Map::default(), self.src.start, self.dst.start)
}

Expand Down

0 comments on commit 29ed8e4

Please sign in to comment.