]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #18672 : brandonson/rust/functional-update-walk, r=nikomatsakis
authorbors <bors@rust-lang.org>
Fri, 7 Nov 2014 07:16:33 +0000 (07:16 +0000)
committerbors <bors@rust-lang.org>
Fri, 7 Nov 2014 07:16:33 +0000 (07:16 +0000)
Fixes #18567. `Struct{x:foo, .. with_expr}` did not walk `with_expr`, which allowed
using moved variables in some cases.  The CFG for structs also built up with
`with_expr` happening before the fields, which is now reversed. (Fields are now
before the `with_expr` in the CFG)

1  2 
src/librustc/middle/cfg/construct.rs
src/librustc/middle/expr_use_visitor.rs

Simple merge