Rollup merge of #71206 - RalfJung:dont-try, r=oli-obk

Miri error messages: avoid try terminology

r? @oli-obk
This commit is contained in:
Dylan DPC 2020-04-17 03:05:18 +02:00 committed by GitHub
commit b2e4d4836f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -4,7 +4,7 @@ error: any use of this value will cause an error
LL | const ZST: &[u8] = unsafe { std::mem::transmute(1usize) };
| ----------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^---
| |
| tried to transmute from usize to &[u8], but their sizes differed
| transmuting `usize` to `&[u8]` is not possible, because these types do not have the same size
|
= note: `#[deny(const_err)]` on by default