Skip to content

Commit 8ddf612

Browse files
committed
---
yaml --- r: 273927 b: refs/heads/beta c: 8c2a8ae h: refs/heads/master i: 273925: 0b2e895 273923: 9e46496 273919: 836df36
1 parent a326840 commit 8ddf612

File tree

247 files changed

+2430
-3773
lines changed

Some content is hidden

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

247 files changed

+2430
-3773
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ refs/tags/0.9: 36870b185fc5f5486636d4515f0e22677493f225
2323
refs/tags/0.10: ac33f2b15782272ae348dbd7b14b8257b2148b5a
2424
refs/tags/0.11.0: e1247cb1d0d681be034adb4b558b5a0c0d5720f9
2525
refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
26-
refs/heads/beta: 084d9fa94345c72e450184a0a6e4b46ba95285cd
26+
refs/heads/beta: 8c2a8ae9cc81d86363e5c3180ce75e5925efe4a2
2727
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
2828
refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
2929
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f

branches/beta/CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ which includes important information about what platform you're on, what
7171
version of Rust you're using, etc.
7272

7373
Sometimes, a backtrace is helpful, and so including that is nice. To get
74-
a backtrace, set the `RUST_BACKTRACE` environment variable to a value
75-
other than `0`. The easiest way
74+
a backtrace, set the `RUST_BACKTRACE` environment variable. The easiest way
7675
to do this is to invoke `rustc` like this:
7776

