1
Fork 0

Auto merge of #53705 - ms2300:tmp, r=oli-obk

#53576 Renaming TyAnon -> TyOpaque

Fixes #53576
This commit is contained in:
bors 2018-09-08 14:16:37 +00:00
commit b24330fb7d
50 changed files with 228 additions and 224 deletions

View file

@ -2678,11 +2678,11 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
ty::Param(ref p) => Generic(p.name.to_string()),
ty::Anon(def_id, substs) => {
ty::Opaque(def_id, substs) => {
// Grab the "TraitA + TraitB" from `impl TraitA + TraitB`,
// by looking up the projections associated with the def_id.
let predicates_of = cx.tcx.predicates_of(def_id);
let substs = cx.tcx.lift(&substs).expect("Anon lift failed");
let substs = cx.tcx.lift(&substs).expect("Opaque lift failed");
let bounds = predicates_of.instantiate(cx.tcx, substs);
let mut regions = vec![];
let mut has_sized = false;