mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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<'_> {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue