about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2018-06-27 06:01:19 -0400
committerNiko Matsakis <niko@alum.mit.edu>2018-06-27 06:01:19 -0400
commit188ad384a33c35cf6e2328a0424c59928ea1b64c (patch)
tree73c830710a7ec41eb49417487c4ab1737c66958e
parente98d376e6f15781223717a8dfca8df8b47c9ab2a (diff)
downloadrust-188ad384a33c35cf6e2328a0424c59928ea1b64c.tar.gz
rust-188ad384a33c35cf6e2328a0424c59928ea1b64c.zip
nit: don't import Debug directly
-rw-r--r--src/librustc/ty/context.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc/ty/context.rs b/src/librustc/ty/context.rs
index 111167cfc10..5142a30ae57 100644
--- a/src/librustc/ty/context.rs
+++ b/src/librustc/ty/context.rs
@@ -64,7 +64,7 @@ use std::borrow::Borrow;
 use std::cmp::Ordering;
 use std::collections::hash_map::{self, Entry};
 use std::hash::{Hash, Hasher};
-use std::fmt::Debug;
+use std::fmt;
 use std::mem;
 use std::ops::Deref;
 use std::iter;
@@ -1504,8 +1504,8 @@ impl<'gcx: 'tcx, 'tcx> GlobalCtxt<'gcx> {
 /// contain the TypeVariants key or if the address of the interned
 /// pointer differs. The latter case is possible if a primitive type,
 /// e.g. `()` or `u8`, was interned in a different context.
-pub trait Lift<'tcx>: Debug {
-    type Lifted: Debug + 'tcx;
+pub trait Lift<'tcx>: fmt::Debug {
+    type Lifted: fmt::Debug + 'tcx;
     fn lift_to_tcx<'a, 'gcx>(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Option<Self::Lifted>;
 }