rust/tests/compile-fail
Aaron Hill be51e6bd07
Add an fn_ptr field to MiriFrame
The `backtrace-rs` crate can use this to implement
`Frame::symbol_address`, which is used to skip frames
above the call to `Backtrace::capture` on the stack.

The function pointer will not be useable for comparison purposes if the
function is generic, as CTFE creates a new function pointer for each
cast of a (monomorphized) generic function. However, this already
affects code running under Miri, and isn't a problem for `backtrace-rs`
(which only casts a non-generic function).

I've added logic to allow `MiriFrame` to have either 4 or 5 fields - if
a 5th field is present, we write the function pointer to it.
2020-10-10 13:07:57 -04:00
..
2020-09-24 09:19:03 +02:00
2020-06-26 20:36:08 +02:00
2020-05-25 00:02:54 +02:00
2020-06-20 11:48:42 +02:00
2020-05-07 08:38:59 +02:00
2020-07-23 15:56:38 +02:00
2020-07-09 17:21:09 +02:00
2020-05-22 17:03:25 +02:00