summary refs log tree commit diff
path: root/src/doc/reference.md
AgeCommit message (Collapse)AuthorLines
2015-02-18rollup merge of #22286: nikomatsakis/variance-4bAlex Crichton-5/+5
Conflicts: src/librustc/middle/infer/combine.rs src/librustc_typeck/check/wf.rs
2015-02-18rollup merge of #22502: nikomatsakis/deprecate-bracket-bracketAlex Crichton-1/+1
Conflicts: src/libcollections/slice.rs src/libcollections/str.rs src/librustc/middle/lang_items.rs src/librustc_back/rpath.rs src/librustc_typeck/check/regionck.rs src/libstd/ffi/os_str.rs src/libsyntax/diagnostic.rs src/libsyntax/parse/parser.rs src/libsyntax/util/interner.rs src/test/run-pass/regions-refcell.rs
2015-02-18Replace all uses of `&foo[]` with `&foo[..]` en masse.Niko Matsakis-1/+1
2015-02-18Fallout: docs, elided examples often elided too much.Niko Matsakis-5/+5
2015-02-18Update docs by dropping suffixes except where they served to instruct.Niko Matsakis-12/+8
2015-02-17Rollup merge of #22364 - Manishearth:rfc-572-forbid-attr, r=nikomatsakisManish Goregaokar-0/+7
fixes #22203 r? @nikomatsakis This breaks code that might be using attributes randomly, so it's technically a [breaking-change]
2015-02-17Rollup merge of #22413 - steveklabnik:gh22386, r=alexcrichtonManish Goregaokar-3/+2
Fixes #22386
2015-02-17Rollup merge of #22392 - laijs:fix-reference-md-plugin-link, r=steveklabnikManish Goregaokar-1/+1
book/syntax-extensions.html was renamed to book/plugins.html, the link should be also updated. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
2015-02-17Add custom_attribute and rustc_attrs to reference.mdManish Goregaokar-0/+7
2015-02-16remove 'crate files' sentenceSteve Klabnik-3/+2
Fixes #22386
2015-02-16reference: fix outdated link for Compiler pluginsLai Jiangshan-1/+1
book/syntax-extensions.html was renamed to book/plugins.html, the link should be also updated. Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
2015-02-15Rollup merge of #22308 - steveklabnik:gh19278, r=brsonManish Goregaokar-3/+4
Fixes #19278
2015-02-15Rollup merge of #22307 - steveklabnik:gh14849, r=huonwManish Goregaokar-3/+13
Fixes #14849
2015-02-15Rollup merge of #22284 - steveklabnik:fix_another_lie, r=nikomatsakisManish Goregaokar-3/+0
This isn't something we want to guarantee. r? @nikomatsakis
2015-02-15Rollup merge of #22277 - pnkfelix:reference-update-feature-gate-list, ↵Manish Goregaokar-10/+52
r=steveklabnik Added all active features to the list in reference.md. Added a second note about keeping the reference.md list up-to-date to the bottom of the list, since not everyone (including me) reads the big comment at the top of it. :) Ensured that the feature gate list in reference.md is kept in alphabetical order.
2015-02-15Rollup merge of #22269 - steveklabnik:gh22136, r=alexcrichtonManish Goregaokar-3/+2
Fixes #22136
2015-02-13Generate grammar.html and link to it from the reference.Steve Klabnik-3/+4
Fixes #19278
2015-02-13clarfiy reference with regards to the value of block expressionsSteve Klabnik-3/+13
Fixes #14849
2015-02-13Don't specify tuple layout.Steve Klabnik-3/+0
This isn't something we want to guarantee.
2015-02-13Added all active features to the list in reference.md.Felix S. Klock II-10/+52
Added a second note about keeping the reference.md list up-to-date to the bottom of the list, since not everyone (including me) reads the big comment at the top of it. :) Ensured that the feature gate list in reference.md is kept in alphabetical order.
2015-02-13Remove outdated information about copy/move from the referenceSteve Klabnik-3/+2
Fixes #22136
2015-02-12Updated usage of StrExt.parse() as per a recommendation by edwardw.Nick Sarten-1/+1
2015-02-12Updated documentation to use range notation syntax.Nick Sarten-3/+3
Replaced outdated use of the `range(start, end)` function where approriate with `start..end`, and tweaked the examples to compile and run with the latest rust. I also fixed two periphery compile issues in reference.md which were occluding whether there were any new errors created by these changes, so I fixed them.
2015-02-11opt into box_patterns in the reference doc that uses them.Felix S. Klock II-0/+3
2015-02-10rollup merge of #22130: steveklabnik/gh20172Alex Crichton-3/+1
Fixes #20172
2015-02-10rollup merge of #22094: alkor/cleanup-show-stringAlex Crichton-2/+2
Rename several remaining `Show`s to Debug, `String`s to Display (mostly in comments and docs). Update reference.md: - derive() no longer supports Zero trait - derive() now supports Copy trait
2015-02-10rollup merge of #22072: geofft/doc-byte-string-literalAlex Crichton-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-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.