bors
8dbe63200d
auto merge of #19427 : scialex/rust/doc-attr-macros, r=sfackler
...
this allows one to, for example, use #[doc = $macro_var ] in macros.
2014-12-02 07:22:02 +00:00
Paul Collier
e407472f90
rustdoc: Check for href when prepending rootPath
...
Fixes #18354 .
2014-12-01 20:53:32 -08:00
bors
8a210af7e5
auto merge of #19450 : jbapple/rust/pq-pop-time, r=Gankro
...
pop calls siftdown, siftdown calls siftdown_range, and siftdown_range
loops on an index that can start as low as 0 and approximately doubles
each iteration.
2014-12-02 02:52:15 +00:00
Jim Apple
0212dff902
Pop on binary heaps does not have constant time complexity.
...
pop calls siftdown, siftdown calls siftdown_range, and siftdown_range
loops on an index that can start as low as 0 and approximately doubles
each iteration.
2014-12-01 18:12:48 -08:00
Michael Woerister
61a0a7f0a3
debuginfo: Fix multi-byte character related bug in cleanup scope handling.
...
Also see issue #18791 .
2014-12-01 16:22:00 -08:00
bors
5484d6f6d2
auto merge of #19439 : nodakai/rust/liblibc-getsid, r=acrichto
...
```
#include <unistd.h>
pid_t getsid(pid_t pid);
CONFORMING TO
SVr4, POSIX.1-2001.
```
2014-12-02 00:22:00 +00:00
bors
21ba1d5e58
auto merge of #19405 : jfager/rust/de-match-pyramid, r=bstrie
...
No semantic changes, no enabling `if let` where it wasn't already enabled.
2014-12-01 21:56:53 +00:00
NODA, Kai
2d3de6686e
test/run-make: another missing $(EXTRACFLAGS).
...
rust-lang/rust@102b1a5bf1 was not enough!
Signed-off-by: NODA, Kai <nodakai@gmail.com>
2014-12-02 04:52:29 +08:00
NODA, Kai
2018510dd9
liblibc: getsid() was missing though setsid() was already there.
...
include <unistd.h>
pid_t getsid(pid_t pid);
CONFORMING TO
SVr4, POSIX.1-2001.
Signed-off-by: NODA, Kai <nodakai@gmail.com>
2014-12-02 02:50:57 +08:00
bors
de95ad4c46
auto merge of #19436 : lifthrasiir/rust/rustdoc-short-src-paths, r=alexcrichton
...
Before: `doc/src/collections/home/lifthrasiir/git/rust/src/libcollections/vec.rs.html`
After: `doc/src/collections/vec.rs.html`
If the source code is in the parent dirs relative to the crate root, `..` is replaced with `up` as expected. Any other error like non-UTF-8 paths or drive-relative paths falls back to the absolute path.
There might be a way to improve on false negatives, but this alone should be enough for fixing #18370 .
2014-12-01 17:51:55 +00:00
Alexander Light
d3bbfb48bd
added negative test for macro expansion in attributes
2014-12-01 11:08:29 -05:00
Kang Seonghoon
08fb9aa2d2
rustdoc: Use relative paths in source renders.
...
Before: doc/src/collections/home/lifthrasiir/git/rust/src/libcollections/vec.rs.html
After: doc/src/collections/vec.rs.html
If the source code is in the parent dirs relative to the crate root,
`..` is replaced with `up` as expected. Any other error like non-UTF-8
paths or drive-relative paths falls back to the absolute path.
There might be a way to improve on false negatives, but this alone
should be enough for fixing #18370 .
2014-12-01 20:53:11 +09: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
Alexander Light
5c20a1535e
Add test for expanding doc strings in macros.
2014-11-30 21:05:32 -05:00
bors
222a1eb7e8
auto merge of #19418 : P1start/rust/unsafe-extern-trait, r=alexcrichton
...
Fixes #19398 .
2014-12-01 01:56:52 +00:00
Erick Tryzelaar
0d24780793
std: add Reader impl for &[u8]
2014-11-30 16:55:53 -08:00
Erick Tryzelaar
6687b2a6e1
std: add tests for the Vec<u8> Writer impl
2014-11-30 16:55:08 -08:00
jfager
a779e3b5c4
fix missed switch pointed out in review plus a few others
2014-11-30 18:11:40 -05:00
Piotr Czarnecki
b82624bf20
std: Change the behavior of reserve
for HashMap.
...
HashMap's `reserve` method now takes as an argument the *extra* space
to reserve.
[breaking-change]
2014-11-30 22:52:11 +01:00
Piotr Czarnecki
72c96badd2
std: Remove implicit shrinking from hash_map.
...
Implements fn shrink_to_fit for HashMap.
2014-11-30 22:52:10 +01: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
Alexander Light
798da23772
allow macro expansions in attributes
2014-11-30 09:51:15 -05:00
Corey Farwell
38e008eccd
Fix typo in tests makefile
2014-11-30 09:07:36 -05:00
Tobias Bucher
5048953deb
Simplify RefCell
code a bit, make deref
a no-op.
2014-11-30 11:50:35 +01: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
f5715f7867
Allow trailing commas in array patterns and attributes
2014-11-30 22:28:54 +13: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
jfager
232ffa039d
Replace some verbose match statements with their if let
equivalent.
...
No semantic changes, no enabling `if let` where it wasn't already enabled.
2014-11-29 16:41:21 -05: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
kulakowski
9460d1744f
Fix typo in reference.md
2014-11-29 01:38:32 -06:00
Jauhien Piatlicki
a74b492763
fix expand_quote_ty function as parse_ty was changed and needs no arguments now
2014-11-29 01:36:34 +01: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
Steve Klabnik
44abe92d66
small doc fixes
...
We don't need this &mut, and vec could use []s
2014-11-28 08:59:35 -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