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
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
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
Alex Crichton
99338cf8f6
rollup merge of #19317 : sfackler/xcrate-namespace
...
The chunk of code in encoder.rs was at one point deleted, but must have come back in a rebase or something :(
Closes #19293
2014-11-26 16:50:12 -08:00
Alex Crichton
8999a7987c
rollup merge of #19316 : steveklabnik/gh18876
...
Fixes #18876
2014-11-26 16:50:12 -08:00
Alex Crichton
52ca9523a5
rollup merge of #19313 : steveklabnik/gh18844
...
Fixes #18844
2014-11-26 16:50:11 -08:00
Alex Crichton
935a39b3cd
rollup merge of #19312 : steveklabnik/gh19177
2014-11-26 16:50:10 -08:00
Alex Crichton
8790ab148b
rollup merge of #19310 : steveklabnik/gh19178
...
Fixes #19178
2014-11-26 16:49:49 -08:00
Alex Crichton
989d7a78bb
rollup merge of #19308 : thestinger/oom
...
Closes #19305
2014-11-26 16:49:49 -08:00
Alex Crichton
6939e4f58c
rollup merge of #19307 : steveklabnik/gh19199
...
Fixes #19199
2014-11-26 16:49:49 -08:00
Alex Crichton
ea4944233e
rollup merge of #19304 : steveklabnik/gh19302
...
Fixes #19302 .
Also made a minor cosmetic change to bring the example in line with style guidelines.
2014-11-26 16:49:49 -08:00
Alex Crichton
69e7554a47
rollup merge of #19301 : Gankro/take-fix
...
Was taking the value out correctly, but then not doing anything to actually fix the table. derp.
2014-11-26 16:49:49 -08:00
Alex Crichton
b095eb1720
rollup merge of #19300 : killercup/patch-1
...
Just saw this when looking at #19297 and couldn't find an issue/PR dealing with this. #18773 seems to have missed this file.
Compiler output is generated [here](770378a313/src/librustc_trans/driver/mod.rs (L466)
).
cc @steveklabnik
2014-11-26 16:49:48 -08:00