summary refs log tree commit diff
path: root/src/doc/reference.md
AgeCommit message (Collapse)AuthorLines
2015-05-13Backport TRPL, reference, and grammar.Steve Klabnik-812/+508
Rather than port each individual change to these files, for the release, I just waited to do it all at the end, in this commit. Since individual comits made it to master, everyone should get proper credit in the main tree, and AUTHORS includes those whose changes are here.
2015-05-12Squeeze the last bits of `task`s in documentation in favor of `thread`Barosl Lee-1/+1
An automated script was run against the `.rs` and `.md` files, subsituting every occurrence of `task` with `thread`. In the `.rs` files, only the texts in the comment blocks were affected.
2015-04-14Positive case of `len()` -> `is_empty()`Tamir Duberstein-1/+1
`s/(?<!\{ self)(?<=\.)len\(\) == 0/is_empty()/g`
2015-04-01Fallout in public-facing and semi-public-facing libsNiko Matsakis-1/+5
2015-03-31std: Clean out #[deprecated] APIsAlex Crichton-4/+0
This commit cleans out a large amount of deprecated APIs from the standard library and some of the facade crates as well, updating all users in the compiler and in tests as it goes along.
2015-03-31Rollup merge of #23813 - steveklabnik:gh19733, r=cmrManish Goregaokar-1/+6
Fixes #19733
2015-03-30Make note of noalias in unsafe reference sectionSteve Klabnik-1/+6
Fixes #19733
2015-03-27rollup merge of #23786: alexcrichton/less-quotesAlex Crichton-1/+1
Conflicts: src/test/auxiliary/static-function-pointer-aux.rs src/test/auxiliary/trait_default_method_xc_aux.rs src/test/run-pass/issue-4545.rs
2015-03-27rollup merge of #23794: brson/slicegateAlex Crichton-3/+7
Conflicts: src/test/run-pass/issue-13027.rs
2015-03-27Feature gate *all* slice patterns. #23121Brian Anderson-3/+7
Until some backwards-compatibility hazards are fixed in #23121, these need to be unstable. [breaking-change]
2015-03-27rollup merge of #23285: steveklabnik/gh11794Alex Crichton-239/+22
Fixes #11794 I mostly removed superflous examples which use the standard library. I have one more quesiton here though: threads. They're mostly a library thing, at this point, right?
2015-03-27Unquote all crate names without underscoresRicho Healey-1/+1
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-5/+2
Now that support has been removed, all lingering use cases are renamed.
2015-03-24rollup merge of #23662: steveklabnik/gh23421Alex Crichton-3/+3
I assume since both shifts say the same thing, I should fix both of them, but then I realized I don't strictly know about left shift. Fixes #23421 r? @pnkfelix
2015-03-24correct reference wrt shiftsSteve Klabnik-3/+3
Fixes #23421
2015-03-23Add #![feature] attributes to doctestsBrian Anderson-2/+4
2015-03-23add lifetime for `while` and `for` expressionFuGangqiang-2/+2
2015-03-23fix the attributes sytaxFuGangqiang-1/+1
2015-03-19Rename should_fail to should_panic in docsJohannes Oertel-1/+1
2015-03-16Remove stdlib stuff from the ReferenceSteve Klabnik-239/+22
Fixes #11794
2015-03-16Fallout in testing.Nick Cameron-3/+5
2015-03-12Add monospace font back to literals tablemdinger-8/+8
2015-03-10Rollup merge of #23185 - steveklabnik:gh20051, r=alexcrichtonManish Goregaokar-8/+8
Fixes #20051
2015-03-09Shrink table in the referenceSteve Klabnik-8/+8
Fixes #20051
2015-03-09Auto merge of #23219 - Manishearth:rollup, r=Manishearthbors-4/+0
2015-03-09Rollup merge of #22917 - randfur:master, r=steveklabnikManish Goregaokar-1/+1
The docs currently define `array_expr`s as: array_expr : '[' \"mut\" ? vec_elems? ']' ; array_elems : [expr [',' expr]*] | [expr ',' \"..\" expr] ; `vec_elems` is not defined anywhere else so it is probably a typo for `array_elems`.
2015-03-08remove confusing language about casting typesSteve Klabnik-4/+0
Fixes #17481
2015-03-06Make #[derive(Anything)] into sugar for #[derive_Anything]Keegan McAllister-0/+4
This is a hack, but I don't think we can do much better as long as `derive` is running at the syntax expansion phase. If the custom_derive feature gate is enabled, this works with user-defined traits and syntax extensions. Without the gate, you can't use e.g. #[derive_Clone] directly, so this does not change the stable language. This commit also cleans up the deriving code somewhat, and forbids some previously-meaningless attribute syntax. For this reason it's technically a [breaking-change]
2015-03-06Add #[allow_internal_unstable] to track stability for macros better.Huon Wilson-0/+8
Unstable items used in a macro expansion will now always trigger stability warnings, *unless* the unstable items are directly inside a macro marked with `#[allow_internal_unstable]`. IOW, the compiler warns unless the span of the unstable item is a subspan of the definition of a macro marked with that attribute. E.g. #[allow_internal_unstable] macro_rules! foo { ($e: expr) => {{ $e; unstable(); // no warning only_called_by_foo!(); }} } macro_rules! only_called_by_foo { () => { unstable() } // warning } foo!(unstable()) // warning The unstable inside `foo` is fine, due to the attribute. But the `unstable` inside `only_called_by_foo` is not, since that macro doesn't have the attribute, and the `unstable` passed into `foo` is also not fine since it isn't contained in the macro itself (that is, even though it is only used directly in the macro). In the process this makes the stability tracking much more precise, e.g. previously `println!("{}", unstable())` got no warning, but now it does. As such, this is a bug fix that may cause [breaking-change]s. The attribute is definitely feature gated, since it explicitly allows side-stepping the feature gating system.
2015-03-05Auto merge of #22061 - pczarn:quote_matcher_and_attr, r=kmcallisterbors-0/+8
Fixes #19674 Fixes #17396 (already closed, yeah) cc @kmcallister , @cmr
2015-03-04Add quasiquote for matchers and attributesPiotr Czarnecki-0/+8
2015-03-03Feature gate `#[static_assert]`.Huon Wilson-0/+6
The API this exposes is a little strange (being attached to `static`s), so it makes sense to conservatively feature gate it. If it is highly popular, it is possible to reverse this gating.
2015-03-01Fix missed doc grammar rule rename from vec_elems to array_elemsAlan Cutter-1/+1
2015-02-28Rollup merge of #22884 - japaric:obsolete, r=alexcrichtonManish Goregaokar-2/+2
This is leftover from #21843 If you still have `|&:| {}` closures in your code, simply remove the `&:` part. [breaking-change]
2015-02-27remove leftover annotationsJorge Aparicio-2/+2
2015-02-25Changed prose to assert_eq! macro.Alexander Bliskovsky-2/+2
2015-02-25Added documentation of backslash ending string literals.Alexander Bliskovsky-1/+14
Closes #22698
2015-02-24Enhance and move information about macro debuggingKeegan McAllister-5/+12
Fixes #22424.
2015-02-24Rollup merge of #22711 - lummax:patch-1, r=dotdashManish Goregaokar-4/+4
Update the reference page to the change in #20680.
2015-02-23Rollup merge of #22660 - achernya:tuple-reference, r=alexcrichtonManish Goregaokar-1/+3
The Rust Reference should include the tuple indexing (using a number as a field) notation; currently it is only available on http://doc.rust-lang.org/std/primitive.tuple.html and not easily searchable.
2015-02-23doc: Fix `target_{word_size,pointer_width}` renaminglummax-4/+4
Update the reference page to the change in #20680.
2015-02-23Rollup merge of #22270 - steveklabnik:gh22152, r=huonwManish Goregaokar-0/+3
Fixes #22152
2015-02-22Link from literals to their representationSteve Klabnik-0/+3
Fixes #22152
2015-02-22Include tuple indexing in the Reference.Alexander Chernyakhovsky-1/+3
The Rust Reference should include the tuple indexing (using a number as a field) notation; currently it is only available on http://doc.rust-lang.org/std/primitive.tuple.html and not easily searchable.
2015-02-21Auto merge of #21959 - dhuseby:bitrig-support, r=brsonbors-2/+2
This patch adds the necessary pieces to support rust on Bitrig https://bitrig.org
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