]> git.lizzy.rs Git - rust.git/log
rust.git
8 years agoAuto merge of #29012 - tari:issue-28676, r=luqmana
bors [Thu, 15 Oct 2015 00:14:17 +0000 (00:14 +0000)]
Auto merge of #29012 - tari:issue-28676, r=luqmana

Fixes #28676.

There doesn't seem to be a good way to add a test for this, but I tested the repro in #28676 and confirmed it now yields the correct result.

8 years agoAdd test case for #28676.
Peter Marheine [Wed, 14 Oct 2015 20:25:38 +0000 (14:25 -0600)]
Add test case for #28676.

8 years agoAuto merge of #29044 - Ms2ger:cleanup-log, r=alexcrichton
bors [Wed, 14 Oct 2015 19:54:47 +0000 (19:54 +0000)]
Auto merge of #29044 - Ms2ger:cleanup-log, r=alexcrichton

8 years agoAuto merge of #29003 - tari:freebsd-current_exe-vec, r=alexcrichton
bors [Wed, 14 Oct 2015 18:03:47 +0000 (18:03 +0000)]
Auto merge of #29003 - tari:freebsd-current_exe-vec, r=alexcrichton

Fixes #28995.

8 years agoAuto merge of #29001 - arielb1:normalized-foreign, r=eddyb
bors [Wed, 14 Oct 2015 16:12:51 +0000 (16:12 +0000)]
Auto merge of #29001 - arielb1:normalized-foreign, r=eddyb

This is needed as item types are allowed to be unnormalized.

Fixes an ICE that occurs when foreign function signatures contained
an associated type.

Fixes #28983

8 years agoAuto merge of #28909 - GuillaumeGomez:patch-3, r=pnkfelix
bors [Wed, 14 Oct 2015 13:04:53 +0000 (13:04 +0000)]
Auto merge of #28909 - GuillaumeGomez:patch-3, r=pnkfelix

r? @Manishearth

8 years agoRemove the unnecessary local variable in set_logger.
Ms2ger [Wed, 14 Oct 2015 12:17:06 +0000 (14:17 +0200)]
Remove the unnecessary local variable in set_logger.

8 years agoUse if-let rather than map() in parse_logging_spec.
Ms2ger [Wed, 14 Oct 2015 12:16:48 +0000 (14:16 +0200)]
Use if-let rather than map() in parse_logging_spec.

8 years agoAuto merge of #28827 - thepowersgang:unsafe-const-fn-2, r=Aatch
bors [Wed, 14 Oct 2015 10:17:30 +0000 (10:17 +0000)]
Auto merge of #28827 - thepowersgang:unsafe-const-fn-2, r=Aatch

This is the original test implementation, which works according to the tests I wrote, but might need a review.

8 years agoAuto merge of #29039 - Manishearth:rollup, r=Manishearth
bors [Wed, 14 Oct 2015 07:24:36 +0000 (07:24 +0000)]
Auto merge of #29039 - Manishearth:rollup, r=Manishearth

- Successful merges: #28991, #29004, #29006, #29013, #29016, #29024, #29027, #29028, #29029, #29032, #29035
- Failed merges:

8 years agofix tidy
Manish Goregaokar [Wed, 14 Oct 2015 07:22:14 +0000 (12:52 +0530)]
fix tidy

8 years agoRollup merge of #29035 - rutsky:patch-6, r=steveklabnik
Manish Goregaokar [Wed, 14 Oct 2015 04:23:41 +0000 (09:53 +0530)]
Rollup merge of #29035 - rutsky:patch-6, r=steveklabnik

r? @steveklabnik

The link is broken here: <https://doc.rust-lang.org/std/io/#types>.

Looks like crate documentation generator uses only first paragraph of the module documentation and
so doesn't resolve the link defined below.

Probably this behaviour of the documentation generator should be considered as a bug and should be reported.

8 years agoRollup merge of #29032 - goyox86:goyox86/rusfmting-librustc_bitflags, r=alexcrichton
Manish Goregaokar [Wed, 14 Oct 2015 04:23:41 +0000 (09:53 +0530)]
Rollup merge of #29032 - goyox86:goyox86/rusfmting-librustc_bitflags, r=alexcrichton

Hi Rustaceans!

