Skip to content

Commit f38c48a

Browse files
committed
---
yaml --- r: 147039 b: refs/heads/try2 c: d902e71 h: refs/heads/master i: 147037: 7103845 147035: 13fb049 147031: a810f66 147023: 467a62b 147007: e295c74 v: v3
1 parent 514763d commit f38c48a

File tree

933 files changed

+17935
-22018
lines changed

Some content is hidden

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

933 files changed

+17935
-22018
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: 617ce856db7e8088b07f6820a331e25f1f5a921a
8+
refs/heads/try2: d902e7148bbc2559453d22e7d00f05cee9a3df95
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,3 @@ config.stamp
8989
src/etc/dl
9090
.settings/
9191
build/
92-
i686-pc-mingw32/

branches/try2/Makefile.in

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,6 @@ ifndef DEBUG_BORROWS
130130
RUSTFLAGS_STAGE2 += -Z no-debug-borrows
131131
endif
132132

133-
# The executables crated during this compilation process have no need to include
134-
# static copies of libstd and libextra. We also generate dynamic versions of all
135-
# libraries, so in the interest of space, prefer dynamic linking throughout the
136-
# compilation process.
137-
RUSTFLAGS_STAGE0 += -Z prefer-dynamic
138-
RUSTFLAGS_STAGE1 += -Z prefer-dynamic
139-
RUSTFLAGS_STAGE2 += -Z prefer-dynamic
140-
RUSTFLAGS_STAGE3 += -Z prefer-dynamic
141-
142133
# platform-specific auto-configuration
143134
include $(CFG_SRC_DIR)mk/platform.mk
144135

@@ -223,7 +214,7 @@ GENERATED :=
223214

224215
define DEF_LIBS
225216

226-
CFG_RUNTIME_$(1) :=$(call CFG_STATIC_LIB_NAME_$(1),rustrt)
217+
CFG_RUNTIME_$(1) :=$(call CFG_LIB_NAME_$(1),rustrt)
227218
CFG_RUSTLLVM_$(1) :=$(call CFG_LIB_NAME_$(1),rustllvm)
228219
CFG_STDLIB_$(1) :=$(call CFG_LIB_NAME_$(1),std)
229220
CFG_EXTRALIB_$(1) :=$(call CFG_LIB_NAME_$(1),extra)
@@ -248,10 +239,6 @@ LIBRUSTPKG_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustpkg)
248239
LIBRUSTDOC_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustdoc)
249240
LIBRUSTUV_DSYM_GLOB_$(1) :=$(call CFG_LIB_DSYM_GLOB_$(1),rustuv)
250241

251-
EXTRALIB_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,extra)
252-
STDLIB_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,std)
253-
LIBRUSTUV_RGLOB_$(1) :=$(call CFG_RLIB_GLOB,rustuv)
254-
255242
endef
256243

257244
# $(1) is the path for directory to match against
@@ -405,25 +392,42 @@ TBIN$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/bin
405392
TLIB$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/$$(CFG_LIBDIR)
406393

407394
# The name of the standard and extra libraries used by rustc
408-
HSTDLIB_DEFAULT$(1)_H_$(3) = \
409-
$$(HLIB$(1)_H_$(3))/$(CFG_STDLIB_$(3))
410-
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
411-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2))
412-
413-
HEXTRALIB_DEFAULT$(1)_H_$(3) = \
414-
$$(HLIB$(1)_H_$(3))/$(CFG_EXTRALIB_$(3))
415-
TEXTRALIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
416-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_EXTRALIB_$(2))
417-
418-
HLIBRUSTC_DEFAULT$(1)_H_$(3) = \
419-
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTC_$(3))
420-
TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3) = \
421-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTC_$(2))
422-
423-
HLIBRUSTUV_DEFAULT$(1)_H_$(3) = \
424-
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTUV_$(3))
425-
TLIBRUSTUV_DEFAULT$(1)_T_$(2)_H_$(3) = \
426-
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTUV_$(2))
395+
ifdef CFG_DISABLE_SHAREDSTD
396+
HSTDLIB_DEFAULT$(1)_H_$(3) = \
397+
$$(HLIB$(1)_H_$(3))/libstd.rlib
398+
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
399+
$$(TLIB$(1)_T_$(2)_H_$(3))/libstd.rlib
400+
401+
HEXTRALIB_DEFAULT$(1)_H_$(3) = \
402+
$$(HLIB$(1)_H_$(3))/libextra.rlib
403+
TEXTRALIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
404+
$$(TLIB$(1)_T_$(2)_H_$(3))/libextra.rlib
405+
406+
HLIBRUSTC_DEFAULT$(1)_H_$(3) = \
407+
$$(HLIB$(1)_H_$(3))/librustc.rlib
408+
TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3) = \
409+
$$(TLIB$(1)_T_$(2)_H_$(3))/librustc.rlib
410+
else
411+
HSTDLIB_DEFAULT$(1)_H_$(3) = \
412+
$$(HLIB$(1)_H_$(3))/$(CFG_STDLIB_$(3))
413+
TSTDLIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
414+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_STDLIB_$(2))
415+
416+
HEXTRALIB_DEFAULT$(1)_H_$(3) = \
417+
$$(HLIB$(1)_H_$(3))/$(CFG_EXTRALIB_$(3))
418+
TEXTRALIB_DEFAULT$(1)_T_$(2)_H_$(3) = \
419+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_EXTRALIB_$(2))
420+
421+
HLIBRUSTC_DEFAULT$(1)_H_$(3) = \
422+
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTC_$(3))
423+
TLIBRUSTC_DEFAULT$(1)_T_$(2)_H_$(3) = \
424+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTC_$(2))
425+
426+
HLIBRUSTUV_DEFAULT$(1)_H_$(3) = \
427+
$$(HLIB$(1)_H_$(3))/$(CFG_LIBRUSTUV_$(3))
428+
TLIBRUSTUV_DEFAULT$(1)_T_$(2)_H_$(3) = \
429+
$$(TLIB$(1)_T_$(2)_H_$(3))/$(CFG_LIBRUSTUV_$(2))
430+
endif
427431

