Skip to content

Commit 17d5d1e

Browse files
committed
---
yaml --- r: 50993 b: refs/heads/try c: 3f7c74d h: refs/heads/master i: 50991: e700053 v: v3
1 parent 9efc453 commit 17d5d1e

File tree

1,096 files changed

+22097
-15208
lines changed

Some content is hidden

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

1,096 files changed

+22097
-15208
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: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: f7a2371c176663d59062ec5158f39faecba45768
5-
refs/heads/try: 07f8ce706334fcf199edb0182beeff8de0da3c3a
5+
refs/heads/try: 3f7c74d0225354b93bf7649fed8cdd2774480106
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ $(foreach target,$(CFG_TARGET_TRIPLES),\
238238

239239
CORELIB_CRATE := $(S)src/libcore/core.rc
240240
CORELIB_INPUTS := $(wildcard $(addprefix $(S)src/libcore/, \
241-
core.rc *.rs */*.rs))
241+
core.rc *.rs */*.rs */*/*rs))
242242

243243
######################################################################
244244
# Standard library variables

branches/try/RELEASES.txt

Lines changed: 91 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,97 @@
1-
Version 0.6 (?)
1+
Version 0.6 (March 2013)
22
---------------------------
33

4+
* ~2000 changes, numerous bugfixes
5+
6+
* TODO:
7+
* Ord/Cmp
8+
* Lifetime changes
9+
* Remove `static` keyword
10+
* Static method syntax
11+
* `as Trait`
12+
* `copy` removed, replaced with `Clone`?
13+
* More details for "Name resolution continues to be tweaked"?
14+
15+
* Syntax changes
16+
* The self type parameter in traits is now spelled `Self`
17+
* The `self` parameter in trait and impl methods must now be explicitly
18+
named (for example: `fn f(&self) { }`). Implicit self is deprecated.
19+
* Replaced the `Durable` trait with the `'static` lifetime
20+
* The old closure type syntax with the trailing sigil has been
21+
removed in favor of the more consistent leading sigil
22+
* `super` is a keyword, and may be prefixed to paths
23+
* Trait bounds are separated with `+` instead of whitespace
24+
* Traits are implemented with `impl Trait for Type`
25+
instead of `impl Type: Trait`
26+
* The `export` keyword has finally been removed
27+
* The `move` keyword has been removed (see "Semantic changes")
28+
* The interior mutability qualifier on vectors, `[mut T]`, has been
29+
removed. Use `&mut [T]`, etc.
30+
* `mut` is no longer valid in `~mut T`. Use inherited mutability
31+
* `fail` is no longer a keyword. Use `fail!()`
32+
* `assert` is no longer a keyword. Use `assert!()`
33+
* `log` is no longer a keyword. use `debug!`, etc.
34+
* 1-tuples may be represented as `(T,)`
35+
* Struct fields may no longer be `mut`. Use inherited mutability,
36+
`@mut T`, `core::mut` or `core::cell`
37+
* `extern mod { ... }` is no longer valid syntax for foreign
38+
function modules. Use extern blocks: `extern { ... }`
39+
* Newtype enums removed. Used tuple-structs.
40+
* Trait implementations no longer support visibility modifiers
41+
* Pattern matching over vectors improved and expanded
42+
* `const` renamed to `static` to correspond to lifetime name,
43+
and make room for future `static mut` unsafe mutable globals.
44+
* Replaced `#[deriving_eq]` with `#[deriving(Eq)]`
45+
* `Clone` implementations can be automatically generated with
46+
`#[deriving(Clone)]`
47+
48+
* Semantic changes
49+
* Types with owned pointers or custom destructors move by default,
50+
eliminating the `move` keyword
51+
* All foreign functions are considered unsafe
52+
* &mut is now unaliasable
53+
* Writes to borrowed @mut pointers are prevented dynamically
54+
* () has size 0
55+
* The name of the main function can be customized using #[main]
56+
* The default type of an inferred closure is &fn instead of @fn
57+
* Name resolution continues to be tweaked
58+
* Method visibility is inherited from the implementation declaration
59+
* Structural records have been removed
60+
* Many more types can be used in static items, including enums
61+
'static-lifetime pointers and vectors
62+
* Pattern matching over vectors improved and expanded
63+
* Typechecking of closure types has been overhauled to
64+
improve inference and eliminate unsoundness
65+
466
* Libraries
5-
* `core::send_map` renamed to `core::hashmap`
67+
* Added big integers to `std::bigint`
68+
* Removed `core::oldcomm` module
69+
* Added pipe-based `core::comm` module
70+
* Numeric traits have been reorganized under `core::num`
71+
* `vec::slice` finally returns a slice
72+
* `debug!` and friends don't require a format string, e.g. `debug!(Foo)`
73+
* Containers reorganized around traits in `core::container`
74+
* `core::dvec` removed, `~[T]` is a drop-in replacement
75+
* `core::send_map` renamed to `core::hashmap`
76+
* `std::map` removed; replaced with `core::hashmap`
77+
* `std::treemap` reimplemented as an owned balanced tree
78+
* `std::deque` and `std::smallintmap` reimplemented as owned containers
79+
* `core::trie` added as a fast ordered map for integer keys
80+
* Set types added to `core::hashmap`, `core::trie` and `std::treemap`
81+
82+
* Tools
83+
* Replaced the 'cargo' package manager with 'rustpkg'
84+
* Added all-purpose 'rust' tool
85+
* `rustc --test` now supports benchmarks with the `#[bench]` attribute
86+
* rustc now attempts to offer spelling suggestions
87+
88+
* Misc
89+
* Improved support for ARM and Android
90+
* Preliminary MIPS backend
91+
* Improved foreign function ABI implementation for x86, x86_64
92+
* Various memory usage improvements
93+
* Rust code may be embedded in foreign code under limited circumstances
94+
* Inline assembler supported by new asm!() syntax extension.
695

796
Version 0.5 (December 2012)
897
---------------------------

branches/try/configure

Lines changed: 65 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,17 @@ validate_opt () {
136136
isArgValid=1
137137
fi
138138
done
139-
if test $isArgValid -eq 0
139+
if [ "$arg" = "--help" ]
140140
then
141-
err "Option '$arg' is not recognized"
141+
echo ""
142+
echo "No more help available for Configure options,"
143+
echo "check the Uncyclo or join our IRC channel"
144+
break
145+
else
146+
if test $isArgValid -eq 0
147+
then
148+
err "Option '$arg' is not recognized"
149+
fi
142150
fi
143151
done
144152
}
@@ -266,13 +274,42 @@ case $CFG_OSTYPE in
266274
MINGW32*)
267275
CFG_OSTYPE=pc-mingw32
268276
;;
277+
# Thad's Cygwin identifers below
278+
279+
# Vista 32 bit
280+
CYGWIN_NT-6.0)
281+
CFG_OSTYPE=pc-mingw32
282+
CFG_CPUTYPE=i686
283+
;;
284+
285+
# Vista 64 bit
286+
CYGWIN_NT-6.0-WOW64)
287+
CFG_OSTYPE=w64-mingw32
288+
CFG_CPUTYPE=x86_64
289+
;;
290+
291+
# Win 7 32 bit
292+
CYGWIN_NT-6.1)
293+
CFG_OSTYPE=pc-mingw32
294+
CFG_CPUTYPE=i686
295+
;;
269296

297+
# Win 7 64 bit
298+
CYGWIN_NT-6.1-WOW64)
299+
CFG_OSTYPE=w64-mingw32
300+
CFG_CPUTYPE=x86_64
301+
;;
302+
303+
# We do not detect other OS such as XP/2003 using 64 bit using uname.
304+
# If we want to in the future, we will need to use Cygwin - Chuck's csih helper in /usr/lib/csih/winProductName.exe or alternative.
270305
*)
271306
err "unknown OS type: $CFG_OSTYPE"
272307
;;
273308
esac
274309

275310

311+
if [ -z "$CFG_CPUTYPE" ]
312+
then
276313
case $CFG_CPUTYPE in
277314

278315
i386 | i486 | i686 | i786 | x86)
@@ -290,6 +327,7 @@ case $CFG_CPUTYPE in
290327
*)
291328
err "unknown CPU type: $CFG_CPUTYPE"
292329
esac
330+
fi
293331

294332
# Detect 64 bit linux systems with 32 bit userland and force 32 bit compilation
295333
if [ $CFG_OSTYPE = unknown-linux-gnu -a $CFG_CPUTYPE = x86_64 ]
@@ -406,12 +444,13 @@ fi
406444

407445
if [ ! -z "$CFG_PANDOC" ]
408446
then
409-
PANDOC_VER_LINE=$(pandoc --version | grep '^pandoc ')
410-
PANDOC_VER=${PANDOC_VER_LINE#pandoc }
411-
PV_MAJOR_MINOR=${PANDOC_VER%.[0-9]*}
412-
PV_MAJOR=${PV_MAJOR_MINOR%%[.][0-9]*}
413-
PV_MINOR=${PV_MAJOR_MINOR#[0-9]*[.]}
414-
PV_MINOR=${PV_MINOR%%[.][0-9]*}
447+
PV_MAJOR_MINOR=$(pandoc --version | grep '^pandoc ' |
448+
# extract the first 2 version fields, ignore everything else
449+
sed 's/pandoc \([0-9]*\)\.\([0-9]*\).*/\1 \2/')
450+
451+
# these patterns are shell globs, *not* regexps
452+
PV_MAJOR=${PV_MAJOR_MINOR% *}
453+
PV_MINOR=${PV_MAJOR_MINOR#* }
415454
if [ "$PV_MAJOR" -lt "1" ] || [ "$PV_MINOR" -lt "8" ]
416455
then
417456
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. disabling"
@@ -497,7 +536,7 @@ then
497536
LLVM_VERSION=$($LLVM_CONFIG --version)
498537

499538
case $LLVM_VERSION in
500-
(3.2svn|3.2|3.1svn|3.1|3.0svn|3.0)
539+
(3.1svn|3.1|3.0svn|3.0)
501540
msg "found ok version of LLVM: $LLVM_VERSION"
502541
;;
503542
(*)
@@ -519,7 +558,7 @@ then
519558
| cut -d ' ' -f 2)
520559

521560
case $CFG_CLANG_VERSION in
522-
(3.0svn | 3.0 | 3.1* | 3.2* | 4.0* | 4.1* | 4.2*)
561+
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3* | 4.0* | 4.1* | 4.2*)
523562
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
524563
CFG_C_COMPILER="clang"
525564
;;
@@ -536,6 +575,7 @@ fi
536575
CFG_PREFIX=${CFG_PREFIX%/}
537576
CFG_HOST_TRIPLES="$(echo $CFG_HOST_TRIPLES | tr ',' ' ')"
538577
CFG_TARGET_TRIPLES="$(echo $CFG_TARGET_TRIPLES | tr ',' ' ')"
578+
CFG_SUPPORTED_TARGET_TRIPLES="$(grep ^CC_*=* $CFG_SRC_DIR/mk/platform.mk | sed 's,^[^_]*_,,' | sed 's/\([^=]*\).*/\1/' | xargs)"
539579

540580
# copy host-triples to target-triples so that hosts are a subset of targets
541581
V_TEMP=""
@@ -548,8 +588,22 @@ CFG_TARGET_TRIPLES=$V_TEMP
548588
# check target-specific tool-chains
549589
for i in $CFG_TARGET_TRIPLES
550590
do
591+
L_CHECK=false
592+
for j in $CFG_SUPPORTED_TARGET_TRIPLES
593+
do
594+
if [ $i = $j ]
595+
then
596+
L_CHECK=true
597+
fi
598+
done
599+
600+
if [ $L_CHECK = false ]
601+
then
602+
err "unsupported target triples \"$i\" found"
603+
fi
604+
551605
case $i in
552-
arm-unknown-android)
606+
arm-linux-androideabi)
553607

554608
if [ ! -f $CFG_ANDROID_CROSS_PATH/bin/arm-linux-androideabi-gcc ]
555609
then

branches/try/doc/rust.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,9 @@ td {
101101
#TOC ul {
102102
list-style: none;
103103
padding-left: 0px;
104+
}
105+
106+
/* Adjust list alignment so rustdoc indexes don't align with blockquotes */
107+
div.index ul {
108+
padding-left: 1em;
104109
}

0 commit comments

Comments
 (0)