This is the result of running latest rustfmt on librustc_bitflags!

//cc @nrc

8 years agoRollup merge of #29029 - steveklabnik:iter_function_docs, r=alexcrichton
Manish Goregaokar [Wed, 14 Oct 2015 04:23:41 +0000 (09:53 +0530)]
Rollup merge of #29029 - steveklabnik:iter_function_docs, r=alexcrichton

Flesh the docs out with examples.

8 years agoRollup merge of #29028 - Seeker14491:patch-1, r=Manishearth
Manish Goregaokar [Wed, 14 Oct 2015 04:23:41 +0000 (09:53 +0530)]
Rollup merge of #29028 - Seeker14491:patch-1, r=Manishearth

Having this code section hidden is misleading because it makes it look like implementing Circle for Foo automatically makes Foo implement Shape.

8 years agoRollup merge of #29024 - mseri:patch-1, r=nrc
Manish Goregaokar [Wed, 14 Oct 2015 04:23:40 +0000 (09:53 +0530)]
Rollup merge of #29024 - mseri:patch-1, r=nrc

r? @nrc

8 years agoRollup merge of #29016 - sanxiyn:data-layout, r=alexcrichton
Manish Goregaokar [Wed, 14 Oct 2015 04:23:40 +0000 (09:53 +0530)]
Rollup merge of #29016 - sanxiyn:data-layout, r=alexcrichton

8 years agoRollup merge of #29013 - chrisccerami:fix_broken_lifetime_elision_link, r=alexcrichton
Manish Goregaokar [Wed, 14 Oct 2015 04:23:40 +0000 (09:53 +0530)]
Rollup merge of #29013 - chrisccerami:fix_broken_lifetime_elision_link, r=alexcrichton

This link was added in #28842 but doesn't work at https://doc.rust-lang.org/nightly/book/lifetimes.html. What works in my markdown preview doesn't work live, and vice versa.

8 years agoRollup merge of #29006 - arielb1:callee-outlives-call, r=pnkfelix
Manish Goregaokar [Wed, 14 Oct 2015 04:23:39 +0000 (09:53 +0530)]
Rollup merge of #29006 - arielb1:callee-outlives-call, r=pnkfelix

This rather crucial requirement was not checked. In most cases, that
didn't cause any trouble because the argument types are required to
outlive the call and are subtypes of a subformula of the callee type.

