You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorairolake opened this issue
May 16, 2025
· 1 comment
· Fixed by #141112
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libsRelevant to the library team, which will review and decide on the PR/issue.
It’s probably better for the links to go in the other direction: the inherent functions are more idiomatic and easier to access, so they shouldn’t distract readers by pointing out the worse alternative. Actually deprecating the free functions is probably too much churn for the foreseeable future but now that the inherent methods are stable they can be recommended in the free functions’ docs.
Rollup merge of #141112 - xizheyin:issue-141079, r=Mark-Simulacrum
std: note that `std::str::from_utf8*` functions are aliases to `<str>::from_utf8*` methods
Closes#141079
r? libs
saethlin
added
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Jun 2, 2025
github-actionsbot
pushed a commit
to model-checking/verify-rust-std
that referenced
this issue
Jun 3, 2025
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libsRelevant to the library team, which will review and decide on the PR/issue.
Location
<str>::from_utf8
<str>::from_utf8_mut
<str>::from_utf8_unchecked
<str>::from_utf8_unchecked_mut
Summary
These methods are aliases to
core::str::from_utf8*
functions.So I think it would be better to mention this as follows:
/// This is an alias to [`core::str::from_utf8`].
This also makes it more clear that the results of
<str>::from_utf8*
methods andcore::str::from_utf8*
functions are the same.The text was updated successfully, but these errors were encountered: