Erick Tryzelaar
e688eb3b4f
rustup: add a RUST_ prefix to the rust-specific variables
2014-12-03 14:40:33 -08:00
Erick Tryzelaar
98f01f1f54
rustup: probe for the existance of tar
2014-12-03 14:40:33 -08:00
Erick Tryzelaar
3b4ad726f1
rustup: make rustup executable
2014-12-03 14:40:33 -08:00
Erick Tryzelaar
c7ae4a9664
whitespace cleanup
2014-12-03 14:40:33 -08:00
bors
09f04bf2c9
auto merge of #19417 : alexcrichton/rust/issue-19383, r=huonw
...
We only build LLVM for the host architecture, not the target architecture, so
this was just a minor typo in the parameters uses.
Closes #19383
2014-12-01 07:11:53 +00:00
bors
bda97e8557
auto merge of #19425 : frewsxcv/rust/patch-1, r=steveklabnik
...
![](http://img2.wikia.nocookie.net/__cb20140809223829/disney/images/5/56/Darkwing_Duck_Poster_Promo.jpg )
2014-12-01 05:11:50 +00:00
bors
222a1eb7e8
auto merge of #19418 : P1start/rust/unsafe-extern-trait, r=alexcrichton
...
Fixes #19398 .
2014-12-01 01:56:52 +00:00
bors
acad03a420
auto merge of #19415 : P1start/rust/error-message-fixes, r=alexcrichton
...
This is the style followed by most other error messages.
2014-11-30 19:46:53 +00:00
bors
3ee471cab5
auto merge of #19411 : lifthrasiir/rust/asm-clobbers-expanded, r=alexcrichton
...
I.e. we should not prematurely build operand constraints at the expansion time. Otherwise `--pretty expanded` diverges:
```
$ cat t.rs
#![feature(asm)]
pub fn main() { unsafe { asm!("" : : : "hello", "world") }; }
$ rustc t.rs --pretty
#![feature(asm)]
pub fn main() { unsafe { asm!("" : : : "hello" , "world") }; }
$ rustc t.rs --pretty expanded
#![feature(asm)]
#![feature(phase)]
#![no_std]
#![feature(globs)]
#[phase(plugin, link)]
extern crate "std" as std;
#[prelude_import]
use std::prelude::*;
pub fn main() { unsafe { asm!("": : : "~{hello},~{world}") }; }
```
(The last code *does* compile, but won't do the expected thing.)
2014-11-30 17:21:48 +00:00
Corey Farwell
38e008eccd
Fix typo in tests makefile
2014-11-30 09:07:36 -05:00
bors
52888a7c47
auto merge of #19369 : seanmonstar/rust/cow-str, r=alexcrichton
...
This implementation existed on MaybeOwned, but has been lost in the
transition to Cows. Let's put it back.
@aturon r?
2014-11-30 10:21:49 +00:00
Kang Seonghoon
133266f01c
trans: Eliminated redundant allocations.
2014-11-30 18:52:44 +09:00
P1start
63553a10ad
Fix the ordering of unsafe
and extern
in methods
...
This breaks code that looks like this:
trait Foo {
extern "C" unsafe fn foo();
}
impl Foo for Bar {
extern "C" unsafe fn foo() { ... }
}
Change such code to look like this:
trait Foo {
unsafe extern "C" fn foo();
}
impl Foo for Bar {
unsafe extern "C" fn foo() { ... }
}
Fixes #19398 .
[breaking-change]
2014-11-30 21:33:04 +13:00
Alex Crichton
1d4ce37946
mk: Use host llvm linkage paths, not target ones
...
We only build LLVM for the host architecture, not the target architecture, so
this was just a minor typo in the parameters uses.
Closes #19383
2014-11-30 00:01:19 -08:00
P1start
432adc675e
Adjust some error messages to start with a lowercase letter and not finish with a full stop
2014-11-30 20:26:53 +13:00
bors
dfaad04b7a
auto merge of #19365 : frewsxcv/rust/getopts-cleanup, r=alexcrichton
...
* Remove public reexports, as a part of #19253
* Rename getopts::Fail_ to getopts::Fail
* Didn't see a reason for the suffixed '_'
* Removed getopts::FailType
* Looked like it was only beings used for tests; refactored the tests
to stop requiring it
* A few other non-breaking trivial refactoring changes
[breaking-change]
2014-11-30 06:56:41 +00:00
Kang Seonghoon
989f906af3
syntax: Make asm!
clobbers a proper vector.
...
Otherwise `--pretty expanded` diverges.
2014-11-30 11:58:23 +09:00
bors
8d8f41b75f
auto merge of #19392 : murarth/rust/rustc-compile-twice, r=nick29581
...
Closes #19371
2014-11-29 21:51:34 +00:00
bors
6163581451
auto merge of #19401 : MatejLach/rust/guide_are_fix, r=steveklabnik
...
Fixes a small omission of `are` in the sentence:
`There also a few things you can do with a tuple as a whole, without...`
r @steveklabnik?
2014-11-29 17:31:32 +00:00
Murarth
004533ea75
Fix rustc panic on second compile_input
2014-11-29 09:50:48 -07:00
Matej Lach
d9a3ea88fc
Fix a simple typo
2014-11-29 13:26:32 +00:00
bors
29e928f2ba
auto merge of #19345 : steveklabnik/rust/gh19344, r=alexcrichton
...
Fixes #19344
2014-11-28 15:11:24 +00:00
Steve Klabnik
4d1cb7820d
reword faq to remove reference to indexing strings
...
Fixes #19344
2014-11-28 10:06:08 -05:00
bors
f33d879a70
auto merge of #19366 : liigo/rust/mipsel-linux, r=alexcrichton
...
Since #19076 was merged, I believe mipsel + linux maybe need add to the list here, too.
2014-11-28 11:31:22 +00:00
bors
fb52e69a50
auto merge of #19363 : michaelwoerister/rust/support-unboxed-closures, r=alexcrichton
...
This PR lets `rustc` generate debuginfo for variables captured by unboxed closures.
Fixes #19356
@nikomatsakis This PR will probably conflict with #19338 . If this gets merged before, you should be able to just leave the test case as it is (maybe remove the `#![feature(unboxed_closures)]` directive).
2014-11-28 09:31:24 +00:00
bors
832dc619ec
auto merge of #19360 : olivren/rust/master, r=Gankro
...
The previous code was giving an incorrect result (not x/3).
Also, this function does not work with signed integers. It now accepts `u32` instead of `i32`.
2014-11-28 07:31:26 +00:00
Sean McArthur
759032ee64
impl Str for CowString
...
This implementation existed on MaybeOwned, but has been lost in the
transition to Cows. Let's put it back.
2014-11-27 19:21:38 -08:00
bors
dbbb722f25
auto merge of #19355 : vhbit/rust/ios-backtrace-fix, r=alexcrichton
2014-11-28 02:46:24 +00:00
Liigo Zhuang
8c07db5aac
librustrt: stack_overflow support mipsel linux
2014-11-28 09:15:12 +08:00
bors
eb4e0f7704
auto merge of #19354 : barosl/rust/strconv-doc-fix, r=steveklabnik
...
- `int_to_str_bytes_common()` doesn't have a return value.
- `float_to_str_bytes_common()` has an old-style doc comment.
2014-11-28 00:01:23 +00:00
bors
3dd5443ebd
auto merge of #19349 : tomjakubowski/rust/rustdoc-struct-variant-vis, r=sfackler
...
Teach rustdoc that struct variant fields have inherited visibility.
Fix #19048
2014-11-27 21:46:24 +00:00
Corey Farwell
1919b12775
getopts: cleanup, renames, remove reexports
...
* Remove public reexports, as a part of #19253
* Rename getopts::Fail_ to getopts::Fail
* Didn't see a reason for the suffixed '_'
* Removed getopts::FailType
* Looked like it was only beings used for tests; refactored the tests
to stop requiring it
* A few other non-breaking trivial refactoring changes
[breaking-change]
2014-11-27 15:10:48 -05:00
bors
4eb72d268f
auto merge of #19112 : steveklabnik/rust/doc_rc, r=Gankro
2014-11-27 17:26:22 +00:00
Michael Woerister
251386c605
debuginfo: Make variables captured in unboxed closures available in debuginfo.
2014-11-27 16:38:17 +01:00
olivren
f01cbaa0ba
Fix example code for unreachable!
...
The previous code was giving an incorrect result (not x/3).
2014-11-27 15:31:11 +01:00
bors
82fc1aa875
auto merge of #19348 : SimonSapin/rust/patch-9, r=huonw
2014-11-27 10:11:19 +00:00
Valerii Hiora
8d1aab1854
Fixed iOS build after Iter stab
2014-11-27 11:34:43 +02:00
Barosl Lee
c67dbed11c
Documentation fix for std::num::strconv
...
- int_to_str_bytes_common() doesn't have a return value.
- float_to_str_bytes_common() has an old-style doc comment.
2014-11-27 17:14:00 +09:00
bors
66601647cd
auto merge of #19343 : sfackler/rust/less-special-attrs, r=alexcrichton
...
Descriptions and licenses are handled by Cargo now, so there's no reason
to keep these attributes around.
2014-11-27 06:41:17 +00:00
bors
f358ca45c8
auto merge of #19342 : alexcrichton/rust/rollup, r=alexcrichton
2014-11-27 04:32:12 +00:00
Alex Crichton
5816d7f530
More test fixes and rebase conflicts!
2014-11-26 18:10:57 -08:00
Alex Crichton
e8d743ec1d
rollup merge of #19329 : steveklabnik/doc_style_cleanup2
2014-11-26 16:51:02 -08:00
Steve Klabnik
cd5c8235c5
/*! -> //!
...
Sister pull request of https://github.com/rust-lang/rust/pull/19288 , but
for the other style of block doc comment.
2014-11-26 16:50:14 -08:00
Alex Crichton
60541cdc1e
Test fixes and rebase conflicts
2014-11-26 16:50:13 -08:00
Alex Crichton
62137b6d79
rollup merge of #19336 : apasel422/guide
...
- `s/(left|right) hand/\1-hand/`
- `s/parenthesis/parentheses/`
- `s/unicode/Unicode/`
- `s/validly-encoded/validly encoded/`
2014-11-26 16:50:13 -08:00
Alex Crichton
8f94ea0823
rollup merge of #19330 : csouth3/binaryheap-iter
...
There's no reason that BinaryHeap's iterator can't implement DoubleEnded and ExactSize, so add these implementations.
2014-11-26 16:50:13 -08:00
Alex Crichton
3a1d538e1c
rollup merge of #19328 : sfackler/buffered-get-mut
...
This is necessary to e.g. set a timeout on the underlying stream.
r? @alexcrichton
2014-11-26 16:50:13 -08:00
Alex Crichton
2298084058
rollup merge of #19326 : huonw/safer-syntax
...
This makes it correct (e.g. avoiding null pointers) and safe.
2014-11-26 16:50:12 -08:00
Alex Crichton
9c27ab6125
rollup merge of #19325 : ucarion/pointers-doc-formatting
...
The "Returning Pointers" section of the pointers guide broke from the convention of putting code between backticks. This PR fixes that. There's also a little trailing whitespace I took care of.
2014-11-26 16:50:12 -08:00
Alex Crichton
4c5b9669e8
rollup merge of #19322 : DiamondLovesYou/multi-llvmdeps
2014-11-26 16:50:12 -08:00