Skip to content

Commit 1945d59

Browse files
committed
---
yaml --- r: 148087 b: refs/heads/try2 c: f5ee077 h: refs/heads/master i: 148085: 62abcfb 148083: b252e01 148079: 0d58ae8 v: v3
1 parent 76456fb commit 1945d59

Some content is hidden

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

57 files changed

+630
-1167
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: 4329fc6730e381b3b06f9987327072c50a739ad4
8+
refs/heads/try2: f5ee07792e7d51283b03fa9c241e1aa0517f4637
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/AUTHORS.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ Lindsey Kuper <[email protected]>
225225
Luca Bruno <[email protected]>
226226
Luis de Bethencourt <[email protected]>
227227
Luqman Aden <[email protected]>
228-
229228
Magnus Auvinen <[email protected]>
230229
Mahmut Bulut <[email protected]>
231230
maikklein <[email protected]>
@@ -241,7 +240,6 @@ Martin DeMello <[email protected]>
241240
Marvin Löbel <[email protected]>
242241
Matt Brubeck <[email protected]>
243242
Matt Carberry <[email protected]>
244-
Matthew Auld <[email protected]>
245243
Matthew Iselin <[email protected]>
246244
Matthew McPherrin <[email protected]>
247245
Matthew O'Connor <[email protected]>

branches/try2/Makefile.in

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

421420
######################################################################
422421
# Subprograms
@@ -434,12 +433,12 @@ define SREQ
434433
# Destinations of artifacts for the host compiler
435434
HROOT$(1)_H_$(3) = $(3)/stage$(1)
436435
HBIN$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/bin
437-
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(LIBDIR_RELATIVE)
436+
HLIB$(1)_H_$(3) = $$(HROOT$(1)_H_$(3))/$$(CFG_LIBDIR)
438437

439438
# Destinations of artifacts for target architectures
440439
TROOT$(1)_T_$(2)_H_$(3) = $$(HLIB$(1)_H_$(3))/$$(CFG_RUSTLIBDIR)/$(2)
441440
TBIN$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/bin
442-
TLIB$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/lib
441+
TLIB$(1)_T_$(2)_H_$(3) = $$(TROOT$(1)_T_$(2)_H_$(3))/$$(CFG_LIBDIR)
443442

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

branches/try2/RELEASES.txt

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

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

