From 300aca38c2a5223665b49a2c89bb07ef07f9d494 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 18 Sep 2018 14:30:01 -0700 Subject: [PATCH] Squelch warnings in webidl tests --- .travis.yml | 4 ---- crates/backend/src/codegen.rs | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 31344040..354a0f5f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -195,10 +195,6 @@ matrix: keep-history: false if: branch = master -before_install: - # FIXME (travis-ci/travis-ci#8920) shouldn't be necessary... - - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)" - notifications: email: on_success: never diff --git a/crates/backend/src/codegen.rs b/crates/backend/src/codegen.rs index fe0f9752..15a95829 100644 --- a/crates/backend/src/codegen.rs +++ b/crates/backend/src/codegen.rs @@ -1061,15 +1061,15 @@ impl ToTokens for ast::Const { // again no suffix // panics on +-inf, nan FloatLiteral(f) => { - let f = Literal::f64_unsuffixed(f); + let f = Literal::f64_suffixed(f); quote!(#f) }, SignedIntegerLiteral(i) => { - let i = Literal::i64_unsuffixed(i); + let i = Literal::i64_suffixed(i); quote!(#i) }, UnsignedIntegerLiteral(i) => { - let i = Literal::u64_unsuffixed(i); + let i = Literal::u64_suffixed(i); quote!(#i) }, Null => unimplemented!(),