7877
```bash

branches/beta/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,10 @@ To contribute to Rust, please see [CONTRIBUTING](CONTRIBUTING.md).
177177
Rust has an [IRC] culture and most real-time collaboration happens in a
178178
variety of channels on Mozilla's IRC network, irc.mozilla.org. The
179179
most popular channel is [#rust], a venue for general discussion about
180-
Rust. And a good place to ask for help would be [#rust-beginners].
180+
Rust, and a good place to ask for help.
181181
182182
[IRC]: https://en.wikipedia.org/wiki/Internet_Relay_Chat
183183
[#rust]: irc://irc.mozilla.org/rust
184-
[#rust-beginners]: irc://irc.mozilla.org/rust-beginners
185184
186185
## License
187186

branches/beta/configure

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,6 @@ opt inject-std-version 1 "inject the current compiler version of libstd into pro
608608
opt llvm-version-check 1 "check if the LLVM version is supported, build anyway"
609609
opt rustbuild 0 "use the rust and cargo based build system"
610610
opt orbit 0 "get MIR where it belongs - everywhere; most importantly, in orbit"
611-
opt codegen-tests 1 "run the src/test/codegen tests"
612611

613612
# Optimization and debugging options. These may be overridden by the release channel, etc.
614613
opt_nosave optimize 1 "build optimized rust code"
@@ -1498,9 +1497,7 @@ do
14981497
LLVM_INST_DIR=$CFG_LLVM_ROOT
14991498
do_reconfigure=0
15001499
# Check that LLVm FileCheck is available. Needed for the tests
1501-
if [ -z "$CFG_DISABLE_CODEGEN_TESTS" ]; then
1502-
need_cmd $LLVM_INST_DIR/bin/FileCheck
1503-
fi
1500+
need_cmd $LLVM_INST_DIR/bin/FileCheck
15041501
fi
15051502

15061503
if [ ${do_reconfigure} -ne 0 ]

branches/beta/man/rustc.1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,15 @@ the maximum number of threads used for this purpose.
268268

269269
.TP
270270
\fBRUST_TEST_NOCAPTURE\fR
271-
If set to a value other than "0", a synonym for the --nocapture flag.
271+
A synonym for the --nocapture flag.
272272

273273
.TP
274274
\fBRUST_MIN_STACK\fR
275275
Sets the minimum stack size for new threads.
276276

277277
.TP
278278
\fBRUST_BACKTRACE\fR
279-
If set to a value different than "0", produces a backtrace in the output of a program which panics.
279+
If set, produces a backtrace in the output of a program which panics.
280280

281281
.SH "EXAMPLES"
282282
To build an executable from a source file with a main function:

branches/beta/mk/rt.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@ else ifeq ($(findstring android, $(OSTYPE_$(1))), android)
157157
# If the test suite passes, however, without symbol prefixes then we should be
158158
# good to go!
159159
JEMALLOC_ARGS_$(1) := --disable-tls --with-jemalloc-prefix=je_
160-
else ifeq ($(findstring dragonfly, $(OSTYPE_$(1))), dragonfly)
161-
JEMALLOC_ARGS_$(1) := --with-jemalloc-prefix=je_
162160
endif
163161

164162
ifdef CFG_ENABLE_DEBUG_JEMALLOC

branches/beta/mk/tests.mk

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,11 @@ check-stage$(1)-T-$(2)-H-$(3)-exec: \
305305
check-stage$(1)-T-$(2)-H-$(3)-doc-crates-exec \
306306
check-stage$(1)-T-$(2)-H-$(3)-debuginfo-gdb-exec \
307307
check-stage$(1)-T-$(2)-H-$(3)-debuginfo-lldb-exec \
308+
check-stage$(1)-T-$(2)-H-$(3)-codegen-exec \
309+
check-stage$(1)-T-$(2)-H-$(3)-codegen-units-exec \
308310
check-stage$(1)-T-$(2)-H-$(3)-doc-exec \
309311
check-stage$(1)-T-$(2)-H-$(3)-pretty-exec
310312

311-
ifndef CFG_DISABLE_CODEGEN_TESTS
312-
check-stage$(1)-T-$(2)-H-$(3)-exec: \
313-
check-stage$(1)-T-$(2)-H-$(3)-codegen-exec \
314-
check-stage$(1)-T-$(2)-H-$(3)-codegen-units-exec
315-
endif
316-
317313
# Only test the compiler-dependent crates when the target is
318314
# able to build a compiler (when the target triple is in the set of host triples)
319315
ifneq ($$(findstring $(2),$$(CFG_HOST)),)

branches/beta/src/bootstrap/build/mod.rs

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,7 @@ impl Build {
326326
if !target.contains("msvc") {
327327
cargo.env(format!("CC_{}", target), self.cc(target))
328328
.env(format!("AR_{}", target), self.ar(target))
329-
.env(format!("CFLAGS_{}", target), self.cflags(target).join(" "));
330-
}
331-
332-
// If we're building for OSX, inform the compiler and the linker that
333-
// we want to build a compiler runnable on 10.7
334-
if target.contains("apple-darwin") {
335-
cargo.env("MACOSX_DEPLOYMENT_TARGET", "10.7");
329+
.env(format!("CFLAGS_{}", target), self.cflags(target));
336330
}
337331

338332
// Environment variables *required* needed throughout the build
@@ -503,20 +497,11 @@ impl Build {
503497
self.cc[target].0.path()
504498
}
505499

506-
fn cflags(&self, target: &str) -> Vec<String> {
507-
let mut base = self.cc[target].0.args().iter()
508-
.map(|s| s.to_string_lossy().into_owned())
509-
.collect::<Vec<_>>();
510-
511-
// If we're compiling on OSX then we add a few unconditional flags
512-
// indicating that we want libc++ (more filled out than libstdc++) and
513-
// we want to compile for 10.7. This way we can ensure that
514-
// LLVM/jemalloc/etc are all properly compiled.
515-
if target.contains("apple-darwin") {
516-
base.push("-stdlib=libc++".into());
517-
base.push("-mmacosx-version-min=10.7".into());
518-
}
519-
return base
500+
fn cflags(&self, target: &str) -> String {
501+
self.cc[target].0.args().iter()
502+
.map(|s| s.to_string_lossy())
503+
.collect::<Vec<_>>()
504+
.join(" ")
520505
}
521506

522507
fn ar(&self, target: &str) -> &Path {

branches/beta/src/bootstrap/build/native.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ pub fn llvm(build: &Build, target: &str) {
8686
.define("CMAKE_CXX_COMPILER", build.cxx(target));
8787
}
8888
cfg.build_arg("-j").build_arg(build.jobs().to_string());
89-
90-
cfg.define("CMAKE_C_FLAGS", build.cflags(target).join(" "));
91-
cfg.define("CMAKE_CXX_FLAGS", build.cflags(target).join(" "));
9289
}
9390

9491
// FIXME: we don't actually need to build all LLVM tools and all LLVM

branches/beta/src/compiletest/compiletest.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,7 @@ pub fn test_opts(config: &Config) -> test::TestOpts {
263263
logfile: config.logfile.clone(),
264264
run_tests: true,
265265
bench_benchmarks: true,
266-
nocapture: match env::var("RUST_TEST_NOCAPTURE") {
267-
Ok(val) => &val != "0",
268-
Err(_) => false
269-
},
266+
nocapture: env::var("RUST_TEST_NOCAPTURE").is_ok(),
270267
color: test::AutoColor,
271268
}
272269
}

branches/beta/src/doc/book/functions.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -246,19 +246,6 @@ stack backtrace:
246246
13: 0x0 - <unknown>
247247
```
248248

