]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agomove middle::ty and related modules to middle/ty/
Ariel Ben-Yehuda [Sun, 6 Sep 2015 15:32:34 +0000 (18:32 +0300)]
move middle::ty and related modules to middle/ty/

8 years agoAuto merge of #28392 - arielb1:sort-bounds-list, r=eddyb
bors [Mon, 14 Sep 2015 05:08:27 +0000 (05:08 +0000)]
Auto merge of #28392 - arielb1:sort-bounds-list, r=eddyb

The sort key is a (DefId, Name), which is *not* stable between
runs, so we must re-sort when loading.

Fixes #24063
Fixes #25467
Fixes #27222
Fixes #28377

r? @eddyb

8 years agoAuto merge of #28383 - semarie:openbsd-jemalloc, r=alexcrichton
bors [Mon, 14 Sep 2015 03:25:25 +0000 (03:25 +0000)]
Auto merge of #28383 - semarie:openbsd-jemalloc, r=alexcrichton

ignore severals tests under openbsd as we have disabling jemalloc under
this target.

r? @alexcrichton

8 years agoAuto merge of #28368 - lfairy:write-impl, r=alexcrichton
bors [Mon, 14 Sep 2015 01:43:10 +0000 (01:43 +0000)]
Auto merge of #28368 - lfairy:write-impl, r=alexcrichton

There is already a corresponding impl for `std::io::Write`. This change
will make the two traits more consistent.

8 years agoAuto merge of #28357 - semmaz:libfmt-macros, r=alexcrichton
bors [Sun, 13 Sep 2015 23:09:27 +0000 (23:09 +0000)]
Auto merge of #28357 - semmaz:libfmt-macros, r=alexcrichton

This changes libfmt_macros `CharIndices` iterator into `Peekable` so it can be used without `.clone()`.

Also changed some `loop match` and `match` to `while let` and `if let` respectively (mostly for readability).

8 years agoAuto merge of #28178 - christopherdumas:fix_ice, r=nikomatsakis
bors [Sun, 13 Sep 2015 21:27:07 +0000 (21:27 +0000)]
Auto merge of #28178 - christopherdumas:fix_ice, r=nikomatsakis

This fixes the ICE, and makes it just a compiler error/warning. I'm not exactly sure that's whats wanted, so tell me if it isn't.

8 years agoAuto merge of #28339 - alexcrichton:stabilize-1.4, r=aturon
bors [Sun, 13 Sep 2015 19:45:15 +0000 (19:45 +0000)]
Auto merge of #28339 - alexcrichton:stabilize-1.4, r=aturon

The FCP is coming to a close and 1.4 is coming out soon, so this brings in the
libs team decision for all library features this cycle.

Stabilized APIs:

* `<Box<str>>::into_string`
* `Arc::downgrade`
* `Arc::get_mut`
* `Arc::make_mut`
* `Arc::try_unwrap`
* `Box::from_raw`
* `Box::into_raw`
* `CStr::to_str`
* `CStr::to_string_lossy`
* `CString::from_raw`
* `CString::into_raw`
* `IntoRawFd::into_raw_fd`
* `IntoRawFd`
* `IntoRawHandle::into_raw_handle`
* `IntoRawHandle`
* `IntoRawSocket::into_raw_socket`
* `IntoRawSocket`
* `Rc::downgrade`
* `Rc::get_mut`
* `Rc::make_mut`
* `Rc::try_unwrap`
* `Result::expect`
* `String::into_boxed_slice`
* `TcpSocket::read_timeout`
* `TcpSocket::set_read_timeout`
* `TcpSocket::set_write_timeout`
* `TcpSocket::write_timeout`
* `UdpSocket::read_timeout`
* `UdpSocket::set_read_timeout`
* `UdpSocket::set_write_timeout`
* `UdpSocket::write_timeout`
* `Vec::append`
* `Vec::split_off`
* `VecDeque::append`
* `VecDeque::retain`
* `VecDeque::split_off`
* `rc::Weak::upgrade`
* `rc::Weak`
* `slice::Iter::as_slice`
* `slice::IterMut::into_slice`
* `str::CharIndices::as_str`
* `str::Chars::as_str`
* `str::split_at_mut`
* `str::split_at`
* `sync::Weak::upgrade`
* `sync::Weak`
* `thread::park_timeout`
* `thread::sleep`

Deprecated APIs

* `BTreeMap::with_b`
* `BTreeSet::with_b`
* `Option::as_mut_slice`
* `Option::as_slice`
* `Result::as_mut_slice`
* `Result::as_slice`
* `f32::from_str_radix`
* `f64::from_str_radix`

Closes #27277
Closes #27718
Closes #27736
Closes #27764
Closes #27765
Closes #27766
Closes #27767
Closes #27768
Closes #27769
Closes #27771
Closes #27773
Closes #27775
Closes #27776
Closes #27785
Closes #27792
Closes #27795
Closes #27797

