Skip to content

Commit f17a8d0

Browse files
committed
---
yaml --- r: 85719 b: refs/heads/dist-snap c: d6eee6a h: refs/heads/master i: 85717: 53882f3 85715: f89cfb2 85711: d13cdcf v: v3
1 parent 8714563 commit f17a8d0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+1116
-2168
lines changed

[refs]

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

branches/dist-snap/doc/rust.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -851,38 +851,6 @@ In this example, the module `quux` re-exports all of the public names defined in
851851

852852
Also note that the paths contained in `use` items are relative to the crate root.
853853
So, in the previous example, the `use` refers to `quux::foo::*`, and not simply to `foo::*`.
854-
This also means that top-level module declarations should be at the crate root if direct usage
855-
of the declared modules within `use` items is desired. It is also possible to use `self` and `super`
856-
at the beginning of a `use` item to refer to the current and direct parent modules respectively.
857-
All rules regarding accessing declared modules in `use` declarations applies to both module declarations
858-
and `extern mod` declarations.
859-
860-
An example of what will and will not work for `use` items:
861-
~~~~
862-
# #[allow(unused_imports)];
863-
use foo::extra; // good: foo is at the root of the crate
864-
use foo::baz::foobaz; // good: foo is at the root of the crate
865-
866-
mod foo {
867-
extern mod extra;
868-
869-
use foo::extra::list; // good: foo is at crate root
870-
// use extra::*; // bad: extra is not at the crate root
871-
use self::baz::foobaz; // good: self refers to module 'foo'
872-
use foo::bar::foobar; // good: foo is at crate root
873-
874-
pub mod bar {
875-
pub fn foobar() { }
876-
}
877-
878-
pub mod baz {
879-
use super::bar::foobar; // good: super refers to module 'foo'
880-
pub fn foobaz() { }
881-
}
882-
}
883-
884-
fn main() {}
885-
~~~~
886854

887855
### Functions
888856

branches/dist-snap/doc/tutorial-container.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,6 @@ assert_eq!(sum, 57);
160160
161161
## For loops
162162
163-
The function `range` (or `range_inclusive`) allows to simply iterate through a given range:
164-
165-
~~~
166-
for i in range(0, 5) {
167-
printf!("%d ", i) // prints "0 1 2 3 4"
168-
}
169-
170-
for i in std::iterator::range_inclusive(0, 5) { // needs explicit import
171-
printf!("%d ", i) // prints "0 1 2 3 4 5"
172-
}
173-
~~~
174-
175163
The `for` keyword can be used as sugar for iterating through any iterator:
176164
177165
~~~

branches/dist-snap/doc/tutorial-ffi.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,9 @@ prefer using raw pointers (`*`) if that's needed because the compiler can't make
445445
about them.
446446

447447
Vectors and strings share the same basic memory layout, and utilities are available in the `vec` and
448-
`str` modules for working with C APIs. However, strings are not terminated with `\0`. If you need a
449-
NUL-terminated string for interoperability with C, you should use the `c_str::to_c_str` function.
448+
`str` modules for working with C APIs. Strings are terminated with `\0` for interoperability with C,
449+
but it should not be assumed because a slice will not always be nul-terminated. Instead, the
450+
`str::as_c_str` function should be used.
450451

451452
The standard library includes type aliases and function definitions for the C standard library in
452453
the `libc` module, and Rust links against `libc` and `libm` by default.

branches/dist-snap/mk/llvm.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ifeq ($(CFG_LLVM_ROOT),)
2626

2727
$$(LLVM_CONFIG_$(1)): $$(LLVM_DEPS)
2828
@$$(call E, make: llvm)
29-
$$(Q)$$(MAKE) -C $$(CFG_LLVM_BUILD_DIR_$(1))
29+
$$(Q)$$(MAKE) -C $$(CFG_LLVM_BUILD_DIR_$(1)) $$(CFG_LLVM_BUILD_ENV)
3030
$$(Q)touch $$(LLVM_CONFIG_$(1))
3131
endif
3232

branches/dist-snap/mk/platform.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ endef
2626
$(foreach t,$(CFG_TARGET_TRIPLES),$(eval $(call DEF_OSTYPE_VAR,$(t))))
2727
$(foreach t,$(CFG_TARGET_TRIPLES),$(info cfg: os for $(t) is $(OSTYPE_$(t))))
2828

29-
CFG_GCCISH_CFLAGS += -DUSE_UTF8
29+
# FIXME: no-omit-frame-pointer is just so that task_start_wrapper
30+
# has a frame pointer and the stack walker can understand it. Turning off
31+
# frame pointers everywhere is overkill
32+
CFG_GCCISH_CFLAGS += -fno-omit-frame-pointer -DUSE_UTF8
3033

