Skip to content

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
 

‎src/librustc/traits/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ use ty::error::{ExpectedFound, TypeError};
4444
use ty::fold::{TypeFolder, TypeFoldable, TypeVisitor};
4545
use util::common::ErrorReported;
4646

47+
use std::fmt::Debug;
48+
use std::rc::Rc;
49+
4750
pub use self::SelectionError::*;
4851
pub use self::FulfillmentErrorCode::*;
4952
pub use self::Vtable::*;

‎src/librustc/traits/util.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use hir;
1112
use hir::def_id::DefId;
1213
use traits::specialize::specialization_graph::NodeItem;
1314
use ty::{self, Ty, TyCtxt, ToPredicate, ToPolyTraitRef};
1415
use ty::outlives::Component;
15-
use ty::subst::{Kind, Subst};
16+
use ty::subst::{Kind, Subst, Substs};
1617
use util::nodemap::FxHashSet;
1718

1819
use super::{Obligation, ObligationCause, PredicateObligation, SelectionContext, Normalized};

‎src/librustc_typeck/astconv.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx> + 'o {
12771277
// item is declared.
12781278
let bound = match (&ty.sty, ty_path_def) {
12791279
(_, Def::SelfTy(Some(_), Some(impl_def_id))) => {
1280-
// `Self` in an impl of a trait - we have a concrete `self` type and a
1280+
// `Self` in an impl of a trait -- we have a concrete `self` type and a
12811281
// trait reference.
12821282
let trait_ref = match tcx.impl_trait_ref(impl_def_id) {
12831283
Some(trait_ref) => trait_ref,

0 commit comments

Comments
 (0)
Please sign in to comment.