Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 08737ac

Browse files
authored
Merge pull request #252 from Alexendoo/66930-mir
Add MIR ICE of 66930
2 parents 490fd1f + 1dc5047 commit 08737ac

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
File renamed without changes.

ices/66930-2.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
rustc --emit mir --crate-type lib - << END
4+
static UTF8_CHAR_WIDTH: [u8; 0] = [];
5+
6+
pub fn utf8_char_width(b: u8) -> usize {
7+
UTF8_CHAR_WIDTH[b as usize] as usize
8+
}
9+
END

0 commit comments

Comments
 (0)