Skip to content

Commit fc15798

Browse files
committed
---
yaml --- r: 97516 b: refs/heads/snap-stage3 c: fda71f2 h: refs/heads/master v: v3
1 parent 934b9f8 commit fc15798

Some content is hidden

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

82 files changed

+2034
-979
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: 0da105a8b7b6b1e0568e8ff20f6ff4b13cc7ecc2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: b7ff9c1a599eab76d25c476afc8097aab2a3d502
4+
refs/heads/snap-stage3: fda71f26301d153ca8d9489281d382af79792d63
55
refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/AUTHORS.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ Lindsey Kuper <[email protected]>
225225
Luca Bruno <[email protected]>
226226
Luis de Bethencourt <[email protected]>
227227
Luqman Aden <[email protected]>
228+
228229
Magnus Auvinen <[email protected]>
229230
Mahmut Bulut <[email protected]>
230231
maikklein <[email protected]>
@@ -240,6 +241,7 @@ Martin DeMello <[email protected]>
240241
Marvin Löbel <[email protected]>
241242
Matt Brubeck <[email protected]>
242243
Matt Carberry <[email protected]>
244+
Matthew Auld <[email protected]>
243245
Matthew Iselin <[email protected]>
244246
Matthew McPherrin <[email protected]>
245247
Matthew O'Connor <[email protected]>

branches/snap-stage3/Makefile.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ export CFG_ENABLE_MINGW_CROSS
416416
export CFG_PREFIX
417417
export CFG_LIBDIR
418418
export CFG_RUSTLIBDIR
419+
export LIBDIR_RELATIVE
419420

420421
######################################################################
421422
# Subprograms
@@ -433,12 +434,12 @@ define SREQ
433434
# Destinations of artifacts for the host compiler
434435
HROOT$(1)_H_$(3) = $(3)/stage$(1)
435436
HBIN$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/bin
436-
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(CFG_LIBDIR)
437+
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(LIBDIR_RELATIVE)
437438

438439
# Destinations of artifacts for target architectures
439440
TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/$$(CFG_RUSTLIBDIR)/$(2)
440441
TBIN$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/bin
441-
TLIB$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/$$(CFG_LIBDIR)
442+
TLIB$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/lib
442443

443444
# The name of the standard and extra libraries used by rustc
444445
HSTDLIB_DEFAULT$(1)_H_$(3) = \

branches/snap-stage3/RELEASES.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Version 0.9 (January 2014)
22
--------------------------
33

4-
* ~1600 changes, numerous bugfixes
4+
* ~1800 changes, numerous bugfixes
55

66
* Language
77
* The `float` type has been removed. Use `f32` or `f64` instead.
@@ -22,6 +22,9 @@ Version 0.9 (January 2014)
2222
* `@fn`s have been removed.
2323
* `do` only works with procs in order to make it obvious what the cost
2424
of `do` is.
25+
* Single-element tuple-like structs can no longer be dereferenced to
26+
obtain the inner value. A more comprehensive solution for overloading
27+
the dereference operator will be provided in the future.
2528
* The `#[link(...)]` attribute has been replaced with
2629
`#[crate_id = "name#vers"]`.
2730
* Empty `impl`s must be terminated with empty braces and may not be
@@ -32,6 +35,8 @@ Version 0.9 (January 2014)
3235
* `printf!` and `printfln!` (old-style formatting) removed in favor of
3336
`print!` and `println!`.
3437
* `mut` works in patterns now, as in `let (mut x, y) = (1, 2);`.
38+
* The `extern mod foo (name = "bar")` syntax has been removed. Use
39+
`extern mod foo = "bar"` instead.
3540
* New reserved keywords: `alignof`, `offsetof`, `sizeof`.
3641
* Macros can have attributes.
3742
* Macros can expand to items with attributes.
@@ -76,6 +81,7 @@ Version 0.9 (January 2014)
7681
variables. Currently behind the `thread_local` feature gate.
7782
* The `return` keyword may be used in closures.
7883
* Types that can be copied via a memcpy implement the `Pod` kind.
84+
* The `cfg` attribute can now be used on struct fields and enum variants.
7985

8086
* Libraries
8187
* std: The `option` and `result` API's have been overhauled to make them
@@ -90,9 +96,14 @@ Version 0.9 (January 2014)
9096
* std: The reference counted pointer type `extra::rc` moved into std.
9197
* std: The `Gc` type in the `gc` module will replace `@` (it is currently
9298
just a wrapper around it).
99+
* std: The `Either` type has been removed.
93100
* std: `fmt::Default` can be implemented for any type to provide default
94101
formatting to the `format!` macro, as in `format!("{}", myfoo)`.
95102
* std: The `rand` API continues to be tweaked.
103+
* std: The `rust_begin_unwind` function, useful for insterting breakpoints
104+
on failure in gdb, is now named `rust_fail`.
105+
* std: The `each_key` and `each_value` methods on `HashMap` have been
106+
replaced by the `keys` and `values` iterators.
96107
* std: Functions dealing with type size and alignment have moved from the
97108
`sys` module to the `mem` module.
98109
* std: The `path` module was written and API changed.

