syntax: Make asm! clobbers a proper vector.

Otherwise `--pretty expanded` diverges.
This commit is contained in:
Kang Seonghoon
2014-11-30 11:56:31 +09:00
parent 8d8f41b75f
commit 989f906af3
5 changed files with 35 additions and 14 deletions

View File

@@ -1839,7 +1839,11 @@ impl<'a> State<'a> {
try!(space(&mut self.s));
try!(self.word_space(":"));
try!(self.print_string(a.clobbers.get(), ast::CookedStr));
try!(self.commasep(Inconsistent, a.clobbers.as_slice(),
|s, co| {
try!(s.print_string(co.get(), ast::CookedStr));
Ok(())
}));
try!(self.pclose());
}
ast::ExprMac(ref m) => try!(self.print_mac(m)),