about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-30 03:30:43 -0700
committerbors <bors@rust-lang.org>2013-08-30 03:30:43 -0700
commit72bf8956298107d36430bbfc4a18177e7b2097c6 (patch)
treeffe5019eb5fb0badbc53893291b5973ef104435b /src/rustllvm/RustWrapper.cpp
parentf10e50a4beecbf6afa51870190458d34f216fe54 (diff)
parent4fea236a85b61b52fc3e16348886ff32f5b8210b (diff)
downloadrust-72bf8956298107d36430bbfc4a18177e7b2097c6.tar.gz
rust-72bf8956298107d36430bbfc4a18177e7b2097c6.zip
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.)
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions