1
Fork 0

Extend unused_must_use to cover block exprs

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2023-06-11 23:44:28 +08:00
parent 314c39d2ea
commit 72b3b58efc
No known key found for this signature in database
GPG key ID: C5FD5D32014FDB47
19 changed files with 289 additions and 65 deletions

View file

@ -308,7 +308,7 @@ mod prim_never {}
///
/// ```no_run
/// // Undefined behaviour
/// unsafe { char::from_u32_unchecked(0x110000) };
/// let _ = unsafe { char::from_u32_unchecked(0x110000) };
/// ```
///
/// USVs are also the exact set of values that may be encoded in UTF-8. Because