Tshepang Lekhonkhobe
10e762eaad
reference: 'inherits' is more clear than 'implies'
2015-07-06 01:01:37 +02:00
Steve Klabnik
4c7c7b7477
Rollup merge of #26800 - tshepang:comma, r=Gankro
2015-07-05 15:12:20 -04:00
Steve Klabnik
8b51b8f181
Rollup merge of #26789 - tshepang:improve-array-examples, r=alexcrichton
2015-07-05 15:12:20 -04:00
Tshepang Lekhonkhobe
e08bb7f54c
reference: remove stray comma
2015-07-05 17:58:46 +02:00
Tshepang Lekhonkhobe
0d3954f4c5
reference: improve coercions section
2015-07-05 17:49:06 +02:00
Steve Klabnik
89d7dd1b33
Rollup merge of #26795 - tshepang:typo, r=steveklabnik
2015-07-05 07:35:16 -04:00
Tshepang Lekhonkhobe
a1dd2fb956
reference: fix typo
2015-07-05 16:36:43 +02:00
Steve Klabnik
9d23df481d
Rollup merge of #26792 - tshepang:follow-idiom, r=steveklabnik
2015-07-05 07:35:15 -04:00
Tshepang Lekhonkhobe
da90ddb5fd
reference: improve lambda example
2015-07-05 14:49:08 +02:00
Steve Klabnik
3b3cdb124a
Rollup merge of #26791 - tshepang:misc-ref-fixes, r=steveklabnik
...
One is for grammar, and the other is for clarity
2015-07-05 07:35:15 -04:00
Tshepang Lekhonkhobe
73c1f242e3
reference: tiny fixes
...
One is for grammar, and the other is for clarity
2015-07-05 14:45:55 +02:00
Steve Klabnik
a5f9162909
Rollup merge of #26788 - tshepang:not-exclamation-marks, r=steveklabnik
...
The sentences are also so short that they don't need periods at the end
2015-07-05 07:35:15 -04:00
Steve Klabnik
ec37d456aa
Rollup merge of #26787 - tshepang:tuple-usage, r=steveklabnik
2015-07-05 07:35:15 -04:00
Steve Klabnik
08395a9a06
Rollup merge of #26785 - tshepang:inference, r=steveklabnik
...
…at and integer types
2015-07-05 07:35:14 -04:00
Tshepang Lekhonkhobe
f82276d947
reference: improve examples of the different array types
2015-07-05 13:33:06 +02:00
Tshepang Lekhonkhobe
f76187c426
reference: that looks like exclamations marks for some fonts
...
The sentences are also so short that they don't need periods at the end
2015-07-05 13:16:33 +02:00
Tshepang Lekhonkhobe
72c027535a
reference: make tuple usage examples more meaningful
2015-07-05 13:04:04 +02:00
Tshepang Lekhonkhobe
4fc28c90f8
reference: improve readability of type inference explanations for float and integer types
2015-07-05 12:31:44 +02:00
Alex Newman
0b7c4f57f6
Add netbsd amd64 support
2015-07-01 19:09:14 -07:00
Alexis Beingessner
c98e46c7ca
accessing private fields is not safe, and io isn't scary
2015-06-26 11:44:02 -07:00
Manish Goregaokar
3afc385ae1
Rollup merge of #26349 - petrochenkov:bitwise, r=steveklabnik
...
I'm surprised that bitwise operators `&`, `|` and `^` are implemented for `bool` arguments, because inspection of boolean's bits is not something that should be encouraged and because `&&` -> `&` is a common typo, but if they are implemented, then their behavior should be documented.
2015-06-18 13:38:10 +05:30
Manish Goregaokar
39e4d03e35
Rollup merge of #26342 - steveklabnik:quix_reference_fix, r=alexcrichton
...
https://github.com/rust-lang/rust/pull/26323/files#r32503568
2015-06-18 13:38:09 +05:30
Vadim Petrochenkov
a8f666f1f4
Document behavior of bitwise operators with boolean arguments
2015-06-17 00:44:40 +03:00
bors
10356458a7
Auto merge of #24738 - joliv:patch-2, r=steveklabnik
...
The "unit value" is a value of the "unit type," not the "unit value type." Regardless of correctness, this straight syntax is easier to grok.
Part of #16676
Sorry if something's off here, it's my first pull request to rust!
2015-06-16 17:08:36 +00:00
Steve Klabnik
5a63326442
One more consistency fix in the reference
...
https://github.com/rust-lang/rust/pull/26323/files#r32503568
2015-06-16 11:29:20 -04:00
joliv
b87056fa31
Add unit type info and update associated link
...
Fixes #25244
2015-06-15 23:04:55 -04:00
Steve Klabnik
22b6a5dc2a
Significantly simplify generic example
...
Fixes #26320
2015-06-15 16:38:05 -04:00
Matt Brubeck
334ce91443
[reference] Fix typo in extern fn section
2015-06-12 08:08:48 -07:00
Nick Hamann
c8b088eb38
Add explanation for E0116 and update the error message.
...
Also updates the reference on this point.
2015-06-10 02:18:14 -05:00
Steve Klabnik
32c6deec07
Rollup merge of #26111 - tshepang:consistency, r=brson
2015-06-09 17:24:42 -04:00
Manish Goregaokar
fd2c76cd94
Rollup merge of #26113 - tshepang:avoid-abbreviations, r=steveklabnik
2015-06-09 05:42:29 +05:30
Manish Goregaokar
38a606ac67
Rollup merge of #26112 - tshepang:readability, r=steveklabnik
2015-06-09 05:42:28 +05:30
Tshepang Lekhonkhobe
76102b0aa7
reference: that looks better without those abbreviations
2015-06-09 00:20:51 +02:00
Tshepang Lekhonkhobe
7abb40c79a
reference: improve readability
2015-06-09 00:16:23 +02:00
Tshepang Lekhonkhobe
0d033dd7c2
reference: get consistent by removing unneeded whitespace
2015-06-09 00:00:20 +02:00
diwic
33118eb17a
Make all leaks safe in language reference
...
Since it was determined that no leaks were unsafe, some of the documentation is still not clear about this. Here's one example.
2015-06-07 23:14:01 +02:00
Manish Goregaokar
fd3b6ca508
Fix doctest (fixup #25900)
2015-06-04 11:26:31 +05:30
Manish Goregaokar
8c2806caae
Rollup merge of #25900 - lorenzb:more_about_types, r=nikomatsakis
...
My main sources of information are [RFC401](https://github.com/rust-lang/rfcs/blob/master/text/0401-coercions.md ), the rust IRC channel, and a bunch of experiments to figure out what `rustc` currently supports.
Note that the RFC calls for some coercion behaviour that is not implemented yet (see #18469 ).
The documentation in this PR mostly covers current behaviour of rust and doesn't document the future behaviour. I haven't written about receiver expression coercion.
I would be happy to rewrite/adapt the PR according to feedback.
r? @steveklabnik
2015-06-04 10:07:02 +05:30
Steve Klabnik
5235065d74
Remove #[static_assert]
...
This was always a weird feature, and isn't being used in the compiler.
Static assertions should be done better than this.
This implements RFC #1096 .
Fixes #13951
Fixes #23008
Fixes #6676
This is behind a feature gate, but that's still a
[breaking-change]
2015-06-03 09:38:13 -04:00
Lorenz
babb2684d8
Extend rust reference with a section about type coercions
2015-05-30 14:26:50 +02:00
Lorenz
a2b61e16b1
Extend rust reference with a section about subtyping
2015-05-30 14:25:58 +02:00
Liigo Zhuang
d061a0f8d5
floating-point types are machine types, not machine-dependent types
2015-05-28 18:11:32 +08:00
Matt Brubeck
54b1608b2d
Document the debug_assertions cfg option
2015-05-21 16:34:26 -07:00
Michael Rosenberg
d3ac395dcc
Update reference.md
...
Added `Deref` to the "Special Traits" section
2015-05-15 22:07:20 -04:00
Nick Hamann
809be9b7f4
Fix link to RFC 255 in Reference.
2015-05-13 19:07:19 -05:00
Steve Klabnik
87c903a95c
Fix test failure in the reference
2015-05-13 17:53:57 -04:00
Nick Hamann
b2f486feaf
Improve wording for the "Trait objects" section of the reference.
2015-05-12 23:35:27 -05:00
Nick Hamann
857a12a01e
Expand the "Traits" section of the reference.
2015-05-12 23:33:10 -05:00
Niko Matsakis
393a37ecbd
Correct various small points, expand some sections, while avoiding
...
too much detail.
2015-05-12 12:02:39 -04:00
Steve Klabnik
adf5b84394
Rollup merge of #25283 - steveklabnik:gh24999, r=alexcrichton
...
and remove references to the unit type, which no longer exists
Fixes #24999
2015-05-11 23:24:19 -04:00