428432
# Preqrequisites for using the stageN compiler
429433
HSREQ$(1)_H_$(3) = \

branches/try2/configure

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ fi
364364
BOOL_OPTIONS=""
365365
VAL_OPTIONS=""
366366

367+
opt sharedstd 1 "build libstd as a shared library"
367368
opt valgrind 0 "run tests with valgrind (memcheck by default)"
368369
opt helgrind 0 "run tests with helgrind instead of memcheck"
369370
opt docs 1 "build documentation"
@@ -397,7 +398,7 @@ valopt sysconfdir "/etc" "install system configuration files"
397398
valopt datadir "${CFG_PREFIX}/share" "install data"
398399
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
399400
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
400-
valopt libdir "${CFG_PREFIX}/lib" "install libraries"
401+
valopt libdir "${CFG_PREFIX}/lib" "install libraries"
401402

402403
# Validate Options
403404
step_msg "validating $CFG_SELF args"
@@ -519,20 +520,14 @@ then
519520
fi
520521
fi
521522

522-
BIN_SUF=
523-
if [ $CFG_OSTYPE = "pc-mingw32" ]
524-
then
525-
BIN_SUF=.exe
526-
fi
527-
528523
if [ ! -z "$CFG_ENABLE_LOCAL_RUST" ]
529524
then
530-
if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} ]
525+
if [ ! -f ${CFG_LOCAL_RUST_ROOT}/bin/rustc ]
531526
then
532527
err "no local rust to use"
533528
else
534-
LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc${BIN_SUF} --version`
535-
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: $LRV"
529+
LRV=`${CFG_LOCAL_RUST_ROOT}/bin/rustc --version`
530+
step_msg "using rustc at: ${CFG_LOCAL_RUST_ROOT} with version: " $LRV
536531
fi
537532
fi
538533

@@ -607,7 +602,7 @@ CFG_PREFIX=${CFG_PREFIX%/}
607602
CFG_MANDIR=${CFG_MANDIR%/}
608603
CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
609604
CFG_TARGET="$(echo $CFG_TARGET | tr ',' ' ')"
610-
CFG_SUPPORTED_TARGET="$(grep ^CC_*=* ${CFG_SRC_DIR}mk/platform.mk | sed -e 's/^CC_//' -e 's/\([^=]*\).*/\1/' | xargs)"
605+
CFG_SUPPORTED_TARGET="$(grep ^CC_*=* $CFG_SRC_DIR/mk/platform.mk | sed -e 's/^CC_//' -e 's/\([^=]*\).*/\1/' | xargs)"
611606

612607
# copy host-triples to target-triples so that hosts are a subset of targets
613608
V_TEMP=""
@@ -877,13 +872,6 @@ do
877872
# Try to have LLVM pull in as few dependencies as possible (#9397)
878873
LLVM_OPTS="$LLVM_OPTS --disable-zlib --disable-libffi"
879874

880-
# pthreads works badly on mingw-w64 systems: #8996
881-
case "$CFG_BUILD" in
882-
(*w64-mingw32)
883-
LLVM_OPTS="$LLVM_OPTS --disable-pthreads"
884-
;;
885-
esac
886-
887875
case "$CFG_C_COMPILER" in
888876
("ccache clang")
889877
LLVM_CXX_32="ccache clang++ -m32 -Qunused-arguments"
@@ -893,11 +881,11 @@ do
893881
LLVM_CC_64="ccache clang -Qunused-arguments"
894882
;;
895883
("clang")
896-
LLVM_CXX_32="clang++ -m32 -Qunused-arguments"
897-
LLVM_CC_32="clang -m32 -Qunused-arguments"
884+
LLVM_CXX_32="clang++ -m32"
885+
LLVM_CC_32="clang -m32"
898886

899-
LLVM_CXX_64="clang++ -Qunused-arguments"
900-
LLVM_CC_64="clang -Qunused-arguments"
887+
LLVM_CXX_64="clang++"
888+
LLVM_CC_64="clang"
901889
;;
902890
("ccache gcc")
903891
LLVM_CXX_32="ccache g++ -m32"

branches/try2/doc/po/ja/rust.md.po

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,10 +1817,10 @@ msgstr ""
18171817
#, no-wrap
18181818
msgid ""
18191819
"~~~~ {.xfail-test}\n"
1820-
"fn iter<T>(seq: &[T], f: |T|) {\n"
1820+
"fn iter<T>(seq: &[T], f: &fn(T)) {\n"
18211821
" for elt in seq.iter() { f(elt); }\n"
18221822
"}\n"
1823-
"fn map<T, U>(seq: &[T], f: |T| -> U) -> ~[U] {\n"
1823+
"fn map<T, U>(seq: &[T], f: &fn(T) -> U) -> ~[U] {\n"
18241824
" let mut acc = ~[];\n"
18251825
" for elt in seq.iter() { acc.push(f(elt)); }\n"
18261826
" acc\n"
@@ -2404,7 +2404,7 @@ msgid ""
24042404
"trait Seq<T> {\n"
24052405
" fn len(&self) -> uint;\n"
24062406
" fn elt_at(&self, n: uint) -> T;\n"
2407-
" fn iter(&self, |T|);\n"
2407+
" fn iter(&self, &fn(T));\n"
24082408
"}\n"
24092409
"~~~~\n"
24102410
msgstr ""
@@ -4243,7 +4243,7 @@ msgid ""
42434243
"[function definitions](#functions) do not. The exact type of capture "
42444244
"depends on the [function type](#function-types) inferred for the lambda "
42454245
"expression. In the simplest and least-expensive form (analogous to a "
4246-
"```|| { }``` expression), the lambda expression captures its environment "
4246+
"```&fn() { }``` expression), the lambda expression captures its environment "
42474247
"by reference, effectively borrowing pointers to all outer variables "
42484248
"mentioned inside the function. Alternately, the compiler may infer that a "
42494249
"lambda expression should copy or move values (depending on their type.) "
@@ -4262,7 +4262,7 @@ msgstr ""
42624262
#, no-wrap
42634263
msgid ""
42644264
"~~~~\n"
4265-
"fn ten_times(f: |int|) {\n"
4265+
"fn ten_times(f: &fn(int)) {\n"
42664266
" let mut i = 0;\n"
42674267
" while i < 10 {\n"
42684268
" f(i);\n"
@@ -4455,7 +4455,7 @@ msgstr ""
44554455

44564456
#. type: Plain text
44574457
#: doc/rust.md:2339
4458-
msgid "~~~~ # fn f(f: |int|) { } # fn g(i: int) { }"
4458+
msgid "~~~~ # fn f(f: &fn(int)) { } # fn g(i: int) { }"
44594459
msgstr ""
44604460

44614461
#. type: Plain text
@@ -4481,7 +4481,7 @@ msgstr ""
44814481

44824482
#. type: Plain text
44834483
#: doc/rust.md:2352
4484-
msgid "~~~~ # fn k(x:int, f: |int|) { } # fn l(i: int) { }"
4484+
msgid "~~~~ # fn k(x:int, f: &fn(int)) { } # fn l(i: int) { }"
44854485
msgstr ""
44864486

44874487
#. type: Plain text
@@ -5383,7 +5383,7 @@ msgstr ""
53835383
#. type: Plain text
53845384
#: doc/rust.md:2849
53855385
msgid ""
5386-
"type Binop<'self> = 'self |int,int| -> int; let bo: Binop = add; x = "
5386+
"type Binop<'self> = &'self fn(int,int) -> int; let bo: Binop = add; x = "
53875387
"bo(5,7); ~~~~~~~~"
53885388
msgstr ""
53895389

@@ -5483,7 +5483,7 @@ msgstr ""
54835483
#, no-wrap
54845484
msgid ""
54855485
"~~~~~~~\n"
5486-
"fn map<A: Clone, B: Clone>(f: |A| -> B, xs: &[A]) -> ~[B] {\n"
5486+
"fn map<A: Clone, B: Clone>(f: &fn(A) -> B, xs: &[A]) -> ~[B] {\n"
54875487
" if xs.len() == 0 {\n"
54885488
" return ~[];\n"
54895489
" }\n"

branches/try2/doc/po/ja/tutorial-tasks.md.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ msgstr ""
213213
#. type: Plain text
214214
#: doc/tutorial-tasks.md:102
215215
msgid ""
216-
"The `spawn` function has a very simple type signature: `fn spawn(f: proc())`. "
216+
"The `spawn` function has a very simple type signature: `fn spawn(f: ~fn())`. "
217217
"Because it accepts only owned closures, and owned closures contain only "
218218
"owned data, `spawn` can safely move the entire closure and all its "
219219
"associated state into an entirely different task for execution. Like any "
@@ -529,7 +529,7 @@ msgid ""
529529
"The basic example below illustrates this.\n"
530530
"~~~\n"
531531
"# fn make_a_sandwich() {};\n"
532-
"fn fib(n: u64) -> u64 {\n"
532+
"fn fib(n: uint) -> uint {\n"
533533
" // lengthy computation returning an uint\n"
534534
" 12586269025\n"
535535
"}\n"

0 commit comments

Comments
 (0)