However, binary ops are taken by ref only indirectly, without it being
marked in the argument types, which led to the argument types not being
constrained anywhere causing spurious errors (as these are basically
unconstrainable, I don't think this change can break code). Of course,
the old way was also incorrent with contravariance, but that is still
unsound for other reasons.

This also improves rustc::front to get RUST_LOG to *somewhat* work.

Fixes #28999. That issue is one of the several regression introduced by #28669.

r? @pnkfelix

8 years agoRollup merge of #29004 - frewsxcv:regression-test-22814, r=alexcrichton
Manish Goregaokar [Wed, 14 Oct 2015 04:23:39 +0000 (09:53 +0530)]
Rollup merge of #29004 - frewsxcv:regression-test-22814, r=alexcrichton

Closes #22814

8 years agoRollup merge of #28991 - goyox86:goyox86/rustfmting-liblog-II, r=alexcrichton
Manish Goregaokar [Wed, 14 Oct 2015 04:23:39 +0000 (09:53 +0530)]
Rollup merge of #28991 - goyox86:goyox86/rustfmting-liblog-II, r=alexcrichton

Hi Rustaceans!

This is the second version of running rustfmt on liblog https://github.com/rust-lang/rust/pull/28898. There are only rustfmt suggested changes. Because I think that some patterns here (that I fixed up in the prev PR need to be discussed in detail.

//cc @nrc

8 years agoAuto merge of #28816 - petrochenkov:unistruct, r=nrc
bors [Wed, 14 Oct 2015 04:21:58 +0000 (04:21 +0000)]
Auto merge of #28816 - petrochenkov:unistruct, r=nrc

This patch uses the same data structures for structs and enum variants in AST and HIR. These changes in data structures lead to noticeable simplification in most of code dealing with them.
I didn't touch the top level, i.e. `ItemStruct` is still `ItemStruct` and not `ItemEnum` with one variant, like in the type checker.
As part of this patch, structures and variants get the `kind` field making distinction between "normal" structs, tuple structs and unit structs explicit instead of relying on the number of fields and presence of constructor `NodeId`. In particular, we can now distinguish empty tuple structs from unit structs, which was impossible before! Comprehensive tests for empty structs are added and some improvements to empty struct feature gates are made. Some tests don't pass due to issue https://github.com/rust-lang/rust/issues/28692 , they are still there for completeness, but are commented out.
This patch fixes issue mentioned in https://github.com/rust-lang/rust/issues/16819#issuecomment-139509861, now emptiness of tuple structs is checked after expansion.
It also touches https://github.com/rust-lang/rust/issues/28750 by providing span for visit_struct_def
cc https://github.com/rust-lang/rust/pull/28336

r? @nrc

8 years agoAuto merge of #29026 - steveklabnik:rollup, r=steveklabnik
bors [Wed, 14 Oct 2015 00:06:32 +0000 (00:06 +0000)]
Auto merge of #29026 - steveklabnik:rollup, r=steveklabnik

- Successful merges: #28988, #28989, #28990, #28997, #29007, #29015
- Failed merges: #28906

8 years agofix link on std::result::Result
Vladimir Rutsky [Tue, 13 Oct 2015 23:17:31 +0000 (02:17 +0300)]
fix link on std::result::Result

The link is broken here: <https://doc.rust-lang.org/std/io/#types>.

Looks like crate documentation generator uses only first paragraph of the module documentation and
so doesn't resolve the link defined below.

8 years agoRevert "fixups"
Marcello Seri [Tue, 13 Oct 2015 22:21:05 +0000 (23:21 +0100)]
Revert "fixups"

This reverts commit 5b8335ede4214f802eab765ca99b5afa9057973c.

8 years agoRustfmt-ing librustc_bitflags.
Jose Narvaez [Tue, 13 Oct 2015 22:14:32 +0000 (23:14 +0100)]
Rustfmt-ing librustc_bitflags.

8 years agoDocument the free functions of std::iter
Steve Klabnik [Tue, 13 Oct 2015 18:46:17 +0000 (14:46 -0400)]
Document the free functions of std::iter

Flesh the docs out with examples.

8 years agoUnhide some code from the Traits section
Seeker14491 [Tue, 13 Oct 2015 18:45:10 +0000 (13:45 -0500)]
Unhide some code from the Traits section

Having this code section hidden is misleading because it makes it look like implementing Circle for Foo automatically makes Foo implement Shape.

8 years agoRollup merge of #29015 - dripton:master, r=alexcrichton
Steve Klabnik [Tue, 13 Oct 2015 17:09:53 +0000 (13:09 -0400)]
Rollup merge of #29015 - dripton:master, r=alexcrichton

Just a single-character typo fix.

8 years agoRollup merge of #29007 - dnwade:patch-2, r=alexcrichton
Steve Klabnik [Tue, 13 Oct 2015 17:09:53 +0000 (13:09 -0400)]
Rollup merge of #29007 - dnwade:patch-2, r=alexcrichton

r? @steveklabnik

8 years agoRollup merge of #28997 - bezelga:master, r=steveklabnik
Steve Klabnik [Tue, 13 Oct 2015 17:09:53 +0000 (13:09 -0400)]
Rollup merge of #28997 - bezelga:master, r=steveklabnik

Fixing some words in the beginning of the Ownership system chapters.

8 years agoRollup merge of #28990 - ahmedcharles:libarena, r=nrc
Steve Klabnik [Tue, 13 Oct 2015 17:09:53 +0000 (13:09 -0400)]
Rollup merge of #28990 - ahmedcharles:libarena, r=nrc

8 years agoRollup merge of #28989 - ahmedcharles:liballoc_system, r=nrc
Steve Klabnik [Tue, 13 Oct 2015 17:09:52 +0000 (13:09 -0400)]
Rollup merge of #28989 - ahmedcharles:liballoc_system, r=nrc

8 years agoRollup merge of #28988 - ahmedcharles:liballoc_jemalloc, r=nrc
Steve Klabnik [Tue, 13 Oct 2015 17:09:52 +0000 (13:09 -0400)]
Rollup merge of #28988 - ahmedcharles:liballoc_jemalloc, r=nrc

8 years agoAdd E0511 error explanation
Guillaume Gomez [Fri, 9 Oct 2015 13:59:10 +0000 (15:59 +0200)]
Add E0511 error explanation

8 years agofixups
Marcello Seri [Tue, 13 Oct 2015 14:12:34 +0000 (15:12 +0100)]
fixups

8 years agorustfmt libfmt_macros
Marcello Seri [Tue, 13 Oct 2015 14:10:51 +0000 (15:10 +0100)]
rustfmt libfmt_macros

8 years agoComment on the purpose(s) of NodeId in VariantData
Vadim Petrochenkov [Tue, 13 Oct 2015 13:18:33 +0000 (16:18 +0300)]
Comment on the purpose(s) of NodeId in VariantData

8 years agoMerge VariantData and VariantData_
Vadim Petrochenkov [Sat, 10 Oct 2015 00:28:40 +0000 (03:28 +0300)]
Merge VariantData and VariantData_

8 years agoFix rebase 2
Vadim Petrochenkov [Fri, 9 Oct 2015 20:32:37 +0000 (23:32 +0300)]
Fix rebase 2

8 years agoMerge struct fields and struct kind
Vadim Petrochenkov [Thu, 8 Oct 2015 20:45:46 +0000 (23:45 +0300)]
Merge struct fields and struct kind

8 years agoDict -> Struct, StructDef -> VariantData, def -> data
Vadim Petrochenkov [Thu, 8 Oct 2015 00:20:57 +0000 (03:20 +0300)]
Dict -> Struct, StructDef -> VariantData, def -> data

8 years agoFix rebase
Vadim Petrochenkov [Sun, 4 Oct 2015 10:11:56 +0000 (13:11 +0300)]
Fix rebase

8 years agoFix failing privacy test
Vadim Petrochenkov [Fri, 2 Oct 2015 21:18:48 +0000 (00:18 +0300)]
Fix failing privacy test

8 years agoTest and gate empty structures and variants better
Vadim Petrochenkov [Fri, 2 Oct 2015 19:41:24 +0000 (22:41 +0300)]
Test and gate empty structures and variants better

8 years agoProvide span for visit_struct_def + remove some dead code
Vadim Petrochenkov [Fri, 2 Oct 2015 17:06:59 +0000 (20:06 +0300)]
Provide span for visit_struct_def + remove some dead code

8 years agoRemove now redundant NodeId from Variant
Vadim Petrochenkov [Fri, 2 Oct 2015 13:14:20 +0000 (16:14 +0300)]
Remove now redundant NodeId from Variant

8 years agoDecouple structure kinds from NodeIds
Vadim Petrochenkov [Fri, 2 Oct 2015 00:53:28 +0000 (03:53 +0300)]
Decouple structure kinds from NodeIds

8 years agoUnify structures and enum variants in HIR
Vadim Petrochenkov [Thu, 1 Oct 2015 21:03:22 +0000 (00:03 +0300)]
Unify structures and enum variants in HIR

8 years agoUnify structures and enum variants in AST
Vadim Petrochenkov [Thu, 1 Oct 2015 15:47:27 +0000 (18:47 +0300)]
Unify structures and enum variants in AST

8 years agoManually alligned comments.
Jose Narvaez [Tue, 13 Oct 2015 09:46:41 +0000 (10:46 +0100)]
Manually alligned comments.

8 years agoRe-running updated rustfmt on liblog.
Jose Narvaez [Tue, 13 Oct 2015 09:44:09 +0000 (10:44 +0100)]
Re-running updated rustfmt on liblog.

8 years agorustfmt suggested changes.
Jose Narvaez [Mon, 12 Oct 2015 10:28:54 +0000 (11:28 +0100)]
rustfmt suggested changes.

8 years agoAvoid using getDataLayout, deprecated in LLVM 3.7
Seo Sanghyeon [Tue, 13 Oct 2015 06:11:59 +0000 (15:11 +0900)]
Avoid using getDataLayout, deprecated in LLVM 3.7

8 years agoTypo fix
David Ripton [Tue, 13 Oct 2015 03:24:27 +0000 (23:24 -0400)]
Typo fix

8 years agoAuto merge of #28993 - frewsxcv:regression-test-17336, r=alexcrichton
bors [Tue, 13 Oct 2015 03:19:11 +0000 (03:19 +0000)]
Auto merge of #28993 - frewsxcv:regression-test-17336, r=alexcrichton

Closes #17336

8 years agoFix Lifetime Elision link in lifetimes.md
Chris C Cerami [Tue, 13 Oct 2015 02:24:51 +0000 (22:24 -0400)]
Fix Lifetime Elision link in lifetimes.md

8 years agoAuto merge of #28987 - ahmedcharles:liballoc, r=brson
bors [Tue, 13 Oct 2015 00:37:09 +0000 (00:37 +0000)]
Auto merge of #28987 - ahmedcharles:liballoc, r=brson

8 years agotypo
Dan W. [Mon, 12 Oct 2015 22:29:20 +0000 (15:29 -0700)]
typo

8 years agowin64/msvc: large or oddly-sized types pass by-ref
Peter Marheine [Mon, 12 Oct 2015 22:23:47 +0000 (16:23 -0600)]
win64/msvc: large or oddly-sized types pass by-ref

8 years agorequire a method callee's type to outlive the call
Ariel Ben-Yehuda [Mon, 12 Oct 2015 20:37:52 +0000 (23:37 +0300)]
require a method callee's type to outlive the call

This rather crucial requirement was not checked. In most cases, that
didn't cause any trouble because the argument types are required to
outlive the call and are subtypes of a subformula of the callee type.

However, binary ops are taken by ref only indirectly, without it being
marked in the argument types, which led to the argument types not being
constrained anywhere causing spurious errors (as these are basically
unconstrainable, I don't think this change can break code). Of course,
the old way was also incorrent with contravariance, but that is still
unsound for other reasons.

This also improves rustc::front to get RUST_LOG to *somewhat* work.

Fixes #28999

8 years agoAuto merge of #28986 - ahmedcharles:error-index-generator, r=brson
bors [Mon, 12 Oct 2015 20:16:24 +0000 (20:16 +0000)]
Auto merge of #28986 - ahmedcharles:error-index-generator, r=brson

8 years agoAdd regression test for #22814
Corey Farwell [Mon, 12 Oct 2015 19:40:47 +0000 (15:40 -0400)]
Add regression test for #22814

Closes #22814

8 years agonormalize the types of foreign functions
Ariel Ben-Yehuda [Mon, 12 Oct 2015 18:50:57 +0000 (21:50 +0300)]
normalize the types of foreign functions

This is needed as item types are allowed to be unnormalized.

Fixes an ICE that occurs when foreign function signatures contained
an associated type.

Fixes #28983

8 years agoFix docs about borrowing and lifetimes
Fabiano Beselga [Mon, 12 Oct 2015 16:58:21 +0000 (13:58 -0300)]
Fix docs about borrowing and lifetimes

8 years agoAdd regression test for #17336
Corey Farwell [Mon, 12 Oct 2015 13:44:26 +0000 (09:44 -0400)]
Add regression test for #17336

Closes #17336

8 years agoAuto merge of #28914 - steveklabnik:doc_iterator, r=alexcrichton
bors [Mon, 12 Oct 2015 13:40:46 +0000 (13:40 +0000)]
Auto merge of #28914 - steveklabnik:doc_iterator, r=alexcrichton

This replaces what was there with a comprehensive overview.

Thanks to @hoverbear for suggesting that these docs needed improvement.

8 years agoWrite better module-level docs for std::iter
Steve Klabnik [Thu, 8 Oct 2015 19:34:14 +0000 (15:34 -0400)]
Write better module-level docs for std::iter

This replaces what was there with a comprehensive overview.

8 years agoDon't use a Vec in os::current_exe on FreeBSD.
Peter Marheine [Mon, 12 Oct 2015 10:37:28 +0000 (10:37 +0000)]
Don't use a Vec in os::current_exe on FreeBSD.

8 years agoAuto merge of #28985 - ahmedcharles:driver, r=nrc
bors [Mon, 12 Oct 2015 08:11:40 +0000 (08:11 +0000)]
Auto merge of #28985 - ahmedcharles:driver, r=nrc

8 years agoRun rustfmt on error-index-generator.
Ahmed Charles [Mon, 12 Oct 2015 06:44:32 +0000 (23:44 -0700)]
Run rustfmt on error-index-generator.

8 years agoRun rustfmt on driver.
Ahmed Charles [Mon, 12 Oct 2015 06:41:43 +0000 (23:41 -0700)]
Run rustfmt on driver.

8 years agoRun rustfmt on liballoc_system.
Ahmed Charles [Mon, 12 Oct 2015 06:35:08 +0000 (23:35 -0700)]
Run rustfmt on liballoc_system.

8 years agoRun rustfmt on liballoc_jemalloc.
Ahmed Charles [Mon, 12 Oct 2015 05:18:51 +0000 (22:18 -0700)]
Run rustfmt on liballoc_jemalloc.

8 years agoRun rustfmt on liballoc.
Ahmed Charles [Mon, 12 Oct 2015 05:11:59 +0000 (22:11 -0700)]
Run rustfmt on liballoc.

8 years agoRun rustfmt on libarena.
Ahmed Charles [Mon, 12 Oct 2015 02:33:51 +0000 (19:33 -0700)]
Run rustfmt on libarena.

8 years agoAuto merge of #28969 - chrisccerami:link_to_ffi_in_concurrency_chapter, r=steveklabnik
bors [Sun, 11 Oct 2015 23:20:28 +0000 (23:20 +0000)]
Auto merge of #28969 - chrisccerami:link_to_ffi_in_concurrency_chapter, r=steveklabnik

8 years agoAuto merge of #28973 - nrc:match-source, r=Manishearth
bors [Sun, 11 Oct 2015 21:35:48 +0000 (21:35 +0000)]
Auto merge of #28973 - nrc:match-source, r=Manishearth

r? @Manishearth

8 years agoProperly set the MatchSource for for loops
Nick Cameron [Sun, 11 Oct 2015 20:49:29 +0000 (09:49 +1300)]
Properly set the MatchSource for for loops

8 years agoAuto merge of #28960 - barosl:home-temp-dir-doc, r=alexcrichton
bors [Sun, 11 Oct 2015 19:51:22 +0000 (19:51 +0000)]
Auto merge of #28960 - barosl:home-temp-dir-doc, r=alexcrichton

This concern was raised by #28940.

8 years agoAuto merge of #28948 - steveklabnik:gh28944, r=alexcrichton
bors [Sun, 11 Oct 2015 18:06:51 +0000 (18:06 +0000)]
Auto merge of #28948 - steveklabnik:gh28944, r=alexcrichton

"Crate features" isn't a thing in Rust, but you do need to add this line
to your crate root.

Fixes #28944

8 years agoLink to FFI in Concurrency chapter
Chris C Cerami [Sun, 11 Oct 2015 17:23:57 +0000 (13:23 -0400)]
Link to FFI in Concurrency chapter

8 years agoAuto merge of #28966 - ykomatsu:trpl, r=steveklabnik
bors [Sun, 11 Oct 2015 16:20:13 +0000 (16:20 +0000)]
Auto merge of #28966 - ykomatsu:trpl, r=steveklabnik

8 years agoAuto merge of #28964 - eminence:docfix, r=sfackler
bors [Sun, 11 Oct 2015 14:32:45 +0000 (14:32 +0000)]
Auto merge of #28964 - eminence:docfix, r=sfackler

r? @steveklabnik

8 years agoFix some typos
Yoshito Komatsu [Sun, 11 Oct 2015 13:38:44 +0000 (22:38 +0900)]
Fix some typos

8 years agoAuto merge of #28965 - bluss:ptr-write-doc, r=huonw
bors [Sun, 11 Oct 2015 11:45:26 +0000 (11:45 +0000)]
Auto merge of #28965 - bluss:ptr-write-doc, r=huonw

core: Update the safety docs for core::ptr::write

Updated to reflect that not dropping a value is safe (but discouraged).

8 years agocore: Update the safety docs for core::ptr::write
Ulrik Sverdrup [Sun, 11 Oct 2015 11:40:47 +0000 (13:40 +0200)]
core: Update the safety docs for core::ptr::write

Updated to reflect that not dropping a value is safe (but discouraged).

8 years agoTrivial typo fix: from_utrf8 should be from_utf8
Andrew Chin [Sun, 11 Oct 2015 03:32:35 +0000 (23:32 -0400)]
Trivial typo fix:  from_utrf8 should be from_utf8

8 years agoClarify the behavior of `std::env::home_dir` and `std::env::temp_dir`
Barosl Lee [Sat, 10 Oct 2015 18:50:26 +0000 (03:50 +0900)]
Clarify the behavior of `std::env::home_dir` and `std::env::temp_dir`

This concern was raised by #28940.

8 years agoAuto merge of #28941 - jcaudle:rustfmt/librand-distributions-normal, r=nrc
bors [Sat, 10 Oct 2015 22:39:35 +0000 (22:39 +0000)]
Auto merge of #28941 - jcaudle:rustfmt/librand-distributions-normal, r=nrc

This is my first PR to rust and first collaboration on a rust project, but I think the formatting looked ok. If this works out, I hope to go through more of librand.

8 years agoAuto merge of #28949 - iwillspeak:rustfmt-libflate, r=nrc
bors [Sat, 10 Oct 2015 19:55:37 +0000 (19:55 +0000)]
Auto merge of #28949 - iwillspeak:rustfmt-libflate, r=nrc

This commit updates the libflate crate with the formatting output of
`rustfmt`.

r? @nrc

8 years agoUpdate Libflate Formatting
Will Speak [Sat, 10 Oct 2015 18:00:20 +0000 (19:00 +0100)]
Update Libflate Formatting

This commit updates the libflate crate with the formatting output of
`rustfmt`.

8 years agoDiagnostic change: crate features -> crate root
Steve Klabnik [Sat, 10 Oct 2015 17:35:40 +0000 (13:35 -0400)]
Diagnostic change: crate features -> crate root

"Crate features" isn't a thing in Rust, but you do need to add this line
to your crate root.

Fixes #28944

8 years agoAuto merge of #28945 - shama:doc-typos, r=steveklabnik
bors [Sat, 10 Oct 2015 16:40:05 +0000 (16:40 +0000)]
Auto merge of #28945 - shama:doc-typos, r=steveklabnik

Just a few typos found in the docs. Thanks!

8 years agodoc: fixing typos
Kyle Robinson Young [Sat, 10 Oct 2015 16:15:55 +0000 (09:15 -0700)]
doc: fixing typos

8 years agoAuto merge of #28922 - panicbit:trpl-missing-docs, r=steveklabnik
bors [Sat, 10 Oct 2015 14:51:42 +0000 (14:51 +0000)]
Auto merge of #28922 - panicbit:trpl-missing-docs, r=steveklabnik

8 years agoAuto merge of #28938 - GlenDC:master, r=Manishearth
bors [Sat, 10 Oct 2015 12:02:24 +0000 (12:02 +0000)]
Auto merge of #28938 - GlenDC:master, r=Manishearth

Here is my attempt to resolve issue #28822, @Manishearth.
Please let me know if it's fine. And if not, what should I do instead?

This issue felt like quite a good start for some rust contributions. It allows me to get used to the workflow  and codebase of rust in an easy-to-swallow manner. Are there any other issues you would recommend me to look at? :) Would love to do some more stuff!

8 years agoWhitelisting PatWild for E0022. Fix #28822
glendc [Sat, 10 Oct 2015 00:01:42 +0000 (00:01 +0000)]
Whitelisting PatWild for E0022. Fix #28822

8 years agoAuto merge of #28930 - steveklabnik:update_pr, r=steveklabnik
bors [Sat, 10 Oct 2015 07:56:49 +0000 (07:56 +0000)]
Auto merge of #28930 - steveklabnik:update_pr, r=steveklabnik

https://github.com/rust-lang/rust/pull/27813#issuecomment-146842041

8 years agoAuto merge of #28920 - dotdash:const_align, r=eddyb
bors [Sat, 10 Oct 2015 06:07:40 +0000 (06:07 +0000)]
Auto merge of #28920 - dotdash:const_align, r=eddyb

For enum variants, the default alignment for a specific variant might be
lower than the alignment of the enum type itself. In such cases we, for
example, generate memcpy calls with an alignment that's higher than the
alignment of the constant we copy from.

To avoid that, we need to explicitly set the required alignment on
constants.

Fixes #28912.