Skip to content

Commit 3119def

Browse files
committed
---
yaml --- r: 83146 b: refs/heads/auto c: d108a22 h: refs/heads/master v: v3
1 parent 44f1f20 commit 3119def

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
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 6eade9e9143e496167d66298e8bbac5d9dfa3e19
16+
refs/heads/auto: d108a22fd1b38c108e2b9b6cd7276d953524ffa2
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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/auto/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)