about summary refs log tree commit diff
path: root/compiler/rustc_middle/src/mir/graph_cyclic_cache.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-06-15 05:39:29 +0000
committerbors <bors@rust-lang.org>2022-06-15 05:39:29 +0000
commit389352c4bbd56024eefd1566e06dcba04d223f92 (patch)
treeedb2f035bc8ad77fd480002ddfc6d6562cde5a2f /compiler/rustc_middle/src/mir/graph_cyclic_cache.rs
parentddb6cc85243ac4761fbc32a407b10216544fe57b (diff)
parent1b8fc2f8f66f49bfa1538eeac2a9bd776833b22f (diff)
downloadrust-389352c4bbd56024eefd1566e06dcba04d223f92.tar.gz
rust-389352c4bbd56024eefd1566e06dcba04d223f92.zip
Auto merge of #98123 - JohnTitor:rollup-rfg1a4s, r=JohnTitor
Rollup of 7 pull requests

Successful merges:

 - #97822 (Filter out intrinsics if we have other import candidates to suggest)
 - #98026 (Move some tests to more reasonable directories)
 - #98067 (compiler: remove unused deps)
 - #98078 (Use unchecked mul to compute slice sizes)
 - #98083 (Rename rustc_serialize::opaque::Encoder as MemEncoder.)
 - #98087 (Suggest adding a `#[macro_export]` to a private macro)
 - #98113 (Fix misspelling of "constraint" as "contraint")

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_middle/src/mir/graph_cyclic_cache.rs')
-rw-r--r--compiler/rustc_middle/src/mir/graph_cyclic_cache.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler/rustc_middle/src/mir/graph_cyclic_cache.rs b/compiler/rustc_middle/src/mir/graph_cyclic_cache.rs
index 096bf8cbc15..1279f5aee36 100644
--- a/compiler/rustc_middle/src/mir/graph_cyclic_cache.rs
+++ b/compiler/rustc_middle/src/mir/graph_cyclic_cache.rs
@@ -3,7 +3,7 @@ use rustc_data_structures::graph::{
 };
 use rustc_data_structures::stable_hasher::{HashStable, StableHasher};
 use rustc_data_structures::sync::OnceCell;
-use rustc_serialize as serialize;
+use rustc_serialize::{Decodable, Decoder, Encodable, Encoder};
 
 /// Helper type to cache the result of `graph::is_cyclic`.
 #[derive(Clone, Debug)]
@@ -36,17 +36,17 @@ impl GraphIsCyclicCache {
     }
 }
 
-impl<S: serialize::Encoder> serialize::Encodable<S> for GraphIsCyclicCache {
+impl<S: Encoder> Encodable<S> for GraphIsCyclicCache {
     #[inline]
     fn encode(&self, s: &mut S) {
-        serialize::Encodable::encode(&(), s);
+        Encodable::encode(&(), s);
     }
 }
 
-impl<D: serialize::Decoder> serialize::Decodable<D> for GraphIsCyclicCache {
+impl<D: Decoder> Decodable<D> for GraphIsCyclicCache {
     #[inline]
     fn decode(d: &mut D) -> Self {
-        let () = serialize::Decodable::decode(d);
+        let () = Decodable::decode(d);
         Self::new()
     }
 }