Skip to content

Loops try to clean up uninitialized variables #787

Closed
@brson

Description

@brson
while true {
    let x = alt true {
      true { break }  
      _ { "whatever" }
    };                                                                                                                                                                    
}

Under valgrind results in:

==18230== Thread 10:
==18230== Conditional jump or move depends on uninitialised value(s)
==18230==    at 0x8048858: glue_drop2 (in /home/banderson/Dev/rust/build/test/run-pass/while-break-ref.stage1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions