about summary refs log tree commit diff
path: root/src/test/codegen
AgeCommit message (Collapse)AuthorLines
2014-09-22librustc: Forbid private types in public APIs.Patrick Walton-5/+5
This breaks code like: struct Foo { ... } pub fn make_foo() -> Foo { ... } Change this code to: pub struct Foo { // note `pub` ... } pub fn make_foo() -> Foo { ... } The `visible_private_types` lint has been removed, since it is now an error to attempt to expose a private type in a public API. In its place a `#[feature(visible_private_types)]` gate has been added. Closes #16463. RFC #48. [breaking-change]
2013-10-10Add `pub` to all the codegen testsAlex Crichton-13/+13
Otherwise the test function is internalized and LLVM will most likely optimize it out.
2013-08-17Fix warnings it testsErick Tryzelaar-1/+1
2013-08-10Elide unnecessary ret slot allocasBjörn Steinbrink-0/+28
When there is only a single store to the ret slot that dominates the load that gets the value for the "ret" instruction, we can elide the ret slot and directly return the operand of the dominating store instruction. This is the same thing that clang does, except for a special case that doesn't seem to affect us. Fixes #8238
2013-07-31test: add more codegen tests, add copyright headers to all.Graydon Hoare-0/+268
2013-07-16test: new codegen tests, rename hello.Graydon Hoare-0/+65
2013-07-11wire up makefile to run codegen tests and add one to startGraydon Hoare-0/+16