about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2018-06-04A few more data structures to the code indexMark Mansi-7/+23
2018-06-04add a bunch of type-related terms to glossaryMark Mansi-0/+7
2018-06-03s/panic_fmt/panic_impl/g in docsJorge Aparicio-17/+18
2018-06-02allow long relative linksMark Mansi-1/+1
2018-06-02fix remaining linksMark Mansi-40/+40
2018-06-02first round of link fixesMark Mansi-67/+68
2018-06-02mv traitsMark Mansi-0/+0
2018-06-02move mirMark Mansi-0/+0
2018-06-02move appendixMark Mansi-0/+0
2018-06-02clarify run-rustfix compiletest headerWho? Me?!-3/+6
2018-06-01Update lowering rules for GATsTyler Mandry-39/+74
2018-05-29Merge pull request #142 from rust-lang-nursery/oli-obk-patch-1Oliver Schneider-7/+14
Fixes #141
2018-05-29Satisfy travisOliver Schneider-1/+1
2018-05-29Phrasing tweak in doctest docsBenjamin Sago-1/+1
2018-05-29Explain .fixed filesOliver Schneider-1/+2
2018-05-29Mention spec and indented blocks in doctest docsBenjamin Sago-0/+24
This commit adds a new section to the Documentation Test docs, which briefly mentions indented code blocks, and links to the CommonMark specification for both. I’m not sure about saying "fenced code blocks the more popular choice in the Rust community” because it seems like I’m speaking for everyone, but I can’t think of a better way to phrase it!
2018-05-28Mention "run-rustfix"Oliver Schneider-0/+3
2018-05-27fix typoMark Mansi-1/+1
2018-05-27line lengthMark Mansi-2/+2
2018-05-27add more on applicabilitiesMark Mansi-0/+12
2018-05-27Address reviewers' commentsMark Mansi-9/+77
2018-05-2780 charsMark Mansi-3/+4
2018-05-27Add info about emitting lints and errorsMark Mansi-0/+180
2018-05-27Trait logic: Explain what each domain goal meansTyler Mandry-24/+73
2018-05-27Clarify language in Trait ResolutionTyler Mandry-3/+3
2018-05-27Fix typoTakanori Ishibashi-1/+1
2018-05-27Auto merge of #51066 - est31:master, r=sfacklerbors-2/+2
Point to the current box syntax tracking issue The issue was used for both box syntax as well as placement new. It got closed due to placement new being unapproved. So a new one got created for box syntax, yet neither the unstable book nor feature_gate.rs got updated. We are doing this now. r? @aidanhs
2018-05-26Point to the current box syntax tracking issueest31-2/+2
The issue was used for both box syntax as well as placement new. It got closed due to placement new being unapproved. So a new one got created for box syntax, yet neither the unstable book nor feature_gate.rs got updated. We are doing this now.
2018-05-26Add `Ident::as_str` helperVadim Petrochenkov-1/+1
2018-05-26Auto merge of #50070 - toidiu:ak-2093-outlives, r=nikomatsakisbors-0/+67
2093 infer outlives requirements Tracking issue: #44493 RFC: https://github.com/rust-lang/rfcs/pull/2093 - [x] add `rustc_attrs` flag - [x] use `RequirePredicates` type - [x] handle explicit predicates on `dyn` Trait - [x] handle explicit predicates on projections - [x] more tests - [x] remove `unused`, `dead_code` and etc.. - [x] documentation
2018-05-25Implement outlives requirements inference for dyn and projections.toidiu-0/+67
Add tests, documentation and attr for feature.
2018-05-25Fix naming conventions for new lintsVadim Petrochenkov-1/+1
2018-05-23Fixes #141Oliver Schneider-7/+10
2018-05-22Define a CycleAlex Kitchens-0/+3
I wasn't clear on what a Cycle was when reading through the document. Defining it will be helpful for other readers not familiar with it as well.
2018-05-22build the 2018 editionsteveklabnik-0/+0
2018-05-21The type is inferenced, not things itself.Philipp Hansch-2/+2
2018-05-21Add type inference examplePhilipp Hansch-2/+18
This should make the chapter a bit more approachable, as it doesn't start with a reference to the HM type inference algorithm.
2018-05-20Define HIR more specificallyAlex Kitchens-7/+8
IR is a foreign acronym to me, so having it fully expressed in the beginning as Intermediate Representation helps me comprehend the subject.
2018-05-20Rollup merge of #50858 - robinkrahl:rustdoc-fix-order, r=steveklabnikkennytm-8/+8
Reorder description for snippets in rustdoc documentation The example code snippets for the `no_run` and `compile_fail` attributes in the rustdoc documentation were followed by the description for the wrong attribute. This patch reorders the descriptions to match the code snippets.
2018-05-19Auto merge of #50760 - petrochenkov:legimp, r=nikomatsakisbors-37/+0
Turn deprecation lint `legacy_imports` into a hard error Closes https://github.com/rust-lang/rust/issues/38260 The lint was introduced in Dec 2016, then made deny-by-default in Jun 2017 when crater run found 0 regressions caused by it. This lint requires some not entirely trivial amount of import resolution logic that (surprisingly or not) interacts with `feature(use_extern_macros)` (https://github.com/rust-lang/rust/issues/35896), so it would be desirable to remove it before stabilizing `use_extern_macros`. In particular, this PR fixes the failing example in https://github.com/rust-lang/rust/issues/50725 (but not the whole issue, `use std::panic::{self}` still can cause other undesirable errors when `use_extern_macros` is enabled).
2018-05-18Add println statement to rendered code block examplemandeep-0/+1
2018-05-18Add doc comment to hiding portions of code examplemandeep-2/+3
Refactor hiding example to be more complete
2018-05-18Reorder description for snippets in rustdoc documentationRobin Krahl-8/+8
The example code snippets for the `no_run` and `compile_fail` attributes in the rustdoc documentation were followed by the description for the wrong attribute. This patch reorders the descriptions to match the code snippets.
2018-05-17Rollup merge of #50839 - glassresistor:master, r=steveklabnikMark Simulacrum-1/+1
Make sure people know the book is free oline I've used the tutorial a number of times to relearn rust basics. When i saw this for a moment I was sad thinking it had been taken offline.
2018-05-17Rollup merge of #50791 - bstrie:null, r=QuietMisdreavusMark Simulacrum-3/+3
Fix null exclusions in grammar docs The grammar documentation incorrectly says that comments, character literals, and string literals may not include null.
2018-05-17Rollup merge of #50790 - bstrie:grammar, r=steveklabnikMark Simulacrum-11/+6
Fix grammar documentation wrt Unicode identifiers The grammar defines identifiers in terms of XID_start and XID_continue, but this is referring to the unstable non_ascii_idents feature. The documentation implies that non_ascii_idents is forthcoming, but this is left over from pre-1.0 documentation; in reality, non_ascii_idents has been without even an RFC for several years now, and will not be stabilized anytime soon. Furthermore, according to the tracking issue at https://github.com/rust-lang/rust/issues/28979 , it's highly questionable whether or not this feature will use XID_start or XID_continue even when or if non_ascii_idents is stabilized. This commit fixes this by respecifying identifiers as the usual [a-zA-Z_][a-zA-Z0-9_]*
2018-05-17Update tutorial.mdMikela-1/+1
2018-05-17Make sure people know the book is free olineMikela-1/+1
2018-05-17Rename trans to codegen everywhere.Irina Popa-1/+1
2018-05-16Null exclusions in grammar docsbstrie-3/+3
The grammar documentation incorrectly says that comments, character literals, and string literals may not include null.