Skip to content

Commit e6f9849

Browse files
committed
---
yaml --- r: 145957 b: refs/heads/try2 c: d108a22 h: refs/heads/master i: 145955: 00b8290 v: v3
1 parent 8cdb5d2 commit e6f9849

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
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 6eade9e9143e496167d66298e8bbac5d9dfa3e19
8+
refs/heads/try2: d108a22fd1b38c108e2b9b6cd7276d953524ffa2
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

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