Add parser support for generalized where clauses
Implement support in the parser for generalized where clauses, as well as the conversion of ast::WherePredicates to ty::Predicate in `collect.rs`.
This commit is contained in:
@@ -129,7 +129,7 @@ impl<'a> fmt::Show for WhereClause<'a> {
|
||||
try!(f.write(", ".as_bytes()));
|
||||
}
|
||||
let bounds = pred.bounds.as_slice();
|
||||
try!(write!(f, "{}: {}", pred.name, TyParamBounds(bounds)));
|
||||
try!(write!(f, "{}: {}", pred.ty, TyParamBounds(bounds)));
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user