]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #82233 - ijackson:try-block-type-test, r=Mark-Simulacrum
authorYuki Okushi <huyuumi.dev@gmail.com>
Sun, 21 Feb 2021 06:26:48 +0000 (15:26 +0900)
committerGitHub <noreply@github.com>
Sun, 21 Feb 2021 06:26:48 +0000 (15:26 +0900)
commit2793859e86ee37f32ccf01b05fc1869753b85c6a
tree53e6f53c4117e464b3f26ed0bd357f43a45203ab
parentb9040c717c1730b6246c197bc438f6be97739228
parent8ae05dfdf6014e8538ef11f989bc493363cc87ab
Rollup merge of #82233 - ijackson:try-block-type-test, r=Mark-Simulacrum

try-back-block-type test: Use TryFromSliceError for From test

Using `i32` is rather fragile because it has many implementations.  Recently in an early draft of another MR (#82228) I did something that introduced a new `i32 as From<something>` impl and this test broke.

TryFromSliceError is nice because it doesn't seem likely to grow new conversions.  We still have one conversion, from Infallible.

My other MR is going to be reworked and won't need this any more but having done it I thought I would submit it rather than just throw it away.  Sorry for the tiny MR.