Skip to content

Commit 4d5cd65

Browse files
committed
---
yaml --- r: 93599 b: refs/heads/try c: 759c016 h: refs/heads/master i: 93597: 20423fe 93595: 5a53493 93591: 4656301 93583: 9cc34d9 93567: fa98e18 v: v3
1 parent e3487a5 commit 4d5cd65

File tree

415 files changed

+14487
-16283
lines changed

Some content is hidden

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

415 files changed

+14487
-16283
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
5-
refs/heads/try: fe48d8fcd143e5810fd7550496d4ff561a240466
5+
refs/heads/try: 759c0168a176e936a887b8f3589288da3ef8a8b7
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*.cps
3131
*.log
3232
*.pdf
33+
*.epub
3334
*.html
3435
*.pg
3536
*.toc

branches/try/Makefile.in

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ ifdef TRACE
125125
CFG_RUSTC_FLAGS += -Z trace
126126
endif
127127
ifndef DEBUG_BORROWS
128-
RUSTFLAGS_STAGE0 += -Z no-debug-borrows
129128
RUSTFLAGS_STAGE1 += -Z no-debug-borrows
130129
RUSTFLAGS_STAGE2 += -Z no-debug-borrows
131130
endif
@@ -250,12 +249,12 @@ endef
250249
# by $(2) with a space character prefix, which invalidates the
251250
# construction $(1)$(2).
252251
define CHECK_FOR_OLD_GLOB_MATCHES_EXCEPT
253-
$(Q)MATCHES="$(filter-out %$(3),$(wildcard $(1)/$(2)))"; if [ -n "$$MATCHES" ] ; then echo "warning: there are previous" \'$(2)\' "libraries:" $$MATCHES; fi
252+
$(Q)MATCHES="$(filter-out %$(3),$(wildcard $(1)/$(2)))"; if [ -n "$$MATCHES" ] ; then echo "Warning: there are previous" \'$(2)\' "libraries:" $$MATCHES; fi
254253
endef
255254

256255
# Same interface as above, but deletes rather than just listing the files.
257256
define REMOVE_ALL_OLD_GLOB_MATCHES_EXCEPT
258-
$(Q)MATCHES="$(filter-out %$(3),$(wildcard $(1)/$(2)))"; if [ -n "$$MATCHES" ] ; then echo "warning: removing previous" \'$(2)\' "libraries:" $$MATCHES; rm $$MATCHES ; fi
257+
$(Q)MATCHES="$(filter-out %$(3),$(wildcard $(1)/$(2)))"; if [ -n "$$MATCHES" ] ; then echo "Warning: removing previous" \'$(2)\' "libraries:" $$MATCHES; rm $$MATCHES ; fi
259258
endef
260259

