rollup merge of #18630 : nikomatsakis/purge-the-bars
This commit is contained in:
@@ -143,9 +143,6 @@ impl fmt::Show for clean::TyParamBound {
|
||||
clean::RegionBound(ref lt) => {
|
||||
write!(f, "{}", *lt)
|
||||
}
|
||||
clean::UnboxedFnBound(ref ty) => {
|
||||
write!(f, "{}{}", ty.path, ty.decl)
|
||||
}
|
||||
clean::TraitBound(ref ty) => {
|
||||
write!(f, "{}", *ty)
|
||||
}
|
||||
@@ -404,8 +401,7 @@ impl fmt::Show for clean::Type {
|
||||
let mut ret = String::new();
|
||||
for bound in decl.bounds.iter() {
|
||||
match *bound {
|
||||
clean::RegionBound(..) |
|
||||
clean::UnboxedFnBound(..) => {}
|
||||
clean::RegionBound(..) => {}
|
||||
clean::TraitBound(ref t) => {
|
||||
if ret.len() == 0 {
|
||||
ret.push_str(": ");
|
||||
|
||||
Reference in New Issue
Block a user