about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-06-14 18:10:27 +0200
committerGitHub <noreply@github.com>2023-06-14 18:10:27 +0200
commit4efdb5c0015561bdaa6c00a79090a2080ef2c964 (patch)
tree8002841bf08d692f21735bfdfb0dac357e0d5da3 /tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent7b0eac438ace0ba305b4633328b00474fbbf5120 (diff)
parente3a1a11ed2a1b081b229f1d873114aaf7f5f5137 (diff)
downloadrust-4efdb5c0015561bdaa6c00a79090a2080ef2c964.tar.gz
rust-4efdb5c0015561bdaa6c00a79090a2080ef2c964.zip
Rollup merge of #98202 - aticu:impl_tryfrom_osstr_for_str, r=Amanieu
Implement `TryFrom<&OsStr>` for `&str`

Recently when trying to work with `&OsStr` I was surprised to find this `impl` missing.

Since the `to_str` method already existed the actual implementation is fairly non-controversial, except for maybe the choice of the error type. I chose an opaque error here instead of something like `std::str::Utf8Error`, since that would already make a number of assumption about the underlying implementation of `OsStr`.

As this is a trait implementation, it is insta-stable, if I'm not mistaken?
Either way this will need an FCP.
I chose "1.64.0" as the version, since this is unlikely to land before the beta cut-off.

`@rustbot` modify labels: +T-libs-api

API Change Proposal: rust-lang/rust#99031 (accepted)
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions