Added support for trait aliases as object types.

This commit is contained in:
Alexander Regueiro 2018-10-22 00:45:24 +01:00
parent 34792d9f6a
commit 90041d638b
7 changed files with 43 additions and 34 deletions

View file

@ -288,9 +288,9 @@ pub enum TraitBoundModifier {
}
/// The AST represents all type param bounds as types.
/// typeck::collect::compute_bounds matches these against
/// the "special" built-in traits (see middle::lang_items) and
/// detects Copy, Send and Sync.
/// `typeck::collect::compute_bounds` matches these against
/// the "special" built-in traits (see `middle::lang_items`) and
/// detects `Copy`, `Send` and `Sync`.
#[derive(Clone, RustcEncodable, RustcDecodable, Debug)]
pub enum GenericBound {
Trait(PolyTraitRef, TraitBoundModifier),