Optimize const value interning for ZST types

Interning can skip any inhabited ZST type in general.
This commit is contained in:
Wesley Wiser 2020-10-17 15:47:27 -04:00
parent ffeeb20398
commit 1d07d696d2
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,5 @@
// build-pass
fn main() {
println!("{}", [(); std::usize::MAX].len());
}