ThePuzzlemaker requested cfallin for a review on PR #9083.
ThePuzzlemaker requested wasmtime-compiler-reviewers for a review on PR #9083.
ThePuzzlemaker opened PR #9083 from ThePuzzlemaker:entity-packedoption-track-caller
to bytecodealliance:main
:
This PR adds the
#[track_caller]
attribute toPackedOption::unwrap
andPackedOption::expect
. Using this attribute greatly improves the panic message of any.expect
or.unwrap
on aPackedOption
by using the caller's location, not the location ofpacked_option.rs
withincranelift-entity
.
cfallin submitted PR review:
Seems reasonable; neat to learn about this attribute. Thanks!
cfallin merged PR #9083.
Last updated: Nov 22 2024 at 16:03 UTC