diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-02-05 19:09:36 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-05 19:09:36 +0800 |
| commit | 7ad1a3b8d82ae0101e36b571658588a893d49c6c (patch) | |
| tree | ac9c703781b5efea86c1a86090689ede964bdd53 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | ff339fbbf4c535afdff3ceaa968f0fe36be23b59 (diff) | |
| parent | 15adc38ffc4608855c959ec521fe0124e1dffb2c (diff) | |
| download | rust-7ad1a3b8d82ae0101e36b571658588a893d49c6c.tar.gz rust-7ad1a3b8d82ae0101e36b571658588a893d49c6c.zip | |
Rollup merge of #136517 - m4rch3n1ng:inherent-str-constructors, r=jhpratt
implement inherent str constructors implement #131114 this implements - str::from_utf8 - str::from_utf8_mut - str::from_utf8_unchecked - str::from_utf8_unchecked_mut i left `std::str::from_raw_parts` and `std::str::from_raw_parts_mut` out of this as those are unstable and were not mentioned by the tracking issue or the original pull request, but i can add those here as well. i was also unsure of what to do with the `rustc_const_(un)stable` attributes: i removed the `#[rustc_const_stable]` attribute from `str::from_utf8`, `str::from_utf8_unchecked` and `str::from_utf8_unchecked_mut`, and left the`#[rust_const_unstable]` in `str::from_utf8_mut` (btw why is that one not const stable yet with #57349 merged?). is there a way to redirect users to the stable `std::str::from_utf8` instead of only saying "hey this is unstable"? for now i just removed the check for `str::from_utf8` in the test in `tests/ui/suggestions/suggest-std-when-using-type.rs`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
