Steve Klabnik
3c6c16e00f
Rollup merge of #24729 - mdinger:reference_grammar, r=steveklabnik
...
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-24 22:54:25 -04:00
Steve Klabnik
02194bc772
Rollup merge of #24725 - steveklabnik:doc_operators_and_overloading, r=alexcrichton
...
I forgot these heavily use associated types, so move it after that
as well.
2015-04-24 22:54:25 -04:00
Steve Klabnik
831232b767
Rollup merge of #24722 - steveklabnik:doc_deref, r=alexcrichton
...
r? @alexcrichton
2015-04-24 22:54:24 -04:00
Steve Klabnik
c43ecb513a
Rollup merge of #24662 - steveklabnik:gh24656, r=steveklabnik
...
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-24 22:54:24 -04:00
Steve Klabnik
064972c297
Whoops, please tidy
2015-04-24 18:59:47 -04:00
Steve Klabnik
d70a994536
TRPL: deref coercions
2015-04-24 18:39:31 -04:00
Steve Klabnik
eb5b842145
Add examples by @pnkfelix to fmt precision
...
Fixes #24656
2015-04-24 18:24:06 -04:00
Steve Klabnik
b24271ee9d
TRPL: operators and overloading
...
I forgot these heavily use associated types, so move it after that
as well.
2015-04-24 17:27:49 -04:00
bors
f9e53c7f2c
Auto merge of #24553 - nikomatsakis:issue-22779-overconstrained-impl, r=pnkfelix
...
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-24 21:07:41 +00:00
Niko Matsakis
55ffd2e986
fix rustc_driver tests
2015-04-24 16:55:19 -04:00
mdinger
7089c5e79c
Remove keywords from reference because they're already in grammar
2015-04-24 16:50:23 -04:00
mdinger
9ecfdada2b
Updates to grammar
2015-04-24 16:50:23 -04:00
mdinger
8cf255268c
Remove ebnf from reference
2015-04-24 16:50:22 -04:00
bors
2214860d4a
Auto merge of #24594 - doomsplayer:patch-2, r=alexcrichton
...
why use dummy implementation on linux?
2015-04-24 17:49:46 +00:00
bors
714bd493c7
Auto merge of #24744 - bluss:reference-1, r=steveklabnik
...
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-24 15:48:35 +00:00
Ulrik Sverdrup
b22ea2db9c
reference: Audit & Edit chapter 8.1 Types.
...
- Remove mention of unit type
- Update closure types and reference types sections
- Fix minor typos
2015-04-24 16:55:57 +02:00
bors
f191f92421
Auto merge of #24758 - Manishearth:rollup, r=Manishearth
...
- Successful merges: #24523 , #24698 , #24699 , #24700 , #24706 , #24717 , #24718 , #24721 , #24727
- Failed merges:
2015-04-24 13:50:40 +00:00
Manish Goregaokar
1447ee4c20
Rollup merge of #24727 - rkruppe:reference-audit, r=steveklabnik
...
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-24 19:21:14 +05:30
Manish Goregaokar
0c1df5dadf
Rollup merge of #24721 - vosen:patch-1, r=steveklabnik
...
`us` and `is` were replaced with `usize` and `isize` some time ago. Other than that, 3.5.2.1.5 is correct.
2015-04-24 19:21:14 +05:30
Manish Goregaokar
af6ec32842
Rollup merge of #24717 - liigo:add-back-toggle-links, r=alexcrichton
...
r? @alexcrichton (since you added `.stability` warning messages)
2015-04-24 19:21:14 +05:30
Manish Goregaokar
f1db259804
Rollup merge of #24706 - tamird:remove-DST-comment, r=alexcrichton
...
`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-24 19:21:14 +05:30
Manish Goregaokar
fb0f344ae2
Rollup merge of #24700 - rkruppe:doc-typos, r=alexcrichton
...
r? @steveklabnik
2015-04-24 19:21:13 +05:30
Manish Goregaokar
b5fddf9b19
Rollup merge of #24699 - mbrubeck:doc-edit, r=steveklabnik
...
r? @steveklabnik
2015-04-24 19:21:13 +05:30
Manish Goregaokar
7a50ecdd72
Rollup merge of #24698 - steveklabnik:remove_debug_display, r=steveklabnik
...
this is too small for its own thing, I think.
2015-04-24 19:21:13 +05:30
Manish Goregaokar
50833a3f83
Rollup merge of #24523 - GuillaumeGomez:clean-error-codes, r=Manishearth
2015-04-24 19:21:12 +05:30
bors
9d439b4177
Auto merge of #24759 - Manishearth:rollup2, r=Manishearth
...
r? @Manishearth
2015-04-24 05:09:31 +00:00
Manish Goregaokar
131b5aca5a
fixup #24754
2015-04-24 10:38:07 +05:30
Manish Goregaokar
a33b5d3460
Rollup merge of #24754 - iliekturtles:patch-1, r=steveklabnik
2015-04-24 09:50:16 +05:30
Manish Goregaokar
53d6b38c21
Rollup merge of #24753 - tynopex:patch-1, r=steveklabnik
...
Add section for range expressions.
2015-04-24 09:49:59 +05:30
Manish Goregaokar
f91216bdc2
Rollup merge of #24752 - doomrobo:patch-1, r=steveklabnik
...
Updated sample code to updated syntax (now compiles). Also tweaked the text to reflect the change.
2015-04-24 09:49:44 +05:30
Manish Goregaokar
76dd69183f
Rollup merge of #24750 - withoutboats:patch-1, r=steveklabnik
...
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-24 09:49:27 +05:30
Manish Goregaokar
7e3bb03429
Rollup merge of #24743 - geofft:trpl-macros-links, r=steveklabnik
...
r? @steveklabnik
2015-04-24 09:49:12 +05:30
Manish Goregaokar
292a25f755
Rollup merge of #24742 - mbrubeck:keywords, r=steveklabnik
...
* Add two missing keywords, `Self` and `proc`
* Fix some mis-alphabetized keywords
r? @steveklabnik
2015-04-24 09:48:50 +05:30
Manish Goregaokar
9863f2c4f3
Rollup merge of #24740 - mbrubeck:reference, r=steveklabnik
...
r? @steveklabnik
2015-04-24 09:48:33 +05:30
Manish Goregaokar
5a61d43526
Rollup merge of #24739 - nrc:span-item, r=huonw
...
(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-24 09:48:18 +05:30
Manish Goregaokar
cda00831e3
Rollup merge of #24734 - vadimcn:patch-1, r=alexcrichton
...
'win32' -> 'windows', added 'ios'
2015-04-24 09:47:58 +05:30
Manish Goregaokar
be26031672
Rollup merge of #24733 - nwin:patch-1, r=steveklabnik
...
Consistency. The book also refers to it as trait objects.
2015-04-24 09:47:43 +05:30
Mike Boutin
4c2274e1ab
Fix spelling errors.
2015-04-23 20:49:27 -04:00
tynopex
4db0efb45c
Update reference.md
...
Add section for range expressions.
2015-04-23 20:38:11 -04:00
Michael Rosenberg
352838ed34
Update "Generic Functions" section
...
Updated sample code to updated syntax (now compiles). Also tweaked the text to reflect the change.
2015-04-23 20:33:46 -04:00
Lee Aronson
3ae6a5e48d
Fixed typo
2015-04-23 16:50:05 -07:00
Lee Aronson
da5f80cc6d
Improve information about loops
...
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-23 16:46:33 -07:00
bors
21f278a687
Auto merge of #24633 - rapha:master, r=alexcrichton
2015-04-23 23:44:40 +00:00
bors
90bed3f947
Auto merge of #24695 - bluss:arc-default, r=alexcrichton
...
Relax bounds on Default implementation for Arc.
Send + Sync are overly restrictive, follow other traits for Arc.
2015-04-23 21:42:32 +00:00
Matt Brubeck
4cab21c003
Also mention /*!
doc comments.
2015-04-23 14:26:07 -07:00
Geoffrey Thomas
2f491228c0
TRPL: Remove references to "advanced macros chapter"
...
This was merged back into the regular macros chapter, but a few
references lingered and caused broken links.
2015-04-23 17:17:14 -04:00
Matt Brubeck
17390a1a79
Update and organize the Keywords table
...
* Add two missing keywords, `Self` and `proc`
* Fix some mis-alphabetized keywords
2015-04-23 14:15:42 -07:00
Geoffrey Thomas
ad2684c41c
TRPL: Fix link to macro section of reference
2015-04-23 17:08:19 -04:00
Matt Brubeck
1b878379e9
Clarify that //! comments are also doc comments.
2015-04-23 14:03:25 -07:00
Nick Cameron
17934e5c29
Do not include attributes in trait item spans.
...
(And other kinds of items).
2015-04-24 08:45:32 +12:00