rustdoc: fix fallout from removing ast::Sigil.
This commit is contained in:
parent
0ac532686f
commit
9351c01b35
2 changed files with 17 additions and 14 deletions
|
@ -337,19 +337,24 @@ impl fmt::Show for clean::Type {
|
|||
};
|
||||
f.buf.write(s.as_bytes())
|
||||
}
|
||||
clean::Closure(ref decl) => {
|
||||
let region = match decl.region {
|
||||
clean::Closure(ref decl, ref region) => {
|
||||
let region = match *region {
|
||||
Some(ref region) => format!("{} ", *region),
|
||||
None => ~"",
|
||||
};
|
||||
|
||||
write!(f.buf, "{}{}{arrow, select, yes{ -> {ret}} other{}}",
|
||||
write!(f.buf, "{}{}|{}|{arrow, select, yes{ -> {ret}} other{}}",
|
||||
FnStyleSpace(decl.fn_style),
|
||||
match decl.sigil {
|
||||
ast::OwnedSigil => format!("proc({})", decl.decl.inputs),
|
||||
ast::BorrowedSigil => format!("{}|{}|", region, decl.decl.inputs),
|
||||
ast::ManagedSigil => format!("@{}fn({})", region, decl.decl.inputs),
|
||||
},
|
||||
region,
|
||||
decl.decl.inputs,
|
||||
arrow = match decl.decl.output { clean::Unit => "no", _ => "yes" },
|
||||
ret = decl.decl.output)
|
||||
// FIXME: where are bounds and lifetimes printed?!
|
||||
}
|
||||
clean::Proc(ref decl) => {
|
||||
write!(f.buf, "{}proc({}){arrow, select, yes{ -> {ret}} other{}}",
|
||||
FnStyleSpace(decl.fn_style),
|
||||
decl.decl.inputs,
|
||||
arrow = match decl.decl.output { clean::Unit => "no", _ => "yes" },
|
||||
ret = decl.decl.output)
|
||||
// FIXME: where are bounds and lifetimes printed?!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue