From aaa7280a08b65aebe42b5405aec2bf72ae780885 Mon Sep 17 00:00:00 2001 From: Emilio Cobos Álvarez Date: Fri, 13 Jan 2017 21:19:10 +0100 Subject: Update aster and syntex. --- libbindgen/src/codegen/helpers.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libbindgen/src/codegen/helpers.rs') diff --git a/libbindgen/src/codegen/helpers.rs b/libbindgen/src/codegen/helpers.rs index c09f0071..b4cc75f5 100644 --- a/libbindgen/src/codegen/helpers.rs +++ b/libbindgen/src/codegen/helpers.rs @@ -153,7 +153,7 @@ pub mod ast_ty { } pub fn float_expr(f: f64) -> P { - use aster::str::ToInternedString; + use aster::symbol::ToSymbol; let mut string = f.to_string(); // So it gets properly recognised as a floating point constant. @@ -161,8 +161,7 @@ pub mod ast_ty { string.push('.'); } - let interned_str = string.as_str().to_interned_string(); - let kind = ast::LitKind::FloatUnsuffixed(interned_str); + let kind = ast::LitKind::FloatUnsuffixed(string.as_str().to_symbol()); aster::AstBuilder::new().expr().lit().build_lit(kind) } -- cgit v1.2.3