diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-26 14:40:05 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-06-27 11:17:55 +0200 |
| commit | 0e775a3b865605dfa761995b8f3a8fb248971836 (patch) | |
| tree | 4d1478b40922c7f6e30afcde26f94091d9825902 | |
| parent | 37cc714aa708b665411534742b221c8e0ccd0e4b (diff) | |
| download | rust-0e775a3b865605dfa761995b8f3a8fb248971836.tar.gz rust-0e775a3b865605dfa761995b8f3a8fb248971836.zip | |
Don't visit the `impl Trait` item twice
| -rw-r--r-- | src/librustc/hir/intravisit.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc/hir/intravisit.rs b/src/librustc/hir/intravisit.rs index 2a351d99841..f2d1678d336 100644 --- a/src/librustc/hir/intravisit.rs +++ b/src/librustc/hir/intravisit.rs @@ -607,9 +607,8 @@ pub fn walk_ty<'v, V: Visitor<'v>>(visitor: &mut V, typ: &'v Ty) { } visitor.visit_lifetime(lifetime); } - TyImplTraitExistential(item_id, def_id, ref lifetimes) => { + TyImplTraitExistential(_, def_id, ref lifetimes) => { visitor.visit_def_mention(Def::Existential(def_id)); - visitor.visit_nested_item(item_id); walk_list!(visitor, visit_lifetime, lifetimes); } TyTypeof(ref expression) => { |
