]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoCleaner abstraction for type_substs
Sean Bowe [Mon, 14 Sep 2015 08:33:29 +0000 (02:33 -0600)]
Cleaner abstraction for type_substs

8 years agoAdded test for partially supplied type params in which remaining reference non-exista...
Sean Bowe [Mon, 14 Sep 2015 03:43:24 +0000 (21:43 -0600)]
Added test for partially supplied type params in which remaining reference non-existant self

8 years agoRefactor ty_infer invocation
Sean Bowe [Mon, 14 Sep 2015 03:22:30 +0000 (21:22 -0600)]
Refactor ty_infer invocation

8 years agoFixed regression in associated item resolution with default type parameters that...
Sean Bowe [Sun, 13 Sep 2015 20:14:04 +0000 (14:14 -0600)]
Fixed regression in associated item resolution with default type parameters that reference Self in traits.

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 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 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 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 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 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 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 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

8 years agoAdd test
Manish Goregaokar [Tue, 8 Sep 2015 19:04:55 +0000 (00:34 +0530)]
Add test

8 years agoFix fixme, add crate check
Manish Goregaokar [Tue, 8 Sep 2015 18:27:24 +0000 (23:57 +0530)]
Fix fixme, add crate check

8 years agoUse 'a different' for trait object mismatches too
Manish Goregaokar [Tue, 8 Sep 2015 18:20:48 +0000 (23:50 +0530)]
Use 'a different' for trait object mismatches too

8 years agoHandle trait objects
Manish Goregaokar [Tue, 8 Sep 2015 16:51:20 +0000 (22:21 +0530)]
Handle trait objects

8 years agoAuto merge of #28173 - alexcrichton:llvm-37, r=brson
bors [Tue, 8 Sep 2015 17:47:23 +0000 (17:47 +0000)]
Auto merge of #28173 - alexcrichton:llvm-37, r=brson

This updates the jemalloc and LLVM submodules to the recently released 4.0.0 and 3.7 versions. There's no breakage on the LLVM side of things because we had already been tracking the 3.7 release branch for awhile and no breakage was introduced, and jemalloc apparently is stable enough that nothing broke!

8 years agoAuto merge of #28292 - kud1ing:patch-1, r=steveklabnik
bors [Tue, 8 Sep 2015 15:55:28 +0000 (15:55 +0000)]
Auto merge of #28292 - kud1ing:patch-1, r=steveklabnik

The dates are taken from

  * https://www.rust-lang.org/install.html
  * http://blog.rust-lang.org/2015/06/25/Rust-1.1.html
  * http://blog.rust-lang.org/2015/05/15/Rust-1.0.html

8 years agorustdoc: Tweak the main template and CSS for semantic mark-up.
Kang Seonghoon [Tue, 8 Sep 2015 15:46:44 +0000 (00:46 +0900)]
rustdoc: Tweak the main template and CSS for semantic mark-up.

- 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 agoAdd note for when a type error comes from similarly named objects from two different...
Manish Goregaokar [Tue, 8 Sep 2015 14:18:56 +0000 (19:48 +0530)]
Add note for when a type error comes from similarly named objects from two different crate of the same name (#22750)

8 years agoFix small sentence about references
Steve Klabnik [Tue, 8 Sep 2015 13:33:53 +0000 (09:33 -0400)]
Fix small sentence about references

Thanks Eric, reported via email

8 years agoAuto merge of #28287 - llogiq:clippy, r=Manishearth
bors [Tue, 8 Sep 2015 13:04:22 +0000 (13:04 +0000)]
Auto merge of #28287 - llogiq:clippy, r=Manishearth

It's a large number of small improvements to the code, mostly readability-related, but removing closures and replacing `str::to_string()` with `.to_owned()` should also positively affect performance.

r? @Manishearth (once it compiles, of course :smile:)

8 years agoFix link to hygienic macros on Wikipedia
midinastasurazz [Tue, 8 Sep 2015 12:06:35 +0000 (14:06 +0200)]
Fix link to hygienic macros on Wikipedia

8 years agoReverted for-loop, it messes up type inference
llogiq [Tue, 8 Sep 2015 07:02:04 +0000 (09:02 +0200)]
Reverted for-loop, it messes up type inference

8 years agoAdd release days, fixes #28228
kud1ing [Tue, 8 Sep 2015 06:29:45 +0000 (08:29 +0200)]
Add release days, fixes #28228

8 years agoLet's see if lifetime elision works in this case
llogiq [Tue, 8 Sep 2015 06:05:59 +0000 (08:05 +0200)]
Let's see if lifetime elision works in this case

8 years agoFixed required type coercion
llogiq [Tue, 8 Sep 2015 05:41:50 +0000 (07:41 +0200)]
Fixed required type coercion

I'd have thought that the types of the slice::Split would have been inferred, but this appears not to be the case. Reverted this one change.

8 years agoAuto merge of #28291 - nrc:shr_span_fix, r=sfackler
bors [Tue, 8 Sep 2015 04:45:37 +0000 (04:45 +0000)]
Auto merge of #28291 - nrc:shr_span_fix, r=sfackler

8 years agoFix span bug with >> and type bindings
Nick Cameron [Tue, 8 Sep 2015 04:09:28 +0000 (16:09 +1200)]
Fix span bug with >> and type bindings