about summary refs log tree commit diff
path: root/src/doc/reference.md
AgeCommit message (Collapse)AuthorLines
2015-02-10rollup merge of #21918: ranma42/replace-beAlex Crichton-1/+1
Conflicts: src/test/compile-fail/reserved-be.rs src/test/compile-fail/reserved-become.rs src/test/parse-fail/reserved-be.rs
2015-02-09Remove bottom from the referenceSteve Klabnik-3/+1
Fixes #20172
2015-02-09Use a crate attribute to load pluginsKeegan McAllister-8/+8
#[plugin] #[no_link] extern crate bleh; becomes a crate attribute #![plugin(bleh)] The feature gate is still required. It's almost never correct to link a plugin into the resulting library / executable, because it will bring all of libsyntax and librustc with it. However if you really want this behavior, you can get it with a separate `extern crate` item in addition to the `plugin` attribute. Fixes #21043. Fixes #20769. [breaking-change]
2015-02-08Rename Show to Debug, String to DisplayAlexander Korolkov-2/+2
Update reference.md: - derive() no longer supports Zero trait - derive() now supports Copy trait
2015-02-08Auto merge of #21988 - kmcallister:no-std, r=sfacklerbors-0/+6
Fixes #21833. [breaking-change] r? @alexcrichton The tests in #21912 will also need `#[feature(no_std)]`. If you're okay with both PRs, I can merge and test them.
2015-02-07reference.md: Byte string literals start with a 'b'Geoffrey Thomas-5/+7
This was correct in the EBNF, but not in the prose (which seems to have been copied-and-pasted from regular string literals).
2015-02-07Auto merge of #21874 - nagisa:reference-is-removal, r=steveklabnikbors-5/+5
r? @steveklabnik
2015-02-07Feature-gate #![no_std]Keegan McAllister-0/+6
Fixes #21833. [breaking-change]
2015-02-06Rollup merge of #21925 - sfackler:allow-missing-copy, r=alexcrichtonManish Goregaokar-1/+0
This was particularly helpful in the time just after OIBIT's implementation to make sure things that were supposed to be Copy continued to be, but it's now creates a lot of noise for types that intentionally don't want to be Copy. r? @alexcrichton
2015-02-03Switch missing_copy_implementations to default-allowSteven Fackler-1/+0
This was particularly helpful in the time just after OIBIT's implementation to make sure things that were supposed to be Copy continued to be, but it's now creates a lot of noise for types that intentionally don't want to be Copy.
2015-02-04Replace `be` with `become`Andrea Canciani-1/+1
As per rust-lang/rfcs#601, replace `be` with `become` as reserved keyword for tail call optimization.
2015-02-04Add staged_api and unmarked_api features to reference.mdManish Goregaokar-0/+7
2015-02-02Remove `is` postfix in Reference → NumbersSimonas Kazlauskas-5/+5
2015-02-02rollup merge of #21832: genbattle/doc-unicode-escapesAlex Crichton-10/+6
Unicode escapes were changed in [this RFC](https://github.com/rust-lang/rfcs/blob/28aeb3c391c9afd344f124d3a69bdc2a420638b2/text/0446-es6-unicode-escapes.md) to use the ES6 \u{00FFFF} syntax with a variable number of digits from 1-6, eliminating the need for two different syntaxes for unicode literals. I have updated The Reference and grammar.md to reflect these changes.
2015-02-02rollup merge of #21819: dsyang/doc_fixAlex Crichton-1/+1
as titled. See issue #21770
2015-02-02rollup merge of #21754: semarie/openbsd-rebasedAlex Crichton-1/+2
Hi. Here a commit in order to add OpenBSD support to rust. - tests status: run-pass: test result: ok. 1879 passed; 0 failed; 24 ignored; 0 measured run-fail: test result: ok. 81 passed; 0 failed; 5 ignored; 0 measured compile-fail: test result: ok. 1634 passed; 0 failed; 22 ignored; 0 measured run-pass-fulldeps: test result: ok. 22 passed; 0 failed; 1 ignored; 0 measured compile-fail-fulldeps: test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured - The current implementation of load_self function (src/libstd/sys/unix/os.rs) isn't optimal as under OpenBSD I haven't found a reliable method to get the filename of a running process. The current implementation is enought for bootstrapping purpose. - I have disable `run-pass/tcp-stress.rs` test under openbsd. When run manually, the test pass, but when run under `compiletest`, it timeout and echo continuoulsy `Too many open files`. - For building with jemalloc, a more recent version of jemalloc would be mandatory. See https://github.com/jemalloc/jemalloc/pull/188 for more details.
2015-02-01openbsd supportSébastien Marie-1/+2
2015-02-01Updated unicode escape documentation to match current implementation.Nick Sarten-10/+6
Unicode escapes were changed in [this RFC](https://github.com/rust-lang/rfcs/blob/28aeb3c391c9afd344f124d3a69bdc2a420638b2/text/0446-es6-unicode-escapes.md) to use the ES6 \u{00FFFF} syntax with a variable number of digits from 1-6, eliminating the need for two different syntaxes for unicode literals.
2015-01-31fix use decl code example in referenceDan Yang-1/+1
2015-01-31Reference: Purge `isize` from non-memory-related examplesTobias Bucher-21/+23
Also explain integer fallback to `i32`.
2015-01-30rollup merge of #21780: steveklabnik/no_as_sliceAlex Crichton-1/+1
Use auto deref instead.
2015-01-30std: Stabilize FromStr and parseAlex Crichton-1/+1
This commits adds an associated type to the `FromStr` trait representing an error payload for parses which do not succeed. The previous return value, `Option<Self>` did not allow for this form of payload. After the associated type was added, the following attributes were applied: * `FromStr` is now stable * `FromStr::Err` is now stable * `FromStr::from_str` is now stable * `StrExt::parse` is now stable * `FromStr for bool` is now stable * `FromStr for $float` is now stable * `FromStr for $integral` is now stable * Errors returned from stable `FromStr` implementations are stable * Errors implement `Display` and `Error` (both impl blocks being `#[stable]`) Closes #15138
2015-01-30Don't use as_slice() in docsSteve Klabnik-1/+1
Use deref coercions instead.
2015-01-28Merge remote-tracking branch 'origin/master' into rollupManish Goregaokar-71/+0
Conflicts: src/libcollections/slice.rs src/libcore/nonzero.rs src/libcore/ops.rs
2015-01-27Rollup merge of #21612 - bombless:patch-3, r=alexcrichtonManish Goregaokar-2/+2
2015-01-27Rollup merge of #21602 - japaric:derive-copy, r=alexcrichtonManish Goregaokar-1/+1
2015-01-26Merge remote-tracking branch 'rust-lang/master'Brian Anderson-4/+0
Conflicts: src/librustc/lint/builtin.rs src/librustc/lint/context.rs
2015-01-25Merge remote-tracking branch 'rust-lang/master'Brian Anderson-133/+2
Conflicts: src/libcore/cmp.rs src/libcore/fmt/mod.rs src/libcore/iter.rs src/libcore/marker.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/result.rs src/libcore/str/mod.rs src/librustc/lint/builtin.rs src/librustc/lint/context.rs src/libstd/sync/mpsc/mod.rs src/libstd/sync/poison.rs
2015-01-26Remove every mention of "onceness".Eduard Burtescu-4/+0
2015-01-25cleanup: s/impl Copy/#[derive(Copy)]/gJorge Aparicio-1/+1
2015-01-25Merge remote-tracking branch 'rust-lang/master'Brian Anderson-31/+24
Conflicts: mk/tests.mk src/liballoc/arc.rs src/liballoc/boxed.rs src/liballoc/rc.rs src/libcollections/bit.rs src/libcollections/btree/map.rs src/libcollections/btree/set.rs src/libcollections/dlist.rs src/libcollections/ring_buf.rs src/libcollections/slice.rs src/libcollections/str.rs src/libcollections/string.rs src/libcollections/vec.rs src/libcollections/vec_map.rs src/libcore/any.rs src/libcore/array.rs src/libcore/borrow.rs src/libcore/error.rs src/libcore/fmt/mod.rs src/libcore/iter.rs src/libcore/marker.rs src/libcore/ops.rs src/libcore/result.rs src/libcore/slice.rs src/libcore/str/mod.rs src/libregex/lib.rs src/libregex/re.rs src/librustc/lint/builtin.rs src/libstd/collections/hash/map.rs src/libstd/collections/hash/set.rs src/libstd/sync/mpsc/mod.rs src/libstd/sync/mutex.rs src/libstd/sync/poison.rs src/libstd/sync/rwlock.rs src/libsyntax/feature_gate.rs src/libsyntax/test.rs
2015-01-25fix wrong linkYork Xiang-2/+2
2015-01-24Rollup merge of #21535 - steveklabnik:gh19759, r=alexcrichtonFlavio Percoco Premoli-130/+1
Fixes #19759 I'm not going to bother to do more than this, as it'll end up getting re-done as part of the reference work, but at least it's correct now.
2015-01-24Rollup merge of #21532 - steveklabnik:gh21531, r=alexcrichtonFlavio Percoco Premoli-3/+1
Fixes #21531
2015-01-23Remove lang items from the reference.Steve Klabnik-130/+1
Fixes #19759
2015-01-23Auto merge of #21374 - dgrunwald:range-notation-fixes, r=nikomatsakisbors-4/+3
This PR is intended as alternative to #20958. It fixes the same grammar inconsistencies, but does not increase the operator precedence of `..`, leaving it at the same level as the assignment operator. For previous discussion, see #20811 and #20958. Grammar changes: * allow `for _ in 1..i {}` (fixes #20241) * allow `for _ in 1.. {}` as infinite loop * prevent use of range notation in contexts where only operators of high precedence are expected (fixes #20811) Parser code cleanup: * remove `RESTRICTION_NO_DOTS` * make `AS_PREC` const and follow naming convention * make `min_prec` inclusive r? nikomatsakis
2015-01-22Remove section on stability levels from referenceBrian Anderson-71/+0
Obsolete, no replacement. The mechanics here are mostly implementation details at this point.
2015-01-22remove weird sentenceSteve Klabnik-3/+1
Fixes #21531
2015-01-22Rollup merge of #21091 - steveklabnik:add_attribute_docs, r=huonwSteve Klabnik-0/+12
Fixes #6444 I need some help with the macro docs here, as I couldn't figure it out. @kmcallister @eddyb or someone else?
2015-01-22Document remaining attributes and macrosSteve Klabnik-0/+12
Fixes #6444
2015-01-22Fix some grammar inconsistencies for the '..' range notation.Daniel Grunwald-4/+3
Grammar changes: * allow 'for _ in 1..i {}' (fixes #20241) * allow 'for _ in 1.. {}' as infinite loop * prevent use of range notation in contexts where only operators of high precedence are expected (fixes #20811) Parser code cleanup: * remove RESTRICTION_NO_DOTS * make AS_PREC const and follow naming convention * make min_prec inclusive
2015-01-21rollup merge of #20179: eddyb/blind-itemsAlex Crichton-23/+9
Conflicts: src/librustc/diagnostics.rs src/librustdoc/clean/mod.rs src/librustdoc/html/format.rs src/libsyntax/parse/parser.rs
2015-01-21docs: fix fallout of merging ast::ViewItem into ast::Item.Eduard Burtescu-23/+9
2015-01-21remove `NoSendItem` and `NoSyncItem`Jorge Aparicio-4/+0
2015-01-20Test fixes and rebase conflictsAlex Crichton-5/+5
2015-01-21Rollup merge of #21179 - nodakai:reference-mod-to-self, r=huonwBarosl LEE-4/+4
This should have been done together with 56dcbd17fdad5d39b7b02e22a7490d2468718d08 for rust-lang/rust#20361
2015-01-21Rollup merge of #21294 - alfie:typo, r=steveklabnikBarosl LEE-1/+1
Wrong verb.
2015-01-21Rollup merge of #21355 - alfie:suffix, r=steveklabnikBarosl LEE-107/+107
More [u]int => [i|u]size and [i|u] => [i|u]s changes
2015-01-21Rollup merge of #20998 - estsauver:20984, r=steveklabnikBarosl LEE-1/+1
There are a large number of places that incorrectly refer to deriving in comments, instead of derives. If someone could look at src/etc/generate-deriving-span-tests.py, I'm not sure how those tests were passing before/if they were.
2015-01-18docs: replacing more deprecated integer suffixesAlfie John-80/+80