diff --git a/fixed/66930.rs b/fixed/66930-1.rs similarity index 100% rename from fixed/66930.rs rename to fixed/66930-1.rs diff --git a/ices/66930-2.sh b/ices/66930-2.sh new file mode 100644 index 00000000..ad3d0544 --- /dev/null +++ b/ices/66930-2.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +rustc --emit mir --crate-type lib - << END +static UTF8_CHAR_WIDTH: [u8; 0] = []; + +pub fn utf8_char_width(b: u8) -> usize { + UTF8_CHAR_WIDTH[b as usize] as usize +} +END