rust/src/librustc_trans
bors 52c74e63da Auto merge of #21692 - pnkfelix:fsk-fix-coerce-match-20055, r=eddyb
trans: When coercing to `Box<Trait>` or `Box<[T]>`, leave datum in it's original L-/R-value state.

This fixes a subtle issue where temporaries were being allocated (but not necessarily initialized) to the (parent) terminating scope of a match expression; in particular, the code to zero out the temporary emitted by `datum.store_to` is only attached to the particular match-arm for that temporary, but when going down other arms of the match expression, the temporary may falsely appear to have been initialized, depending on what the stack held at that location, and thus may have its destructor erroneously run at the end of the terminating scope.

FIx #20055.

(There may be a latent bug still remaining in `fn into_fat_ptr`, but I am so annoyed by the test/run-pass/coerce_match.rs failures that I want to land this now.)
2015-01-29 22:54:19 +00:00
..
back Auto merge of #21677 - japaric:no-range, r=alexcrichton 2015-01-29 16:28:52 +00:00
save s/Show/Debug/g 2015-01-29 07:49:02 -05:00
trans Auto merge of #21692 - pnkfelix:fsk-fix-coerce-match-20055, r=eddyb 2015-01-29 22:54:19 +00:00
lib.rs Deprecated attributes don't take 'feature' names and are paired with stable/unstable 2015-01-23 15:50:03 -08:00
README.txt

See the README.txt in ../librustc.