diff options
| author | varkor <github@varkor.com> | 2018-06-14 12:23:46 +0100 |
|---|---|---|
| committer | varkor <github@varkor.com> | 2018-06-20 12:23:46 +0100 |
| commit | 95f1866a4df85e815886901a7b64d8dd64709872 (patch) | |
| tree | bdbf856debaa41d7b8efd222db486fc09a4e93fd /src/librustc_save_analysis | |
| parent | c5f16e0e180f4f76187e55aecb5913a1cf7fab2a (diff) | |
| download | rust-95f1866a4df85e815886901a7b64d8dd64709872.tar.gz rust-95f1866a4df85e815886901a7b64d8dd64709872.zip | |
Make GenericBound explicit
Diffstat (limited to 'src/librustc_save_analysis')
| -rw-r--r-- | src/librustc_save_analysis/dump_visitor.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/librustc_save_analysis/dump_visitor.rs b/src/librustc_save_analysis/dump_visitor.rs index 0f0f3f6e789..7da5b1668b3 100644 --- a/src/librustc_save_analysis/dump_visitor.rs +++ b/src/librustc_save_analysis/dump_visitor.rs @@ -761,10 +761,8 @@ impl<'l, 'tcx: 'l, 'll, O: DumpOutput + 'll> DumpVisitor<'l, 'tcx, 'll, O> { // super-traits for super_bound in trait_refs.iter() { let trait_ref = match *super_bound { - ast::Trait(ref trait_ref, _) => trait_ref, - ast::Outlives(..) => { - continue; - } + ast::GenericBound::Trait(ref trait_ref, _) => trait_ref, + ast::GenericBound::Outlives(..) => continue, }; let trait_ref = &trait_ref.trait_ref; @@ -1489,7 +1487,7 @@ impl<'l, 'tcx: 'l, 'll, O: DumpOutput + 'll> Visitor<'l> for DumpVisitor<'l, 'tc ast::GenericParamKind::Lifetime { .. } => {} ast::GenericParamKind::Type { ref default, .. } => { for bound in ¶m.bounds { - if let ast::Trait(ref trait_ref, _) = *bound { + if let ast::GenericBound::Trait(ref trait_ref, _) = *bound { self.process_path(trait_ref.trait_ref.ref_id, &trait_ref.trait_ref.path) } } |