66
* Language
77
* The `float` type has been removed. Use `f32` or `f64` instead.
@@ -22,9 +22,6 @@ 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.
2825
* The `#[link(...)]` attribute has been replaced with
2926
`#[crate_id = "name#vers"]`.
3027
* Empty `impl`s must be terminated with empty braces and may not be
@@ -35,8 +32,6 @@ Version 0.9 (January 2014)
3532
* `printf!` and `printfln!` (old-style formatting) removed in favor of
3633
`print!` and `println!`.
3734
* `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.
4035
* New reserved keywords: `alignof`, `offsetof`, `sizeof`.
4136
* Macros can have attributes.
4237
* Macros can expand to items with attributes.
@@ -81,7 +76,6 @@ Version 0.9 (January 2014)
8176
variables. Currently behind the `thread_local` feature gate.
8277
* The `return` keyword may be used in closures.
8378
* 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.
8579

8680
* Libraries
8781
* std: The `option` and `result` API's have been overhauled to make them
@@ -96,14 +90,9 @@ Version 0.9 (January 2014)
9690
* std: The reference counted pointer type `extra::rc` moved into std.
9791
* std: The `Gc` type in the `gc` module will replace `@` (it is currently
9892
just a wrapper around it).
99-
* std: The `Either` type has been removed.
10093
* std: `fmt::Default` can be implemented for any type to provide default
10194
formatting to the `format!` macro, as in `format!("{}", myfoo)`.
10295
* 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.
10796
* std: Functions dealing with type size and alignment have moved from the
10897
`sys` module to the `mem` module.
10998
* std: The `path` module was written and API changed.

branches/try2/configure

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -397,17 +397,7 @@ 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-
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"
400+
valopt libdir "${CFG_PREFIX}/lib" "install libraries"
411401
valopt rustlibdir "rustlib" "subdirectory name for rustc's libraries"
412402

413403
# Validate Options
@@ -570,10 +560,10 @@ then
570560
step_msg "on OS X 10.9, forcing use of clang"
571561
CFG_ENABLE_CLANG=1
572562
putvar CFG_ENABLE_CLANG
573-
else
574-
# on OS X, with xcode 5 and newer, certain developers may have
563+
else
564+
# on OS X, with xcode 5 and newer, certain developers may have
575565
# cc, gcc and g++ point to a mixture of clang and gcc
576-
# if so, this will create very strange build errors
566+
# if so, this will create very strange build errors
577567
# this last stanza is to detect some such problems and save the future rust
578568
# contributor some time solving that issue.
579569
# this detection could be generalized to other OSes aside from OS X
@@ -586,8 +576,8 @@ then
586576
# note that for xcode 5, g++ points to clang, not clang++
587577
if !((chk_cc gcc clang && chk_cc g++ clang) ||
588578
(chk_cc gcc gcc &&( chk_cc g++ g++ || chk g++ gcc))) then
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.
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.
591581
To resolve this problem, either fix your PATH or run configure with --enable-clang"
592582
fi
593583

@@ -761,6 +751,15 @@ do
761751
done
762752
done
763753

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+
764763
for h in $CFG_HOST
765764
do
766765
for t in $CFG_TARGET
@@ -771,21 +770,21 @@ do
771770
make_dir $h/stage$i/bin
772771

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

776775
# host test dir
777776
make_dir $h/stage$i/test
778777

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

782781
# target lib dir
783-
make_dir $h/stage$i/$LIBDIR_RELATIVE/$CFG_RUSTLIBDIR/$t/lib
782+
make_dir $h/stage$i/$CFG_LIBDIR/$CFG_RUSTLIBDIR/$t/$CFG_LIBDIR
784783
done
785784

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

790789
done
791790

@@ -1039,7 +1038,6 @@ putvar CFG_TARGET
10391038
putvar CFG_C_COMPILER
10401039
putvar CFG_LIBDIR
10411040
putvar CFG_RUSTLIBDIR
1042-
putvar LIBDIR_RELATIVE
10431041
putvar CFG_DISABLE_MANAGE_SUBMODULES
10441042
putvar CFG_ANDROID_CROSS_PATH
10451043
putvar CFG_MINGW32_CROSS_PATH

branches/try2/doc/guide-macros.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ 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-
282281
~~~~
283282
# macro_rules! b(
284283
( $( ($e:expr) ~ ($p:pat) else $err:stmt ; )*
@@ -305,7 +304,6 @@ input patterns:
305304
( binds $( $bind_res:ident ),* )
306305
# => (0))
307306
~~~~
308-
309307
...and:
310308

311309
~~~~

branches/try2/doc/guide-tasks.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ With `extra::future`, rust has a mechanism for requesting a computation and gett
263263
later.
264264

265265
The basic example below illustrates this.
266-
267266
~~~
268267
# fn make_a_sandwich() {};
269268
fn fib(n: u64) -> u64 {
@@ -284,7 +283,6 @@ the future needs to be mutable so that it can save the result for next time `get
284283

