rust/src/test
bors de17464b14 Auto merge of #65881 - anp:implicit-caller-location, r=eddyb,oli-obk
Implement #[track_caller] attribute. (RFC 2091 4/N)

Implements the `#[track_caller]` attribute in both const and codegen contexts.

The const implementation walks up the stack to find the nearest untracked callsite.

The codegen implementation adds an implicit argument to tracked function calls, and populates it with either a call to the previously-landed intrinsic or if the caller has `#[track_caller]` with a copy of the location passed to the current function.

Also includes a little cleanup and a few comments in the other caller location areas.

[Depends on: 65664](https://github.com/rust-lang/rust/pull/65664)
[RFC 2091 text](https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md)
[Tracking issue](https://github.com/rust-lang/rust/issues/47809)
[Tracking doc](https://paper.dropbox.com/doc/track_rfc_2091_impl-notes--Anf1NwnIb0xcRv31YLIadyj0Ag-rwCdRc2fi2yvRZ7syGZ9q#:uid=863513134494965680023183&h2=TODO-actually-pass-location-to)
2019-12-07 21:14:39 +00:00
..
assembly
auxiliary
codegen Rollup merge of #67054 - RalfJung:set-discriminant-unreachable, r=oli-obk 2019-12-07 00:10:05 +09:00
codegen-units Update test output. 2019-10-25 14:52:39 +02:00
compile-fail Auto merge of #66927 - RalfJung:engines-dont-panic, r=oli-obk 2019-12-07 14:46:30 +00:00
debuginfo debuginfo: Support for std::collections::Hash* in windows debuggers. 2019-11-20 19:27:42 -08:00
incremental Make try_mark_previous_green aware of cycles. 2019-12-06 12:48:53 +03:00
mir-opt Rollup merge of #66850 - eddyb:span-free-formats, r=oli-obk 2019-12-02 04:09:01 +01:00
pretty Merge branch 'master' into format-temporaries 2019-11-02 11:12:42 -04:00
run-fail [const-prop] Handle MIR Rvalue::Aggregates 2019-10-18 06:29:57 -04:00
run-make Upgrade Emscripten targets to use upstream LLVM backend 2019-10-16 17:06:48 -07:00
run-make-fulldeps Update the minimum external LLVM to 7 2019-12-02 11:36:21 -08:00
run-pass-valgrind
rustdoc Remove potential cfgs duplicates 2019-12-04 11:53:33 +01:00
rustdoc-js
rustdoc-js-std
rustdoc-ui rustdoc: Add test for fixed issue 2019-12-04 01:31:35 +00:00
rustfix
ui Auto merge of #65881 - anp:implicit-caller-location, r=eddyb,oli-obk 2019-12-07 21:14:39 +00:00
ui-fulldeps Fix UI tests for new locations 2019-12-03 12:19:17 -05:00
COMPILER_TESTS.md