3134
# On Darwin, we need to run dsymutil so the debugging information ends
3235
# up in the right place. On other platforms, it automatically gets
@@ -150,6 +153,7 @@ CFG_GCCISH_POST_LIB_FLAGS_x86_64-unknown-linux-gnu := -Wl,-no-whole-archive
150153
CFG_DEF_SUFFIX_x86_64-unknown-linux-gnu := .linux.def
151154
CFG_INSTALL_NAME_x86_64-unknown-linux-gnu =
152155
CFG_LIBUV_LINK_FLAGS_x86_64-unknown-linux-gnu =
156+
CFG_LLVM_BUILD_ENV_x86_64-unknown-linux-gnu="CXXFLAGS=-fno-omit-frame-pointer"
153157
CFG_EXE_SUFFIX_x86_64-unknown-linux-gnu =
154158
CFG_WINDOWSY_x86_64-unknown-linux-gnu :=
155159
CFG_UNIXY_x86_64-unknown-linux-gnu := 1
@@ -175,6 +179,7 @@ CFG_GCCISH_POST_LIB_FLAGS_i686-unknown-linux-gnu := -Wl,-no-whole-archive
175179
CFG_DEF_SUFFIX_i686-unknown-linux-gnu := .linux.def
176180
CFG_INSTALL_NAME_i686-unknown-linux-gnu =
177181
CFG_LIBUV_LINK_FLAGS_i686-unknown-linux-gnu =
182+
CFG_LLVM_BUILD_ENV_i686-unknown-linux-gnu="CXXFLAGS=-fno-omit-frame-pointer"
178183
CFG_EXE_SUFFIX_i686-unknown-linux-gnu =
179184
CFG_WINDOWSY_i686-unknown-linux-gnu :=
180185
CFG_UNIXY_i686-unknown-linux-gnu := 1

branches/dist-snap/mk/tests.mk

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,8 @@ CFG_ADB_TEST_DIR=/data/tmp
144144

