]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #23753: aturon/revise-convert
authorAlex Crichton <alex@alexcrichton.com>
Fri, 27 Mar 2015 17:07:49 +0000 (10:07 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 27 Mar 2015 17:07:49 +0000 (10:07 -0700)
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.


Trivial merge