about summary refs log tree commit diff
path: root/src/doc/reference.md
AgeCommit message (Collapse)AuthorLines
2014-11-03Small doc fixesDaniel Hofstetter-4/+4
2014-11-02refactor libcollections as part of collection reformAlexis Beingessner-8/+8
* Moves multi-collection files into their own directory, and splits them into seperate files * Changes exports so that each collection has its own module * Adds underscores to public modules and filenames to match standard naming conventions (that is, treemap::{TreeMap, TreeSet} => tree_map::TreeMap, tree_set::TreeSet) * Renames PriorityQueue to BinaryHeap * Renames SmallIntMap to VecMap * Miscellanious fallout fixes [breaking-change]
2014-11-01Replace deprecated missing_doc attribute.Joseph Crail-8/+8
2014-11-01Reference: Add missing of'sDaniel Hofstetter-3/+3
2014-10-31auto merge of #18459 : alexcrichton/rust/rollup, r=alexcrichtonbors-2/+5
2014-10-30rollup merge of #18408 : thestinger/unsafeAlex Crichton-2/+5
2014-10-30auto merge of #18376 : steveklabnik/rust/gh7963, r=alexcrichtonbors-0/+1
FIxes #7963.
2014-10-29auto merge of #17894 : steveklabnik/rust/fail_to_panic, r=aturonbors-22/+22
This in-progress PR implements https://github.com/rust-lang/rust/issues/17489. I made the code changes in this commit, next is to go through alllllllll the documentation and fix various things. - Rename column headings as appropriate, `# Panics` for panic conditions and `# Errors` for `Result`s. - clean up usage of words like 'fail' in error messages Anything else to add to the list, @aturon ? I think I should leave the actual functions with names like `slice_or_fail` alone, since you'll get to those in your conventions work? I'm submitting just the code bits now so that we can see it separately, and I also don't want to have to keep re-building rust over and over again if I don't have to :wink: Listing all the bits so I can remember as I go: - [x] compiler-rt - [x] compiletest - [x] doc - [x] driver - [x] etc - [x] grammar - [x] jemalloc - [x] liballoc - [x] libarena - [x] libbacktrace - [x] libcollections - [x] libcore - [x] libcoretest - [x] libdebug - [x] libflate - [x] libfmt_macros - [x] libfourcc - [x] libgetopts - [x] libglob - [x] libgraphviz - [x] libgreen - [x] libhexfloat - [x] liblibc - [x] liblog - [x] libnative - [x] libnum - [x] librand - [x] librbml - [x] libregex - [x] libregex_macros - [x] librlibc - [x] librustc - [x] librustc_back - [x] librustc_llvm - [x] librustdoc - [x] librustrt - [x] libsemver - [x] libserialize - [x] libstd - [x] libsync - [x] libsyntax - [x] libterm - [x] libtest - [x] libtime - [x] libunicode - [x] liburl - [x] libuuid - [x] llvm - [x] rt - [x] test
2014-10-29Rename fail! to panic!Steve Klabnik-22/+22
https://github.com/rust-lang/rfcs/pull/221 The current terminology of "task failure" often causes problems when writing or speaking about code. You often want to talk about the possibility of an operation that returns a Result "failing", but cannot because of the ambiguity with task failure. Instead, you have to speak of "the failing case" or "when the operation does not succeed" or other circumlocutions. Likewise, we use a "Failure" header in rustdoc to describe when operations may fail the task, but it would often be helpful to separate out a section describing the "Err-producing" case. We have been steadily moving away from task failure and toward Result as an error-handling mechanism, so we should optimize our terminology accordingly: Result-producing functions should be easy to describe. To update your code, rename any call to `fail!` to `panic!` instead. Assuming you have not created your own macro named `panic!`, this will work on UNIX based systems: grep -lZR 'fail!' . | xargs -0 -l sed -i -e 's/fail!/panic!/g' You can of course also do this by hand. [breaking-change]
2014-10-28reference: document unwinding unsafety issuesDaniel Micay-0/+3
2014-10-28reference: slices are now regular typesDaniel Micay-1/+1
2014-10-28reference: note the existence of UnsafeCellDaniel Micay-1/+1
2014-10-28update keyword listSteve Klabnik-18/+19
Fixes #17969
2014-10-28Describe doc attribute in the referenceSteve Klabnik-0/+1
FIxes #7963.
2014-10-17auto merge of #18052 : IvanUkhov/rust/raw-byte-string-literals, r=aturonbors-1/+1
Hello, The pull request fixes a typo in the description of raw string literals in [reference.md](https://github.com/rust-lang/rust/blob/master/src/doc/reference.md#byte-and-byte-string-literals). Regards, Ivan
2014-10-16librustc: Remove trans::reflect and the opaque and ty_visitor lang items.Luqman Aden-4/+0
2014-10-16Remove libdebug and update tests.Luqman Aden-1/+1
2014-10-15Fix the description of raw byte string literalsIvan Ukhov-1/+1
2014-10-13rollup merge of #17968 : nodakai/really-fix-kw-tableAlex Crichton-17/+1
2014-10-13auto merge of #17733 : jgallagher/rust/while-let, r=alexcrichtonbors-0/+14
This is *heavily* based on `if let` (#17634) by @jakub- and @kballard This should close #17687
2014-10-13auto merge of #17963 : sfackler/rust/cfg-error, r=alexcrichtonbors-8/+10
All deprecation warnings have been converted to errors. This includes the warning for multiple cfgs on one item. We'll leave that as an error for some period of time to ensure that all uses are updated before the behavior changes from "or" to "and".
2014-10-12Continue cfg syntax transitionSteven Fackler-8/+10
All deprecation warnings have been converted to errors. This includes the warning for multiple cfgs on one item. We'll leave that as an error for some period of time to ensure that all uses are updated before the behavior changes from "or" to "and".
2014-10-12Fix HTML version of the keyword table.NODA, Kai-17/+1
This should really fix rust-lang/rust#17528.
2014-10-11Remove `virtual` structs from the referenceJakub Wieczorek-17/+0
2014-10-10Add `while let` to the referenceJohn Gallagher-0/+12
Closes #17687
2014-10-10Move `while let` behind `while_let` feature gateJohn Gallagher-0/+2
2014-10-09doc: Document constants in the referenceAlex Crichton-19/+65
2014-10-09auto merge of #17873 : steveklabnik/rust/gh16413, r=alexcrichtonbors-1/+3
A fix for the issues mentioned in https://github.com/rust-lang/rust/issues/16413
2014-10-08add mention of test attributeSteve Klabnik-0/+2
Fixes #16413
2014-10-08remove crate_id attribute, add crate_name oneSteve Klabnik-1/+1
this is true as of https://github.com/rust-lang/rust/pull/15319
2014-10-07Fix keyword tableSteve Klabnik-0/+3
Markdown tables require a header, and we don't want one. Fixes #17528
2014-10-07Put slicing syntax behind a feature gate.Nick Cameron-1/+1
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-03Test fixes from the rollupAlex Crichton-1/+1
2014-10-03auto merge of #16995 : kmcallister/rust/plugin-tutorial, r=alexcrichtonbors-6/+16
@steveklabnik, are you interested in looking this over?
2014-10-02rollup merge of #17666 : eddyb/take-garbage-outAlex Crichton-1/+1
Conflicts: src/libcollections/lib.rs src/libcore/lib.rs src/librustdoc/lib.rs src/librustrt/lib.rs src/libserialize/lib.rs src/libstd/lib.rs src/test/run-pass/issue-8898.rs
2014-10-02Revert "Put slicing syntax behind a feature gate."Aaron Turon-1/+1
This reverts commit 95cfc35607ccf5f02f02de56a35a9ef50fa23a82.
2014-10-02docs: remove mentions of Gc.Eduard Burtescu-1/+1
2014-10-02Put slicing syntax behind a feature gate.Nick Cameron-1/+1
[breaking-change] If you are using slicing syntax you will need to add #![feature(slicing_syntax)] to your crate.
2014-10-01Link plugins guide from elsewhereKeegan McAllister-6/+16
2014-10-01auto merge of #17584 : pcwalton/rust/range-patterns-dotdotdot, r=nick29581bors-1/+1
This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. r? @nick29581
2014-09-30Add `if let` to the referenceJakub Wieczorek-1/+14
2014-09-30Update based on PR feedbackKevin Ballard-1/+1
2014-09-30Move `if let` behind a feature gateKevin Ballard-0/+2
2014-09-30librustc: Forbid `..` in range patterns.Patrick Walton-1/+1
This breaks code that looks like: match foo { 1..3 => { ... } } Instead, write: match foo { 1...3 => { ... } } Closes #17295. [breaking-change]
2014-09-22clean up some references to 'owned'Steve Klabnik-2/+2
2014-09-22vectors are not in the languageSteve Klabnik-16/+9
2014-09-22die 'managed'Steve Klabnik-34/+14
2014-09-22logging is an external crateSteve Klabnik-58/+0
2014-09-22no it won'tSteve Klabnik-2/+0
2014-09-22runtime has no C++Steve Klabnik-1/+1