Skip to content

Commit 7ef17e2

Browse files
committed
---
yaml --- r: 95417 b: refs/heads/dist-snap c: d108a22 h: refs/heads/master i: 95415: c295b81 v: v3
1 parent 5867969 commit 7ef17e2

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 6eade9e9143e496167d66298e8bbac5d9dfa3e19
9+
refs/heads/dist-snap: d108a22fd1b38c108e2b9b6cd7276d953524ffa2
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libstd/path/posix.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -439,12 +439,6 @@ fn normalize_helper<'a>(v: &'a [u8], is_abs: bool) -> Option<~[&'a [u8]]> {
439439
}
440440
}
441441

442-
// FIXME (#8169): Pull this into parent module once visibility works
443-
#[inline(always)]
444-
fn contains_nul(v: &[u8]) -> bool {
445-
v.iter().any(|&x| x == 0)
446-
}
447-
448442
static dot_static: &'static [u8] = bytes!(".");
449443
static dot_dot_static: &'static [u8] = bytes!("..");
450444

branches/dist-snap/src/libstd/path/windows.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use str;
2121
use str::{CharSplitIterator, OwnedStr, Str, StrVector};
2222
use to_bytes::IterBytes;
2323
use vec::Vector;
24-
use super::{BytesContainer, GenericPath, GenericPathUnsafe};
24+
use super::{contains_nul, BytesContainer, GenericPath, GenericPathUnsafe};
2525

2626
#[cfg(target_os = "win32")]
2727
use libc;
@@ -922,9 +922,8 @@ pub enum PathPrefix {
922922
DiskPrefix
923923
}
924924

925-
/// Internal function; only public for tests. Don't use.
926925
// FIXME (#8169): Make private once visibility is fixed
927-
pub fn parse_prefix<'a>(mut path: &'a str) -> Option<PathPrefix> {
926+
fn parse_prefix<'a>(mut path: &'a str) -> Option<PathPrefix> {
928927
if path.starts_with("\\\\") {
929928
// \\
930929
path = path.slice_from(2);
@@ -1032,12 +1031,6 @@ fn normalize_helper<'a>(s: &'a str, prefix: Option<PathPrefix>) -> (bool,Option<
10321031
}
10331032
}
10341033

1035-
// FIXME (#8169): Pull this into parent module once visibility works
1036-
#[inline(always)]
1037-
fn contains_nul(v: &[u8]) -> bool {
1038-
v.iter().any(|&x| x == 0)
1039-
}
1040-
10411034
fn prefix_is_verbatim(p: Option<PathPrefix>) -> bool {
10421035
match p {
10431036
Some(VerbatimPrefix(_)) | Some(VerbatimUNCPrefix(_,_)) | Some(VerbatimDiskPrefix) => true,
@@ -1136,6 +1129,7 @@ impl Path {
11361129
#[cfg(test)]
11371130
mod tests {
11381131
use super::*;
1132+
use super::parse_prefix;
11391133
use option::{Some,None};
11401134
use iter::Iterator;
11411135
use vec::Vector;

0 commit comments

Comments
 (0)