summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2014-06-27Update to 0.11.0 0.11.0Alex Crichton-5/+5
2014-06-27auto merge of #15211 : steveklabnik/rust/guide_skeleton, r=huonwbors-0/+61
This diff will look better once bors takes care of https://github.com/rust-lang/rust/pull/15183 @brson and I talked about it, and, if I commit this skeleton, I can submit PRs for each portion, without doing this silly "builds on previous PRs" stuff, and it shouldn't cause conflicts. This lays out what I think the guide should cover, and in what order. I haven't picked a cohesive project yet that shows all this off, but I think this progression of concepts is appropriate.
2014-06-27auto merge of #15166 : ↵bors-5/+6
zookoatleastauthoritycom/rust/13570-add-see-below-to-a-reference-to-a-new-concept-2, r=huonw This is the same patch as submitted to https://github.com/rust-lang/rust/issues/13570 and https://github.com/rust-lang/rust/pull/14124, but with @pnkfelix's comment (https://github.com/rust-lang/rust/pull/14124#issuecomment-42797536) addressed, and with reflow as a separate commit. I'm submitting it in case @steveklabnik hasn't yet merged a rewrite of the tutorial (https://github.com/rust-lang/rust/issues/13570#issuecomment-46864789), in which case this patch might as well be merged into the old tutorial.
2014-06-27Skeleton outline of the guide.Steve Klabnik-0/+61
2014-06-26Add one more ignore.Steve Klabnik-1/+1
Thanks @huonw
2014-06-26Fix windows run instructionsSteve Klabnik-1/+1
Thank you, @stormbrew!
2014-06-26C macros, not C++ templates.Steve Klabnik-2/+2
@cmr rightfully points out that C macros are worse, and share the same name.
2014-06-26Fix missing word and some grammarSteve Klabnik-2/+2
Thanks @chris-morgan and @P1start! :heart:
2014-06-26Note that macros != templatesSteve Klabnik-1/+4
Good call, @chris-morgan and @cmr!
2014-06-26Clarify which curly is being referred toSteve Klabnik-2/+2
Thanks @chris-morgan
2014-06-26TIL PATHEXTSteve Klabnik-1/+1
Thanks @chris-morgan :heart:
2014-06-26Move note about $ upSteve Klabnik-3/+3
Thanks @chris-morgan :heart:
2014-06-26Fixing link to subreddit.Steve Klabnik-4/+4
Thanks @chris-morgan :heart:
2014-06-26StackOverflow -> Stack OverflowSteve Klabnik-1/+1
Thanks @chris-morgan
2014-06-26Fix IRC linkage.Steve Klabnik-2/+3
Death to `here`! Thanks @chris-morgan :heart:
2014-06-26staticly -> staticallySteve Klabnik-5/+5
What's funny about this one is that spellcheck caught it, but for some reason didn't give me the right suggestion, so I assumed that it wasn't in my dictionary. Oh well. Thanks @P1start! :heart:
2014-06-26all/someSteve Klabnik-1/+1
How could I forsake `rustdoc`? :sweat_smile: Thanks @huonw.
2014-06-26tha -> thanSteve Klabnik-4/+4
Thanks @huonw :heart:
2014-06-26Fix capitalization of Issue.Steve Klabnik-1/+1
@chris-morgan and @huonw pointed out that even though the feature is a proper noun, we're using it in a more generic sense here.
2014-06-26Add a note that this requires `git`.Steve Klabnik-1/+8
2014-06-26Guide: Hello, cargoSteve Klabnik-0/+113
2014-06-26auto merge of #15197 : omasanori/rust/doc-fix, r=alexcrichtonbors-1/+1
2014-06-26Fix a typo and a small syntactic error.OGINO Masanori-1/+1
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-06-26auto merge of #15181 : steveklabnik/rust/hello_world, r=brsonbors-0/+180
This is built on top of https://github.com/rust-lang/rust/pull/15162 . https://github.com/steveklabnik/rust/commit/cccae83d922f5aade2b7cca96579521cc35ced59 is the only new commit, you may want to look at that rather than the whole diff. Writing our first Rust program together. This is the most crucial step, so I go to a fairly deep level of detail. Future sections will move more quickly.
2014-06-26auto merge of #15162 : steveklabnik/rust/install_instructions, r=brsonbors-1/+100
This has my voice *very strongly*. I'm not sure if it's too much. I'd find it okay if I had to tone it back, and I don't want it to be _too strong_, but clinical docs are boring.
2014-06-25Add extra ignore directives.Steve Klabnik-4/+4
2014-06-25Guide: Hello, world!Steve Klabnik-0/+180
Let's write our first Rust program!
2014-06-25auto merge of #15121 : steveklabnik/rust/matching_docs, r=alexcrichtonbors-3/+8
Fixes #11113.
2014-06-25thanks @sfacklerSteve Klabnik-1/+1
2014-06-25fix feedback from @huonwSteve Klabnik-3/+7
2014-06-25Guide: install instructionsSteve Klabnik-1/+96
2014-06-25Make an example more clear with sample code.Steve Klabnik-3/+8
Fixes #11113.
2014-06-25auto merge of #15165 : ↵bors-35/+33
zookoatleastauthoritycom/rust/14148-Optimize-out-exhortations-about-being-careful-2, r=huonw Yes, it is important to be careful, but repeated emphasis about it is probably not helpful — it starts to sound like you came for a tutorial but found a finger-wagging lecture. Even after I removed a few of these comments, there are still several left in the text. That's probably fine! A couple of mentions of how this is dangerous and you ought to be careful may be a good reminder to the reader. After making the edits, I reflowed the paragraphs that I had touched, using emacs's "M-x fill-paragraph", with fill-column equal to 70.
2014-06-25reflow with emacs fill-paragraph (fill-column 71)Zooko Wilcox-O'Hearn-5/+6
2014-06-25add "(see below)" to a reference to a new conceptZooko Wilcox-O'Hearn-1/+1
This is because I observed someone reading the tutorial who thought they'd missed something when they got to the mention of variable bindings. This patch doesn't reflow the paragraphs so that you can see the semantic change that I made, and a subsequent patch will reflow this paragraph. Fixes https://github.com/rust-lang/rust/issues/13570.
2014-06-25Optimize out exhortations about being careful.Zooko Wilcox-O'Hearn-35/+33
Yes, it is important to be careful, but repeated emphasis about it is probably not helpful — it starts to sound like you came for a tutorial but found a finger-wagging lecture. Even after I removed a few of these comments, there are still several left in the text. That's probably fine! A couple of mentions of how this is dangerous and you ought to be careful may be a good reminder to the reader. After making the edits, I reflowed the paragraphs that I had touched, using emacs's "M-x fill-paragraph", with fill-column equal to 70.
2014-06-24Fix grammar in tutorialMichael Zhou-1/+1
"as this document" should be "than this document"
2014-06-24Add the Guide, add warning to tutorial.Steve Klabnik-0/+17
In line with what @brson, @cmr, @nikomatsakis and I discussed this morning, my redux of the tutorial will be implemented as the Guide. This way, I can work in small iterations, rather than dropping a huge PR, which is hard to review. In addition, the community can observe my work as I'm doing it. This adds a note in line with [this comment][reddit] that clarifies the state of the tutorial, and the community's involvement with it. [reddit]: http://www.reddit.com/r/rust/comments/28bew8/rusts_documentation_is_about_to_drastically/ci9c98k
2014-06-24Improve ambiguous pronoun.Steve Klabnik-3/+4
Fixes #14806
2014-06-24Remove the cheat sheet.Steve Klabnik-281/+0
Rust by Example is far better. Fixes #14380.
2014-06-24librustc: Remove the fallback to `int` from typechecking.Niko Matsakis-56/+57
This breaks a fair amount of code. The typical patterns are: * `for _ in range(0, 10)`: change to `for _ in range(0u, 10)`; * `println!("{}", 3)`: change to `println!("{}", 3i)`; * `[1, 2, 3].len()`: change to `[1i, 2, 3].len()`. RFC #30. Closes #6023. [breaking-change]
2014-06-24auto merge of #15107 : ipetkov/rust/tutorial-update, r=alexcrichtonbors-4/+5
2014-06-23librustc: Feature gate lang items and intrinsics.Patrick Walton-0/+7
If you define lang items in your crate, add `#[feature(lang_items)]`. If you define intrinsics (`extern "rust-intrinsic"`), add `#[feature(intrinsics)]`. Closes #12858. [breaking-change]
2014-06-24auto merge of #14952 : alexcrichton/rust/const-unsafe-pointers, r=brsonbors-5/+6
This does not yet change the compiler and libraries from `*T` to `*const T` as it will require a snapshot to do so. cc #7362 --- Note that the corresponding RFC, https://github.com/rust-lang/rfcs/pull/68, has not yet been accepted. It was [discussed at the last meeting](https://github.com/rust-lang/rust/wiki/Meeting-weekly-2014-06-10#rfc-pr-68-unsafe-pointers-rename-t-to-const-t) and decided to be accepted, however. I figured I'd get started on the preliminary work for the RFC that will be required regardless.
2014-06-23libsyntax: Disallow struct literals after `if`, `while`, `match`, andPatrick Walton-4/+4
`for...in`. Closes #14803. If you used a structure literal after one of these keywords, surround it in parentheses. [breaking-change]
2014-06-23Docs: tutorial: Remove a couple references to `~T`Ivan Petkov-4/+5
2014-06-22Update few files after comparison traits renamingPiotr Jawniak-4/+4
There were still Total{Ord,Eq} in docs and src/etc
2014-06-21auto merge of #15029 : aturon/rust/stability-index, r=brsonbors-9/+24
This commit makes several changes to the stability index infrastructure: * Stability levels are now inherited lexically, i.e., each item's stability level becomes the default for any nested items. * The computed stability level for an item is stored as part of the metadata. When using an item from an external crate, this data is looked up and cached. * The stability lint works from the computed stability level, rather than manual stability attribute annotations. However, the lint still checks only a limited set of item uses (e.g., it does not check every component of a path on import). This will be addressed in a later PR, as part of issue #8962. * The stability lint only applies to items originating from external crates, since the stability index is intended as a promise to downstream crates. * The "experimental" lint is now _allow_ by default. This is because almost all existing crates have been marked "experimental", pending library stabilization. With inheritance in place, this would generate a massive explosion of warnings for every Rust program. The lint should be changed back to deny-by-default after library stabilization is complete. * The "deprecated" lint still warns by default. The net result: we can begin tracking stability index for the standard libraries as we stabilize, without impacting most clients. Closes #13540.
2014-06-20librustc: Put `#[unsafe_destructor]` behind a feature gate.Patrick Walton-4/+9
Closes #8142. This is not the semantics we want long-term. You can continue to use `#[unsafe_destructor]`, but you'll need to add `#![feature(unsafe_destructor)]` to the crate attributes. [breaking-change]
2014-06-20auto merge of #15048 : brson/rust/toc-margin, r=alexcrichtonbors-1/+1
There is no space between the TOC and the succeeding para. See http://doc.rust-lang.org/guide-pointers.html for example.