]> git.lizzy.rs Git - rust.git/commit
auto merge of #8854 : huonw/rust/rt-papercuts, r=brson
authorbors <bors@rust-lang.org>
Fri, 30 Aug 2013 10:30:43 +0000 (03:30 -0700)
committerbors <bors@rust-lang.org>
Fri, 30 Aug 2013 10:30:43 +0000 (03:30 -0700)
commit72bf8956298107d36430bbfc4a18177e7b2097c6
treeffe5019eb5fb0badbc53893291b5973ef104435b
parentf10e50a4beecbf6afa51870190458d34f216fe54
parent4fea236a85b61b52fc3e16348886ff32f5b8210b
auto merge of #8854 : huonw/rust/rt-papercuts, r=brson

The only user-facing change is handling non-integer (and zero) `RUST_THREADS` more nicely:

```
$ RUST_THREADS=x rustc # old

You've met with a terrible fate, haven't you?

fatal runtime error: runtime tls key not initialized
Aborted
$ RUST_THREADS=x ./x86_64-unknown-linux-gnu/stage2/bin/rustc # new

You've met with a terrible fate, haven't you?

fatal runtime error: `RUST_THREADS` is `x`, should be a positive integer
Aborted
```

The other changes are converting some `for .. in range(x,y)` to `vec::from_fn` or `for .. in x.iter()` as appropriate; and removing a chain of (seemingly) unnecessary pointer casts.

(Also, fixes a typo in `extra::test` from #8823.)