about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-10-06 11:25:32 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2023-10-06 11:25:32 +1100
commit29ed8e492ab99391e9eaa1247fbafe2759f9c383 (patch)
tree7b863d0d6bf058e7b09f679cbb1a8edec1fdab87
parent73420fc13bb23151f1baa7199ffa3a38ab955de4 (diff)
downloadrust-29ed8e492ab99391e9eaa1247fbafe2759f9c383.tar.gz
rust-29ed8e492ab99391e9eaa1247fbafe2759f9c383.zip
Remove the `MaybeTransmutableQuery<&'l Dfa<...>, C>` impl.
Because there is also a `MaybeTransmutableQuery<Dfa<...>, C>` impl, and
we don't need both.
-rw-r--r--compiler/rustc_transmute/src/maybe_transmutable/mod.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/compiler/rustc_transmute/src/maybe_transmutable/mod.rs b/compiler/rustc_transmute/src/maybe_transmutable/mod.rs
index 6484a2968ff..bf3c390c800 100644
--- a/compiler/rustc_transmute/src/maybe_transmutable/mod.rs
+++ b/compiler/rustc_transmute/src/maybe_transmutable/mod.rs
@@ -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)
     }