diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-08-20 08:34:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-20 08:34:03 +0200 |
| commit | 33771dfaf0cfc22e2e0c377c95cdbadf00440ca2 (patch) | |
| tree | fc2bf91b338bbfcbc467e1b46008ee8be9978b3d /compiler/rustc_mir_transform/src/coverage/query.rs | |
| parent | 484cb4e78d5c7ec259b7d7540fbb18850ae7a6ba (diff) | |
| parent | 406b0e2935549a0c63a09d47776aeb92a06f6ddf (diff) | |
| download | rust-33771dfaf0cfc22e2e0c377c95cdbadf00440ca2.tar.gz rust-33771dfaf0cfc22e2e0c377c95cdbadf00440ca2.zip | |
Rollup merge of #114834 - compiler-errors:try_coerce-side-effects, r=lcnr
Avoid side-effects from `try_coerce` when suggesting borrowing LHS of cast The name `try_coerce` is a bit misleading -- it has side-effects, so when it's used in diagnostics code, it sometimes causes spurious obligations to be registered which cause other errors to occur that really make no sense in context. Addendum: let's just rename `try_coerce` to `coerce` -- the `try_` part doesn't really add much, imo.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions
