]> git.lizzy.rs Git - rust.git/log
rust.git
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 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 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 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 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 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 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 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.

8 years agoAuto merge of #28928 - ykomatsu:trpl, r=Manishearth
bors [Sat, 10 Oct 2015 04:15:33 +0000 (04:15 +0000)]
Auto merge of #28928 - ykomatsu:trpl, r=Manishearth

8 years agoRun rustfmt on librand/distributions/normal.rs
Joseph Caudle [Sat, 10 Oct 2015 04:01:57 +0000 (00:01 -0400)]
Run rustfmt on librand/distributions/normal.rs

8 years agoAuto merge of #28932 - barosl:empty-comment, r=alexcrichton
bors [Sat, 10 Oct 2015 02:29:37 +0000 (02:29 +0000)]
Auto merge of #28932 - barosl:empty-comment, r=alexcrichton

Previously, `/**/` was incorrectly regarded as a doc comment because it starts with `/**` and ends with `*/`. However, this caused an ICE because some code assumed that the length of a doc comment is at least 5. This commit adds an additional check to `is_block_doc_comment` that tests the length of the input.

Fixes #28844.

8 years agoAuto merge of #28861 - pnkfelix:fsk-nonparam-dropck-issue28498, r=arielb1
bors [Sat, 10 Oct 2015 00:39:29 +0000 (00:39 +0000)]
Auto merge of #28861 - pnkfelix:fsk-nonparam-dropck-issue28498, r=arielb1

implement RFC 1238: nonparametric dropck.

cc #28498

cc @nikomatsakis

8 years agoSet proper alignment on constants
Björn Steinbrink [Thu, 8 Oct 2015 23:26:21 +0000 (01:26 +0200)]
Set proper alignment on constants

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.

8 years agoAuto merge of #28049 - steveklabnik:doc_write, r=alexcrichton
bors [Fri, 9 Oct 2015 22:15:24 +0000 (22:15 +0000)]
Auto merge of #28049 - steveklabnik:doc_write, r=alexcrichton

8 years agoUse a proper C string for the gdb script section name
Björn Steinbrink [Fri, 9 Oct 2015 20:20:56 +0000 (22:20 +0200)]
Use a proper C string for the gdb script section name

8 years agoPrevent `/**/` from being parsed as a doc comment
Barosl Lee [Wed, 7 Oct 2015 22:25:59 +0000 (07:25 +0900)]
Prevent `/**/` from being parsed as a doc comment

Previously, `/**/` was incorrectly regarded as a doc comment because it
starts with `/**` and ends with `*/`. However, this caused an ICE
because some code assumed that the length of a doc comment is at least
5. This commit adds an additional check to `is_block_doc_comment` that
tests the length of the input.

Fixes #28844.

8 years agoAuto merge of #28926 - DanielKeep:syntax-index, r=steveklabnik
bors [Fri, 9 Oct 2015 19:28:43 +0000 (19:28 +0000)]
Auto merge of #28926 - DanielKeep:syntax-index, r=steveklabnik

The intent with this chapter is to have a central place where users can
go to find out what a random bit of syntax means, be it a keyword,
symbol, or some unusual bit of composite syntax (like `for <...>`).  This
should be useful both for new users (who may not know what to call this
weird `'blah` thing), and for experienced users (who may just wish to
link someone to the appropriate section on `Trait + Trait` bounds).

Where possible, entries have been linked to an appropriate section of
the book which explains the syntax.  This was not possible in all cases.
If an entry is missing links, that's because I was unable to *find*
anything appropriate to link to.

This commit should include all stable keywords, operators and symbols,
as well as a selection of potentially confusing or unusual syntax.

8 years agoImprove docs for write!/writeln! macros
Steve Klabnik [Thu, 27 Aug 2015 18:24:53 +0000 (14:24 -0400)]
Improve docs for write!/writeln! macros

8 years agoAuto merge of #28929 - pnkfelix:expand-legal-cycles-test, r=alexcrichton
bors [Fri, 9 Oct 2015 17:07:48 +0000 (17:07 +0000)]
Auto merge of #28929 - pnkfelix:expand-legal-cycles-test, r=alexcrichton

Major revision to the dropck_legal_cycles test.

1. Added big comment block explaining the test framework.

2. Added tests exericising Rc and Arc. This was inspired by a comment
   from eefriedman on PR #28861.

3. Made the cycle-detection not issue false-positives on acyclic dags.

   Doing this efficiently required revising the framework; instead of
   visiting all children (i.e. doing a traversal), now each test is
   responsible for supplying the path that will act as a witness to
   the cycle.

   Luckily for me, all of the pre-existing tests worked with a trivial
   path built from "always tke your first left", but new tests I added
   did require other input paths (i.e., "first turn right, then left".

   (The path representation is a bit-string and its branches are
    n-ary, not word phrases and binary branches as you might think
    from the outline above.)

cc PR #27185

8 years agoreview comment: further refinement of comment above `fn is_adt_dtorck`.
Felix S. Klock II [Fri, 9 Oct 2015 16:42:14 +0000 (18:42 +0200)]
review comment: further refinement of comment above `fn is_adt_dtorck`.

8 years agoAdded the param-blindness attribute to `Rc` and `Arc`.
Felix S. Klock II [Fri, 9 Oct 2015 16:03:31 +0000 (18:03 +0200)]
Added the param-blindness attribute to `Rc` and `Arc`.

This was proven necessary after I added `Rc` and `Arc` to the rpass
test `dropck_legal_cycles.rs`; see PR #28929.

8 years agoSome tidying up
Jonathan Hansford [Tue, 18 Aug 2015 19:37:27 +0000 (20:37 +0100)]
Some tidying up

Improving the use of 2nd and 3rd person
Adding a few contractions to make the text less formal
Tidying up some notes
Providing a little bit more clarification for Windows users

8 years ago2nd to 3rd person
Jonathan Hansford [Thu, 13 Aug 2015 17:22:16 +0000 (18:22 +0100)]
2nd to 3rd person

Replacing all references to the 2nd person with references to the 3rd
person (excluding `authors = [ "Your name <you@example.com>" ]` and
`file:///home/yourname/projects/hello_world` in `hello-cargo.md`)

8 years agoMajor revision to the dropck_legal_cycles test.
Felix S. Klock II [Fri, 9 Oct 2015 16:02:37 +0000 (18:02 +0200)]
Major revision to the dropck_legal_cycles test.

1. Added big comment block explaining the test framework.

2. Added tests exericising Rc and Arc. This was inspired by a comment
   from eefriedman on PR #28861.

3. Made the cycle-detection not issue false-positives on acyclic dags.

   Doing this efficiently required revising the framework; instead of
   visiting all children (i.e. doing a traversal), now each test is
   responsible for supplying the path that will act as a witness to
   the cycle.

   Luckily for me, all of the pre-existing tests worked with a trivial
   path built from "always tke your first left", but new tests I added
   did require other input paths (i.e., "first turn right, then left".

   (The path representation is a bit-string and its branches are
    n-ary, not word phrases and binary branches as you might think
    from the outline above.)

8 years agoAuto merge of #27897 - sfackler:cursor-box-slice, r=alexcrichton
bors [Fri, 9 Oct 2015 13:07:07 +0000 (13:07 +0000)]
Auto merge of #27897 - sfackler:cursor-box-slice, r=alexcrichton

8 years agoImplement Read, BufRead, Write and Seek for Cursor<Box<[u8]>>
Steven Fackler [Wed, 19 Aug 2015 06:02:49 +0000 (23:02 -0700)]
Implement Read, BufRead, Write and Seek for Cursor<Box<[u8]>>

8 years agoFix GitHub
Yoshito Komatsu [Fri, 9 Oct 2015 13:03:02 +0000 (22:03 +0900)]
Fix GitHub

8 years agotrpl: mention doc(hidden)
panicbit [Fri, 9 Oct 2015 12:08:32 +0000 (14:08 +0200)]
trpl: mention doc(hidden)

8 years agoreview comment: point out that the dropck analysis is now trivial.
Felix S. Klock II [Fri, 9 Oct 2015 12:08:06 +0000 (14:08 +0200)]
review comment: point out that the dropck analysis is now trivial.

8 years agoCorrections to syntax index.
Daniel Keep [Fri, 9 Oct 2015 12:06:20 +0000 (23:06 +1100)]
Corrections to syntax index.

* removed reference to struct fields from `mut` description.
* changed `..` pattern example to not be syntactically bogus.
* changed `@` pattern example for similar reasons.

(Thanks petrochenkov)

8 years agotrpl: missing documentation wording
panicbit [Fri, 9 Oct 2015 12:04:45 +0000 (14:04 +0200)]
trpl: missing documentation wording

8 years agorevise cfail test, removing ugeh attribute that was erroneously cut-and-pasted into it.
Felix S. Klock II [Fri, 9 Oct 2015 11:30:08 +0000 (13:30 +0200)]
revise cfail test, removing ugeh attribute that was erroneously cut-and-pasted into it.

8 years agoExpanded entries for generics.
Daniel Keep [Fri, 9 Oct 2015 11:19:56 +0000 (22:19 +1100)]
Expanded entries for generics.

* Now mentions method generics.
* Has separate entries for generic `fn`, `struct`, `enum`, and `impl`
  items.

(Thanks killercup).

8 years agoAuto merge of #28857 - nrc:lowering, r=nikomatsakis
bors [Fri, 9 Oct 2015 08:53:45 +0000 (08:53 +0000)]
Auto merge of #28857 - nrc:lowering, r=nikomatsakis

r? @nikomatsakis

8 years agoIntroduces a "Syntax Index" chapter to TRPL.
Daniel Keep [Fri, 9 Oct 2015 08:47:16 +0000 (19:47 +1100)]
Introduces a "Syntax Index" chapter to TRPL.

The intent with this chapter is to have a central place where users can
go to find out what a random bit of syntax means, be it a keyword,
symbol, or some unusual bit of composite syntax (like `for <...>`).  This
should be useful both for new users (who may not know what to call this
weird `'blah` thing), and for experienced users (who may just wish to
link someone to the appropriate section on `Trait + Trait` bounds).

Where possible, entries have been linked to an appropriate section of
the book which explains the syntax.  This was not possible in all cases.
If an entry is missing links, that's because I was unable to *find*
anything appropriate to link to.

This commit should include all stable keywords, operators and symbols,
as well as a selection of potentially confusing or unusual syntax.

8 years agoreview comments
Nick Cameron [Tue, 6 Oct 2015 19:26:22 +0000 (08:26 +1300)]
review comments

8 years agoAuto merge of #28869 - alexcrichton:allocator-dox, r=steveklabnik
bors [Fri, 9 Oct 2015 06:29:30 +0000 (06:29 +0000)]
Auto merge of #28869 - alexcrichton:allocator-dox, r=steveklabnik

This adds a chapter to the nightly section of the book on leveraging and
implementing the `#![allocator]` attribute to write custom allocators as well as
explaining the current situation with allocators.

8 years agoAuto merge of #28817 - dcarral:installing_rust_v130, r=brson
bors [Fri, 9 Oct 2015 04:43:31 +0000 (04:43 +0000)]
Auto merge of #28817 - dcarral:installing_rust_v130, r=brson

Update "Installing Rust" section @ TRPL so it references the last stable version, v1.3.0.

8 years agoAuto merge of #28919 - huonw:placement-tracking-issue, r=alexcrichton
bors [Fri, 9 Oct 2015 02:57:38 +0000 (02:57 +0000)]
Auto merge of #28919 - huonw:placement-tracking-issue, r=alexcrichton

cc #28244

8 years agoAuto merge of #28888 - arielb1:variant-ctor, r=eddyb
bors [Fri, 9 Oct 2015 01:11:45 +0000 (01:11 +0000)]
Auto merge of #28888 - arielb1:variant-ctor, r=eddyb

this makes the code cleaner, and is a complement to the cleanup on the
HIR side.

r? @eddyb

8 years agotrpl: mention missing_docs lint
panicbit [Fri, 9 Oct 2015 01:00:43 +0000 (03:00 +0200)]
trpl: mention missing_docs lint

8 years agoPoint `placement_in_syntax`/`box_syntax` lang features at tracking issue #27779.
Huon Wilson [Thu, 8 Oct 2015 22:13:40 +0000 (09:13 +1100)]
Point `placement_in_syntax`/`box_syntax` lang features at tracking issue #27779.

cc #28244.

8 years agorustfmt'ing
Nick Cameron [Tue, 6 Oct 2015 03:03:56 +0000 (16:03 +1300)]
rustfmt'ing