about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-27 10:07:49 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-03-27 10:07:49 -0700
commit7d79a4facd6cd26ff06d99ef4bbb2b35003de28e (patch)
tree7de48d79407b29b20376345a1f8c9623449b2ab3 /src/test/codegen/stack-alloc-string-slice.rs
parent55c398d651e6b3e4f469325a35e029059ce36f1e (diff)
parente7525cf6200e5b62a4b1a2f3131f68d946fb331e (diff)
downloadrust-7d79a4facd6cd26ff06d99ef4bbb2b35003de28e.tar.gz
rust-7d79a4facd6cd26ff06d99ef4bbb2b35003de28e.zip
rollup merge of #23753: aturon/revise-convert
This commit revises `path` and `os_str` to use blanket impls for `From`
on reference types. This both cuts down on the number of required impls,
and means that you can pass through e.g. `T: AsRef<OsStr>` to
`PathBuf::from` without an intermediate call to `as_ref`.

It also makes a FIXME note for later generalizing the blanket impls for
`AsRef` and `AsMut` to use `Deref`/`DerefMut`, once it is possible to do
so.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions