Skip to content

Commit 17b25ad

Browse files
committed
---
yaml --- r: 275146 b: refs/heads/stable c: 27be433 h: refs/heads/master
1 parent eea000f commit 17b25ad

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32-
refs/heads/stable: 9fb4fcac8261a4ee328c6cfb06509916d5fa4108
32+
refs/heads/stable: 27be4336d9dc0a829ca3c19e8b08a404b11b359d
3333
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
3434
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
3535
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e

branches/stable/src/libstd/path.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,6 +2002,13 @@ impl AsRef<Path> for OsStr {
20022002
}
20032003
}
20042004

2005+
#[stable(feature = "cow_os_str_as_ref_path", since = "1.8.0")]
2006+
impl<'a> AsRef<Path> for Cow<'a, OsStr> {
2007+
fn as_ref(&self) -> &Path {
2008+
Path::new(self)
2009+
}
2010+
}
2011+
20052012
#[stable(feature = "rust1", since = "1.0.0")]
20062013
impl AsRef<Path> for OsString {
20072014
fn as_ref(&self) -> &Path {

0 commit comments

Comments
 (0)