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
Comprehensions: f-string element leaks, HashMap[str, _] comprehension double-frees, ? over a Vec clause fails MIR lowering #1736
? in the element of a comprehension over a Vec does not lower:
fn check(w: &str) -> Result[str, str]:
if w == "w2": return Err(w.clone())
Ok(w ++ "!")
fn all_checked(ws: &Vec[str]) -> Result[Vec[str], str]:
let v = [check(w)? for w in ws]
Ok(v)
→ "MIR lowering failed for function 'all_checked'" (WITH_MIR_AUDIT: [mir-lower-fail] kind=64 at the element). The same ? over a range or a generator clause works (the early-exit leak of the collection itself is fixed in 63d6807 on gen-push-fixes).
Expected: leak count 0, no double free, and the Vec clause lowers like the range clause.
Activity
MIR: a comprehension drops each iteration's temporaries in that itera…
validate-all: a body whose MIR lowering failed is a failure, not a sk…
Ownership: D72 liveness byte, D73 assignment-as-read, validator leak/…