Skip to content

Commit 5a86bc1

Browse files
committed
Rustup to rustc 1.36.0-nightly (c7fcbfb 2019-04-29)
See rust-lang/rust#60317
1 parent 9e07b35 commit 5a86bc1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

clippy_lints/src/use_self.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
use if_chain::if_chain;
22
use rustc::hir::def::{CtorKind, Def};
33
use rustc::hir::intravisit::{walk_item, walk_path, walk_ty, NestedVisitorMap, Visitor};
4+
use rustc::hir;
45
use rustc::hir::*;
56
use rustc::lint::{in_external_macro, LateContext, LateLintPass, LintArray, LintContext, LintPass};
67
use rustc::ty;
7-
use rustc::ty::DefIdTree;
8+
use rustc::ty::{Ty, DefIdTree};
89
use rustc::{declare_lint_pass, declare_tool_lint};
910
use rustc_errors::Applicability;
1011
use syntax_pos::symbol::keywords::SelfUpper;
@@ -68,14 +69,14 @@ fn span_use_self_lint(cx: &LateContext<'_, '_>, path: &Path) {
6869
}
6970

7071
struct TraitImplTyVisitor<'a, 'tcx: 'a> {
71-
item_type: ty::Ty<'tcx>,
72+
item_type: Ty<'tcx>,
7273
cx: &'a LateContext<'a, 'tcx>,
7374
trait_type_walker: ty::walk::TypeWalker<'tcx>,
7475
impl_type_walker: ty::walk::TypeWalker<'tcx>,
7576
}
7677

7778
impl<'a, 'tcx> Visitor<'tcx> for TraitImplTyVisitor<'a, 'tcx> {
78-
fn visit_ty(&mut self, t: &'tcx Ty) {
79+
fn visit_ty(&mut self, t: &'tcx hir::Ty) {
7980
let trait_ty = self.trait_type_walker.next();
8081
let impl_ty = self.impl_type_walker.next();
8182

@@ -109,7 +110,7 @@ impl<'a, 'tcx> Visitor<'tcx> for TraitImplTyVisitor<'a, 'tcx> {
109110

110111
fn check_trait_method_impl_decl<'a, 'tcx: 'a>(
111112
cx: &'a LateContext<'a, 'tcx>,
112-
item_type: ty::Ty<'tcx>,
113+
item_type: Ty<'tcx>,
113114
impl_item: &ImplItem,
114115
impl_decl: &'tcx FnDecl,
115116
impl_trait_ref: &ty::TraitRef<'_>,

0 commit comments

Comments
 (0)