branches/snap-stage3/configure

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,17 @@ valopt sysconfdir "/etc" "install system configuration files"
397397
valopt datadir "${CFG_PREFIX}/share" "install data"
398398
valopt infodir "${CFG_PREFIX}/share/info" "install additional info"
399399
valopt mandir "${CFG_PREFIX}/share/man" "install man pages in PATH"
400-
valopt libdir "${CFG_PREFIX}/lib" "install libraries"
400+
401+
# On windows we just store the libraries in the bin directory because
402+
# there's no rpath
403+
# FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
404+
LIBDIR_RELATIVE=lib
405+
if [ "$CFG_OSTYPE" = "pc-mingw32" ]
406+
then
407+
LIBDIR_RELATIVE=bin
408+
fi
409+
410+
valopt libdir "${CFG_PREFIX}/${LIBDIR_RELATIVE}" "install libraries"
401411
valopt rustlibdir "rustlib" "subdirectory name for rustc's libraries"
402412

403413
# Validate Options
@@ -560,10 +570,10 @@ then
560570
step_msg "on OS X 10.9, forcing use of clang"
561571
CFG_ENABLE_CLANG=1
562572
putvar CFG_ENABLE_CLANG
563-
else
564-
# on OS X, with xcode 5 and newer, certain developers may have
573+
else
574+
# on OS X, with xcode 5 and newer, certain developers may have
565575
# cc, gcc and g++ point to a mixture of clang and gcc
566-
# if so, this will create very strange build errors
576+
# if so, this will create very strange build errors
567577
# this last stanza is to detect some such problems and save the future rust
568578
# contributor some time solving that issue.
569579
# this detection could be generalized to other OSes aside from OS X
@@ -576,8 +586,8 @@ then
576586
# note that for xcode 5, g++ points to clang, not clang++
577587
if !((chk_cc gcc clang && chk_cc g++ clang) ||
578588
(chk_cc gcc gcc &&( chk_cc g++ g++ || chk g++ gcc))) then
579-
err "the gcc and g++ in your path point to different compilers.
580-
Check which versions are in your path with cc --version and g++ --version.
589+
err "the gcc and g++ in your path point to different compilers.
590+
Check which versions are in your path with cc --version and g++ --version.
581591
To resolve this problem, either fix your PATH or run configure with --enable-clang"
582592
fi
583593

@@ -751,15 +761,6 @@ do
751761
done
752762
done
753763

754-
# On windows we just store the libraries in the bin directory because
755-
# there's no rpath
756-
# FIXME: Thise needs to parameterized over target triples. Do it in platform.mk
757-
CFG_LIBDIR=lib
758-
if [ "$CFG_OSTYPE" = "pc-mingw32" ]
759-
then
760-
CFG_LIBDIR=bin
761-
fi
762-
763764
for h in $CFG_HOST
764765
do
765766
for t in $CFG_TARGET
@@ -770,21 +771,21 @@ do
770771
make_dir $h/stage$i/bin
771772

772773
# host lib dir
773-
make_dir $h/stage$i/$CFG_LIBDIR
774+
make_dir $h/stage$i/$LIBDIR_RELATIVE
774775

775776
# host test dir
776777
make_dir $h/stage$i/test
777778

778779
# target bin dir
779-
make_dir $h/stage$i/$CFG_LIBDIR/$CFG_RUSTLIBDIR/$t/bin
780+
make_dir $h/stage$i/$LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/bin
780781

781782
# target lib dir
782-
make_dir $h/stage$i/$CFG_LIBDIR/$CFG_RUSTLIBDIR/$t/$CFG_LIBDIR
783+
make_dir $h/stage$i/$LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/lib
783784
done
784785

785786
# Fix stage0:
786-
make_dir $h/stage0/$CFG_LIBDIR/rustc/$t/bin
787-
make_dir $h/stage0/$CFG_LIBDIR/rustc/$t/$CFG_LIBDIR
787+
make_dir $h/stage0/$LIBDIR_RELATIVE/rustc/$t/bin
788+
make_dir $h/stage0/$LIBDIR_RELATIVE/rustc/$t/$LIBDIR_RELATIVE
788789

789790
done
790791

@@ -800,7 +801,8 @@ do
800801
make_dir $h/test/doc-tutorial
801802
make_dir $h/test/doc-guide-ffi
802803
make_dir $h/test/doc-guide-macros
803-
make_dir $h/test/doc-guide-borrowed-ptr
804+
make_dir $h/test/doc-guide-lifetimes
805+
make_dir $h/test/doc-guide-pointers
804806
make_dir $h/test/doc-guide-container
805807
make_dir $h/test/doc-guide-tasks
806808
make_dir $h/test/doc-guide-conditions
@@ -1038,6 +1040,7 @@ putvar CFG_TARGET
10381040
putvar CFG_C_COMPILER
10391041
putvar CFG_LIBDIR
10401042
putvar CFG_RUSTLIBDIR
1043+
putvar LIBDIR_RELATIVE
10411044
putvar CFG_DISABLE_MANAGE_SUBMODULES
10421045
putvar CFG_ANDROID_CROSS_PATH
10431046
putvar CFG_MINGW32_CROSS_PATH

branches/snap-stage3/doc/guide-macros.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ return result + val;
278278
This solves the indentation problem. But if we have a lot of chained matches
279279
like this, we might prefer to write a single macro invocation. The input
280280
pattern we want is clear:
281+
281282
~~~~
282283
# macro_rules! b(
283284
( $( ($e:expr) ~ ($p:pat) else $err:stmt ; )*
@@ -304,6 +305,7 @@ input patterns:
304305
( binds $( $bind_res:ident ),* )
305306
# => (0))
306307
~~~~
308+
307309
...and:
308310

309311
~~~~

0 commit comments

Comments
 (0)