From 357da630765d58b5998a80c3d1457ae93a97cbe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Capucho?= Date: Wed, 15 Jun 2022 20:17:59 +0100 Subject: [PATCH] Patch ron version (#1986) Require at least version 0.7.1 of ron, this version changed how floating points are serialized by forcing them to always have the decimal part, this makes it backwards incompatible with our tests because we do a syntatic diff and not a semantic one. --- Cargo.toml | 5 ++++- tests/out/ir/shadow.ron | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1476eb9cf8..1b2fb838b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -67,7 +67,10 @@ unicode-xid = { version = "0.2.3", optional = true } bincode = "1" criterion = { version = "0.3", features = [] } diff = "0.1" -ron = "0.7" +# Require at least version 0.7.1 of ron, this version changed how floating points are +# serialized by forcing them to always have the decimal part, this makes it backwards +# incompatible with our tests because we do a syntatic diff and not a semantic one. +ron = "~0.7.1" serde = { version = "1.0", features = ["derive"] } spirv = { version = "0.2", features = ["deserialize"] } rspirv = "0.11" diff --git a/tests/out/ir/shadow.ron b/tests/out/ir/shadow.ron index 128a4032e2..d9a07a96a8 100644 --- a/tests/out/ir/shadow.ron +++ b/tests/out/ir/shadow.ron @@ -324,7 +324,7 @@ specialization: None, inner: Scalar( width: 4, - value: Float(0), + value: Float(0.0), ), ), ( @@ -332,7 +332,7 @@ specialization: None, inner: Scalar( width: 4, - value: Float(1), + value: Float(1.0), ), ), ( @@ -400,7 +400,7 @@ specialization: None, inner: Scalar( width: 4, - value: Float(0), + value: Float(0.0), ), ), (