summary refs log tree commit diff
path: root/src/doc/reference.md
AgeCommit message (Collapse)AuthorLines
2015-10-26reference: clarify implAleksey Kladov-5/+5
Another kind of nominal types in Rust are trait objects, so the following is valid ```rust trait A { } impl A { } ```
2015-10-15Rollup merge of #29058 - tshepang:rename, r=steveklabnikManish Goregaokar-33/+33
Shoud have been part of commit 0b13ee0ced39
2015-10-15Rollup merge of #29022 - apasel422:spell, r=steveklabnikManish Goregaokar-2/+2
r? @steveklabnik
2015-10-15Rollup merge of #28906 - tshepang:link, r=nikomatsakisManish Goregaokar-2/+5
2015-10-15reference: 'struct' is more common that 'structure'Tshepang Lekhonkhobe-33/+33
Shoud have been part of commit 0b13ee0ced39
2015-10-14reference: add link to the symbolsTshepang Lekhonkhobe-2/+5
2015-10-14Rollup merge of #29028 - Seeker14491:patch-1, r=ManishearthManish Goregaokar-5/+5
Having this code section hidden is misleading because it makes it look like implementing Circle for Foo automatically makes Foo implement Shape.
2015-10-13Unhide some code from the Traits sectionSeeker14491-5/+5
Having this code section hidden is misleading because it makes it look like implementing Circle for Foo automatically makes Foo implement Shape.
2015-10-13Correct spelling in docsAndrew Paseltiner-2/+2
2015-10-13Test and gate empty structures and variants betterVadim Petrochenkov-1/+1
2015-10-10doc: fixing typosKyle Robinson Young-1/+1
2015-10-10Auto merge of #28861 - pnkfelix:fsk-nonparam-dropck-issue28498, r=arielb1bors-0/+14
implement RFC 1238: nonparametric dropck. cc #28498 cc @nikomatsakis
2015-10-08Rollup merge of #28905 - tshepang:typo, r=steveklabnikSteve Klabnik-1/+1
2015-10-08Auto merge of #28621 - tshepang:move-safety, r=steveklabnikbors-93/+93
2015-10-08reference: fix typosTshepang Lekhonkhobe-1/+1
2015-10-06Non-parametric dropck; instead trust an unsafe attribute (RFC 1238).Felix S. Klock II-0/+14
Implement cannot-assume-parametricity (CAP) from RFC 1238, and add the UGEH attribute. ---- Note that we check for the attribute attached to the dtor method, not the Drop impl. (This is just to match the specification of RFC and the tests; I am not wedded to this approach.)
2015-10-05docs: anchors fixesSimon Mazur-13/+13
2015-10-02reference: fix markdown formattingAleksey Kladov-0/+3
2015-09-30Rollup merge of #28771 - tshepang:upper-case, r=steveklabnikSteve Klabnik-1/+1
2015-09-30Rollup merge of #28770 - tshepang:awkward, r=steveklabnikSteve Klabnik-2/+2
2015-09-30Improve identifier defintion in the referenceSteve Klabnik-2/+7
Fixes #28706
2015-09-29Auto merge of #27273 - tshepang:claim-not-accurate, r=steveklabnikbors-2/+2
2015-09-28reference: Unsafe section does not fit under FunctionsTshepang Lekhonkhobe-93/+93
2015-09-26Typo fix in use declaration section of referenceDenisKolodin-1/+1
2015-09-26Auto merge of #28612 - gandro:targetvendor, r=alexcrichtonbors-1/+6
This adds a new target property, `target_vendor`. It is to be be used as a matcher for conditional compilation. The vendor is part of the [autoconf target triple](http://llvm.org/docs/doxygen/html/classllvm_1_1Triple.html#details): `<arch><sub>-<vendor>-<os>-<env>`. `arch`, `target_os` and `target_env` are already supported by Rust. This change was suggested in PR #28593. It enables conditional compilation based on the vendor. This is needed for the rumprun target, which needs to match against both, target_os and target_vendor. The default value for `target_vendor` is "unknown", "apple" and "pc" are other common values. Matching against the `target_vendor` is introduced behind the feature gate `#![feature(cfg_target_vendor)]`. This is the first time I messed around with rustc internals. I just added the my code where I found the existing `target_*` variables, hopefully I haven't missed anything. Please review with care. :) r? @alexcrichton
2015-09-24Rollup merge of #28622 - tshepang:known-as-structs, r=steveklabnikSteve Klabnik-8/+8
2015-09-24Rollup merge of #28620 - tshepang:not-filled, r=steveklabnikSteve Klabnik-4/+0
2015-09-24Rollup merge of #28619 - tshepang:fix-link, r=steveklabnikSteve Klabnik-1/+1
2015-09-24Rollup merge of #28617 - tshepang:optional, r=steveklabnikSteve Klabnik-3/+4
2015-09-24reference: rename "structure" to the more familiar "struct"Tshepang Lekhonkhobe-8/+8
2015-09-24reference: follow idiom in code snippetTshepang Lekhonkhobe-1/+1
2015-09-24reference: 3 of the 4 things mentioned here are optionalTshepang Lekhonkhobe-3/+4
2015-09-24reference: fix anchor linkTshepang Lekhonkhobe-1/+1
2015-09-24reference: not sure this is the right place to discuss designTshepang Lekhonkhobe-4/+0
2015-09-24reference: make that less awkward to readTshepang Lekhonkhobe-2/+2
2015-09-24reference: "ffi" is normally in upper caseTshepang Lekhonkhobe-1/+1
2015-09-24rustc: Add target_vendor for target triplesSebastian Wicki-1/+6
This adds a new target property, `target_vendor` which can be used as a matcher for conditional compilation. The vendor is part of the autoconf target triple: <arch><sub>-<vendor>-<os>-<env> The default value for `target_vendor` is "unknown". Matching against the `target_vendor` with `#[cfg]` is currently feature gated as `cfg_target_vendor`.
2015-09-18Add feature gateVadim Petrochenkov-1/+4
2015-09-18Add some more testsVadim Petrochenkov-2/+11
2015-09-17Rollup merge of #28473 - tshepang:lowercase, r=steveklabnikSteve Klabnik-10/+10
2015-09-17Rollup merge of #28471 - tshepang:markup, r=steveklabnikSteve Klabnik-1/+1
2015-09-17reference: actual keywords feel more appropriateTshepang Lekhonkhobe-10/+10
2015-09-17reference: mark that up to make it more clear it is a keywordTshepang Lekhonkhobe-1/+1
2015-09-17doc: follow idiom in code snippetTshepang Lekhonkhobe-1/+1
2015-09-11Auto merge of #28348 - petrochenkov:novirt, r=alexcrichtonbors-3/+0
Noticed these yesterday while reading libsyntax
2015-09-11Remove some remains of virtual structs from the parserVadim Petrochenkov-3/+0
2015-09-11Auto merge of #28328 - tshepang:unusual, r=brsonbors-10/+10
2015-09-10Auto merge of #28329 - tshepang:comfort, r=steveklabnikbors-2/+2
2015-09-10reference: not comfortable seeing a paragraph starting with a lowercase letterTshepang Lekhonkhobe-2/+2
2015-09-10reference: using periods here is unusualTshepang Lekhonkhobe-10/+10