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
VecRange.len() crashes the compiler at build (check ok, build segfaults); VecRange.is_empty() too #1954
Found reviewing #1947. let r = v.range(0, 1); r.len() passes with check but with build/with run segfaults the compiler (rc 139) on main; the same happens for r.is_empty() after #1947 (which fixes the other receivers in #1010 but cannot fix this one because the crash is in len itself). Needs the usual route: with reduce on the build predicate, then lldb on the crashing compiler frame.
Fixed on main by 3044b9c (stack #1979, battery green on 029574d). The crash was v.range(0, 1) (two ints to a one-range method) reaching codegen; Sema now refuses anything but one range argument; range(0..2).len()/is_empty() fixture.
Activity
Sema refuses Vec.range with anything but one range argument: v.range(…
Sema refuses Vec.range with anything but one range argument: v.range(…
Runtime/Windows/fs: remove_tree trailing-slash link (#1951); VecRange…
ehartford commentedon Oct 3, 2026
Fixed on main by 3044b9c (stack #1979, battery green on 029574d). The crash was
v.range(0, 1)(two ints to a one-range method) reaching codegen; Sema now refuses anything but one range argument; range(0..2).len()/is_empty() fixture.