Skip to content

Commit dc920e6

Browse files
committed
---
yaml --- r: 81630 b: refs/heads/snap-stage3 c: d108a22 h: refs/heads/master v: v3
1 parent 3d74b48 commit dc920e6

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
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 4c6bf4872012c010f84dc7fa2cdfe87522533f89
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 6eade9e9143e496167d66298e8bbac5d9dfa3e19
4+
refs/heads/snap-stage3: d108a22fd1b38c108e2b9b6cd7276d953524ffa2
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/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/snap-stage3/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)