249-
If you need to override an already set `RUST_BACKTRACE`,
250-
in cases when you cannot just unset the variable,
251-
then set it to `0` to avoid getting a backtrace.
252-
Any other value(even no value at all) turns on backtrace.
253-
254-
```text
255-
$ export RUST_BACKTRACE=1
256-
...
257-
$ RUST_BACKTRACE=0 ./diverges
258-
thread '<main>' panicked at 'This function never returns!', hello.rs:2
259-
note: Run with `RUST_BACKTRACE=1` for a backtrace.
260-
```
261-
262249
`RUST_BACKTRACE` also works with Cargo’s `run` command:
263250

264251
```text

branches/beta/src/doc/book/getting-started.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,13 @@ installed. Doing so will depend on your specific system, consult its
164164
documentation for more details.
165165

166166
If not, there are a number of places where we can get help. The easiest is
167-
[the #rust-beginners IRC channel on irc.mozilla.org][irc-beginners] and for
168-
general discussion [the #rust IRC channel on irc.mozilla.org][irc], which we
169-
can access through [Mibbit][mibbit]. Then we'll be chatting with other
170-
Rustaceans (a silly nickname we call ourselves) who can help us out. Other great
171-
resources include [the user’s forum][users] and [Stack Overflow][stackoverflow].
167+
[the #rust IRC channel on irc.mozilla.org][irc], which we can access through
168+
[Mibbit][mibbit]. Click that link, and we'll be chatting with other Rustaceans
169+
(a silly nickname we call ourselves) who can help us out. Other great resources
170+
include [the user’s forum][users], and [Stack Overflow][stackoverflow].
172171

173-
[irc-beginners]: irc://irc.mozilla.org/#rust-beginners
174172
[irc]: irc://irc.mozilla.org/#rust
175-
[mibbit]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-beginners,%23rust
173+
[mibbit]: http://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust
176174
[users]: https://users.rust-lang.org/
177175
[stackoverflow]: http://stackoverflow.com/questions/tagged/rust
178176

branches/beta/src/doc/nomicon/vec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
To bring everything together, we're going to write `std::Vec` from scratch.
44
Because all the best tools for writing unsafe code are unstable, this
5-
project will only work on nightly (as of Rust 1.9.0). With the exception of the
5+
project will only work on nightly (as of Rust 1.2.0). With the exception of the
66
allocator API, much of the unstable code we'll use is expected to be stabilized
77
in a similar form as it is today.
88

branches/beta/src/liballoc_jemalloc/build.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ fn main() {
8686
// should be good to go!
8787
cmd.arg("--with-jemalloc-prefix=je_");
8888
cmd.arg("--disable-tls");
89-
} else if target.contains("dragonfly") {
90-
cmd.arg("--with-jemalloc-prefix=je_");
9189
}
9290

9391
if cfg!(feature = "debug-jemalloc") {

branches/beta/src/liballoc_jemalloc/lib.rs

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,22 @@ use libc::{c_int, c_void, size_t};
4242
extern {}
4343

4444
// Note that the symbols here are prefixed by default on OSX (we don't
45-
// explicitly request it), and on Android and DragonFly we explicitly request
46-
// it as unprefixing cause segfaults (mismatches in allocators).
45+
// explicitly request it), and on Android we explicitly request it as
46+
// unprefixing cause segfaults (mismatches in allocators).
4747
extern {
48-
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios",
49-
target_os = "dragonfly"),
48+
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
5049
link_name = "je_mallocx")]
5150
fn mallocx(size: size_t, flags: c_int) -> *mut c_void;
52-
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios",
53-
target_os = "dragonfly"),
51+
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
5452
link_name = "je_rallocx")]
5553
fn rallocx(ptr: *mut c_void, size: size_t, flags: c_int) -> *mut c_void;
56-
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios",
57-
target_os = "dragonfly"),
54+
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
5855
link_name = "je_xallocx")]
5956
fn xallocx(ptr: *mut c_void, size: size_t, extra: size_t, flags: c_int) -> size_t;
60-
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios",
61-
target_os = "dragonfly"),
57+
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
6258
link_name = "je_sdallocx")]
6359
fn sdallocx(ptr: *mut c_void, size: size_t, flags: c_int);
64-
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios",
65-
target_os = "dragonfly"),
60+
#[cfg_attr(any(target_os = "macos", target_os = "android", target_os = "ios"),
6661
link_name = "je_nallocx")]
6762
fn nallocx(size: size_t, flags: c_int) -> size_t;
6863
}

branches/beta/src/libcollections/btree/map.rs

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,6 @@ pub struct Values<'a, K: 'a, V: 'a> {
285285
inner: Iter<'a, K, V>,
286286
}
287287

288-
/// A mutable iterator over a BTreeMap's values.
289-
#[unstable(feature = "map_values_mut", reason = "recently added", issue = "32551")]
290-
pub struct ValuesMut<'a, K: 'a, V: 'a> {
291-
inner: IterMut<'a, K, V>,
292-
}
293-
294288
/// An iterator over a sub-range of BTreeMap's entries.
295289
pub struct Range<'a, K: 'a, V: 'a> {
296290
front: Handle<NodeRef<marker::Immut<'a>, K, V, marker::Leaf>, marker::Edge>,
@@ -1012,33 +1006,6 @@ impl<'a, K, V> Iterator for Range<'a, K, V> {
10121006
}
10131007
}
10141008

1015-
#[unstable(feature = "map_values_mut", reason = "recently added", issue = "32551")]
1016-
impl<'a, K, V> Iterator for ValuesMut<'a, K, V> {
1017-
type Item = &'a mut V;
1018-
1019-
fn next(&mut self) -> Option<&'a mut V> {
1020-
self.inner.next().map(|(_, v)| v)
1021-
}
1022-
1023-
fn size_hint(&self) -> (usize, Option<usize>) {
1024-
self.inner.size_hint()
1025-
}
1026-
}
1027-
1028-
#[unstable(feature = "map_values_mut", reason = "recently added", issue = "32551")]
1029-
impl<'a, K, V> DoubleEndedIterator for ValuesMut<'a, K, V> {
1030-
fn next_back(&mut self) -> Option<&'a mut V> {
1031-
self.inner.next_back().map(|(_, v)| v)
1032-
}
1033-
}
1034-
1035-
#[unstable(feature = "map_values_mut", reason = "recently added", issue = "32551")]
1036-
impl<'a, K, V> ExactSizeIterator for ValuesMut<'a, K, V> {
1037-
fn len(&self) -> usize {
1038-
self.inner.len()
1039-
}
1040-
}
1041-
10421009
impl<'a, K, V> Range<'a, K, V> {
10431010
unsafe fn next_unchecked(&mut self) -> (&'a K, &'a V) {
10441011
let handle = self.front;
@@ -1436,33 +1403,6 @@ impl<K, V> BTreeMap<K, V> {
14361403
Values { inner: self.iter() }
14371404
}
14381405

1439-
/// Gets a mutable iterator over the values of the map, in order by key.
1440-
///
1441-
/// # Examples
1442-
///
1443-
/// Basic usage:
1444-
///
1445-
/// ```
1446-
/// # #![feature(map_values_mut)]
1447-
/// use std::collections::BTreeMap;
1448-
///
1449-
/// let mut a = BTreeMap::new();
1450-
/// a.insert(1, String::from("hello"));
1451-
/// a.insert(2, String::from("goodbye"));
1452-
///
1453-
/// for value in a.values_mut() {
1454-
/// value.push_str("!");
1455-
/// }
1456-
///
1457-
/// let values: Vec<String> = a.values().cloned().collect();
1458-
/// assert_eq!(values, [String::from("hello!"),
1459-
/// String::from("goodbye!")]);
1460-
/// ```
1461-
#[unstable(feature = "map_values_mut", reason = "recently added", issue = "32551")]
1462-
pub fn values_mut<'a>(&'a mut self) -> ValuesMut<'a, K, V> {
1463-
ValuesMut { inner: self.iter_mut() }
1464-
}
1465-
14661406
/// Returns the number of elements in the map.
14671407
///
14681408
/// # Examples

