Skip to content

Commit 38f85f3

Browse files
committed
---
yaml --- r: 79432 b: refs/heads/snap-stage3 c: d4ebe83 h: refs/heads/master v: v3
1 parent 765ea19 commit 38f85f3

File tree

4 files changed

+5
-40
lines changed

4 files changed

+5
-40
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: 124eb2119c78651cfaaa7a046a101fa2e20f83ca
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 3c30ecb706dc32257d1ec6bdcb0c88eb924483dd
4+
refs/heads/snap-stage3: d4ebe835b265bdc255773bc5598d7d1fae9591f2
55
refs/heads/try: ac820906c0e53eab79a98ee64f7231f57c3887b4
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/mk/rustllvm.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ define DEF_RUSTLLVM_TARGETS
1919
# llvm, but using it straight out of the build directory)
2020
ifdef CFG_WINDOWSY_$(1)
2121
LLVM_EXTRA_INCDIRS_$(1)= -iquote $(S)src/llvm/include \
22-
-iquote llvm/$(1)/include
22+
-iquote $$(CFG_LLVM_BUILD_DIR_$(1))/include
2323
endif
2424

2525
RUSTLLVM_OBJS_CS_$(1) := $$(addprefix rustllvm/, RustWrapper.cpp PassWrapper.cpp)

branches/snap-stage3/mk/tests.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ tidy:
250250
| grep '^$(S)src/test' -v \
251251
| grep '^$(S)src/libuv' -v \
252252
| grep '^$(S)src/llvm' -v \
253-
| grep '^$(S)src/gyp' -v \
254253
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
255254
$(Q)find $(S)src/etc -name '*.py' \
256255
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py

branches/snap-stage3/src/libextra/time.rs

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -321,33 +321,6 @@ fn do_strptime(s: &str, format: &str) -> Result<Tm, ~str> {
321321
Some((value, pos))
322322
}
323323

324-
fn match_fractional_seconds(ss: &str, pos: uint) -> (i32, uint) {
325-
let len = ss.len();
326-
let mut value = 0_i32;
327-
let mut multiplier = NSEC_PER_SEC / 10;
328-
let mut pos = pos;
329-
330-
loop {
331-
if pos >= len {
332-
break;
333-
}
334-
let range = ss.char_range_at(pos);
335-
336-
match range.ch {
337-
'0' .. '9' => {
338-
pos = range.next;
339-
// This will drop digits after the nanoseconds place
340-
let digit = range.ch as i32 - '0' as i32;
341-
value += digit * multiplier;
342-
multiplier /= 10;
343-
}
344-
_ => break
345-
}
346-
}
347-
348-
(value, pos)
349-
}
350-
351324
fn match_digits_in_range(ss: &str, pos: uint, digits: uint, ws: bool,
352325
min: i32, max: i32) -> Option<(i32, uint)> {
353326
match match_digits(ss, pos, digits, ws) {
@@ -468,11 +441,6 @@ fn do_strptime(s: &str, format: &str) -> Result<Tm, ~str> {
468441
Some(item) => { let (v, pos) = item; tm.tm_mday = v; Ok(pos) }
469442
None => Err(~"Invalid day of the month")
470443
},
471-
'f' => {
472-
let (val, pos) = match_fractional_seconds(s, pos);
473-
tm.tm_nsec = val;
474-
Ok(pos)
475-
}
476444
'F' => {
477445
parse_type(s, pos, 'Y', &mut *tm)
478446
.chain(|pos| parse_char(s, pos, '-'))
@@ -805,7 +773,6 @@ fn do_strftime(format: &str, tm: &Tm) -> ~str {
805773
}
806774
'd' => fmt!("%02d", tm.tm_mday as int),
807775
'e' => fmt!("%2d", tm.tm_mday as int),
808-
'f' => fmt!("%09d", tm.tm_nsec as int),
809776
'F' => {
810777
fmt!("%s-%s-%s",
811778
parse_type('Y', tm),
@@ -1044,12 +1011,12 @@ mod tests {
10441011
Err(_) => ()
10451012
}
10461013
1047-
let format = "%a %b %e %T.%f %Y";
1014+
let format = "%a %b %e %T %Y";
10481015
assert_eq!(strptime("", format), Err(~"Invalid time"));
10491016
assert!(strptime("Fri Feb 13 15:31:30", format)
10501017
== Err(~"Invalid time"));
10511018
1052-
match strptime("Fri Feb 13 15:31:30.01234 2009", format) {
1019+
match strptime("Fri Feb 13 15:31:30 2009", format) {
10531020
Err(e) => fail!(e),
10541021
Ok(ref tm) => {
10551022
assert!(tm.tm_sec == 30_i32);
@@ -1063,7 +1030,7 @@ mod tests {
10631030
assert!(tm.tm_isdst == 0_i32);
10641031
assert!(tm.tm_gmtoff == 0_i32);
10651032
assert!(tm.tm_zone == ~"");
1066-
assert!(tm.tm_nsec == 12340000_i32);
1033+
assert!(tm.tm_nsec == 0_i32);
10671034
}
10681035
}
10691036
@@ -1220,7 +1187,6 @@ mod tests {
12201187
assert_eq!(local.strftime("%D"), ~"02/13/09");
12211188
assert_eq!(local.strftime("%d"), ~"13");
12221189
assert_eq!(local.strftime("%e"), ~"13");
1223-
assert_eq!(local.strftime("%f"), ~"000054321");
12241190
assert_eq!(local.strftime("%F"), ~"2009-02-13");
12251191
// assert!(local.strftime("%G") == "2009");
12261192
// assert!(local.strftime("%g") == "09");

0 commit comments

Comments
 (0)