8 years agosort the existential bounds list in tydecode
Ariel Ben-Yehuda [Sun, 13 Sep 2015 15:22:05 +0000 (18:22 +0300)]
sort the existential bounds list in tydecode

The sort key is a (DefId, Name), which is *not* stable between
runs, so we must re-sort when loading.

Fixes #24063
Fixes #25467
Fixes #27222
Fixes #28377

8 years agoAuto merge of #28390 - christopherdumas:beginners_manuel, r=steveklabnik
bors [Sun, 13 Sep 2015 16:57:09 +0000 (16:57 +0000)]
Auto merge of #28390 - christopherdumas:beginners_manuel, r=steveklabnik

8 years agoAdded link to @bors cheetsheet (thanks, @nagisa)
christopherdumas [Sun, 13 Sep 2015 15:14:17 +0000 (08:14 -0700)]
Added link to @bors cheetsheet (thanks, @nagisa)

8 years agoAuto merge of #28286 - matklad:remove-dead-code, r=eddyb
bors [Sun, 13 Sep 2015 13:09:22 +0000 (13:09 +0000)]
Auto merge of #28286 - matklad:remove-dead-code, r=eddyb

There is a dead code in libsyntax/parser/parse.rs, when parsing structs.

Two functions are involved:

* [parse_item_struct](https://github.com/rust-lang/rust/blob/cd9c9f048f6aa0be091cd9835771ba0712bead4e/src/libsyntax/parse/parser.rs#L4691)
* [parse_tuple_struct_body](https://github.com/rust-lang/rust/blob/cd9c9f048f6aa0be091cd9835771ba0712bead4e/src/libsyntax/parse/parser.rs#L4769)

The problem is that both functions handle the case with unit structs. But because
`parse_tuple_struct_body` is called from `parse_item_struct`, it never faces
this case.

This PR removes unit struct case from `parse_tuple_struct_body` function. I tested with `make -j8 check-statge1`.

8 years agoAuto merge of #28370 - ranma42:slow_pat_gen, r=alexcrichton
bors [Sun, 13 Sep 2015 00:01:28 +0000 (00:01 +0000)]
Auto merge of #28370 - ranma42:slow_pat_gen, r=alexcrichton

Commit 9104a902c052c1ad7fd5c1245cb1e03f88aa2f70 fixed the generated
files, but that change would be lost (or require additional manual
intervention) if they are re-generated of if new architectures are
added.

cc #28273

8 years agoAdd a blanket impl for &mut std::fmt::Write
Chris Wong [Sat, 12 Sep 2015 03:19:25 +0000 (15:19 +1200)]
Add a blanket impl for &mut std::fmt::Write

There is already a corresponding impl for `std::io::Write`. This change
will make the two traits more consistent.

8 years agoRwind LLVM
christopherdumas [Sat, 12 Sep 2015 22:26:50 +0000 (15:26 -0700)]
Rwind LLVM

8 years agoAuto merge of #28366 - christopherdumas:beginners_manuel, r=steveklabnik
bors [Sat, 12 Sep 2015 22:15:41 +0000 (22:15 +0000)]
Auto merge of #28366 - christopherdumas:beginners_manuel, r=steveklabnik

This is something that I wish I had when I started contributing to Rust (not that long ago :). I plan on writing a manual for bors and the rust testing setup too, if there isn't one already.

8 years agoAuto merge of #28375 - tbu-:pr_sip_write, r=alexcrichton
bors [Sat, 12 Sep 2015 19:23:05 +0000 (19:23 +0000)]
Auto merge of #28375 - tbu-:pr_sip_write, r=alexcrichton

8 years agoAuto merge of #28371 - killercup:docs/trpl-markup-fixes, r=steveklabnik
bors [Sat, 12 Sep 2015 16:31:10 +0000 (16:31 +0000)]
Auto merge of #28371 - killercup:docs/trpl-markup-fixes, r=steveklabnik

- Headlines begin at 1st level now like the rest of the book
- All Headlines a blank line above and below
- Fix links in this chapter's TOC

r? @steveklabnik

8 years agodisable jemalloc tests for openbsd
Sébastien Marie [Sat, 12 Sep 2015 15:33:18 +0000 (17:33 +0200)]
disable jemalloc tests for openbsd

ignore severals tests under openbsd as we have disabling jemalloc under
this target.

8 years agoAdd a comment to explain the `#[inline(never)]` annotation
Andrea Canciani [Sat, 12 Sep 2015 15:05:29 +0000 (17:05 +0200)]
Add a comment to explain the `#[inline(never)]` annotation

and regenerate the platform intrinsics source files.

8 years agoCompiler test manual
christopherdumas [Sat, 12 Sep 2015 15:02:01 +0000 (08:02 -0700)]
Compiler test manual

8 years agoStop a private method on `SipHasher` from shadowing `Hasher::write`
Tobias Bucher [Sat, 12 Sep 2015 14:25:39 +0000 (15:25 +0100)]
Stop a private method on `SipHasher` from shadowing `Hasher::write`

8 years agoAuto merge of #28372 - killercup:docs/nomicon-markup-fixes, r=steveklabnik
bors [Sat, 12 Sep 2015 13:44:44 +0000 (13:44 +0000)]
Auto merge of #28372 - killercup:docs/nomicon-markup-fixes, r=steveklabnik

The style `[name][]` does not work with Pandoc, whereas `[name]` does. I hope hoedown accepts this as well.

r? @steveklabnik

8 years agoNomicon: Fix Links
Pascal Hertleif [Sat, 12 Sep 2015 10:13:24 +0000 (12:13 +0200)]
Nomicon: Fix Links

The style `[name][]` does not work with Pandoc, whereas `[name]` does.
I hope hoedown accepts this as well.

8 years agoTRPL: Fix Headlines, Links in "Error Handling"
Pascal Hertleif [Sat, 12 Sep 2015 10:09:59 +0000 (12:09 +0200)]
TRPL: Fix Headlines, Links in "Error Handling"

- Headlines begin at 1st level now like the rest of the book
- All Headlines a blank line above and below
- Fix links in this chapter's TOC

8 years agoFix generator.py to avoid pathological inlining
Andrea Canciani [Sat, 12 Sep 2015 07:25:11 +0000 (09:25 +0200)]
Fix generator.py to avoid pathological inlining

Commit 9104a902c052c1ad7fd5c1245cb1e03f88aa2f70 fixed the generated
files, but that change would be lost (or require additional manual
intervention) if they are re-generated of if new architectures are
added.

cc #28273

8 years agoAuto merge of #28340 - brson:configure, r=alexcrichton
bors [Sat, 12 Sep 2015 02:57:01 +0000 (02:57 +0000)]
Auto merge of #28340 - brson:configure, r=alexcrichton

Redirect stdout on the python bogosity detector. This is printing
pwd to the terminal currently.

Reformat the bogus python/cmake messages so they format correctly.
echo does not always escape newlines (it doesn't here), and multiline
strings don't whitespace munch.

r? @alexcrichton

8 years agoAdded useful links section
christopherdumas [Fri, 11 Sep 2015 23:21:11 +0000 (16:21 -0700)]
Added useful links section

8 years agoAuto merge of #28350 - dotdash:llvm_fix, r=eddyb
bors [Fri, 11 Sep 2015 23:03:47 +0000 (23:03 +0000)]
Auto merge of #28350 - dotdash:llvm_fix, r=eddyb

8 years agoconfigure cleanup on windows
Brian Anderson [Thu, 10 Sep 2015 21:41:14 +0000 (14:41 -0700)]
configure cleanup on windows

Redirect stdout on the python bogosity detector. This is printing
pwd to the terminal currently.

Reformat the bogus python/cmake messages so they format correctly.
echo does not always escape newlines (it doesn't here), and multiline
strings don't whitespace munch.

8 years agoAuto merge of #28306 - alexcrichton:less-rt, r=brson
bors [Fri, 11 Sep 2015 19:42:19 +0000 (19:42 +0000)]
Auto merge of #28306 - alexcrichton:less-rt, r=brson

This commit does some refactoring to make almost all of the `std::rt` private.
Specifically, the following items are no longer part of its API:

* DEFAULT_ERROR_CODE
* backtrace
* unwind
* args
* at_exit
* cleanup
* heap (this is just alloc::heap)
* min_stack
* util

The module is now tagged as `#[doc(hidden)]` as the only purpose it's serve is
an entry point for the `panic!` macro via the `begin_unwind` and
`begin_unwind_fmt` reexports.

8 years agoFixed test
christopherdumas [Fri, 11 Sep 2015 18:53:45 +0000 (11:53 -0700)]
Fixed test

8 years agostd: Internalize almost all of `std::rt`
Alex Crichton [Tue, 8 Sep 2015 22:53:46 +0000 (15:53 -0700)]
std: Internalize almost all of `std::rt`

This commit does some refactoring to make almost all of the `std::rt` private.
Specifically, the following items are no longer part of its API:

* DEFAULT_ERROR_CODE
* backtrace
* unwind
* args
* at_exit
* cleanup
* heap (this is just alloc::heap)
* min_stack
* util

The module is now tagged as `#[doc(hidden)]` as the only purpose it's serve is
an entry point for the `panic!` macro via the `begin_unwind` and
`begin_unwind_fmt` reexports.

8 years agoAuto merge of #28348 - petrochenkov:novirt, r=alexcrichton
bors [Fri, 11 Sep 2015 17:58:59 +0000 (17:58 +0000)]
Auto merge of #28348 - petrochenkov:novirt, r=alexcrichton

Noticed these yesterday while reading libsyntax

8 years agostd: Stabilize/deprecate features for 1.4
Alex Crichton [Thu, 10 Sep 2015 20:26:44 +0000 (13:26 -0700)]
std: Stabilize/deprecate features for 1.4

The FCP is coming to a close and 1.4 is coming out soon, so this brings in the
libs team decision for all library features this cycle.

Stabilized APIs:

* `<Box<str>>::into_string`
* `Arc::downgrade`
* `Arc::get_mut`
* `Arc::make_mut`
* `Arc::try_unwrap`
* `Box::from_raw`
* `Box::into_raw`
* `CStr::to_str`
* `CStr::to_string_lossy`
* `CString::from_raw`
* `CString::into_raw`
* `IntoRawFd::into_raw_fd`
* `IntoRawFd`
* `IntoRawHandle::into_raw_handle`
* `IntoRawHandle`
* `IntoRawSocket::into_raw_socket`
* `IntoRawSocket`
* `Rc::downgrade`
* `Rc::get_mut`
* `Rc::make_mut`
* `Rc::try_unwrap`
* `Result::expect`
* `String::into_boxed_slice`
* `TcpSocket::read_timeout`
* `TcpSocket::set_read_timeout`
* `TcpSocket::set_write_timeout`
* `TcpSocket::write_timeout`
* `UdpSocket::read_timeout`
* `UdpSocket::set_read_timeout`
* `UdpSocket::set_write_timeout`
* `UdpSocket::write_timeout`
* `Vec::append`
* `Vec::split_off`
* `VecDeque::append`
* `VecDeque::retain`
* `VecDeque::split_off`
* `rc::Weak::upgrade`
* `rc::Weak`
* `slice::Iter::as_slice`
* `slice::IterMut::into_slice`
* `str::CharIndices::as_str`
* `str::Chars::as_str`
* `str::split_at_mut`
* `str::split_at`
* `sync::Weak::upgrade`
* `sync::Weak`
* `thread::park_timeout`
* `thread::sleep`

Deprecated APIs

* `BTreeMap::with_b`
* `BTreeSet::with_b`
* `Option::as_mut_slice`
* `Option::as_slice`
* `Result::as_mut_slice`
* `Result::as_slice`
* `f32::from_str_radix`
* `f64::from_str_radix`

Closes #27277
Closes #27718
Closes #27736
Closes #27764
Closes #27765
Closes #27766
Closes #27767
Closes #27768
Closes #27769
Closes #27771
Closes #27773
Closes #27775
Closes #27776
Closes #27785
Closes #27792
Closes #27795
Closes #27797

8 years agosome code improvements in libfmt_macros
Simon Mazur [Thu, 10 Sep 2015 13:48:11 +0000 (16:48 +0300)]
some code improvements in libfmt_macros

8 years agoChanged libfmt_macros Parse iterator to Peekable
Simon Mazur [Thu, 10 Sep 2015 12:03:22 +0000 (15:03 +0300)]
Changed libfmt_macros Parse iterator to Peekable

8 years agoUpdate LLVM to fix nightly build failures
Björn Steinbrink [Fri, 11 Sep 2015 09:46:01 +0000 (11:46 +0200)]
Update LLVM to fix nightly build failures

8 years agoAuto merge of #28354 - dotdash:slow_plat, r=eddyb
bors [Fri, 11 Sep 2015 14:45:32 +0000 (14:45 +0000)]
Auto merge of #28354 - dotdash:slow_plat, r=eddyb

When the inliner has to decided if it wants to inline a function A into an
internal function B, it first checks whether it would be more profitable
to inline B into its callees instead. This means that it has to analyze
B, which involves checking the assumption cache. Building the assumption
cache requires scanning the whole function, and because inlining
currently clears the assumption cache, this scan happens again and
again, getting even slower as the function grows from inlining.

As inlining the huge find functions isn't really useful anyway, we can
mark them as noinline, which skips the cost analysis and reduces compile
times by as much as 70%.

cc #28273

8 years agoAvoid triggering a pathological case in the LLVM inliner
Björn Steinbrink [Fri, 11 Sep 2015 14:37:52 +0000 (16:37 +0200)]
Avoid triggering a pathological case in the LLVM inliner

When the inliner has to decided if it wants to inline a function A into an
internal function B, it first checks whether it would be more profitable
to inline B into its callees instead. This means that it has to analyze
B, which involves checking the assumption cache. Building the assumption
cache requires scanning the whole function, and because inlining
currently clears the assumption cache, this scan happens again and
again, getting even slower as the function grows from inlining.

As inlining the huge find functions isn't really useful anyway, we can
mark them as noinline, which skips the cost analysis and reduces compile
times by as much as 70%.

cc #28273

8 years agoAuto merge of #28338 - erickt:str-cmp, r=bluss
bors [Fri, 11 Sep 2015 10:33:02 +0000 (10:33 +0000)]
Auto merge of #28338 - erickt:str-cmp, r=bluss

llvm seems to be having some trouble optimizing the iterator-based string comparsion method into some equivalent to memcmp. This explicitly calls out to the memcmp intrinisic in order to allow llvm to generate better code. In some manual benchmarking, this memcmp-based approach is 20 times faster than the iterator approach.

8 years agoAuto merge of #28255 - nrc:fmt4, r=pnkfelix
bors [Fri, 11 Sep 2015 08:42:31 +0000 (08:42 +0000)]
Auto merge of #28255 - nrc:fmt4, r=pnkfelix

r? @pnkfelix

8 years agomanual fixups
Nick Cameron [Sat, 5 Sep 2015 03:46:45 +0000 (15:46 +1200)]
manual fixups

8 years agorustfmt libgraphviz
Nick Cameron [Sat, 5 Sep 2015 03:44:26 +0000 (15:44 +1200)]
rustfmt libgraphviz

8 years agoRemove some remains of virtual structs from the parser
Vadim Petrochenkov [Fri, 11 Sep 2015 07:09:22 +0000 (10:09 +0300)]
Remove some remains of virtual structs from the parser

8 years agoAuto merge of #28328 - tshepang:unusual, r=brson
bors [Fri, 11 Sep 2015 06:28:17 +0000 (06:28 +0000)]
Auto merge of #28328 - tshepang:unusual, r=brson

8 years agoAuto merge of #28312 - GuillaumeGomez:privacy, r=Manishearth
bors [Fri, 11 Sep 2015 04:23:40 +0000 (04:23 +0000)]
Auto merge of #28312 - GuillaumeGomez:privacy, r=Manishearth

r? @Manishearth

8 years agoAdded test
christopherdumas [Fri, 11 Sep 2015 03:44:03 +0000 (20:44 -0700)]
Added test

8 years agoAuto merge of #28337 - apasel422:tests, r=alexcrichton
bors [Fri, 11 Sep 2015 01:18:19 +0000 (01:18 +0000)]
Auto merge of #28337 - apasel422:tests, r=alexcrichton

Closes #17994.

8 years agoFix ICE per #28172
christopherdumas [Wed, 2 Sep 2015 22:48:21 +0000 (15:48 -0700)]
Fix ICE per #28172

8 years agoOptimize string comparison by using memcmp
Erick Tryzelaar [Thu, 10 Sep 2015 23:46:34 +0000 (16:46 -0700)]
Optimize string comparison by using memcmp

llvm seems to be having some trouble optimizing the iterator-based
string comparsion method into some equivalent to memcmp. This
explicitly calls out to the memcmp intrinisic in order to allow
llvm to generate better code. In some manual benchmarking, this
memcmp-based approach is 20 times faster than the iterator approach.

8 years agoAuto merge of #28331 - semarie:openbsd-configure-egcc, r=alexcrichton
bors [Thu, 10 Sep 2015 23:33:31 +0000 (23:33 +0000)]
Auto merge of #28331 - semarie:openbsd-configure-egcc, r=alexcrichton

under OpenBSD, it could be have present multiples versions of gcc compiler:
  - gcc-4.2 (with patchs) : c/c++ compiler present in `/usr/bin`. It is unusable to build recent LLVM (so rustc too).
  - gcc/g++ -4.9 : c/c++ compiler, installed as third-party with "ports" mechanism. The compiler is installed in `/usr/local` as `egcc` (and `eg++`).

this PR adds probing for `egcc` for `CFG_GCC`, if the first probed `gcc` is too old. It will set `CC` and `CXX` too, in order to pass the variables to LLVM configure if builded.

please note this PR is a first step in order to build rustc under OpenBSD with unpatched tree.

r? @alexcrichton

cc @brson @dhuseby

8 years agoAuto merge of #28321 - nikomatsakis:issue-27616, r=pnkfelix
bors [Thu, 10 Sep 2015 21:48:29 +0000 (21:48 +0000)]
Auto merge of #28321 - nikomatsakis:issue-27616, r=pnkfelix

Fixes #27616.

r? @pnkfelix

8 years agoAdd test for #17994
Andrew Paseltiner [Thu, 10 Sep 2015 20:02:00 +0000 (16:02 -0400)]
Add test for #17994

Closes #17994.

8 years agoAuto merge of #28301 - christopherdumas:intergrate_error_burnstushi, r=steveklabnik
bors [Thu, 10 Sep 2015 20:03:30 +0000 (20:03 +0000)]
Auto merge of #28301 - christopherdumas:intergrate_error_burnstushi, r=steveklabnik

This was @steveklabnik's idea. Thanks @BurntSushi for the awesome blog post!
r? @steveklabnik

8 years agoAuto merge of #28318 - dongz9:master, r=eddyb
bors [Thu, 10 Sep 2015 18:18:45 +0000 (18:18 +0000)]
Auto merge of #28318 - dongz9:master, r=eddyb

Fix the following error when running configure with llvm 3.8svn:

configure: error: bad LLVM version: 3.8.0svn, need >=3.5

8 years agodisable jemalloc on OpenBSD
Sébastien Marie [Thu, 10 Sep 2015 16:50:01 +0000 (18:50 +0200)]
disable jemalloc on OpenBSD

depending of the compiler used, jemalloc configure don't detect
correctly some parameters.

8 years agoAdapted @BurtSushi's blog post for the error handling chapter, rewrite the case study.
christopherdumas [Thu, 10 Sep 2015 16:48:04 +0000 (09:48 -0700)]
Adapted @BurtSushi's blog post for the error handling chapter, rewrite the case study.

8 years agoAuto merge of #28332 - apasel422:tests, r=alexcrichton
bors [Thu, 10 Sep 2015 16:29:49 +0000 (16:29 +0000)]
Auto merge of #28332 - apasel422:tests, r=alexcrichton

Closes #22638.
Closes #22872.
Closes #23024.
Closes #23046.

8 years agoAdd tests for #22638, #22872, #23024, #23046
Andrew Paseltiner [Thu, 10 Sep 2015 15:26:19 +0000 (11:26 -0400)]
Add tests for #22638, #22872, #23024, #23046

Closes #22638.
Closes #22872.
Closes #23024.
Closes #23046.

8 years agoAuto merge of #28329 - tshepang:comfort, r=steveklabnik
bors [Thu, 10 Sep 2015 13:44:48 +0000 (13:44 +0000)]
Auto merge of #28329 - tshepang:comfort, r=steveklabnik

8 years agoAdd error code for private struct field issue
Guillaume Gomez [Wed, 9 Sep 2015 10:16:43 +0000 (12:16 +0200)]
Add error code for private struct field issue

8 years agolibsyntax: minor clean up
Aleksey Kladov [Thu, 10 Sep 2015 12:14:24 +0000 (15:14 +0300)]
libsyntax: minor clean up

Escape `{` in format strings as `{{`, instead of using a substitution

8 years agoopenbsd: probe CFG_GCC egcc
Sébastien Marie [Thu, 10 Sep 2015 06:50:12 +0000 (08:50 +0200)]
openbsd: probe CFG_GCC egcc

if default CFG_GCC is too old, probe also egcc (which is gcc from
ports).

set CC/CXX too, in order to pass them to LLVM

8 years agoAuto merge of #28266 - jackwilsonv:patch-4, r=steveklabnik
bors [Thu, 10 Sep 2015 07:39:50 +0000 (07:39 +0000)]
Auto merge of #28266 - jackwilsonv:patch-4, r=steveklabnik

r? @steveklabnik

8 years agoAuto merge of #28282 - DiamondLovesYou:optional-data-layout, r=alexcrichton
bors [Thu, 10 Sep 2015 05:39:48 +0000 (05:39 +0000)]
Auto merge of #28282 - DiamondLovesYou:optional-data-layout, r=alexcrichton

NFC.

8 years agoreference: not comfortable seeing a paragraph starting with a lowercase letter
Tshepang Lekhonkhobe [Thu, 10 Sep 2015 04:03:32 +0000 (06:03 +0200)]
reference: not comfortable seeing a paragraph starting with a lowercase letter

8 years agoAuto merge of #28323 - tshepang:idiom, r=steveklabnik
bors [Thu, 10 Sep 2015 03:48:30 +0000 (03:48 +0000)]
Auto merge of #28323 - tshepang:idiom, r=steveklabnik

8 years agoreference: using periods here is unusual
Tshepang Lekhonkhobe [Thu, 10 Sep 2015 03:48:08 +0000 (05:48 +0200)]
reference: using periods here is unusual

8 years agoAuto merge of #28232 - brson:tprl, r=steveklabnik
bors [Thu, 10 Sep 2015 00:37:55 +0000 (00:37 +0000)]
Auto merge of #28232 - brson:tprl, r=steveklabnik

r? @steveklabnik

The phrase 'academic research' rubs me the wrong way. I have some concern about the role of this page and think it could be expanded to more than just academic papers and cleaned up a lot.

8 years agoRefactor `TargetOptions::data_layout` into an `Option`al value to reflect current...
Richard Diamond [Mon, 7 Sep 2015 05:35:57 +0000 (00:35 -0500)]
Refactor `TargetOptions::data_layout` into an `Option`al value to reflect current usage.

NFC.

8 years agoAuto merge of #28250 - durka:patch-7, r=steveklabnik
bors [Wed, 9 Sep 2015 22:41:23 +0000 (22:41 +0000)]
Auto merge of #28250 - durka:patch-7, r=steveklabnik

I took a stab at fixing #28064. Not sure if this all-features-in-one-example approach is the right one. Also I completely made up the terms "star globbing" and "brace expansion globbing" -- they are just called "glob-like syntax" in the reference.

8 years agoreference: format code snippets in an idiomatic manner
Tshepang Lekhonkhobe [Wed, 9 Sep 2015 20:35:49 +0000 (22:35 +0200)]
reference: format code snippets in an idiomatic manner

8 years agoTreat loans of 'static data as extending to the end of the enclosing
Niko Matsakis [Wed, 9 Sep 2015 20:04:55 +0000 (16:04 -0400)]
Treat loans of 'static data as extending to the end of the enclosing
fn. Fixes #27616.

8 years agoAuto merge of #28299 - apasel422:tests, r=alexcrichton
bors [Wed, 9 Sep 2015 18:40:55 +0000 (18:40 +0000)]
Auto merge of #28299 - apasel422:tests, r=alexcrichton

Closes #17001
Closes #21449
Closes #22992
Closes #23208
Closes #23442

8 years agoAuto merge of #28313 - rutsky:patch-4, r=alexcrichton
bors [Wed, 9 Sep 2015 16:44:43 +0000 (16:44 +0000)]
Auto merge of #28313 - rutsky:patch-4, r=alexcrichton

Follow-up fix for PR #28283.

8 years agoFix clang too
Dong Zhou [Wed, 9 Sep 2015 15:45:59 +0000 (11:45 -0400)]
Fix clang too

8 years agoFix configure for LLVM 3.8
Dong Zhou [Wed, 9 Sep 2015 15:32:05 +0000 (11:32 -0400)]
Fix configure for LLVM 3.8

8 years agoAuto merge of #28316 - Manishearth:rollup, r=Manishearth
bors [Wed, 9 Sep 2015 14:42:00 +0000 (14:42 +0000)]
Auto merge of #28316 - Manishearth:rollup, r=Manishearth

- Successful merges: #28281, #28283, #28289, #28294, #28295, #28305
- Failed merges:

8 years agoRollup merge of #28305 - apasel422:copyright, r=alexcrichton
Manish Goregaokar [Wed, 9 Sep 2015 13:06:12 +0000 (18:36 +0530)]
Rollup merge of #28305 - apasel422:copyright, r=alexcrichton

8 years agoRollup merge of #28295 - steveklabnik:language_fix, r=alexcrichton
Manish Goregaokar [Wed, 9 Sep 2015 13:06:11 +0000 (18:36 +0530)]
Rollup merge of #28295 - steveklabnik:language_fix, r=alexcrichton

Thanks Eric, reported via email

8 years agoRollup merge of #28294 - midinastasurazz:patch-3, r=steveklabnik
Manish Goregaokar [Wed, 9 Sep 2015 13:06:11 +0000 (18:36 +0530)]
Rollup merge of #28294 - midinastasurazz:patch-3, r=steveklabnik

The link address is defined below the paragraph so no need to have it inline.

8 years agoRollup merge of #28289 - shepmaster:include_bytes-docs, r=alexcrichton
Manish Goregaokar [Wed, 9 Sep 2015 13:06:11 +0000 (18:36 +0530)]
Rollup merge of #28289 - shepmaster:include_bytes-docs, r=alexcrichton

This can be shown with the example code

```rust
fn main() {
    let () = include_bytes!("/etc/hosts");
}

Which will have the error:

expected `&[u8; 195]`,
    found `()`

8 years agoRollup merge of #28283 - rutsky:patch-3, r=steveklabnik
Manish Goregaokar [Wed, 9 Sep 2015 13:06:11 +0000 (18:36 +0530)]
Rollup merge of #28283 - rutsky:patch-3, r=steveklabnik

r? @steveklabnik

8 years agoRollup merge of #28281 - rutsky:patch-2, r=steveklabnik
Manish Goregaokar [Wed, 9 Sep 2015 13:06:10 +0000 (18:36 +0530)]
Rollup merge of #28281 - rutsky:patch-2, r=steveklabnik

r? @steveklabnik

8 years agoAuto merge of #28300 - Manishearth:crate_err, r=eddyb
bors [Wed, 9 Sep 2015 10:54:05 +0000 (10:54 +0000)]
Auto merge of #28300 - Manishearth:crate_err, r=eddyb

Partially fixes #22750

I'll write a test for this when I figure out how to.

r? @eddyb

cc @steveklabnik

8 years agoAdd error code for tuple struct constructor error
Guillaume Gomez [Wed, 9 Sep 2015 10:08:21 +0000 (12:08 +0200)]
Add error code for tuple struct constructor error

8 years agoAdd error code for unnecessary visibility qualifier
Guillaume Gomez [Wed, 9 Sep 2015 09:58:27 +0000 (11:58 +0200)]
Add error code for unnecessary visibility qualifier

8 years agofix capitalization inside sentense
Vladimir Rutsky [Wed, 9 Sep 2015 09:54:31 +0000 (12:54 +0300)]
fix capitalization inside sentense

8 years agoAdd error code for enum item visibility error
Guillaume Gomez [Wed, 9 Sep 2015 09:47:00 +0000 (11:47 +0200)]
Add error code for enum item visibility error

8 years agoAdd new error code for visibility inside a function
Guillaume Gomez [Wed, 9 Sep 2015 09:15:33 +0000 (11:15 +0200)]
Add new error code for visibility inside a function

8 years agoAdd error code for privacy error on exported signature
Guillaume Gomez [Wed, 9 Sep 2015 09:08:35 +0000 (11:08 +0200)]
Add error code for privacy error on exported signature

8 years agoAdd new error code for trait privacy error
Guillaume Gomez [Wed, 9 Sep 2015 09:02:52 +0000 (11:02 +0200)]
Add new error code for trait privacy error

8 years agoAuto merge of #28297 - lifthrasiir:rustdoc-html-tweaks, r=alexcrichton
bors [Wed, 9 Sep 2015 08:00:10 +0000 (08:00 +0000)]
Auto merge of #28297 - lifthrasiir:rustdoc-html-tweaks, r=alexcrichton

I have tested the result with w3m and I believe this is better than the current template. In detail:

- `section.sidebar` -> `nav.sidebar`, also added an unordered list.
- `div#help` -> `aside#help`, also added a hidden heading.
- The current crate is now emphasized in the sidebar.

Fixes #16310.

8 years agoAuto merge of #28277 - DiamondLovesYou:intrinsic-unnamed-addr, r=huonw
bors [Wed, 9 Sep 2015 03:46:32 +0000 (03:46 +0000)]
Auto merge of #28277 - DiamondLovesYou:intrinsic-unnamed-addr, r=huonw

Intrinsics never have an address, so it doesn't make sense to say that their
address is unnamed.

8 years agoAuto merge of #28198 - alexcrichton:from-raw-mut, r=aturon
bors [Wed, 9 Sep 2015 01:16:54 +0000 (01:16 +0000)]
Auto merge of #28198 - alexcrichton:from-raw-mut, r=aturon

Conventionally in C `*mut T` is a transfer of ownership where `*const T` is a
loan, so `*mut T` is likely the more appropriate return type for these
functions. Additionally, this more closely mirrors the APIs on `Box` for this
sort of functionality.

cc #27769

8 years agoRemove references to removed Valgrind headers
Andrew Paseltiner [Tue, 8 Sep 2015 23:01:26 +0000 (19:01 -0400)]
Remove references to removed Valgrind headers

8 years agoAuto merge of #28264 - mneumann:dragonfly_backend_fixes2, r=alexcrichton
bors [Tue, 8 Sep 2015 22:22:36 +0000 (22:22 +0000)]
Auto merge of #28264 - mneumann:dragonfly_backend_fixes2, r=alexcrichton

Having -L/usr/local/lib in the linking path by default interferes
with an already installed version of Rust during building of Rust.

8 years agoAdd tests for #17001, #21449, #22992, #23208, #23442
Andrew Paseltiner [Tue, 8 Sep 2015 18:19:08 +0000 (14:19 -0400)]
Add tests for #17001, #21449, #22992, #23208, #23442

Closes #17001
Closes #21449
Closes #22992
Closes #23208
Closes #23442

8 years agoAuto merge of #28241 - dhuseby:adding_openbsd_snapshot, r=alexcrichton
bors [Tue, 8 Sep 2015 20:34:50 +0000 (20:34 +0000)]
Auto merge of #28241 - dhuseby:adding_openbsd_snapshot, r=alexcrichton

@alexcrichton please upload this snapshot when landing:

https://github.com/dhuseby/rust-manual-snapshots/raw/master/rust-stage0-2015-08-11-1af31d4-openbsd-x86_64-9cae790c4ca19b1b29a048605ce249fe1c20a498.tar.bz2

BTW, this is the snapshot that @semarie has published on his website for use in the OpenBSD port for rust.  Credit goes to him.

8 years agoPrint correct crate name
Manish Goregaokar [Tue, 8 Sep 2015 19:52:03 +0000 (01:22 +0530)]
Print correct crate name