Skip to content

Commit 188ad38

Browse files
committed
nit: don't import Debug directly
1 parent e98d376 commit 188ad38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc/ty/context.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ use std::borrow::Borrow;
6464
use std::cmp::Ordering;
6565
use std::collections::hash_map::{self, Entry};
6666
use std::hash::{Hash, Hasher};
67-
use std::fmt::Debug;
67+
use std::fmt;
6868
use std::mem;
6969
use std::ops::Deref;
7070
use std::iter;
@@ -1504,8 +1504,8 @@ impl<'gcx: 'tcx, 'tcx> GlobalCtxt<'gcx> {
15041504
/// contain the TypeVariants key or if the address of the interned
15051505
/// pointer differs. The latter case is possible if a primitive type,
15061506
/// e.g. `()` or `u8`, was interned in a different context.
1507-
pub trait Lift<'tcx>: Debug {
1508-
type Lifted: Debug + 'tcx;
1507+
pub trait Lift<'tcx>: fmt::Debug {
1508+
type Lifted: fmt::Debug + 'tcx;
15091509
fn lift_to_tcx<'a, 'gcx>(&self, tcx: TyCtxt<'a, 'gcx, 'tcx>) -> Option<Self::Lifted>;
15101510
}
15111511

0 commit comments

Comments
 (0)