Skip to content

Commit 0b82a3a

Browse files
committed
---
yaml --- r: 234605 b: refs/heads/tmp c: ec3ec10 h: refs/heads/master i: 234603: 324c246 v: v3
1 parent ba13c59 commit 0b82a3a

File tree

213 files changed

+10549
-13080
lines changed

Some content is hidden

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

213 files changed

+10549
-13080
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2626
refs/heads/beta: d2e13e822a73e0ea46ae9e21afdd3155fc997f6d
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
28-
refs/heads/tmp: d2e13e822a73e0ea46ae9e21afdd3155fc997f6d
28+
refs/heads/tmp: ec3ec1073bcd3903bfa9f5e269b85d163d5d188b
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
3030
refs/tags/homu-tmp: ab792abf1fcc28afbd315426213f6428da25c085
3131
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828

branches/tmp/COMPILER_TESTS.md

Lines changed: 0 additions & 43 deletions
This file was deleted.

branches/tmp/CONTRIBUTING.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ links to the major sections:
1010
* [Writing Documentation](#writing-documentation)
1111
* [Issue Triage](#issue-triage)
1212
* [Out-of-tree Contributions](#out-of-tree-contributions)
13-
* [Helpful Links and Information](#helpful-links-and-information)
1413

1514
If you have questions, please make a post on [internals.rust-lang.org][internals] or
1615
hop on [#rust-internals][pound-rust-internals].
@@ -211,28 +210,3 @@ valuable!
211210
[users]: https://users.rust-lang.org/
212211
[so]: http://stackoverflow.com/questions/tagged/rust
213212
[community-library]: https://github.com/rust-lang/rfcs/labels/A-community-library
214-
215-
## Helpful Links and Information
216-
217-
For people new to Rust, and just starting to contribute, or even for
218-
more seasoned developers, some useful places to look for information
219-
are:
220-
221-
* The [Rust Internals forum][rif], a place to ask questions and
222-
discuss Rust's internals
223-
* The [generated documentation for rust's compiler][gdfrustc]
224-
* The [rust referance][rr], even though it doesn't specifically talk about Rust's internals, its a great reasource nontheless
225-
* Although out of date, [Tom Lee's great blog article][tlgba] is very helpful
226-
* [rustaceans.org][ro] is helpful, but mostly dedicated to IRC
227-
* The [Rust Compiler Testing Docs][rctd]
228-
* For @bors, [this cheetsheat][cheetsheat] is helpful (Remember to replace `@homu` with `@bors` in the commands that you use.)
229-
* **Google**!
230-
* Don't be afraid to ask! The Rust community is friendly and helpful.
231-
232-
[gdfrustc]: http://manishearth.github.io/rust-internals-docs/rustc/
233-
[rif]: http://internals.rust-lang.org
234-
[rr]: https://doc.rust-lang.org/book/README.html
235-
[tlgba]: http://tomlee.co/2014/04/03/a-more-detailed-tour-of-the-rust-compiler/
236-
[ro]: http://www.rustaceans.org/
237-
[rctd]: ./COMPILER_TESTS.md
238-
[cheetsheat]: http://buildbot.rust-lang.org/homu/

branches/tmp/RELEASES.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ Misc
427427
[path-normalize]: https://github.com/rust-lang/rust/pull/23229
428428

429429

430-
Version 1.0.0-alpha.2 (February 2015)
430+
Version 1.0.0-alpha.2 (2015-02-20)
431431
=====================================
432432

433433
* ~1300 changes, numerous bugfixes
@@ -526,7 +526,7 @@ Version 1.0.0-alpha.2 (February 2015)
526526
[un]: https://github.com/rust-lang/rust/pull/22256
527527

528528

529-
Version 1.0.0-alpha (January 2015)
529+
Version 1.0.0-alpha (2015-01-09)
530530
==================================
531531

532532
* ~2400 changes, numerous bugfixes
@@ -713,7 +713,7 @@ Version 1.0.0-alpha (January 2015)
713713
[rbe]: http://rustbyexample.com/
714714

715715

716-
Version 0.12.0 (October 2014)
716+
Version 0.12.0 (2014-10-09)
717717
=============================
718718

719719
* ~1900 changes, numerous bugfixes
@@ -836,7 +836,7 @@ Version 0.12.0 (October 2014)
836836
kernels and distributions, built on CentOS 5.10.
837837

838838

839-
Version 0.11.0 (July 2014)
839+
Version 0.11.0 (2014-07-02)
840840
==========================
841841

842842
* ~1700 changes, numerous bugfixes
@@ -969,7 +969,7 @@ Version 0.11.0 (July 2014)
969969
greatly improved.
970970

971971

972-
Version 0.10 (April 2014)
972+
Version 0.10 (2014-04-03)
973973
=========================
974974

975975
* ~1500 changes, numerous bugfixes
@@ -1136,7 +1136,7 @@ Version 0.10 (April 2014)
11361136
directory.
11371137

11381138

1139-
Version 0.9 (January 2014)
1139+
Version 0.9 (2014-01-09)
11401140
==========================
11411141

11421142
* ~1800 changes, numerous bugfixes
@@ -1302,7 +1302,7 @@ Version 0.9 (January 2014)
13021302
build tools.
13031303

13041304

1305-
Version 0.8 (September 2013)
1305+
Version 0.8 (2013-09-26)
13061306
============================
13071307

13081308
* ~2200 changes, numerous bugfixes
@@ -1458,7 +1458,7 @@ Version 0.8 (September 2013)
14581458
still invoked through the normal `rustdoc` command.
14591459

14601460

1461-
Version 0.7 (July 2013)
1461+
Version 0.7 (2013-07-03)
14621462
=======================
14631463

14641464
* ~2000 changes, numerous bugfixes
@@ -1575,7 +1575,7 @@ Version 0.7 (July 2013)
15751575
* Improvements to rustpkg (see the detailed release notes).
15761576

15771577

1578-
Version 0.6 (April 2013)
1578+
Version 0.6 (2013-04-03)
15791579
========================
15801580

15811581
* ~2100 changes, numerous bugfixes
@@ -1678,7 +1678,7 @@ Version 0.6 (April 2013)
16781678
* Inline assembler supported by new asm!() syntax extension.
16791679

16801680

1681-
Version 0.5 (December 2012)
1681+
Version 0.5 (2012-12-21)
16821682
===========================
16831683

16841684
* ~900 changes, numerous bugfixes
@@ -1735,7 +1735,7 @@ Version 0.5 (December 2012)
17351735
* License changed from MIT to dual MIT/APL2
17361736

17371737

1738-
Version 0.4 (October 2012)
1738+
Version 0.4 (2012-10-15)
17391739
==========================
17401740

17411741
* ~2000 changes, numerous bugfixes
@@ -1791,7 +1791,7 @@ Version 0.4 (October 2012)
17911791
* All hash functions and tables converted to secure, randomized SipHash
17921792

17931793

1794-
Version 0.3 (July 2012)
1794+
Version 0.3 (2012-07-12)
17951795
========================
17961796

17971797
* ~1900 changes, numerous bugfixes
@@ -1850,7 +1850,7 @@ Version 0.3 (July 2012)
18501850
* Cargo automatically resolves dependencies
18511851

18521852

1853-
Version 0.2 (March 2012)
1853+
Version 0.2 (2012-03-29)
18541854
=========================
18551855

18561856
* >1500 changes, numerous bugfixes
@@ -1891,7 +1891,7 @@ Version 0.2 (March 2012)
18911891
* Extensive cleanup, regularization in libstd, libcore
18921892

18931893

1894-
Version 0.1 (January 20, 2012)
1894+
Version 0.1 (2012-01-20)
18951895
===============================
18961896

18971897
* Most language features work, including:

branches/tmp/configure

Lines changed: 9 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -885,28 +885,6 @@ then
885885
CFG_DISABLE_JEMALLOC=1
886886
fi
887887

888-
# default gcc version under OpenBSD maybe too old, try using egcc, which is a
889-
# gcc version from ports
890-
if [ $CFG_OSTYPE = unknown-openbsd ]
891-
then
892-
if [ $("$CFG_GCC" --version 2>&1 | grep -c ' 4\.[0-6]') -ne 0 ]; then
893-
step_msg "older GCC found, try with egcc instead"
894-
895-
# probe again but using egcc
896-
probe CFG_GCC egcc
897-
898-
# and use egcc/eg++ for CC/CXX too if it was found
899-
# (but user setting has priority)
900-
if [ -n "$CFG_GCC" ]; then
901-
CC="${CC:-egcc}"
902-
CXX="${CXX:-eg++}"
903-
fi
904-
fi
905-
906-
step_msg "on OpenBSD, disabling jemalloc"
907-
CFG_DISABLE_JEMALLOC=1
908-
fi
909-
910888
# OS X 10.9, gcc is actually clang. This can cause some confusion in the build
911889
# system, so if we find that gcc is clang, we should just use clang directly.
912890
if [ $CFG_OSTYPE = apple-darwin -a -z "$CFG_ENABLE_CLANG" ]
@@ -1191,21 +1169,12 @@ do
11911169
#
11921170
# Consequently here we try to detect when that happens and print an
11931171
# error if it does.
1194-
if $CFG_PYTHON -c 'import sys; print sys.argv[1]' `pwd` | grep '^/' > /dev/null
1172+
if $CFG_PYTHON -c 'import sys; print sys.argv[1]' `pwd` | grep '^/'
11951173
then
1196-
err "
1197-
1198-
python is silently translating windows paths to MSYS paths \
1199-
and the build will fail if this python is used.
1200-
1201-
Either an official python install must be used or an \
1202-
alternative python package in MinGW must be used.
1203-
1204-
If you are building under msys2 try installing the mingw-w64-x86_64-python2 \
1205-
package instead of python2:
1206-
1207-
$ pacman -R python2 && pacman -S mingw-w64-x86_64-python2
1208-
"
1174+
err "python is silently translating windows paths to MSYS paths \
1175+
and the build will fail if this python is used.\n\n \
1176+
Either an official python install must be used or an \
1177+
alternative python package in MinGW must be used."
12091178
fi
12101179

12111180
# MSVC requires cmake because that's how we're going to build LLVM
@@ -1216,19 +1185,10 @@ $ pacman -R python2 && pacman -S mingw-w64-x86_64-python2
12161185
# detect that here and error.
12171186
if ! "$CFG_CMAKE" --help | sed -n '/^Generators/,$p' | grep 'Visual Studio' > /dev/null
12181187
then
1219-
err "
1220-
1221-
cmake does not support Visual Studio generators.
1222-
1223-
This is likely due to it being an msys/cygwin build of cmake, \
1224-
rather than the required windows version, built using MinGW \
1225-
or Visual Studio.
1226-
1227-
If you are building under msys2 try installing the mingw-w64-x86_64-cmake \
1228-
package instead of cmake:
1229-
1230-
$ pacman -R cmake && pacman -S mingw-w64-x86_64-cmake
1231-
"
1188+
err "cmake does not support Visual Studio generators.\n\n \
1189+
This is likely due to it being an msys/cygwin build of cmake, \
1190+
rather than the required windows version, built using MinGW \
1191+
or Visual Studio."
12321192
fi
12331193

12341194
# Use the REG program to figure out where VS is installed

branches/tmp/src/doc/nomicon/destructors.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,13 @@ this is totally fine.
2626
For instance, a custom implementation of `Box` might write `Drop` like this:
2727

2828
```rust
29-
#![feature(alloc, heap_api, core_intrinsics, unique)]
30-
31-
extern crate alloc;
29+
#![feature(heap_api, core_intrinsics, unique)]
3230

31+
use std::rt::heap;
3332
use std::ptr::Unique;
3433
use std::intrinsics::drop_in_place;
3534
use std::mem;
3635

37-
use alloc::heap;
38-
3936
struct Box<T>{ ptr: Unique<T> }
4037

4138
impl<T> Drop for Box<T> {
@@ -48,26 +45,22 @@ impl<T> Drop for Box<T> {
4845
}
4946
}
5047
}
51-
# fn main() {}
5248
```
5349

5450
and this works fine because when Rust goes to drop the `ptr` field it just sees
55-
a [Unique] that has no actual `Drop` implementation. Similarly nothing can
51+
a [Unique][] that has no actual `Drop` implementation. Similarly nothing can
5652
use-after-free the `ptr` because when drop exits, it becomes inacessible.
5753

5854
However this wouldn't work:
5955

6056
```rust
61-
#![feature(alloc, heap_api, core_intrinsics, unique)]
62-
63-
extern crate alloc;
57+
#![feature(heap_api, core_intrinsics, unique)]
6458

59+
use std::rt::heap;
6560
use std::ptr::Unique;
6661
use std::intrinsics::drop_in_place;
6762
use std::mem;
6863

69-
use alloc::heap;
70-
7164
struct Box<T>{ ptr: Unique<T> }
7265

7366
impl<T> Drop for Box<T> {
@@ -94,7 +87,6 @@ impl<T> Drop for SuperBox<T> {
9487
}
9588
}
9689
}
97-
# fn main() {}
9890
```
9991

10092
After we deallocate the `box`'s ptr in SuperBox's destructor, Rust will
@@ -137,16 +129,13 @@ The classic safe solution to overriding recursive drop and allowing moving out
137129
of Self during `drop` is to use an Option:
138130

139131
```rust
140-
#![feature(alloc, heap_api, core_intrinsics, unique)]
141-
142-
extern crate alloc;
132+
#![feature(heap_api, core_intrinsics, unique)]
143133

134+
use std::rt::heap;
144135
use std::ptr::Unique;
145136
use std::intrinsics::drop_in_place;
146137
use std::mem;
147138

148-
use alloc::heap;
149-
150139
struct Box<T>{ ptr: Unique<T> }
151140

152141
impl<T> Drop for Box<T> {
@@ -176,7 +165,6 @@ impl<T> Drop for SuperBox<T> {
176165
}
177166
}
178167
}
179-
# fn main() {}
180168
```
181169

182170
However this has fairly odd semantics: you're saying that a field that *should*

branches/tmp/src/doc/nomicon/meet-safe-and-unsafe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ Unlike C, Undefined Behaviour is pretty limited in scope in Rust. All the core
6060
language cares about is preventing the following things:
6161

6262
* Dereferencing null or dangling pointers
63-
* Reading [uninitialized memory]
64-
* Breaking the [pointer aliasing rules]
63+
* Reading [uninitialized memory][]
64+
* Breaking the [pointer aliasing rules][]
6565
* Producing invalid primitive values:
6666
* dangling/null references
6767
* a `bool` that isn't 0 or 1

branches/tmp/src/doc/nomicon/other-reprs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ still consumes a byte of space.
2626
* DSTs, tuples, and tagged unions are not a concept in C and as such are never
2727
FFI safe.
2828

29-
* **If the type would have any [drop flags], they will still be added**
29+
* **If the type would have any [drop flags][], they will still be added**
3030

3131
* This is equivalent to one of `repr(u*)` (see the next section) for enums. The
3232
chosen size is the default enum size for the target platform's C ABI. Note that

0 commit comments

Comments
 (0)