rust/src/test
bors 42eb5ff404 Auto merge of #55641 - nagisa:optimize-attr, r=pnkfelix
Implement optimize(size) and optimize(speed) attributes

This PR implements both `optimize(size)` and `optimize(speed)` attributes.

While the functionality itself works fine now, this PR is not yet complete: the code might be messy in places and, most importantly, the compiletest must be improved with functionality to run tests with custom optimization levels. Otherwise the new attribute cannot be tested properly. Oh, and not all of the RFC is implemented – attribute propagation is not implemented for example.

# TODO

* [x] Improve compiletest so that tests can be written;
* [x] Assign a proper error number (E9999 currently, no idea how to allocate a number properly);
* [ ] Perhaps reduce the duplication in LLVM attribute assignment code…
2019-01-26 07:08:18 +00:00
..
auxiliary Remove licenses 2018-12-25 21:08:33 -07:00
codegen Auto merge of #55641 - nagisa:optimize-attr, r=pnkfelix 2019-01-26 07:08:18 +00:00
codegen-units Remove licenses 2018-12-25 21:08:33 -07:00
compile-fail Stabilize let bindings and destructuring in constants and const fn 2019-01-09 10:20:12 +01:00
compile-fail-fulldeps/auxiliary Removed more copyright notices. 2019-01-13 19:47:02 +00:00
debuginfo Fix repeated word typos 2019-01-03 21:33:37 +01:00
incremental Fix typo bug in DepGraph::try_mark_green(). 2019-01-17 15:32:05 +01:00
mir-opt Don't ignore _ in type casts and ascriptions 2019-01-19 19:33:41 +00:00
pretty Remove licenses 2018-12-25 21:08:33 -07:00
run-fail Remove licenses 2018-12-25 21:08:33 -07:00
run-make Remove licenses 2018-12-25 21:08:33 -07:00
run-make-fulldeps remove extern_in_paths. 2019-01-13 14:18:00 +01:00
run-pass Auto merge of #57269 - gnzlbg:simd_bitmask, r=rkruppe 2019-01-24 13:11:06 +00:00
run-pass-fulldeps Remove quote_*! macros and associated APIs 2019-01-24 07:37:34 -07:00
run-pass-valgrind Remove licenses 2018-12-25 21:08:33 -07:00
rustdoc add intra-doc link test to proc-macro test 2019-01-22 15:44:19 -06:00
rustdoc-js Remove licenses 2018-12-25 21:08:33 -07:00
rustdoc-ui Auto merge of #56884 - euclio:codeblock-diagnostics, r=QuietMisdreavus 2019-01-20 19:01:38 +00:00
rustfix tests: Do not use -Z parse-only, continue compilation to test recovery 2019-01-06 22:20:46 +03:00
ui Auto merge of #55641 - nagisa:optimize-attr, r=pnkfelix 2019-01-26 07:08:18 +00:00
ui-fulldeps Remove quote_*! macros and associated APIs 2019-01-24 07:37:34 -07:00
COMPILER_TESTS.md rustc-guide has moved 2018-11-26 15:03:13 -06:00