rust/src/librustc_trans/trans
bors 6d718f236d Auto merge of #25595 - dotdash:issue25549, r=eddyb
When taking the address of an unsized field we generate a rvalue datum
for the field and then convert it to an lvalue datum. At that point,
cleanup is scheduled for the field, leading to multiple drop calls.

The problem is that we generate an rvalue datum for the field, since the
pointer does not own the data and there's already cleanup scheduled
elsewhere by the true owner. Instead, an lvalue datum must be created.

Thanks to @eddyb for identifying the underlying cause and suggesting the
correct fix.

Fixes #25549.
2015-05-20 07:38:45 +00:00
..
debuginfo Auto merge of #25350 - alexcrichton:msvc, r=brson 2015-05-20 00:31:55 +00:00
_match.rs librustc_trans: Handle DST structs in trans::_match. 2015-05-03 05:36:04 -04:00
adt.rs Expose enum discriminant signedness 2015-05-19 17:42:14 +03:00
asm.rs syntax: Change ExpnId::{from,to}_llvm_cookie to {from,to}_u32 2015-04-21 10:11:05 -07:00
attributes.rs Auto merge of #25085 - carols10cents:remove-old-tilde, r=steveklabnik 2015-05-11 04:46:41 +00:00
base.rs Auto merge of #25350 - alexcrichton:msvc, r=brson 2015-05-20 00:31:55 +00:00
basic_block.rs
build.rs Add singlethreaded fence intrinsics. 2015-04-25 19:41:21 -06:00
builder.rs Add singlethreaded fence intrinsics. 2015-04-25 19:41:21 -06:00
cabi_aarch64.rs Don't repeat Attribute in the const names 2015-05-05 22:03:45 -04:00
cabi_arm.rs Don't repeat Attribute in the const names 2015-05-05 22:03:45 -04:00
cabi_mips.rs Don't repeat Attribute in the const names 2015-05-05 22:03:45 -04:00
cabi_powerpc.rs Don't repeat Attribute in the const names 2015-05-05 22:03:45 -04:00
cabi_x86_64.rs Don't repeat Attribute in the const names 2015-05-05 22:03:45 -04:00
cabi_x86_win64.rs Don't repeat Attribute in the const names 2015-05-05 22:03:45 -04:00
cabi_x86.rs Don't repeat Attribute in the const names 2015-05-05 22:03:45 -04:00
cabi.rs
callee.rs Stop using Rc in TraitRef and TraitDef 2015-04-30 15:09:11 +03:00
cleanup.rs Remove schedule_free_slice 2015-05-06 17:09:55 -04:00
closure.rs
common.rs Fix translation of semi-constant if-statements 2015-05-19 17:42:15 +03:00
consts.rs Make float -> int casts actually work 2015-05-19 17:42:15 +03:00
context.rs rustc_trans: Apply dllexport attributes for MSVC 2015-05-19 10:53:07 -07:00
controlflow.rs Fix translation of semi-constant if-statements 2015-05-19 17:42:15 +03:00
datum.rs
declare.rs rustc_trans: Tidy up some style and line lengths 2015-05-19 10:53:06 -07:00
expr.rs Auto merge of #25595 - dotdash:issue25549, r=eddyb 2015-05-20 07:38:45 +00:00
foreign.rs Don't repeat Attribute in the const names 2015-05-05 22:03:45 -04:00
glue.rs Fix a bunch of bugs 2015-05-13 14:19:51 +12:00
inline.rs Fix a number of bugs that interfered with cross-crate usage of associated consts. 2015-04-23 21:02:27 -06:00
intrinsic.rs Allow for better optimizations of iterators for zero-sized types 2015-05-15 15:30:22 +02:00
llrepr.rs
machine.rs Fix a bunch of bugs 2015-05-13 14:19:51 +12:00
macros.rs
meth.rs Stop using Rc in TraitRef and TraitDef 2015-04-30 15:09:11 +03:00
mod.rs
monomorphize.rs Structural changes for associated constants 2015-04-23 21:02:25 -06:00
tvec.rs Forbid is/us suffixes. Fixes #22496 2015-04-15 16:13:26 -07:00
type_.rs
type_of.rs std: Remove deprecated/unstable num functionality 2015-04-21 11:37:43 -07:00
value.rs