Skip to content

Commit 35f3fa6

Browse files
author
Eric Reed
committed
Merge remote-tracking branch 'upstream/io' into io
Conflicts: src/libstd/rt/uvio.rs
2 parents 33ae193 + 319cf6e commit 35f3fa6

File tree

1,030 files changed

+68437
-17583
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,030 files changed

+68437
-17583
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
src/rt/msvc/* -whitespace
88
src/rt/vg/* -whitespace
99
src/rt/linenoise/* -whitespace
10+
src/rt/jemalloc/**/* -whitespace

.mailmap

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# This list is used by git-shortlog to aggregate contributions. It is
3+
# necessary when either the author's full name is not always written
4+
# the same way, and/or the same author contributes from different
5+
# email addresses.
6+
#
7+
8+
Elly Jones <[email protected]>
9+
10+
Junyoung Cho <[email protected]>
11+
Matthijs Hofstra <[email protected]>
12+
Rob Arnold <[email protected]>

CONTRIBUTING.md

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,38 @@
11
## Pull request procedure
22

3-
Pull requests should be targeted at Rust's `incoming` branch (note that by default Github will aim them at the `master` branch) --
4-
see "Changing The Commit Range and Destination Repository" in Github's documentation on [pull requests](https://help.github.com/articles/using-pull-requests).
5-
Before pushing to your Github repo and issuing the pull request, please do two things:
3+
Pull requests should be targeted at Rust's `master` branch.
4+
Before pushing to your Github repo and issuing the pull request,
5+
please do two things:
66

