As suggested by @oli-obk here https://github.com/rust-lang/rust/pull/129472#discussion_r1741246234, just to keep track that there is perhaps a better way to solve this than to ad-hoc check for errors.
As suggested by @oli-obk here #129472 (comment), just to keep track that there is perhaps a better way to solve this than to ad-hoc check for errors.