diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-06 02:37:54 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-06 02:37:54 +0200 |
| commit | 182248a466468a7599f21b414904c12daeb8d827 (patch) | |
| tree | 1d6674b83e7609436d834f9709451e8172320f78 /src/test/ui/structs-enums/tuple-struct-construct.rs | |
| parent | a8f8c7c78c32111dc2dd906060e53326e7d52f1b (diff) | |
| parent | ceb496cf59ea28d98146cdcfc072cede4f7c6585 (diff) | |
| download | rust-182248a466468a7599f21b414904c12daeb8d827.tar.gz rust-182248a466468a7599f21b414904c12daeb8d827.zip | |
Rollup merge of #62245 - RalfJung:miri-extra-fn, r=eddyb,zackmdavis
Miri engine: support extra function (pointer) values We want to add basic support for `dlsym` in Miri (needed to run the latest version of `getrandom`). For that to work, `dlsym` needs to return *something* that can be stored in a function pointer and later called. So we add a new `ExtraFnVal` type to the `Machine` trait, and enable Miri's memory to associate allocation IDs with such values, so that `create_fn_alloc` and `get_fn` can work on *both* `Instance` (this is used for "normal" function pointers) and `ExtraFnVal`. Cc @oli-obk
Diffstat (limited to 'src/test/ui/structs-enums/tuple-struct-construct.rs')
0 files changed, 0 insertions, 0 deletions
