rust/src/test
bors c6aaf2c7bd auto merge of #12419 : huonw/rust/compiler-unsafe, r=alexcrichton
Previously an `unsafe` block created by the compiler (like those in the
formatting macros) would be "ignored" if surrounded by `unsafe`, that
is, the internal unsafety would be being legitimised by the external
block:

    unsafe { println!("...") } =(expansion)=> unsafe { ... unsafe { ... } }

And the code in the inner block would be using the outer block, making
it considered used (and the inner one considered unused).

This patch forces the compiler to create a new unsafe context for
compiler generated blocks, so that their internal unsafety doesn't
escape to external blocks.

Fixes #12418.
2014-02-21 07:06:51 -08:00
..
auxiliary Re-work loading crates with nicer errors 2014-02-20 17:48:32 -08:00
bench Remove CloneableTuple and ImmutableTuple traits 2014-02-17 00:57:56 +11:00
codegen Add pub to all the codegen tests 2013-10-10 06:00:51 -07:00
compile-fail auto merge of #12419 : huonw/rust/compiler-unsafe, r=alexcrichton 2014-02-21 07:06:51 -08:00
debug-info debuginfo: Re-enable test case that should have worked all along. 2014-02-19 17:16:36 +01:00
pretty extern mod => extern crate 2014-02-14 22:55:21 -08:00
run-fail Update clients of the TaskBuilder API 2014-02-16 15:34:02 -08:00
run-make auto merge of #12379 : alexcrichton/rust/fix-ar-thing, r=brson 2014-02-19 10:21:50 -08:00
run-pass auto merge of #12403 : eddyb/rust/generic-dtors-with-bounds, r=nikomatsakis 2014-02-20 07:06:49 -08:00
run-pass-fulldeps extern mod => extern crate 2014-02-14 22:55:21 -08:00