mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
Merge pull request #3270 from rust-lang-nursery/rustup
Rustup for https://github.com/rust-lang/rust/pull/54741
This commit is contained in:
commit
32b1d1fc15
1 changed files with 13 additions and 16 deletions
|
@ -344,10 +344,11 @@ impl<'a, 'tcx> Visitor<'tcx> for RefVisitor<'a, 'tcx> {
|
||||||
self.record(&None);
|
self.record(&None);
|
||||||
},
|
},
|
||||||
TyKind::Path(ref path) => {
|
TyKind::Path(ref path) => {
|
||||||
if let QPath::Resolved(_, ref path) = *path {
|
|
||||||
if let Def::Existential(def_id) = path.def {
|
self.collect_anonymous_lifetimes(path, ty);
|
||||||
let node_id = self.cx.tcx.hir.as_local_node_id(def_id).unwrap();
|
}
|
||||||
if let ItemKind::Existential(ref exist_ty) = self.cx.tcx.hir.expect_item(node_id).node {
|
TyKind::Def(item, _) => {
|
||||||
|
if let ItemKind::Existential(ref exist_ty) = self.cx.tcx.hir.expect_item(item.id).node {
|
||||||
for bound in &exist_ty.bounds {
|
for bound in &exist_ty.bounds {
|
||||||
if let GenericBound::Outlives(_) = *bound {
|
if let GenericBound::Outlives(_) = *bound {
|
||||||
self.record(&None);
|
self.record(&None);
|
||||||
|
@ -357,10 +358,6 @@ impl<'a, 'tcx> Visitor<'tcx> for RefVisitor<'a, 'tcx> {
|
||||||
unreachable!()
|
unreachable!()
|
||||||
}
|
}
|
||||||
walk_ty(self, ty);
|
walk_ty(self, ty);
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
self.collect_anonymous_lifetimes(path, ty);
|
|
||||||
}
|
}
|
||||||
TyKind::TraitObject(ref bounds, ref lt) => {
|
TyKind::TraitObject(ref bounds, ref lt) => {
|
||||||
if !lt.is_elided() {
|
if !lt.is_elided() {
|
||||||
|
|
Loading…
Reference in a new issue