rust/src/test
Björn Steinbrink b802b18730 Don't call drop when taking the address of unsized fields
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
Fixes #25515
2015-05-19 14:25:35 +02:00
..
auxiliary Allow #[derive()] to generate unsafe methods 2015-05-17 14:56:13 +05:30
bench Auto merge of #24920 - alexcrichton:duration, r=aturon 2015-05-14 18:18:39 +00:00
codegen Mass rename uint/int to usize/isize 2015-03-26 12:10:22 -07:00
compile-fail Rollup merge of #25503 - brson:betafix, r=cmr 2015-05-17 11:55:39 +05:30
compile-fail-fulldeps Auto merge of #25387 - eddyb:syn-file-loader, r=nikomatsakis 2015-05-17 00:05:34 +00:00
debuginfo Update tests to not use old ~ syntax 2015-05-03 20:16:03 -04:00
parse-fail Clarify the error message for malformed extern crate statements 2015-05-16 22:35:59 +12:00
pretty Correct pretty-printing of type Foo<T> where T: Bound = ...; 2015-05-04 10:21:39 +02:00
run-fail Fix the tests broken by replacing task with thread 2015-05-09 04:04:08 +09:00
run-fail-fulldeps syntax: refactor (Span)Handler and ParseSess constructors to be methods. 2015-05-14 01:47:56 +03:00
run-make save-analysis: fix a bracket counting bug 2015-05-14 22:05:52 +12:00
run-pass Don't call drop when taking the address of unsized fields 2015-05-19 14:25:35 +02:00
run-pass-fulldeps Auto merge of #25387 - eddyb:syn-file-loader, r=nikomatsakis 2015-05-17 00:05:34 +00:00
run-pass-valgrind test: Fix fallout in run-pass tests 2015-04-14 10:14:19 -07:00
rustdoc rustdoc: Add Associated Constants section 2015-05-09 12:20:45 +02:00