diff options
| author | David Wood <david.wood@huawei.com> | 2022-08-30 17:00:20 +0100 |
|---|---|---|
| committer | David Wood <david.wood@huawei.com> | 2023-01-30 17:11:34 +0000 |
| commit | f7b42102e68537c6b0bbb3a1e83c9db69820dfb3 (patch) | |
| tree | 4d68aca42bfbb5355e5a37ef9448e414cc549bed /compiler/rustc_incremental/src/errors.rs | |
| parent | 59cc5e5d59796f5817d46b31450923597d9f8ae7 (diff) | |
| download | rust-f7b42102e68537c6b0bbb3a1e83c9db69820dfb3.tar.gz rust-f7b42102e68537c6b0bbb3a1e83c9db69820dfb3.zip | |
errors: implement `IntoDiagnosticArg` for `&T`
Implement `IntoDiagnosticArg` for `&'a T` when `T` implements `IntoDiagnosticArg` and `Clone`. Makes it easier to write diagnostic structs that borrow something which implements `IntoDiagnosticArg`. Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_incremental/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