7-
1. [Rebase](http://git-scm.com/book/en/Git-Branching-Rebasing) your local changes against the `incoming` branch. Resolve any conflicts that arise.
8-
2. Run the full Rust test suite with the `make check` command.
9-
You're not off the hook even if you just stick to documentation; code examples in the docs are tested as well!
7+
1. [Rebase](http://git-scm.com/book/en/Git-Branching-Rebasing) your
8+
local changes against the `master` branch. Resolve any conflicts
9+
that arise.
1010

11-
Pull requests will be treated as "review requests",
12-
and we will give feedback we expect to see corrected on [style](https://github.com/mozilla/rust/wiki/Note-style-guide) and substance before pulling.
13-
Changes contributed via pull request should focus on a single issue at a time, like any other.
14-
We will not accept pull-requests that try to "sneak" unrelated changes in.
11+
2. Run the full Rust test suite with the `make check` command. You're
12+
not off the hook even if you just stick to documentation; code
13+
examples in the docs are tested as well!
1514

16-
Normally, all pull requests must include regression tests (see [Note-testsuite](https://github.com/mozilla/rust/wiki/Note-testsuite)) that test your change.
17-
Occasionally, a change will be very difficult to test for.
18-
In those cases, please include a note in your commit message explaining why.
15+
Pull requests will be treated as "review requests", and we will give
16+
feedback we expect to see corrected on
17+
[style](https://github.com/mozilla/rust/wiki/Note-style-guide) and
18+
substance before pulling. Changes contributed via pull request should
19+
focus on a single issue at a time, like any other. We will not accept
20+
pull-requests that try to "sneak" unrelated changes in.
1921

20-
In the licensing header at the beginning of any files you change, please make sure the listed date range includes the current year.
21-
For example, if it's 2013, and you change a Rust file that was created in 2010, it should begin:
22+
Normally, all pull requests must include regression tests (see
23+
[Note-testsuite](https://github.com/mozilla/rust/wiki/Note-testsuite))
24+
that test your change. Occasionally, a change will be very difficult
25+
to test for. In those cases, please include a note in your commit
26+
message explaining why.
27+
28+
In the licensing header at the beginning of any files you change,
29+
please make sure the listed date range includes the current year. For
30+
example, if it's 2013, and you change a Rust file that was created in
31+
2010, it should begin:
2232

2333
```
2434
// Copyright 2010-2013 The Rust Project Developers.
2535
```
2636

27-
For more details, please refer to [Note-development-policy](https://github.com/mozilla/rust/wiki/Note-development-policy).
37+
For more details, please refer to
38+
[Note-development-policy](https://github.com/mozilla/rust/wiki/Note-development-policy).

Makefile.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ ifneq ($(wildcard $(CFG_GIT)),)
146146
ifneq ($(wildcard $(CFG_GIT_DIR)),)
147147
CFG_VERSION += $(shell git --git-dir=$(CFG_GIT_DIR) log -1 \
148148
--pretty=format:'(%h %ci)')
149-
CFG_VER_HASH = $(shell git --git-dir=$(CFG_GIT_DIR) log -1 \
150-
--pretty=format:'%H')
149+
CFG_VER_HASH = $(shell git --git-dir=$(CFG_GIT_DIR) rev-parse HEAD)
151150
endif
152151
endif
153152

RELEASES.txt

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,37 @@ Version 0.7 (July 2013)
33

44
* ??? changes, numerous bugfixes
55

6+
* Syntax changes
7+
* `#[deriving(Encodable)]`, `#[deriving(Decodable)]`
8+
69
* Semantic changes
7-
* The `self` parameter no longer implicitly means `&'self self`, and can be explicitly marked
8-
with a lifetime.
10+
* The `self` parameter no longer implicitly means `&'self self`,
11+
and can be explicitly marked with a lifetime.
12+
* Structs with the `#[packed]` attribute have byte alignment and
13+
no padding between fields.
914

1015
* Libraries
11-
* New `core::iterator` module for external iterator objects
16+
17+
**Note: in 0.7 `core` was renamed `std` and `std` to `extra.
18+
These notes use the new crate names.**
19+
20+
* The `core` crate was renamed to `std`.
21+
* The `std` crate was renamed to `extra`.
22+
* `std::mut` removed.
23+
* std: `iterator` module for external iterator objects.
24+
* std: many types implement `Clone` - tuples, @, @mut. TODO
25+
* std: `path` type renamed to `Path`.
26+
* std: Many standalone functions removed in favor of methods in
27+
`vec`, `str`, TODO. In the future methods will also work as functions.
28+
* extra: `FileInput` implements `std::io::Reader`.
29+
* extra: `Complex` number type and `complex` module.
30+
* extra: `Rational` number type and `rational` module.
31+
* extra: `BigInt`, `BigUint` implement numeric and comparison traits.
32+
33+
* Other
34+
* `unused_unsafe` lint mode for detecting unnecessary `unsafe` blocks.
35+
* More and improved library documentation.
36+
* The `rusti` command has been rewritten and a number of bugs addressed.
1237

1338
Version 0.6 (April 2013)
1439
------------------------

configure

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ validate_opt () {
138138
done
139139
if [ "$arg" = "--help" ]
140140
then
141-
echo ""
141+
echo
142142
echo "No more help available for Configure options,"
143143
echo "check the Uncyclo or join our IRC channel"
144144
break
@@ -349,11 +349,11 @@ if [ "$1" = "--help" ]
349349
then
350350
HELP=1
351351
shift
352-
echo ""
352+
echo
353353
echo "Usage: $CFG_SELF [options]"
354-
echo ""
354+
echo
355355
echo "Options:"
356-
echo ""
356+
echo
357357
else
358358
msg "recreating config.tmp"
359359
echo '' >config.tmp
@@ -394,7 +394,7 @@ validate_opt
394394

395395
if [ $HELP -eq 1 ]
396396
then
397-
echo ""
397+
echo
398398
exit 0
399399
fi
400400

@@ -561,7 +561,7 @@ then
561561
| cut -d ' ' -f 2)
562562

563563
case $CFG_CLANG_VERSION in
564-
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3*)
564+
(3.0svn | 3.0 | 3.1* | 3.2* | 3.3* | 3.4* )
565565
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
566566
CFG_C_COMPILER="clang"
567567
;;
@@ -683,7 +683,8 @@ do
683683
for i in \
684684
isaac linenoise sync test \
685685
arch/i386 arch/x86_64 arch/arm arch/mips \
686-
libuv libuv/src/ares libuv/src/eio libuv/src/ev
686+
libuv libuv/src/ares libuv/src/eio libuv/src/ev \
687+
jemalloc
687688
do
688689
make_dir rt/$t/stage$s/$i
689690
done
@@ -970,6 +971,13 @@ then
970971
putvar CFG_CCACHE_CPP2
971972
fi
972973

974+
if [ ! -z "$CFG_ENABLE_CCACHE" ]
975+
then
976+
CFG_CCACHE_BASEDIR=${CFG_SRC_DIR}
977+
putvar CFG_CCACHE_BASEDIR
978+
fi
979+
980+
973981
if [ ! -z $BAD_PANDOC ]
974982
then
975983
CFG_PANDOC=

doc/rust.css

Lines changed: 73 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,81 @@
11
body {
2-
padding: 1em;
3-
margin: 0;
4-
margin-bottom: 4em;
5-
font-family: "Helvetica Neue", Helvetica, sans-serif;
6-
background-color: white;
7-
color: black;
8-
line-height: 1.6em;
9-
}
10-
11-
body {
12-
padding: 1em 6em;
13-
max-width: 60em;
2+
padding: 1em 6em;
3+
margin: 0;
4+
margin-bottom: 4em;
5+
font-family: "Helvetica Neue", Helvetica, sans-serif;
6+
font-size: 12pt;
7+
background-color: white;
8+
color: black;
9+
line-height: 1.6em;
10+
min-width: 45em;
11+
max-width: 60em;
1412
}
1513

1614
h1 {
17-
font-size: 20pt;
18-
margin-top: 2em;
19-
border-bottom: 1px solid silver;
20-
line-height: 1.6em;
15+
font-size: 20pt;
16+
margin-top: 2em;
17+
padding-left: 0.4em;
18+
line-height: 1.6em;
19+
background-color:#FFF2CE;
20+
border-radius: 0.2em;
21+
border: 1px solid rgba(0, 0, 0, 0.15);
2122
}
23+
2224
h2 {
2325
font-size: 15pt;
2426
margin-top: 2em;
27+
padding-left: 0.4em;
28+
background-color:#FFF2CE;
29+
border-radius: 0.4em;
30+
border: 1px solid rgba(0, 0, 0, 0.15);
31+
}
32+
33+
h2 code {
34+
color: #097334;
35+
font-size: 15pt;
36+
}
37+
38+
h3 {
39+
font-size: 13pt;
40+
color: black;
41+
background-color:#D9E7FF;
42+
border-radius: 0.4em;
43+
border: 1px solid rgba(0, 0, 0, 0.15);
44+
padding: 0 0.4em 0 0.4em;
45+
}
46+
47+
h3 code {
48+
color: #541800;
49+
font-size: 13pt;
50+
font-style: italic;
51+
}
52+
53+
h4 {
54+
font-size: 11pt;
55+
margin-top: 0em;
56+
margin-bottom: 0em;
57+
}
58+
59+
code {
60+
font-size: 11pt;
2561
}
26-
h3 { font-size: 13pt; }
2762

2863
pre {
29-
margin: 1.1em 0;
30-
padding: .4em .4em .4em 2em;
31-
font-size: 120%;
64+
margin-left: 1.1em;
65+
padding: .4em .4em .4em .8em;
66+
font-size: 10pt;
67+
background-color: #F5F5F5;
68+
border-radius: 0.5em;
69+
border: 1px solid rgba(0, 0, 0, 0.15);
70+
}
71+
72+
pre.rust {
73+
background-color: #F3F6FF;
3274
}
3375

3476
a, a:visited, a:link {
35-
text-decoration: none;
36-
color: rgb(0, 105, 214);
77+
text-decoration: none;
78+
color: rgb(0, 105, 214);
3779
}
3880

3981
h1 a:link, h1 a:visited, h2 a:link, h2 a:visited,
@@ -106,4 +148,12 @@ td {
106148
/* Adjust list alignment so rustdoc indexes don't align with blockquotes */
107149
div.index ul {
108150
padding-left: 1em;
109-
}
151+
}
152+
153+
ul {
154+
margin-top: 0em
155+
}
156+
157+
div.section.level3 {
158+
margin-left: 1.0em;
159+
}

0 commit comments

Comments
 (0)