261260
# We use a different strategy for LIST_ALL_OLD_GLOB_MATCHES_EXCEPT
@@ -266,7 +265,7 @@ endef
266265
# be run at the outset of a command list in a rule.)
267266
ifdef VERBOSE
268267
define LIST_ALL_OLD_GLOB_MATCHES_EXCEPT
269-
@echo "info: now are following matches for" '$(2)' "libraries:"
268+
@echo "Info: now are following matches for" '$(2)' "libraries:"
270269
@( cd $(1) && ( ls $(2) 2>/dev/null || true ) | grep -v $(3) || true )
271270
endef
272271
else
@@ -281,35 +280,35 @@ $(foreach target,$(CFG_TARGET),\
281280
# Standard library variables
282281
######################################################################
283282

284-
STDLIB_CRATE := $(S)src/libstd/lib.rs
283+
STDLIB_CRATE := $(S)src/libstd/std.rs
285284
STDLIB_INPUTS := $(wildcard $(addprefix $(S)src/libstd/, \
286285
*.rs */*.rs */*/*rs */*/*/*rs))
287286

288287
######################################################################
289288
# Extra library variables
290289
######################################################################
291290

292-
EXTRALIB_CRATE := $(S)src/libextra/lib.rs
291+
EXTRALIB_CRATE := $(S)src/libextra/extra.rs
293292
EXTRALIB_INPUTS := $(wildcard $(addprefix $(S)src/libextra/, \
294293
*.rs */*.rs))
295294

296295
######################################################################
297296
# Rust UV library variables
298297
######################################################################
299298

300-
LIBRUSTUV_CRATE := $(S)src/librustuv/lib.rs
299+
LIBRUSTUV_CRATE := $(S)src/librustuv/rustuv.rs
301300
LIBRUSTUV_INPUTS := $(wildcard $(addprefix $(S)src/librustuv/, \
302301
*.rs */*.rs))
303302

304303
######################################################################
305304
# rustc crate variables
306305
######################################################################
307306

308-
COMPILER_CRATE := $(S)src/librustc/lib.rs
307+
COMPILER_CRATE := $(S)src/librustc/rustc.rs
309308
COMPILER_INPUTS := $(wildcard $(addprefix $(S)src/librustc/, \
310309
*.rs */*.rs */*/*.rs */*/*/*.rs))
311310

312-
LIBSYNTAX_CRATE := $(S)src/libsyntax/lib.rs
311+
LIBSYNTAX_CRATE := $(S)src/libsyntax/syntax.rs
313312
LIBSYNTAX_INPUTS := $(wildcard $(addprefix $(S)src/libsyntax/, \
314313
*.rs */*.rs */*/*.rs */*/*/*.rs))
315314

@@ -626,10 +625,10 @@ config.stamp: $(S)configure $(S)Makefile.in $(S)src/snapshots.txt
626625
# new definitions), make sure definitions always precede their uses,
627626
# especially for the dependency lists of recipes.
628627

629-
include $(CFG_SRC_DIR)mk/rt.mk
630628
include $(CFG_SRC_DIR)mk/target.mk
631629
include $(CFG_SRC_DIR)mk/host.mk
632630
include $(CFG_SRC_DIR)mk/stage0.mk
631+
include $(CFG_SRC_DIR)mk/rt.mk
633632
include $(CFG_SRC_DIR)mk/rustllvm.mk
634633
include $(CFG_SRC_DIR)mk/tools.mk
635634
include $(CFG_SRC_DIR)mk/docs.mk
@@ -678,6 +677,12 @@ ifneq ($(findstring clean,$(MAKECMDGOALS)),)
678677
endif
679678

680679
ifneq ($(findstring install,$(MAKECMDGOALS)),)
680+
ifdef DESTDIR
681+
CFG_INFO := $(info cfg: setting CFG_PREFIX via DESTDIR, $(DESTDIR)/$(CFG_PREFIX))
682+
CFG_PREFIX:=$(DESTDIR)/$(CFG_PREFIX)
683+
export CFG_PREFIX
684+
endif
685+
681686
CFG_INFO := $(info cfg: including install rules)
682687
include $(CFG_SRC_DIR)mk/install.mk
683688
endif

branches/try/configure

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,11 @@ valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
400400
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
401401
valopt libdir "${CFG_PREFIX}/lib" "install libraries"
402402

403+
#Deprecated opts to keep compatibility
404+
valopt build-triple "${CFG_BUILD}" "LLVM build triple"
405+
valopt host-triples "${CFG_HOST}" "LLVM host triples"
406+
valopt target-triples "${CFG_TARGET}" "LLVM target triples"
407+
403408
# Validate Options
404409
step_msg "validating $CFG_SELF args"
405410
validate_opt
@@ -463,14 +468,12 @@ then
463468
# extract the first 2 version fields, ignore everything else
464469
sed 's/pandoc \([0-9]*\)\.\([0-9]*\).*/\1 \2/')
465470

466-
MIN_PV_MAJOR="1"
467-
MIN_PV_MINOR="9"
468471
# these patterns are shell globs, *not* regexps
469472
PV_MAJOR=${PV_MAJOR_MINOR% *}
470473
PV_MINOR=${PV_MAJOR_MINOR#* }
471-
if [ "$PV_MAJOR" -lt "$MIN_PV_MAJOR" ] || [ "$PV_MINOR" -lt "$MIN_PV_MINOR" ]
474+
if [ "$PV_MAJOR" -lt "1" ] || [ "$PV_MINOR" -lt "8" ]
472475
then
473-
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. Need at least $MIN_PV_MAJOR.$MIN_PV_MINOR. Disabling"
476+
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"
474477
BAD_PANDOC=1
475478
fi
476479
fi
@@ -598,6 +601,7 @@ then
598601
fi
599602

600603
# a little post-processing of various config values
604+
601605
CFG_PREFIX=${CFG_PREFIX%/}
602606
CFG_MANDIR=${CFG_MANDIR%/}
603607
CFG_HOST="$(echo $CFG_HOST | tr ',' ' ')"
@@ -612,6 +616,26 @@ do
612616
done
613617
CFG_TARGET=$V_TEMP
614618

619+
# copy host-triples to target-triples so that hosts are a subset of targets
620+
# XXX: remove deprecated variables here
621+
V_TEMP=""
622+
for i in $CFG_HOST_TRIPLES $CFG_TARGET_TRIPLES;
623+
do
624+
echo "$V_TEMP" | grep -qF $i || V_TEMP="$V_TEMP${V_TEMP:+ }$i"
625+
done
626+
CFG_TARGET_TRIPLES=$V_TEMP
627+
628+
# XXX: Support for deprecated syntax, should be dropped.
629+
if [ ! -z "$CFG_BUILD_TRIPLE" ]; then
630+
CFG_BUILD=${CFG_BUILD_TRIPLE}
631+
fi
632+
if [ ! -z "$CFG_HOST_TRIPLES" ]; then
633+
CFG_HOST=${CFG_HOST_TRIPLES}
634+
fi
635+
if [ ! -z "$CFG_TARGET_TRIPLES" ]; then
636+
CFG_TARGET=${CFG_TARGET_TRIPLES}
637+
fi
638+
615639
# check target-specific tool-chains
616640
for i in $CFG_TARGET
617641
do
@@ -646,13 +670,6 @@ do
646670
fi
647671
;;
648672

649-
arm-apple-darwin)
650-
if [ $CFG_OSTYPE != apple-darwin ]
651-
then
652-
err "The iOS target is only supported on Mac OS X"
653-
fi
654-
;;
655-
656673
*)
657674
;;
658675
esac

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -678,13 +678,6 @@ msgid ""
678678
"and continues as any mixture hex digits and underscores."
679679
msgstr ""
680680

681-
#. type: Bullet: ' * '
682-
#: doc/rust.md:326
683-
msgid ""
684-
"An _octal literal_ starts with the character sequence `U+0030` `U+006F` (`0o`) "
685-
"and continues as any mixture octal digits and underscores."
686-
msgstr ""
687-
688681
#. type: Bullet: ' * '
689682
#: doc/rust.md:326
690683
msgid ""
@@ -747,7 +740,6 @@ msgid ""
747740
"123u; // type uint\n"
748741
"123_u; // type uint\n"
749742
"0xff_u8; // type u8\n"
750-
"0o70_i16; // type i16\n"
751743
"0b1111_1111_1001_0000_i32; // type i32\n"
752744
"~~~~\n"
753745
msgstr ""

branches/try/doc/po/ja/tutorial.md.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ msgstr "## プリミティブ型とリテラル"
849849
msgid ""
850850
"There are general signed and unsigned integer types, `int` and `uint`, as "
851851
"well as 8-, 16-, 32-, and 64-bit variants, `i8`, `u16`, etc. Integers can "
852-
"be written in decimal (`144`), hexadecimal (`0x90`), octal (`0o70`), or binary "
852+
"be written in decimal (`144`), hexadecimal (`0x90`), or binary "
853853
"(`0b10010000`) base. Each integral type has a corresponding literal suffix "
854854
"that can be used to indicate the type of a literal: `i` for `int`, `u` for "
855855
"`uint`, `i8` for the `i8` type."

branches/try/doc/po/rust.md.pot

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ msgstr ""
661661

662662
#. type: Plain text
663663
#: doc/rust.md:319
664-
msgid "An _integer literal_ has one of four forms:"
664+
msgid "An _integer literal_ has one of three forms:"
665665
msgstr ""
666666

667667
#. type: Bullet: ' * '
@@ -678,13 +678,6 @@ msgid ""
678678
"and continues as any mixture hex digits and underscores."
679679
msgstr ""
680680

681-
#. type: Bullet: ' * '
682-
#: doc/rust.md:326
683-
msgid ""
684-
"An _octal literal_ starts with the character sequence `U+0030` `U+006F` (`0o`) "
685-
"and continues as any mixture octal digits and underscores."
686-
msgstr ""
687-
688681
#. type: Bullet: ' * '
689682
#: doc/rust.md:326
690683
msgid ""
@@ -747,7 +740,6 @@ msgid ""
747740
"123u; // type uint\n"
748741
"123_u; // type uint\n"
749742
"0xff_u8; // type u8\n"
750-
"0o70_i16; // type i16\n"
751743
"0b1111_1111_1001_0000_i32; // type i32\n"
752744
"~~~~\n"
753745
msgstr ""

branches/try/doc/po/tutorial.md.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ msgstr ""
646646
msgid ""
647647
"There are general signed and unsigned integer types, `int` and `uint`, as "
648648
"well as 8-, 16-, 32-, and 64-bit variants, `i8`, `u16`, etc. Integers can "
649-
"be written in decimal (`144`), hexadecimal (`0x90`), octal (`0o70`), or binary "
649+
"be written in decimal (`144`), hexadecimal (`0x90`), or binary "
650650
"(`0b10010000`) base. Each integral type has a corresponding literal suffix "
651651
"that can be used to indicate the type of a literal: `i` for `int`, `u` for "
652652
"`uint`, `i8` for the `i8` type."

branches/try/doc/rust.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -340,14 +340,12 @@ as they are differentiated by suffixes.
340340

341341
##### Integer literals
342342

343-
An _integer literal_ has one of four forms:
343+
An _integer literal_ has one of three forms:
344344

345345
* A _decimal literal_ starts with a *decimal digit* and continues with any
346346
mixture of *decimal digits* and _underscores_.
347347
* A _hex literal_ starts with the character sequence `U+0030` `U+0078`
348348
(`0x`) and continues as any mixture hex digits and underscores.
349-
* An _octal literal_ starts with the character sequence `U+0030` `U+006F`
350-
(`0o`) and continues as any mixture octal digits and underscores.
351349
* A _binary literal_ starts with the character sequence `U+0030` `U+0062`
352350
(`0b`) and continues as any mixture binary digits and underscores.
353351

@@ -378,7 +376,6 @@ Examples of integer literals of various forms:
378376
123u; // type uint
379377
123_u; // type uint
380378
0xff_u8; // type u8
381-
0o70_i16; // type i16
382379
0b1111_1111_1001_0000_i32; // type i32
383380
~~~~
384381

@@ -2066,7 +2063,7 @@ The currently implemented features of the compiler are:
20662063

20672064
* `once_fns` - Onceness guarantees a closure is only executed once. Defining a
20682065
closure as `once` is unlikely to be supported going forward. So
2069-
they are hidden behind this feature until they are to be removed.
2066+
they are hidden behind this feature until they are to be removed.
20702067

20712068
If a feature is promoted to a language feature, then all existing programs will
20722069
start to receive compilation warnings about #[feature] directives which enabled
@@ -2751,10 +2748,11 @@ do k(3) |j| {
27512748

27522749
~~~~ {.ebnf .gram}
27532750
for_expr : "for" pat "in" expr '{' block '}' ;
2754-
~~~~
2751+
~~~~
27552752

2756-
A `for` expression is a syntactic construct for looping over elements
2757-
provided by an implementation of `std::iter::Iterator`.
2753+
A `for` expression is a syntactic construct for looping
2754+
over elements provided by an implementation of
2755+
`std::iterator::Iterator`.
27582756

27592757
An example of a for loop over the contents of a vector:
27602758

branches/try/doc/tutorial-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ heapsort.
6969
## Iteration protocol
7070

7171
The iteration protocol is defined by the `Iterator` trait in the
72-
`std::iter` module. The minimal implementation of the trait is a `next`
72+
`std::iterator` module. The minimal implementation of the trait is a `next`
7373
method, yielding the next element from an iterator object:
7474

7575
~~~

branches/try/doc/tutorial-ffi.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -418,32 +418,15 @@ calling foreign functions. Some foreign functions, most notably the Windows API,
418418
conventions. Rust provides a way to tell the compiler which convention to use:
419419

420420
~~~~
421-
#[cfg(target_os = "win32", target_arch = "x86")]
421+
#[cfg(target_os = "win32")]
422422
#[link_name = "kernel32"]
423423
extern "stdcall" {
424424
fn SetEnvironmentVariableA(n: *u8, v: *u8) -> int;
425425
}
426426
~~~~
427427

428-
This applies to the entire `extern` block. The list of supported ABI constraints
429-
are:
430-
431-
* `stdcall`
432-
* `aapcs`
433-
* `cdecl`
434-
* `fastcall`
435-
* `Rust`
436-
* `rust-intrinsic`
437-
* `system`
438-
* `C`
439-
440-
Most of the abis in this list are self-explanatory, but the `system` abi may
441-
seem a little odd. This constraint selects whatever the appropriate ABI is for
442-
interoperating with the target's libraries. For example, on win32 with a x86
443-
architecture, this means that the abi used would be `stdcall`. On x86_64,
444-
however, windows uses the `C` calling convention, so `C` would be used. This
445-
means that in our previous example, we could have used `extern "system" { ... }`
446-
to define a block for all windows systems, not just x86 ones.
428+
This applies to the entire `extern` block, and must be either `"cdecl"` or
429+
`"stdcall"`. The compiler may eventually support other calling conventions.
447430

448431
# Interoperability with foreign code
449432

0 commit comments

Comments
 (0)