You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
type parameter M/#0 (M/0) out of range when substituting, -Z mir-opt-level=2 #76248
use std::marker::PhantomData;constN:usize = 1;pubstructElem<M>{pubx:[usize;N],pubm:PhantomData<M>,}pubfnf() -> Elem<()>{g()}#[inline]pubfng<M>() -> Elem<M>{Elem{x:[0;N],m:PhantomData,}}pubfnmain(){f();}
Error output
error: internal compiler error: src/librustc_middle/ty/subst.rs:529:17: type parameter `M/#0` (M/0) out of range when substituting, substs=[]
...
note: rustc 1.48.0-nightly (d006f5734 2020-08-28) running on x86_64-unknown-linux-gnu
note: compiler flags: -Z mir-opt-level=2
The ICE happens during codegen, but it seems to be caused by MIR inliner.
Activity
Rollup merge of rust-lang#76254 - tmiasko:fold-len, r=wesleywiser
Rollup merge of rust-lang#76254 - tmiasko:fold-len, r=wesleywiser