From 9f4787f006f8ea7457ad0d1e9b9b7bf3d54fd9ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20W=C3=BClker?= Date: Sun, 19 Jan 2025 05:13:17 +0100 Subject: [PATCH] Remove workaround for fixed ICE (#35069) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Simon Wülker --- components/script/build.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/script/build.rs b/components/script/build.rs index c7a905fa832..1635558b4b8 100644 --- a/components/script/build.rs +++ b/components/script/build.rs @@ -58,10 +58,7 @@ struct Bytes<'a>(&'a str); impl FmtConst for Bytes<'_> { fn fmt_const(&self, formatter: &mut fmt::Formatter) -> fmt::Result { - // https://github.com/rust-lang/rust/issues/55223 - // should technically be just `write!(formatter, "b\"{}\"", self.0) - // but the referenced issue breaks promotion in the surrounding code - write!(formatter, "{{ const FOO: &[u8] = b\"{}\"; FOO }}", self.0) + write!(formatter, "b\"{}\"", self.0) } }