Skip to content

Commit f81b8cf

Browse files
author
Alexander Regueiro
committed
Fixed more imports and variable names.
1 parent 99c7130 commit f81b8cf

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/librustc_typeck/astconv.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use hir::HirVec;
2020
use lint;
2121
use middle::resolve_lifetime as rl;
2222
use namespace::Namespace;
23-
use rustc::traits::{self, TraitRefExpansionInfoDignosticBuilder};
23+
use rustc::traits;
2424
use rustc::ty::{self, Ty, TyCtxt, ToPredicate, TypeFoldable};
2525
use rustc::ty::{GenericParamDef, GenericParamDefKind};
2626
use rustc::ty::subst::{Kind, Subst, Substs};
@@ -39,7 +39,6 @@ use util::nodemap::FxHashMap;
3939

4040
use std::collections::BTreeSet;
4141
use std::iter;
42-
use std::ops::Range;
4342
use std::slice;
4443

4544
pub trait AstConv<'gcx, 'tcx> {

src/librustc_typeck/check/method/suggest.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
309309
"no {} named `{}` found for type `{}` in the current scope",
310310
item_kind,
311311
item_name,
312-
ty_string
312+
ty_str
313313
);
314314
if let Some(suggestion) = suggestion {
315-
err.note(&format!("did you mean `{}::{}`?", ty_string, suggestion));
315+
err.note(&format!("did you mean `{}::{}`?", ty_str, suggestion));
316316
}
317317
err
318318
}
@@ -651,7 +651,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
651651
fn type_derefs_to_local(&self,
652652
span: Span,
653653
rcvr_ty: Ty<'tcx>,
654-
source: SelfSource) -> bool {
654+
rcvr_expr: Option<&hir::Expr>) -> bool {
655655
fn is_local(ty: Ty) -> bool {
656656
match ty.sty {
657657
ty::Adt(def, _) => def.did.is_local(),

0 commit comments

Comments
 (0)