diff options
| author | bors <bors@rust-lang.org> | 2024-04-02 13:40:00 +0000 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2024-04-25 16:29:21 +0200 |
| commit | 14f429eea49929f2846c028f3bca3c917d76f2c0 (patch) | |
| tree | 2acb00e1240b3b971c7eafe11e1b44955f452a9b /tests/incremental/thinlto | |
| parent | ec036c7bca6ec194bfa49f00d045428461f7108b (diff) | |
Auto merge of #12617 - y21:issue-12616, r=Alexendoo
avoid an ICE in `ptr_as_ptr` when getting the def_id of a local Fixes #12616 `Res::def_id` can panic, so avoid calling it in favor of `opt_def_id`, so we can gracefully handle resolutions that don't have a `DefId` (e.g. local variables) and get a false negative in the worst case, rather than an ICE changelog: Fix ICE in [`ptr_as_ptr`] when the cast expression is a function call to a local variable
Diffstat (limited to 'tests/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
