about summary refs log tree commit diff
path: root/src
AgeCommit message (Collapse)AuthorLines
2015-04-24More small syntax changes in reference.mdMichael Rosenberg-2/+2
2015-04-24Rollup merge of #24790 - jooert:fix24774, r=steveklabnikSteve Klabnik-1/+1
Fixes #24774. r? @steveklabnik
2015-04-24Rollup merge of #24775 - mbrubeck:reference, r=steveklabnikSteve Klabnik-4/+4
Update 7.2.20 (`for` expressions): * `for` loops now use `IntoIterator` instead of just `Iterator` * Simplify the example by removing unnecessary `Vec::iter` call. ...and a fix for a minor formatting error. r? @steveklabnik
2015-04-24Rollup merge of #24772 - steveklabnik:gh24712, r=alexcrichtonSteve Klabnik-1/+1
FIxes #24712
2015-04-24Rollup merge of #24766 - nwin:patch-1, r=steveklabnikSteve Klabnik-1/+1
Changed in #22838. audited (raw) byte string literals @ #16676
2015-04-24Rollup merge of #24751 - lstat:feature-gate-22820-dups, r=brsonSteve Klabnik-48/+0
As part of the audit for #22820 the following duplicate feature gate tests were removed: * `box_patterns` * `simd_ffi` These tests for `box_patterns` and `simd_ffi` were added in #23578, however there were existing tests in #20723 and #21233 respectively. r? @nrc
2015-04-24Rollup merge of #24749 - lstat:feature-gate-22820, r=nrcSteve Klabnik-2/+142
As part of the audit for #22820 the following feature gate tests have been added: * `negate_unsigned` * `on_unimplemented` * `optin_builtin_traits` * `plugin` * `rustc_attrs` * `rustc_diagnostic_macros` * `slice_patterns` In addition some feature gate error message typos fixed.
2015-04-24Rollup merge of #24736 - steveklabnik:doc_mutability, r=alexcrichtonSteve Klabnik-1/+177
Okay, last chapter other than ownership stuff. :confetti_ball:
2015-04-24Rollup merge of #24729 - mdinger:reference_grammar, r=steveklabnikSteve Klabnik-348/+32
From https://github.com/rust-lang/rust/issues/24723#issuecomment-95636827 : > Yes, I've been meaning to just remove it in favor of GRAMMAR.md > - steveklabnik
2015-04-24Rollup merge of #24725 - steveklabnik:doc_operators_and_overloading, ↵Steve Klabnik-2/+82
r=alexcrichton I forgot these heavily use associated types, so move it after that as well.
2015-04-24Rollup merge of #24722 - steveklabnik:doc_deref, r=alexcrichtonSteve Klabnik-5/+121
r? @alexcrichton
2015-04-24Rollup merge of #24662 - steveklabnik:gh24656, r=steveklabnikSteve Klabnik-5/+62
Fixes #24656 r? @pnkfelix I just added the examples, but if the wording needs expanded too, let me know what you think should be added :)
2015-04-24Whoops, please tidySteve Klabnik-9/+9
2015-04-24TRPL: deref coercionsSteve Klabnik-5/+121
2015-04-24Add examples by @pnkfelix to fmt precisionSteve Klabnik-5/+62
Fixes #24656
2015-04-25rustbook: Fixes display of navigation links in README.html.Johannes Oertel-1/+1
2015-04-24TRPL: mutabilitySteve Klabnik-1/+177
2015-04-24TRPL: operators and overloadingSteve Klabnik-2/+82
I forgot these heavily use associated types, so move it after that as well.
2015-04-24Auto merge of #24553 - nikomatsakis:issue-22779-overconstrained-impl, r=pnkfelixbors-234/+447
Rather than storing the relations between free-regions in a global table, introduce a `FreeRegionMap` data structure. regionck computes the `FreeRegionMap` for each fn and stores the result into the tcx so that borrowck can use it (this could perhaps be refactored to have borrowck recompute the map, but it's a bid tedious to recompute due to the interaction of closures and free fns). The main reason to do this is because of #22779 -- using a global table was incorrect because when validating impl method signatures, we want to use the free region relationships from the *trait*, not the impl. Fixes #22779.
2015-04-24fix rustc_driver testsNiko Matsakis-1/+3
2015-04-24Remove keywords from reference because they're already in grammarmdinger-25/+0
2015-04-24Updates to grammarmdinger-15/+24
2015-04-24Remove ebnf from referencemdinger-308/+8
2015-04-24Auto merge of #24594 - doomsplayer:patch-2, r=alexcrichtonbors-2/+6
why use dummy implementation on linux?
2015-04-24[reference] Update 7.2.20: For expressions.Matt Brubeck-3/+3
* `for` loops now use `IntoIterator` instead of just `Iterator` * Simplify the example by removing unnecessary `Vec::iter` call.
2015-04-24[reference] Fix missing formatting.Matt Brubeck-1/+1
2015-04-24Auto merge of #24744 - bluss:reference-1, r=steveklabnikbors-49/+30
Audit & Edit Chapter 8.1 Types in reference manual - Remove mention of unit type - Update closure types and reference types sections - Fix minor typos
2015-04-24Remove reference to 'to'Steve Klabnik-1/+1
FIxes #24712
2015-04-24reference: Audit & Edit chapter 8.1 Types.Ulrik Sverdrup-49/+30
- Remove mention of unit type - Update closure types and reference types sections - Fix minor typos
2015-04-24Rollup merge of #24727 - rkruppe:reference-audit, r=steveklabnikManish Goregaokar-10/+25
It was in pretty good shape, but since that is my pet peeve, I clarified the compiler/interpreter distinction and why it is irrelevant for this section. Otherwise only a couple of minor clarifications, and weasel words where reality is more complicated than the text accounted for (e.g., there is more than one kind of library). r? @steveklabnik
2015-04-24Rollup merge of #24721 - vosen:patch-1, r=steveklabnikManish Goregaokar-1/+1
`us` and `is` were replaced with `usize` and `isize` some time ago. Other than that, 3.5.2.1.5 is correct.
2015-04-24Rollup merge of #24717 - liigo:add-back-toggle-links, r=alexcrichtonManish Goregaokar-3/+7
r? @alexcrichton (since you added `.stability` warning messages)
2015-04-24Rollup merge of #24706 - tamird:remove-DST-comment, r=alexcrichtonManish Goregaokar-8/+0
`ToCStr` was removed with `old_io` and the current method `as_os_str` is inherent to `Path`, meaning there is no suitable trait bound that could be used here. r? @alexcrichton
2015-04-24Rollup merge of #24700 - rkruppe:doc-typos, r=alexcrichtonManish Goregaokar-1/+1
r? @steveklabnik
2015-04-24Rollup merge of #24699 - mbrubeck:doc-edit, r=steveklabnikManish Goregaokar-0/+4
r? @steveklabnik
2015-04-24Rollup merge of #24698 - steveklabnik:remove_debug_display, r=steveklabnikManish Goregaokar-4/+0
this is too small for its own thing, I think.
2015-04-24Rollup merge of #24523 - GuillaumeGomez:clean-error-codes, r=ManishearthManish Goregaokar-3/+33
2015-04-24Byte string literals are now fixed-size arraysnwin-1/+1
Changed in #22838. audited (raw) byte string literals @ #16676
2015-04-24fixup #24754Manish Goregaokar-2/+2
2015-04-24Rollup merge of #24754 - iliekturtles:patch-1, r=steveklabnikManish Goregaokar-21/+21
2015-04-24Rollup merge of #24753 - tynopex:patch-1, r=steveklabnikManish Goregaokar-0/+27
Add section for range expressions.
2015-04-24Rollup merge of #24752 - doomrobo:patch-1, r=steveklabnikManish Goregaokar-17/+8
Updated sample code to updated syntax (now compiles). Also tweaked the text to reflect the change.
2015-04-24Rollup merge of #24750 - withoutboats:patch-1, r=steveklabnikManish Goregaokar-29/+40
1) Moved 'while' section below 'loop', 'break', and 'continue'; 2) Added information to 'while' and 'for' loops that they interact with 'break' and 'continue' and may have a lifetime label. 3) Clarified labeling syntax on the infinite loops.
2015-04-24Rollup merge of #24743 - geofft:trpl-macros-links, r=steveklabnikManish Goregaokar-4/+3
r? @steveklabnik
2015-04-24Rollup merge of #24742 - mbrubeck:keywords, r=steveklabnikManish Goregaokar-4/+5
* Add two missing keywords, `Self` and `proc` * Fix some mis-alphabetized keywords r? @steveklabnik
2015-04-24Rollup merge of #24740 - mbrubeck:reference, r=steveklabnikManish Goregaokar-3/+5
r? @steveklabnik
2015-04-24Rollup merge of #24739 - nrc:span-item, r=huonwManish Goregaokar-5/+4
(And other kinds of items). This brings trait/impl items in line with top-level items in this respect. It means we don't get the attributes when showing error messages for methods, etc. (a good thing, I think). Since attributes have spans it is still easy to create a span for the item + all attributes.
2015-04-24Rollup merge of #24734 - vadimcn:patch-1, r=alexcrichtonManish Goregaokar-1/+1
'win32' -> 'windows', added 'ios'
2015-04-24Rollup merge of #24733 - nwin:patch-1, r=steveklabnikManish Goregaokar-8/+8
Consistency. The book also refers to it as trait objects.
2015-04-23Fix spelling errors.Mike Boutin-21/+21