branches/beta/src/libcollectionstest/btree/map.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -114,21 +114,6 @@ fn test_iter_rev() {
114114
test(size, map.into_iter().rev());
115115
}
116116

117-
#[test]
118-
fn test_values_mut() {
119-
let mut a = BTreeMap::new();
120-
a.insert(1, String::from("hello"));
121-
a.insert(2, String::from("goodbye"));
122-
123-
for value in a.values_mut() {
124-
value.push_str("!");
125-
}
126-
127-
let values: Vec<String> = a.values().cloned().collect();
128-
assert_eq!(values, [String::from("hello!"),
129-
String::from("goodbye!")]);
130-
}
131-
132117
#[test]
133118
fn test_iter_mixed() {
134119
let size = 10000;

branches/beta/src/libcollectionstest/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#![feature(enumset)]
2323
#![feature(iter_arith)]
2424
#![feature(map_entry_keys)]
25-
#![feature(map_values_mut)]
2625
#![feature(pattern)]
2726
#![feature(rand)]
2827
#![feature(set_recovery)]

branches/beta/src/libcore/cell.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@
147147
use clone::Clone;
148148
use cmp::{PartialEq, Eq};
149149
use default::Default;
150-
use marker::{Copy, Send, Sync, Sized, Unsize};
151-
use ops::{Deref, DerefMut, Drop, FnOnce, CoerceUnsized};
150+
use marker::{Copy, Send, Sync, Sized};
151+
use ops::{Deref, DerefMut, Drop, FnOnce};
152152
use option::Option;
153153
use option::Option::{None, Some};
154154

@@ -634,9 +634,6 @@ impl<'b, T: ?Sized> Ref<'b, T> {
634634
}
635635
}
636636

637-
#[unstable(feature = "coerce_unsized", issue = "27732")]
638-
impl<'b, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<Ref<'b, U>> for Ref<'b, T> {}
639-
640637
impl<'b, T: ?Sized> RefMut<'b, T> {
641638
/// Make a new `RefMut` for a component of the borrowed data, e.g. an enum
642639
/// variant.
@@ -769,9 +766,6 @@ impl<'b, T: ?Sized> DerefMut for RefMut<'b, T> {
769766
}
770767
}
771768

772-
#[unstable(feature = "coerce_unsized", issue = "27732")]
773-
impl<'b, T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<RefMut<'b, U>> for RefMut<'b, T> {}
774-
775769
/// The core primitive for interior mutability in Rust.
776770
///
777771
/// `UnsafeCell<T>` is a type that wraps some `T` and indicates unsafe interior operations on the

0 commit comments

Comments
 (0)