rustdoc: Remove dummy UnknownBound variant

This commit is contained in:
Tom Jakubowski
2014-10-06 02:22:40 -07:00
parent 7be20574e0
commit 3bd4475278
3 changed files with 4 additions and 10 deletions

View File

@@ -146,9 +146,6 @@ impl fmt::Show for clean::TyParamBound {
clean::UnboxedFnBound(ref ty) => {
write!(f, "{}{}", ty.path, ty.decl)
}
clean::UnknownBound => {
write!(f, "'static")
}
clean::TraitBound(ref ty) => {
write!(f, "{}", *ty)
}
@@ -408,8 +405,7 @@ impl fmt::Show for clean::Type {
for bound in decl.bounds.iter() {
match *bound {
clean::RegionBound(..) |
clean::UnboxedFnBound(..) |
clean::UnknownBound => {}
clean::UnboxedFnBound(..) => {}
clean::TraitBound(ref t) => {
if ret.len() == 0 {
ret.push_str(": ");