Rollup merge of #139532 - bjoernager:master, r=tgross35

Update `u8`-to-and-from-`i8` suggestions.

`u8::cast_signed` and `i8::cast_unsigned` have been stabilised, but `i8::from_ne_bytes` et al. still suggest using `as i8` or `as u8`.
This commit is contained in:
Matthias Krüger 2025-04-09 20:23:12 +02:00 committed by GitHub
commit a8b0d56f6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,8 +99,8 @@ macro_rules! i8_xe_bytes_doc {
**Note**: This function is meaningless on `i8`. Byte order does not exist as a
concept for byte-sized integers. This function is only provided in symmetry
with larger integer types. You can cast from and to `u8` using `as i8` and `as
u8`.
with larger integer types. You can cast from and to `u8` using
[`cast_signed`](u8::cast_signed) and [`cast_unsigned`](Self::cast_unsigned).
"
};