145145
$(info check: android device test dir $(CFG_ADB_TEST_DIR) ready \
146146
$(shell adb remount 1>/dev/null) \
147-
$(shell adb shell rm -r $(CFG_ADB_TEST_DIR) >/dev/null) \
148-
$(shell adb shell mkdir $(CFG_ADB_TEST_DIR)) \
149-
$(shell adb shell mkdir $(CFG_ADB_TEST_DIR)/tmp) \
147+
$(shell adb shell mkdir $(CFG_ADB_TEST_DIR) 1>/dev/null) \
148+
$(shell adb shell rm -rf $(CFG_ADB_TEST_DIR)/* 1>/dev/null) \
150149
$(shell adb push $(S)src/etc/adb_run_wrapper.sh $(CFG_ADB_TEST_DIR) 1>/dev/null) \
151150
$(shell adb push $(CFG_ANDROID_CROSS_PATH)/arm-linux-androideabi/lib/armv7-a/libgnustl_shared.so \
152151
$(CFG_ADB_TEST_DIR) 1>/dev/null) \
@@ -240,8 +239,6 @@ tidy:
240239
@$(call E, check: formatting)
241240
$(Q)find $(S)src -name '*.r[sc]' \
242241
| grep '^$(S)src/test' -v \
243-
| grep '^$(S)src/libuv' -v \
244-
| grep '^$(S)src/llvm' -v \
245242
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
246243
$(Q)find $(S)src/etc -name '*.py' \
247244
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
@@ -412,16 +409,14 @@ $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
412409
$(3)/stage$(1)/test/$(4)test-$(2)$$(X_$(2))
413410
@$$(call E, run: $$< via adb)
414411
@$(CFG_ADB) push $$< $(CFG_ADB_TEST_DIR)
415-
@$(CFG_ADB) shell '(cd $(CFG_ADB_TEST_DIR); LD_LIBRARY_PATH=. \
416-
./$$(notdir $$<) \
417-
--logfile $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log \
418-
$$(call CRATE_TEST_BENCH_ARGS,$(1),$(2),$(3),$(4)))' \
419-
> tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp
412+
@$(CFG_ADB) shell LD_LIBRARY_PATH=$(CFG_ADB_TEST_DIR) \
413+
$(CFG_ADB_TEST_DIR)/`echo $$< | sed 's/.*\///'` \
414+
--logfile $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log > \
415+
tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp
420416
@cat tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp
421417
@touch tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
422418
@$(CFG_ADB) pull $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log tmp/
423419
@$(CFG_ADB) shell rm $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
424-
@$(CFG_ADB) pull $(CFG_ADB_TEST_DIR)/$$(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) tmp/
425420
@if grep -q "result: ok" tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp; \
426421
then \
427422
rm tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp; \

branches/dist-snap/src/libextra/arc.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ mod tests {
612612
}
613613
}
614614
615-
#[test] #[should_fail]
615+
#[test] #[should_fail] #[ignore(cfg(windows))]
616616
fn test_arc_condvar_poison() {
617617
unsafe {
618618
let arc = ~MutexArc::new(1);
@@ -636,7 +636,7 @@ mod tests {
636636
}
637637
}
638638
}
639-
#[test] #[should_fail]
639+
#[test] #[should_fail] #[ignore(cfg(windows))]
640640
fn test_mutex_arc_poison() {
641641
unsafe {
642642
let arc = ~MutexArc::new(1);
@@ -651,7 +651,7 @@ mod tests {
651651
}
652652
}
653653
}
654-
#[test] #[should_fail]
654+
#[test] #[should_fail] #[ignore(cfg(windows))]
655655
pub fn test_mutex_arc_unwrap_poison() {
656656
let arc = MutexArc::new(1);
657657
let arc2 = ~(&arc).clone();
@@ -668,7 +668,7 @@ mod tests {
668668
let one = arc.unwrap();
669669
assert!(one == 1);
670670
}
671-
#[test] #[should_fail]
671+
#[test] #[should_fail] #[ignore(cfg(windows))]
672672
fn test_rw_arc_poison_wr() {
673673
let arc = ~RWArc::new(1);
674674
let arc2 = (*arc).clone();
@@ -681,7 +681,7 @@ mod tests {
681681
assert_eq!(*one, 1);
682682
}
683683
}
684-
#[test] #[should_fail]
684+
#[test] #[should_fail] #[ignore(cfg(windows))]
685685
fn test_rw_arc_poison_ww() {
686686
let arc = ~RWArc::new(1);
687687
let arc2 = (*arc).clone();
@@ -694,7 +694,7 @@ mod tests {
694694
assert_eq!(*one, 1);
695695
}
696696
}
697-
#[test] #[should_fail]
697+
#[test] #[should_fail] #[ignore(cfg(windows))]
698698
fn test_rw_arc_poison_dw() {
699699
let arc = ~RWArc::new(1);
700700
let arc2 = (*arc).clone();
@@ -709,7 +709,7 @@ mod tests {
709709
assert_eq!(*one, 1);
710710
}
711711
}
712-
#[test]
712+
#[test] #[ignore(cfg(windows))]
713713
fn test_rw_arc_no_poison_rr() {
714714
let arc = ~RWArc::new(1);
715715
let arc2 = (*arc).clone();
@@ -722,7 +722,7 @@ mod tests {
722722
assert_eq!(*one, 1);
723723
}
724724
}
725-
#[test]
725+
#[test] #[ignore(cfg(windows))]
726726
fn test_rw_arc_no_poison_rw() {
727727
let arc = ~RWArc::new(1);
728728
let arc2 = (*arc).clone();
@@ -735,7 +735,7 @@ mod tests {
735735
assert_eq!(*one, 1);
736736
}
737737
}
738-
#[test]
738+
#[test] #[ignore(cfg(windows))]
739739
fn test_rw_arc_no_poison_dr() {
740740
let arc = ~RWArc::new(1);
741741
let arc2 = (*arc).clone();

branches/dist-snap/src/libextra/arena.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ fn test_arena_destructors() {
291291

292292
#[test]
293293
#[should_fail]
294+
#[ignore(cfg(windows))]
294295
fn test_arena_destructors_fail() {
295296
let arena = Arena::new();
296297
// Put some stuff in the arena.

branches/dist-snap/src/libextra/c_vec.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ mod tests {
185185

186186
#[test]
187187
#[should_fail]
188+
#[ignore(cfg(windows))]
188189
fn test_overrun_get() {
189190
let cv = malloc(16u as size_t);
190191

@@ -193,6 +194,7 @@ mod tests {
193194

194195
#[test]
195196
#[should_fail]
197+
#[ignore(cfg(windows))]
196198
fn test_overrun_set() {
197199
let cv = malloc(16u as size_t);
198200

branches/dist-snap/src/libextra/flatpipes.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,10 +967,12 @@ mod test {
967967
}
968968

969969
#[test]
970+
#[ignore(cfg(windows))]
970971
fn test_try_recv_none4_reader() {
971972
test_try_recv_none4(reader_port_loader);
972973
}
973974
#[test]
975+
#[ignore(cfg(windows))]
974976
fn test_try_recv_none4_pipe() {
975977
test_try_recv_none4(pipe_port_loader);
976978
}

branches/dist-snap/src/libextra/future.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ mod test {
212212
213213
#[test]
214214
#[should_fail]
215+
#[ignore(cfg(target_os = "win32"))]
215216
fn test_futurefail() {
216217
let mut f = spawn(|| fail!());
217218
let _x: ~str = f.get();

branches/dist-snap/src/libextra/priority_queue.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ mod tests {
338338

339339
#[test]
340340
#[should_fail]
341+
#[ignore(cfg(windows))]
341342
fn test_empty_pop() { let mut heap = PriorityQueue::new::<int>(); heap.pop(); }
342343

343344
#[test]
@@ -348,6 +349,7 @@ mod tests {
348349

349350
#[test]
350351
#[should_fail]
352+
#[ignore(cfg(windows))]
351353
fn test_empty_top() { let empty = PriorityQueue::new::<int>(); empty.top(); }
352354

353355
#[test]
@@ -358,6 +360,7 @@ mod tests {
358360

359361
#[test]
360362
#[should_fail]
363+
#[ignore(cfg(windows))]
361364
fn test_empty_replace() { let mut heap = PriorityQueue::new(); heap.replace(5); }
362365

363366
#[test]

branches/dist-snap/src/libextra/sync.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ mod tests {
921921
assert!(!cond.signal());
922922
}
923923
}
924-
#[test]
924+
#[test] #[ignore(cfg(windows))]
925925
fn test_mutex_killed_simple() {
926926
// Mutex must get automatically unlocked if failed/killed within.
927927
let m = ~Mutex::new();
@@ -937,7 +937,7 @@ mod tests {
937937
do m.lock { }
938938
}
939939
#[ignore(reason = "linked failure")]
940-
#[test]
940+
#[test] #[ignore(cfg(windows))]
941941
fn test_mutex_killed_cond() {
942942
// Getting killed during cond wait must not corrupt the mutex while
943943
// unwinding (e.g. double unlock).
@@ -964,7 +964,7 @@ mod tests {
964964
}
965965
}
966966
#[ignore(reason = "linked failure")]
967-
#[test]
967+
#[test] #[ignore(cfg(windows))]
968968
fn test_mutex_killed_broadcast() {
969969
use std::unstable::finally::Finally;
970970

@@ -1024,7 +1024,7 @@ mod tests {
10241024
cond.wait();
10251025
}
10261026
}
1027-
#[test]
1027+
#[test] #[ignore(cfg(windows))]
10281028
fn test_mutex_different_conds() {
10291029
let result = do task::try {
10301030
let m = ~Mutex::new_with_condvars(2);
@@ -1045,7 +1045,7 @@ mod tests {
10451045
};
10461046
assert!(result.is_err());
10471047
}
1048-
#[test]
1048+
#[test] #[ignore(cfg(windows))]
10491049
fn test_mutex_no_condvars() {
10501050
let result = do task::try {
10511051
let m = ~Mutex::new_with_condvars(0);
@@ -1275,7 +1275,7 @@ mod tests {
12751275
test_rwlock_cond_broadcast_helper(12, false, true);
12761276
test_rwlock_cond_broadcast_helper(12, false, false);
12771277
}
1278-
#[cfg(test)]
1278+
#[cfg(test)] #[ignore(cfg(windows))]
12791279
fn rwlock_kill_helper(mode1: RWLockMode, mode2: RWLockMode) {
12801280
// Mutex must get automatically unlocked if failed/killed within.
12811281
let x = ~RWLock::new();
@@ -1290,23 +1290,23 @@ mod tests {
12901290
// child task must have finished by the time try returns
12911291
do lock_rwlock_in_mode(x, mode2) { }
12921292
}
1293-
#[test]
1293+
#[test] #[ignore(cfg(windows))]
12941294
fn test_rwlock_reader_killed_writer() {
12951295
rwlock_kill_helper(Read, Write);
12961296
}
1297-
#[test]
1297+
#[test] #[ignore(cfg(windows))]
12981298
fn test_rwlock_writer_killed_reader() {
12991299
rwlock_kill_helper(Write,Read );
13001300
}
1301-
#[test]
1301+
#[test] #[ignore(cfg(windows))]
13021302
fn test_rwlock_reader_killed_reader() {
13031303
rwlock_kill_helper(Read, Read );
13041304
}
1305-
#[test]
1305+
#[test] #[ignore(cfg(windows))]
13061306
fn test_rwlock_writer_killed_writer() {
13071307
rwlock_kill_helper(Write,Write);
13081308
}
1309-
#[test]
1309+
#[test] #[ignore(cfg(windows))]
13101310
fn test_rwlock_kill_downgrader() {
13111311
rwlock_kill_helper(Downgrade, Read);
13121312
rwlock_kill_helper(Read, Downgrade);
@@ -1321,7 +1321,7 @@ mod tests {
13211321
rwlock_kill_helper(Downgrade, DowngradeRead);
13221322
rwlock_kill_helper(Downgrade, DowngradeRead);
13231323
}
1324-
#[test] #[should_fail]
1324+
#[test] #[should_fail] #[ignore(cfg(windows))]
13251325
fn test_rwlock_downgrade_cant_swap() {
13261326
// Tests that you can't downgrade with a different rwlock's token.
13271327
let x = ~RWLock::new();

0 commit comments

Comments
 (0)