mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Remove workaround for fixed ICE (#35069)
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
748b0974e5
commit
9f4787f006
1 changed files with 1 additions and 4 deletions
|
@ -58,10 +58,7 @@ struct Bytes<'a>(&'a str);
|
||||||
|
|
||||||
impl FmtConst for Bytes<'_> {
|
impl FmtConst for Bytes<'_> {
|
||||||
fn fmt_const(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt_const(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
|
||||||
// https://github.com/rust-lang/rust/issues/55223
|
write!(formatter, "b\"{}\"", self.0)
|
||||||
// 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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue