diff options
| author | bors <bors@rust-lang.org> | 2022-06-10 01:10:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-06-10 01:10:59 +0000 |
| commit | e9aff9c42cb94974dc80e3c5ae3d2727eaae9682 (patch) | |
| tree | 95e880fce932f656a18ff2d2a4fdbb229f6e79c5 /compiler/rustc_errors/src/json.rs | |
| parent | 420c970cb1edccbf60ff2aeb51ca01e2300b09ef (diff) | |
| parent | 66290109bbd0f2da2f6b2dc9787b29371e788c76 (diff) | |
| download | rust-e9aff9c42cb94974dc80e3c5ae3d2727eaae9682.tar.gz rust-e9aff9c42cb94974dc80e3c5ae3d2727eaae9682.zip | |
Auto merge of #91970 - nrc:provide-any, r=scottmcm
Add the Provider api to core::any This is an implementation of [RFC 3192](https://github.com/rust-lang/rfcs/pull/3192) ~~(which is yet to be merged, thus why this is a draft PR)~~. It adds an API for type-driven requests and provision of data from trait objects. A primary use case is for the `Error` trait, though that is not implemented in this PR. The only major difference to the RFC is that the functionality is added to the `any` module, rather than being in a sibling `provide_any` module (as discussed in the RFC thread). ~~Still todo: improve documentation on items, including adding examples.~~ cc `@yaahc`
Diffstat (limited to 'compiler/rustc_errors/src/json.rs')
0 files changed, 0 insertions, 0 deletions
