Skip to content

Commit 48753a9

Browse files
committed
---
yaml --- r: 194255 b: refs/heads/tmp c: 9ec9bc6 h: refs/heads/master i: 194253: 58483a5 194251: 6ff4fbb 194247: 35f87f4 194239: 09a09d7 v: v3
1 parent a535a9b commit 48753a9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: a3b13610c5b93d9ada072471a001a5613df6a960
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37-
refs/heads/tmp: 2625bf9ae4a46000ae3a138f938f8f1dd3c095a8
37+
refs/heads/tmp: 9ec9bc68fb310aac29e984d26cc37952de328f1e
3838
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3939
refs/tags/homu-tmp: 28a0b25f424090255966273994748a9f9901059f
4040
refs/heads/gate: 97c84447b65164731087ea82685580cc81424412

branches/tmp/src/libstd/path.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,9 @@ impl Path {
12431243
}
12441244

12451245
/// Returns a path that, when joined onto `base`, yields `self`.
1246+
///
1247+
/// If `base` is not a prefix of `self` (i.e. `starts_with`
1248+
/// returns false), then `relative_from` returns `None`.
12461249
#[unstable(feature = "path_relative_from", reason = "see #23284")]
12471250
pub fn relative_from<'a, P: ?Sized>(&'a self, base: &'a P) -> Option<&Path> where
12481251
P: AsPath

0 commit comments

Comments
 (0)