libsyntax: Make float literals not use @str

This commit is contained in:
Patrick Walton 2014-01-15 17:15:39 -08:00 committed by Huon Wilson
parent 8d6ef2e1b1
commit b496d7bec2
7 changed files with 24 additions and 20 deletions

View file

@ -1152,8 +1152,8 @@ fn lit_to_str(lit: &ast::Lit) -> ~str {
ast::LitInt(i, _t) => i.to_str(),
ast::LitUint(u, _t) => u.to_str(),
ast::LitIntUnsuffixed(i) => i.to_str(),
ast::LitFloat(f, _t) => f.to_str(),
ast::LitFloatUnsuffixed(f) => f.to_str(),
ast::LitFloat(ref f, _t) => f.get().to_str(),
ast::LitFloatUnsuffixed(ref f) => f.get().to_str(),
ast::LitBool(b) => b.to_str(),
ast::LitNil => ~"",
}