Make output type in ast::FnDecl optional

This commit is contained in:
Seo Sanghyeon
2015-01-18 22:49:19 +09:00
parent a833337943
commit 3f0cc8011a
14 changed files with 76 additions and 85 deletions

View File

@@ -557,6 +557,7 @@ impl fmt::String for clean::FunctionRetTy {
match *self {
clean::Return(clean::Tuple(ref tys)) if tys.is_empty() => Ok(()),
clean::Return(ref ty) => write!(f, " -> {}", ty),
clean::DefaultReturn => Ok(()),
clean::NoReturn => write!(f, " -> !")
}
}