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

Commit

Permalink
Merge pull request #252 from Alexendoo/66930-mir
Browse files Browse the repository at this point in the history
Add MIR ICE of 66930
  • Loading branch information
JohnTitor authored Jan 11, 2020
2 parents 490fd1f + 1dc5047 commit 08737ac
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
File renamed without changes.
9 changes: 9 additions & 0 deletions ices/66930-2.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 08737ac

Please sign in to comment.