mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +00:00
pprust: Fix asm output
This commit is contained in:
parent
7f203b6955
commit
cc31bb0a9e
@ -1516,22 +1516,27 @@ impl<'a> State<'a> {
|
||||
try!(self.popen());
|
||||
try!(self.print_string(a.asm.get(), a.asm_str_style));
|
||||
try!(self.word_space(":"));
|
||||
for &(ref co, o) in a.outputs.iter() {
|
||||
try!(self.print_string(co.get(), ast::CookedStr));
|
||||
try!(self.popen());
|
||||
try!(self.print_expr(o));
|
||||
try!(self.pclose());
|
||||
try!(self.word_space(","));
|
||||
}
|
||||
|
||||
try!(self.commasep(Inconsistent, a.outputs.as_slice(), |s, &(ref co, o)| {
|
||||
try!(s.print_string(co.get(), ast::CookedStr));
|
||||
try!(s.popen());
|
||||
try!(s.print_expr(o));
|
||||
try!(s.pclose());
|
||||
Ok(())
|
||||
}));
|
||||
try!(space(&mut self.s));
|
||||
try!(self.word_space(":"));
|
||||
for &(ref co, o) in a.inputs.iter() {
|
||||
try!(self.print_string(co.get(), ast::CookedStr));
|
||||
try!(self.popen());
|
||||
try!(self.print_expr(o));
|
||||
try!(self.pclose());
|
||||
try!(self.word_space(","));
|
||||
}
|
||||
|
||||
try!(self.commasep(Inconsistent, a.inputs.as_slice(), |s, &(ref co, o)| {
|
||||
try!(s.print_string(co.get(), ast::CookedStr));
|
||||
try!(s.popen());
|
||||
try!(s.print_expr(o));
|
||||
try!(s.pclose());
|
||||
Ok(())
|
||||
}));
|
||||
try!(space(&mut self.s));
|
||||
try!(self.word_space(":"));
|
||||
|
||||
try!(self.print_string(a.clobbers.get(), ast::CookedStr));
|
||||
try!(self.pclose());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user