Brian Anderson
e9019101a8
Add #![feature] attributes to doctests
2015-03-23 14:40:26 -07:00
Brian Anderson
3d365f6a01
rustdoc: interpret all leading feature attributes in examples as crate attributes
...
This makes it possible to write `#![feature(foo)]` in doc tests.
2015-03-23 14:40:25 -07:00
Steve Klabnik
1be8fcb4a9
Make note of str in 'more strings' chapter
...
Fixes #21035
2015-03-23 14:57:52 -04:00
Steve Klabnik
05c9728c69
Don't conflate regions and affine types
...
Fixes #23642
2015-03-23 14:47:14 -04:00
Liam Monahan
558c427cd3
Fix a typo in the Rust Book ownership page.
2015-03-23 00:00:00 -04:00
Tshepang Lekhonkhobe
8a500dea0e
book: some Crates and Modules nits
2015-03-22 23:38:36 +02:00
Steve Klabnik
fbc823d1e3
Document how to document macros
...
Fixes #23571
2015-03-22 15:26:23 -04:00
Ches Martin
92294e7aed
guide: Improvements to language covering enums
2015-03-21 05:32:26 +07:00
Ches Martin
0c040b07f0
guide: minor copy edits
2015-03-21 05:32:07 +07:00
Steve Klabnik
9acdcba3d5
Remove manual numbers from TRPL
...
Rustbook already does this.
2015-03-20 15:27:55 -04:00
bors
ecdf792d1d
Auto merge of #23537 - steveklabnik:gh22551, r=alexcrichton
...
Fixes #22551
('grammar' wasn't really used in the chapter at all)
2015-03-20 15:02:55 +00:00
Steve Klabnik
af09763cc1
Add AST to the glossary
...
Fixes #22551
2015-03-20 10:55:51 -04:00
bors
cbc660bd1c
Auto merge of #23522 - steveklabnik:gh22518, r=Manishearth
...
When investigating #22518 , this chapter is really the only part that has `rand`, and the rest still works without it. We should have some examples like this, but for now, it's more important to be right than perfect.
2015-03-20 11:29:12 +00:00
Manish Goregaokar
0711006694
Rollup merge of #23532 - steveklabnik:gh22002, r=alexcrichton
...
Fixes #22002
2015-03-20 12:43:14 +05:30
Manish Goregaokar
dbe084b5bf
Rollup merge of #23447 - kjpgit:kjp/pointerexample, r=steveklabnik
...
These two borrowing examples were confusing/misleading. This changes it
to more clearly show how you _can_ borrow a box, and also uses & instead
of &*.
2015-03-20 12:43:12 +05:30
Steve Klabnik
d081b241ff
Reference Drop in FFI chapter
...
Fixes #22002
2015-03-19 18:11:35 -04:00
Steve Klabnik
109803f6d5
Remove incorrect statement about raw pointers.
...
Fixes #21709
2015-03-19 18:06:54 -04:00
Steve Klabnik
0249603c20
Remove the Guessing Game from the book
...
Fixes #22518
2015-03-19 15:19:20 -04:00
Manish Goregaokar
760f870add
Rollup merge of #23497 - steveklabnik:gh21589, r=alexcrichton
...
Fixes #21589
2015-03-19 08:49:38 +05:30
Steve Klabnik
70bf02994a
Note ::foo::bar() in the crates guide
...
Fixes #21589
2015-03-19 08:24:42 +05:30
Johannes Oertel
da96d22d3a
Rename should_fail to should_panic in docs
2015-03-19 08:24:38 +05:30
kjpgit
5429f94405
book: improve pointer box borrowing examples
...
These two borrowing examples were confusing/misleading. This changes it
to more clearly show how you _can_ borrow a box, and also uses & instead
of &*.
2015-03-17 11:52:14 -05:00
Tamir Duberstein
f5765793b6
Strip trailing whitespace
2015-03-15 11:25:43 -07:00
Tamir Duberstein
d51047ded0
Strip all leading/trailing newlines
2015-03-15 09:08:21 -07:00
Manish Goregaokar
d66d0b3ac2
Rollup merge of #23368 - EduardoBautista:fix-closures-chapter, r=steveklabnik
...
"body": null,
2015-03-15 10:23:45 +05:30
Manish Goregaokar
09e5a7a04e
Rollup merge of #23367 - EduardoBautista:fix-indentation-in-book, r=steveklabnik
...
It was using tabs.
2015-03-15 10:23:45 +05:30
Eduardo Bautista
7130c75e46
Concurrency is now in the "Concurrency" chapter
2015-03-14 14:05:59 -06:00
Eduardo Bautista
c8e4f61ad3
Fix indentation in the "Method Syntax" chapter
2015-03-14 13:27:44 -06:00
Ricardo Martins
cb02f366dc
Fix a typo in the documentation.
2015-03-14 12:42:12 +00:00
Jakub Bukaj
b3c58cffa4
Add the -s flag to the suggested rustup invocation
...
curl's progress meter would otherwise interfere with sudo's password prompt.
In addition, add the -f flag to make sure 4xx status codes are treated as errors.
2015-03-13 09:31:50 +01:00
Trent Nadeau
ccfc381044
Fixed several grammar errors and broke up very long line.
2015-03-12 17:00:35 -04:00
Manish Goregaokar
3d70c7042c
Rollup merge of #23295 - johnz133:patch-1, r=steveklabnik
...
Changed the docs to reflect that
2015-03-12 09:14:59 +05:30
Manish Goregaokar
85d836a2b2
Rollup merge of #23279 - steveklabnik:gh23244, r=alexcrichton
...
Fixes #23244
2015-03-12 09:14:51 +05:30
Manish Goregaokar
497f6b77c3
Rollup merge of #23234 - Ms2ger:doc-dynamic-dispatch, r=steveklabnik
2015-03-12 09:13:58 +05:30
John Zhang
e3b717c7ce
Cargo build now builds to /target/debug/, changed the docs to reflect that.
...
Deleted trailing space in hello-cargo.md
Added note about build --release in hello-cargo
thanks to steven klabnik for pointing it out for me
edited out redundant wording
2015-03-11 19:46:55 -07:00
Steve Klabnik
64ab111b53
Example -> Examples
...
This brings comments in line with https://github.com/rust-lang/rfcs/blob/master/text/0505-api-comment-conventions.md#using-markdown
2015-03-11 21:11:40 -04:00
Ms2ger
3ac89d372f
Rewrite the dynamic dispatch section to focus on usage rather than implementation.
2015-03-11 21:37:01 +01:00
Steve Klabnik
8934c9b560
Add note about local documentation installation
...
Fixes #23244
2015-03-11 13:45:55 -04:00
Manish Goregaokar
3e5f3b2350
Rollup merge of #23195 - steveklabnik:gh19808, r=alexcrichton
...
Fixes #19808
2015-03-10 14:59:46 +05:30
Steve Klabnik
bc927a69b2
Explain super in the crates guide.
...
Fixes #19808
2015-03-09 16:48:05 -04:00
Manish Goregaokar
3797827460
Fix doctest (fixup #23188 )
2015-03-09 10:16:34 +05:30
Manish Goregaokar
684cd77222
Rollup merge of #23182 - steveklabnik:gh22610, r=Manishearth
...
Fixes #22610
2015-03-09 00:35:38 +05:30
Manish Goregaokar
10960d3043
Rollup merge of #23188 - steveklabnik:gh18787, r=alexcrichton
...
Fixes #18787
2015-03-09 00:11:48 +05:30
Manish Goregaokar
b515b4e28a
Rollup merge of #23184 - steveklabnik:gh22553, r=alexcrichton
...
Fixes #22553
2015-03-09 00:10:06 +05:30
Manish Goregaokar
c7d5354567
Rollup merge of #23181 - steveklabnik:gh22637, r=alexcrichton
...
Fixes #22637
2015-03-09 00:09:56 +05:30
Manish Goregaokar
d1ac69ce72
Rollup merge of #23180 - steveklabnik:gh23052, r=alexcrichton
...
Fixes #23052
2015-03-09 00:08:03 +05:30
Manish Goregaokar
ea8434f7ee
Rollup merge of #23043 - steveklabnik:doc_default_method, r=nikomatsakis
2015-03-09 00:06:20 +05:30
Steve Klabnik
044b3bf2d7
Add examples of all three syntaxes in method syntax chapter of trpl
...
Fixes #18787
2015-03-08 10:49:13 -04:00
Steve Klabnik
d65064da34
Move 'more strings' after ownership
...
Fixes #22553
2015-03-08 09:34:03 -04:00
Steve Klabnik
5b0acb5846
remove 'generally' to reduce confusion
...
Fixes #22610
2015-03-08 09:29:47 -04:00
Steve Klabnik
ce223a62f1
Mention deref coercions in the String guide.
...
Fixes #22637
2015-03-08 09:25:50 -04:00
Steve Klabnik
e56fcbcd99
Remove reference to NoSend in concurrency chapter of the book
...
Fixes #23052
2015-03-08 09:15:06 -04:00
Steve Klabnik
de44baac8b
Add default methods to trait documentation
2015-03-08 08:55:17 -04:00
Ryan Prichard
52124d7c80
Fix #23166 . Get the Compiler Plugins example compiling again.
...
* "let met text" was previously of &String type. Now it is of &str type.
* Update the slicing syntax. Both &text[] and text.slice_from() evaluate
to a &str.
* We were passing a u32 to expr_usize. Call expr_u32 instead.
2015-03-07 22:58:28 -08:00
bors
36cd65f786
Auto merge of #22549 - steveklabnik:doc_documentation, r=huonw
...
This chapter covers writing documentation in depth.
Fixes #4361
Fixes #12862
Fixes #14070
Fixes #14967
2015-03-07 10:01:13 +00:00
Manish Goregaokar
e99b00f6c1
Rollup merge of #23039 - steveklabnik:doc_vec_macro, r=alexcrichton
2015-03-06 08:58:58 +05:30
Steve Klabnik
61a2766136
Note the alternate form of vec in trpl
2015-03-04 16:27:18 -05:00
Steve Klabnik
977d7897fe
TRPL: Documentation
...
This chapter covers writing documentation in depth.
Fixes #4361
Fixes #12862
Fixes #14070
Fixes #14967
2015-03-04 13:32:43 -05:00
Peter Elmers
299b594fde
Fix grammar nits in compound-data-types.md
...
I came across a couple of grammar mistakes when refreshing myself on enums.
2015-03-04 11:02:31 -06:00
Felix S. Klock II
cb1b0dd589
Fix doc example to accommodate overloaded-box.
2015-03-03 21:16:03 +01:00
David Mally
a457dd5c78
Changed wording to use Result instead of Option in several places, fixed example that actually does use an Option
2015-02-28 17:40:04 -05:00
Manish Goregaokar
fcd1c3699a
Rollup merge of #22866 - iKevinY:version-output-doc-fix, r=Manishearth
...
The format of `rustc --version` was changed in #21957 ; this PR updates TRPL accordingly.
2015-02-28 19:19:01 +05:30
Manish Goregaokar
37760c1f25
Rollup merge of #22875 - kmcallister:maceager, r=sfackler
...
MacEager is a MacResult implementation for the common case where you've already built each form of AST that you might return.
Fixes #17637 . Based on #18814 .
This is a [breaking-change] for syntax extensions:
* MacExpr::new becomes MacEager::expr.
* MacPat::new becomes MacEager::pat.
* MacItems::new becomes MacEager::items. It takes a SmallVector directly,
not an iterator.
r? @sfackler
2015-02-28 19:18:59 +05:30
Keegan McAllister
f66a3f7bba
Replace MacExpr / MacPat / MacItems with MacEager
...
MacEager is a MacResult implementation for the common case where you've already
built each form of AST that you might return.
Fixes #17637 . Based on #18814 .
This is a [breaking-change] for syntax extensions:
* MacExpr::new becomes MacEager::expr.
* MacPat::new becomes MacEager::pat.
* MacItems::new becomes MacEager::items. It takes a SmallVector directly,
not an iterator.
2015-02-27 11:17:05 -08:00
Manish Goregaokar
c46fe78c32
Rollup merge of #22732 - jxcl:cargo-new, r=steveklabnik
...
r? @steveklabnik
2015-02-27 20:37:39 +05:30
Kevin Yap
9a4387fbe0
Update expected output of rustc --version
...
The format of `rustc --version` was changed in #21957 .
2015-02-27 03:13:05 -08:00
Manish Goregaokar
9692f3bc94
Rollup merge of #22635 - kmcallister:macros-chapter, r=steveklabnik
...
r? @steveklabnik
2015-02-25 10:27:03 +05:30
Keegan McAllister
848a7e6921
Enhance and move information about macro debugging
...
Fixes #22424 .
2015-02-24 16:34:18 -08:00
Keegan McAllister
df0865754e
Tweak wording in the macros guide
2015-02-24 16:28:54 -08:00
Keegan McAllister
1804242a2d
Add a second, more vexing section on recursive macros
...
Fixes #22423 .
2015-02-24 16:28:54 -08:00
Keegan McAllister
65e1e6bb94
Add a section on recursive macros
2015-02-24 16:28:54 -08:00
Manish Goregaokar
a429bf6a24
Rollup merge of #22458 - steveklabnik:try_in_error_chapter, r=alexcrichton
...
Fixes #22342
2015-02-25 03:21:30 +05:30
Vadim Petrochenkov
2807a1ce02
Use arrays instead of vectors in tests
2015-02-24 21:15:45 +03:00
Steve Klabnik
f31ea22bff
Mention try macro in error chapter
...
Fixes #22342
2015-02-24 12:31:46 -05:00
Manish Goregaokar
8e88762a83
Rollup merge of #22473 - leejunseok:fix_pointer_example, r=steveklabnik
...
Revised an example in the Pointers chapter of TRPL (the guide) as per #21575 .
2015-02-24 12:08:35 +05:30
Manish Goregaokar
9ed6c33391
Rollup merge of #22719 - steveklabnik:typo_fix, r=alexcrichton
2015-02-24 12:08:32 +05:30
Alexander Bliskovsky
f49fd40f20
Removed {}
and small wording fixes to "Hello Cargo!" chapter.
2015-02-23 16:38:11 -05:00
Alexander Bliskovsky
0685e7a185
Added section on cargo new
to "Hello Cargo!" chapter.
2015-02-23 16:29:28 -05:00
Manish Goregaokar
f73457a1cc
Rollup merge of #22612 - jxcl:iter-replace, r=steveklabnik
...
r? @steveklabnik
I've updated the iterators chapter to reflect the fact that you can now iterate over `for` loops without calling `.iter()`.
2015-02-23 23:28:47 +05:30
Manish Goregaokar
eb06c0ecd2
Rollup merge of #22593 - brson:spatch, r=steveklabnik
...
r? @steveklabnik
2015-02-23 23:28:46 +05:30
Manish Goregaokar
0fab2b9535
Rollup merge of #22556 - brson:str, r=steveklabnik
...
Clarify that `to_string` is how you make `String`. Use a coercion in an example.
r? @steveklabnik
2015-02-23 23:28:46 +05:30
Steve Klabnik
1049e88d1f
Static and dynamic dispatch: missing word
2015-02-23 11:27:11 -05:00
Alexander Bliskovsky
9f2b0671f8
Fixed erroneous statements in iterators.md.
2015-02-22 20:26:54 -05:00
Alexander Bliskovsky
72eaf2c30e
Switch to &vector notation in the iterators chapter.
2015-02-22 20:26:54 -05:00
Manish Goregaokar
a9570e5549
Rollup merge of #22625 - inrustwetrust:dispatch-doc-grammar, r=huonw
...
As far as I could tell from discussions in other docs pull requests, American spelling is preferred for the docs?
2015-02-22 01:49:46 +05:30
Manish Goregaokar
b7ac60a2f1
Rollup merge of #22524 - stevencrockett:master, r=steveklabnik
...
The text is referring to the io module despite the code using the old_io module.
2015-02-22 01:47:14 +05:30
Manish Goregaokar
9d650ae723
Rollup merge of #22515 - adamhjk:add-else-if-to-docs, r=steveklabnik
...
Adds an example of `else if` to the If section of The Rust Programming
Language.
r? @steveklabnik
2015-02-22 01:46:42 +05:30
Manish Goregaokar
11c70a3b09
Rollup merge of #22267 - steveklabnik:fix_lie, r=Gankro
...
Otherwise, this line is a lie.
2015-02-22 01:46:03 +05:30
inrustwetrust
1b20767460
Minor grammar/spelling fixes to the "Static and Dynamic Dispatch" doc
2015-02-21 11:50:25 +01:00
Brian Anderson
fcc21b36a3
docs: Explain static dispatch advantage more clearly
2015-02-20 11:41:39 -08:00
Brian Anderson
96be55376e
book: Minor clarifications about strings
2015-02-19 18:39:38 -08:00
Steven Crockett
e0067f9852
docs: correct guessing game to mention old_io module instead of io
...
The text is referring to the io module despite the code using the old_io module.
2015-02-19 05:13:49 +00:00
Adam Jacob
cec404a066
Add documentation for else if
to trpl
...
Adds an example of `else if` to the If section of The Rust Programming
Language.
r? @steveklabnik
2015-02-18 16:26:39 -08:00
Alex Crichton
231eeaa35b
rollup merge of #22502 : nikomatsakis/deprecate-bracket-bracket
...
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-18 15:48:40 -08:00
Niko Matsakis
9ea84aeed4
Replace all uses of &foo[]
with &foo[..]
en masse.
2015-02-18 17:36:03 -05:00
Alex Crichton
5250a82f79
rollup merge of #22497 : nikomatsakis/suffixes
...
Conflicts:
src/librustc_trans/trans/tvec.rs
2015-02-18 14:35:01 -08:00
Alex Crichton
b90e40718f
rollup merge of #22484 : riginding/master
2015-02-18 14:32:12 -08:00
Alex Crichton
1860ee521a
std: Implement CString-related RFCs
...
This commit is an implementation of [RFC 592][r592] and [RFC 840][r840]. These
two RFCs tweak the behavior of `CString` and add a new `CStr` unsized slice type
to the module.
[r592]: https://github.com/rust-lang/rfcs/blob/master/text/0592-c-str-deref.md
[r840]: https://github.com/rust-lang/rfcs/blob/master/text/0840-no-panic-in-c-string.md
The new `CStr` type is only constructable via two methods:
1. By `deref`'ing from a `CString`
2. Unsafely via `CStr::from_ptr`
The purpose of `CStr` is to be an unsized type which is a thin pointer to a
`libc::c_char` (currently it is a fat pointer slice due to implementation
limitations). Strings from C can be safely represented with a `CStr` and an
appropriate lifetime as well. Consumers of `&CString` should now consume `&CStr`
instead to allow producers to pass in C-originating strings instead of just
Rust-allocated strings.
A new constructor was added to `CString`, `new`, which takes `T: IntoBytes`
instead of separate `from_slice` and `from_vec` methods (both have been
deprecated in favor of `new`). The `new` method returns a `Result` instead of
panicking. The error variant contains the relevant information about where the
error happened and bytes (if present). Conversions are provided to the
`io::Error` and `old_io::IoError` types via the `FromError` trait which
translate to `InvalidInput`.
This is a breaking change due to the modification of existing `#[unstable]` APIs
and new deprecation, and more detailed information can be found in the two RFCs.
Notable breakage includes:
* All construction of `CString` now needs to use `new` and handle the outgoing
`Result`.
* Usage of `CString` as a byte slice now explicitly needs a `.as_bytes()` call.
* The `as_slice*` methods have been removed in favor of just having the
`as_bytes*` methods.
Closes #22469
Closes #22470
[breaking-change]
2015-02-18 14:15:43 -08:00
Junseok Lee
8e0e87fc32
revised pointer example
2015-02-18 13:22:59 -08:00
Niko Matsakis
8c34b26606
Update docs by dropping suffixes except where they served to instruct.
2015-02-18 09:09:14 -05:00
Ryan Riginding
b8527c07dc
Fixed link in ffi documentation
2015-02-18 09:16:22 +01:00
Alex Crichton
665ea963d3
Test fixes and rebase conflicts
2015-02-17 19:42:28 -08:00
Alex Crichton
6ac3799b75
Test fixes and rebase conflicts
2015-02-17 17:27:46 -08:00
Alex Crichton
311fc36a57
rollup merge of #22123 : steveklabnik/doc_where_clauses
...
Closes #21859 .
2015-02-17 15:13:42 -08:00
Manish Goregaokar
096b1052d0
fix doctest
2015-02-17 21:28:54 +05:30
Manish Goregaokar
09eb965903
Rollup merge of #22393 - kmcallister:macros-chapter , r=steveklabnik
...
This is a more introductory document, suitable for Part II. The arcane details move to an "Advanced macros" chapter in Part III.
Conflicts:
src/doc/trpl/macros.md
2015-02-17 17:33:53 +05:30
Manish Goregaokar
9eed8b1c27
Rollup merge of #22410 - Reignbeaux:master, r=steveklabnik
...
I just stumbled on a typo and fixed it.
2015-02-17 17:33:19 +05:30
Manish Goregaokar
4a7eed1e01
Rollup merge of #22333 - caipre:patch-1, r=steveklabnik
...
The `Circle::grow` method multiplies the radius by a factor of 10, not 2.
2015-02-17 17:33:17 +05:30
Manish Goregaokar
2aa31827ed
Rollup merge of #22296 - steveklabnik:gh21577, r=Gankro
...
Fixes #21577 .
2015-02-17 17:33:17 +05:30
Manish Goregaokar
2d94c4482d
Rollup merge of #22027 - iblech:patch-1, r=steveklabnik
...
The first commit adds a short note which I believe will reduce worries in people who work with closures very often and read the Rust book for their first time.
The second commit consists solely of tiny typo fixes. In some cases, I changed "logical" quotations like
She said, "I like programming".
to
She said, "I like programming."
because the latter seems to be the prevalent style in the book.
2015-02-17 15:41:30 +05:30
Manish Goregaokar
901d2c7b0d
Rollup merge of #22241 - kmcallister:macro-plugin-cleanup, r=sfackler
2015-02-17 06:23:41 +05:30
Manish Goregaokar
adea99c5d9
Rollup merge of #22378 - jxcl:master, r=steveklabnik
...
The Rust Programming Language book has no explanation of what `i32` actually means. I have added an explanation for the first time the reader encounters this type.
2015-02-17 06:23:39 +05:30
Manish Goregaokar
47814a4b29
Rollup merge of #22377 - thiagooak:book-glossary, r=steveklabnik
...
@steveklabnik Trying out the Glossary idea.
Added the paragraph about 'complicated words' because I think it would be useful to those contributing to the book. Maybe this should not be here
2015-02-17 06:23:38 +05:30
Manish Goregaokar
fe3b6a1662
Rollup merge of #22368 - thiagooak:book-arity, r=steveklabnik
...
#21568
2015-02-17 06:23:37 +05:30
Manish Goregaokar
e0477fa7f9
Rollup merge of #22365 - serejkus:configs-link, r=steveklabnik
...
The book in "hello-world" tells that there are configs for some programs and gives a link to main repo's src/etc. Actually, these configs moved to separate repos some days ago. This PR adds a markdown file with links and moves "hello-world" link about editors to point directly to this new file.
2015-02-17 06:23:37 +05:30
Ingo Blechschmidt
918d097c8e
Tiny typo changes (per discussion in pull request #22027 )
2015-02-16 23:13:58 +01:00
Keegan McAllister
6cef0e5dae
Rewrite the macros chapter
...
This is a more introductory document, suitable for Part II. The arcane details
move to an "Advanced macros" chapter in Part III.
2015-02-16 10:59:40 -08:00
Henrik Schopmans
ad827af11c
Fixed typo and removed unfitting 'can'
2015-02-16 17:58:17 +00:00
Steve Klabnik
faf0f5b196
Document where clauses.
...
Closes #21859 .
2015-02-16 05:31:26 -05:00
Steve Klabnik
817f3a4d37
Remove use of range() in iterator docs.
...
Fixes #21577 .
2015-02-16 04:53:21 -05:00
Manish Goregaokar
cea2bbfe27
Fix grammar
2015-02-16 03:56:52 +05:30
Thiago Carvalho
9783cc2822
improve text
2015-02-15 20:41:44 +01:00
Alexander Bliskovsky
74ba529701
Added explanation to trpl of integer types.
2015-02-15 13:51:36 -05:00
Thiago Carvalho
4cf4e8bc0c
glossary
2015-02-15 19:37:49 +01:00
Thiago Carvalho
89822e1cbc
Book - short explanation of arity
2015-02-15 14:29:40 +01:00
Manish Goregaokar
97503e1c1e
Rollup merge of #22256 - brson:installer-next, r=alexcrichton
...
Highlights:
* Adds an 'uninstall.sh' script to `/usr/local/lib/rustlib/uninstall.sh`, the path to which is printed during installation.
* Components can be deselected during install, like `install.sh --without=rust-docs`.
* Components can be listed with `install.sh --list-components`.
* Vastly reduces spew during install (but supporting a `--verbose` option).
Typicall install run looks like:
```
brian@brianX1:~/dev/multirust⟫ sudo ./install.sh
[sudo] password for brian:
install: creating uninstall script at /usr/local/lib/rustlib/uninstall.sh
install: installing component 'rustc'
install: installing component 'cargo'
install: installing component 'rust-docs'
Rust is ready to roll.
```
Needs to be merged right before corresponding PRs to cargo and rust-packaging.
Fixes https://github.com/rust-lang/rust/issues/21117
Fixes https://github.com/rust-lang/rust/issues/20283
2015-02-15 18:42:48 +05:30
Manish Goregaokar
8111d65afc
Rollup merge of #22293 - steveklabnik:gh12891, r=brson
...
Fixes #12891 .
2015-02-15 18:42:47 +05:30
Manish Goregaokar
a5bdb087d0
Rollup merge of #22329 - thiagooak:book, r=steveklabnik
...
on crates and modules - replace \")\"
on more strings - improve readability of grapheme
2015-02-15 18:42:46 +05:30
Manish Goregaokar
a0019989fe
Rollup merge of #22324 - Manishearth:patch-1, r=steveklabnik
...
(fixes #22317 )
rollupable
2015-02-15 18:42:45 +05:30
Manish Goregaokar
70647ec7c5
Rollup merge of #22305 - steveklabnik:gh20948, r=alexcrichton
...
Fixes #20948
2015-02-15 18:42:45 +05:30
Manish Goregaokar
0f66e314db
Rollup merge of #22295 - steveklabnik:gh9980, r=alexcrichton
...
Fixes #9980
2015-02-15 18:42:44 +05:30
Manish Goregaokar
1ee09f918d
Rollup merge of #22280 - Unode:patch-1, r=steveklabnik
2015-02-15 18:42:44 +05:30
Manish Goregaokar
f96fb8ecb8
Rollup merge of #22275 - steveklabnik:gh7538, r=huonw
...
We use them in some places, but never actually talk about the syntax.
2015-02-15 18:28:36 +05:30
Manish Goregaokar
ed9ffced22
Rollup merge of #22271 - steveklabnik:gh22035, r=nikomatsakis
...
Fixes #22035 . (mostly by making it irrelevant)
2015-02-15 18:27:33 +05:30
Manish Goregaokar
cff0b78ce7
Rollup merge of #22264 - fhahn:tiny-doc-fix2, r=Gankro
...
While having a look at the Rust book I found this tiny error. In my opinion this if should be all lowercase, because it follows a colon, but I am no native speaker, so I am probably wrong. Also it is a very tiny change, so feel free to include it in any bigger documentation patch.
2015-02-15 18:26:47 +05:30
Manish Goregaokar
b13fddda20
Rollup merge of #22132 - steveklabnik:gh16645, r=alexcrichton
...
Fixes #16645
Fixing this in any deeper way will require an RFC, so let's just document the current behavior.
2015-02-15 18:22:31 +05:30
Elantsev Serj
336dd6c8f0
book: link to a file with configs links
2015-02-15 14:38:47 +03:00
caipre
1ac10dde6f
Minor change in 'method-syntax' chapter
2015-02-14 12:27:17 -05:00
Thiago Carvalho
f658efe6c3
Documentation Fixes
...
crates-and-modules - replace ")"
more string - improve readability of grapheme
2015-02-14 16:55:53 +01:00
Manish Goregaokar
657081bc9c
Normalize range syntax used in concurrency.md
...
(fixes #22317 )
2015-02-14 16:28:18 +05:30
Steve Klabnik
6d2e3d4bc0
Note that Vec<T> is heap allocated.
...
Fixes #20948
2015-02-13 18:49:21 -05:00
Steve Klabnik
ece19bfc70
Enhance static mut example in FFI chapter.
...
Fixes #9980
2015-02-13 14:57:55 -05:00
Steve Klabnik
6647d8306e
Mention type placeholders in the book.
...
Fixes #12891 .
2015-02-13 14:36:16 -05:00
Steve Klabnik
5ce1b33502
Reintroduce box syntax where needed
...
Otherwise, this line is a lie.
2015-02-13 12:35:56 -05:00
Renato Alves
f48eda8dc9
Fix small copy-paste typo
2015-02-13 17:09:46 +00:00
Steve Klabnik
65eab6eb97
Add diverging functions to the book.
...
We use them in some places, but never actually talk about the syntax.
2015-02-13 10:05:33 -05:00
Steve Klabnik
58a7d58686
Re-word paragraph about enums and equality
...
Fixes #22035 .
2015-02-13 09:37:05 -05:00
Steve Klabnik
ce22f30b9e
Make note of doc duplication with reexports
...
Fixes #16645
2015-02-13 08:56:44 -05:00
Florian Hahn
f28a33359b
Make if after colon lowercase
2015-02-13 10:24:05 +01:00
Brian Anderson
b2f70a4159
Update uninstall instructions
2015-02-12 20:36:20 -08:00