285284
Here is another example showing how futures allow you to background computations. The workload will
286285
be distributed on the available cores.
287-
288286
~~~
289287
# use std::vec;
290288
fn partial_sum(start: uint) -> f64 {
@@ -319,7 +317,6 @@ acts as a reference to the shared data and only this reference is shared and clo
319317

320318
Here is a small example showing how to use Arcs. We wish to run concurrently several computations on
321319
a single large vector of floats. Each task needs the full vector to perform its duty.
322-
323320
~~~
324321
# use std::vec;
325322
# use std::rand;
@@ -351,17 +348,14 @@ fn main() {
351348
The function `pnorm` performs a simple computation on the vector (it computes the sum of its items
352349
at the power given as argument and takes the inverse power of this value). The Arc on the vector is
353350
created by the line
354-
355351
~~~
356352
# use extra::arc::Arc;
357353
# use std::vec;
358354
# use std::rand;
359355
# let numbers = vec::from_fn(1000000, |_| rand::random::<f64>());
360356
let numbers_arc=Arc::new(numbers);
361357
~~~
362-
363358
and a clone of it is sent to each task
364-
365359
~~~
366360
# use extra::arc::Arc;
367361
# use std::vec;
@@ -371,11 +365,9 @@ and a clone of it is sent to each task
371365
# let (port, chan) = Chan::new();
372366
chan.send(numbers_arc.clone());
373367
~~~
374-
375368
copying only the wrapper and not its contents.
376369

377370
Each task recovers the underlying data by
378-
379371
~~~
380372
# use extra::arc::Arc;
381373
# use std::vec;
@@ -387,7 +379,6 @@ Each task recovers the underlying data by
387379
# let local_arc : Arc<~[f64]> = port.recv();
388380
let task_numbers = local_arc.get();
389381
~~~
390-
391382
and can use it as if it were local.
392383

393384
The `arc` module also implements Arcs around mutable data that are not covered here.

branches/try2/doc/rust.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,6 @@ If a sequence of such redirections form a cycle or cannot be resolved unambiguou
845845
they represent a compile-time error.
846846

847847
An example of re-exporting:
848-
849848
~~~~
850849
# fn main() { }
851850
mod quux {
@@ -869,7 +868,6 @@ All rules regarding accessing declared modules in `use` declarations applies to
869868
and `extern mod` declarations.
870869

871870
An example of what will and will not work for `use` items:
872-
873871
~~~~
874872
# #[allow(unused_imports)];
875873
use foo::extra; // good: foo is at the root of the crate
@@ -1186,7 +1184,6 @@ a = Cat;
11861184
~~~~
11871185

11881186
Enumeration constructors can have either named or unnamed fields:
1189-
11901187
~~~~
11911188
enum Animal {
11921189
Dog (~str, f64),

branches/try2/doc/tutorial.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2790,15 +2790,13 @@ For example, if we move the `animals` module above into its own file...
27902790
mod plants;
27912791
mod animals;
27922792
~~~
2793-
27942793
~~~ {.ignore}
27952794
// src/animals.rs or src/animals/mod.rs
27962795
mod fish;
27972796
mod mammals {
27982797
mod humans;
27992798
}
28002799
~~~
2801-
28022800
...then the source files of `mod animals`'s submodules can
28032801
either be placed right next to that of its parents, or in a subdirectory if `animals` source file is:
28042802

@@ -2961,7 +2959,6 @@ pub fn bar() { println("Baz!"); }
29612959
There also exist two short forms for importing multiple names at once:
29622960

29632961
1. Explicit mention multiple names as the last element of an `use` path:
2964-
29652962
~~~
29662963
use farm::{chicken, cow};
29672964
# mod farm {
@@ -2972,7 +2969,6 @@ use farm::{chicken, cow};
29722969
~~~
29732970

29742971
2. Import everything in a module with a wildcard:
2975-
29762972
~~~
29772973
use farm::*;
29782974
# mod farm {

branches/try2/mk/clean.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ clean-misc:
4444
$(Q)rm -Rf $(DOCS)
4545
$(Q)rm -Rf $(GENERATED)
4646
$(Q)rm -Rf tmp/*
47-
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz $(PKG_NAME)-*.exe dist
47+
$(Q)rm -Rf rust-stage0-*.tar.bz2 $(PKG_NAME)-*.tar.gz dist
4848
$(Q)rm -Rf $(foreach ext, \
4949
html aux cp fn ky log pdf pg toc tp vr cps epub, \
5050
$(wildcard doc/*.$(ext)))

branches/try2/mk/docs.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ HTML_DEPS :=
1919

2020
BASE_DOC_OPTS := --from=markdown --standalone --toc --number-sections
2121
HTML_OPTS = $(BASE_DOC_OPTS) --to=html5 --section-divs --css=rust.css \
22-
--include-before-body=doc/version_info.html \
23-
--include-in-header=doc/favicon.inc
22+
--include-before-body=doc/version_info.html \
23+
--include-in-header=doc/favicon.inc
2424
TEX_OPTS = $(BASE_DOC_OPTS) --to=latex
2525
EPUB_OPTS = $(BASE_DOC_OPTS) --to=epub
2626

branches/try2/mk/host.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ $$(HLIB$(2)_H_$(4))/$(CFG_LIBNATIVE_$(4)): \
149149
$$(HBIN$(2)_H_$(4))/:
150150
mkdir -p $$@
151151

152-
ifneq ($(LIBDIR_RELATIVE),bin)
152+
ifneq ($(CFG_LIBDIR),bin)
153153
$$(HLIB$(2)_H_$(4))/:
154154
mkdir -p $$@
155155
endif

branches/try2/mk/install.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ ISTAGE = 2
6363

6464
PREFIX_ROOT = $(CFG_PREFIX)
6565
PREFIX_BIN = $(PREFIX_ROOT)/bin
66-
PREFIX_LIB = $(CFG_LIBDIR)
66+
PREFIX_LIB = $(PREFIX_ROOT)/$(CFG_LIBDIR)
6767

6868
define INSTALL_PREPARE_N
6969
# $(1) is the target triple
@@ -76,7 +76,7 @@ TL$(1)$(2) = $$(TLIB$$(ISTAGE)_T_$(1)_H_$(2))
7676
# PT{R,B,L} == Prefix Target {Root, Bin, Lib}
7777
PTR$(1)$(2) = $$(PREFIX_LIB)/$(CFG_RUSTLIBDIR)/$(1)
7878
PTB$(1)$(2) = $$(PTR$(1)$(2))/bin
79-
PTL$(1)$(2) = $$(PTR$(1)$(2))/lib
79+
PTL$(1)$(2) = $$(PTR$(1)$(2))/$(CFG_LIBDIR)
8080

8181
endef
8282

0 commit comments

Comments
 (0)