From 1dc50471f8101090e3f935da850bb3c77fa98cba Mon Sep 17 00:00:00 2001 From: Alex Macleod Date: Sat, 11 Jan 2020 12:18:14 +0000 Subject: [PATCH] Add MIR ICE of 66930 --- fixed/{66930.rs => 66930-1.rs} | 0 ices/66930-2.sh | 9 +++++++++ 2 files changed, 9 insertions(+) rename fixed/{66930.rs => 66930-1.rs} (100%) create mode 100644 ices/66930-2.sh 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