Skip to content

Commit

Permalink
Fixed more imports and variable names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Regueiro committed Dec 7, 2018
1 parent 99c7130 commit f81b8cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/librustc_typeck/astconv.rs
Expand Up @@ -20,7 +20,7 @@ use hir::HirVec;
use lint;
use middle::resolve_lifetime as rl;
use namespace::Namespace;
use rustc::traits::{self, TraitRefExpansionInfoDignosticBuilder};
use rustc::traits;
use rustc::ty::{self, Ty, TyCtxt, ToPredicate, TypeFoldable};
use rustc::ty::{GenericParamDef, GenericParamDefKind};
use rustc::ty::subst::{Kind, Subst, Substs};
Expand All @@ -39,7 +39,6 @@ use util::nodemap::FxHashMap;

use std::collections::BTreeSet;
use std::iter;
use std::ops::Range;
use std::slice;

pub trait AstConv<'gcx, 'tcx> {
Expand Down
6 changes: 3 additions & 3 deletions src/librustc_typeck/check/method/suggest.rs
Expand Up @@ -309,10 +309,10 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
"no {} named `{}` found for type `{}` in the current scope",
item_kind,
item_name,
ty_string
ty_str
);
if let Some(suggestion) = suggestion {
err.note(&format!("did you mean `{}::{}`?", ty_string, suggestion));
err.note(&format!("did you mean `{}::{}`?", ty_str, suggestion));
}
err
}
Expand Down Expand Up @@ -651,7 +651,7 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
fn type_derefs_to_local(&self,
span: Span,
rcvr_ty: Ty<'tcx>,
source: SelfSource) -> bool {
rcvr_expr: Option<&hir::Expr>) -> bool {
fn is_local(ty: Ty) -> bool {
match ty.sty {
ty::Adt(def, _) => def.did.is_local(),
Expand Down

0 comments on commit f81b8cf

Please sign in to comment.