about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2018-09-26docs: this llvm feature only supports the ELF object formatJorge Aparicio-0/+4
2018-09-26unstable-book: recommend an INFO sectionJorge Aparicio-8/+18
that makes the output .stack_sizes section non-allocatable when linking with either GNU LD or LLD
2018-09-26document this feature in the unstable bookJorge Aparicio-0/+153
2018-09-25Auto merge of #54575 - pietroalbini:rollup, r=pietroalbinibors-3/+21
Rollup of 12 pull requests Successful merges: - #53518 (Add doc for impl From in char_convert) - #54058 (Introduce the partition_dedup/by/by_key methods for slices) - #54281 (Search box) - #54368 (Reduce code block sides padding) - #54498 (The project moved under the Mozilla umbrella) - #54518 (resolve: Do not block derive helper resolutions on single import resolutions) - #54522 (Fixed three small typos.) - #54529 (aarch64-pc-windows-msvc: Don't link libpanic_unwind to libtest.) - #54537 (Rename slice::exact_chunks() to slice::chunks_exact()) - #54539 (Fix js error) - #54557 (incr.comp.: Don't automatically enable -Zshare-generics for incr. comp. builds.) - #54558 (Improvements to finding LLVM's FileCheck) Failed merges: r? @ghost
2018-09-25Rollup merge of #54498 - sylvestre:patch-1, r=frewsxcvPietro Albini-1/+1
The project moved under the Mozilla umbrella
2018-09-25Rollup merge of #54281 - GuillaumeGomez:search-box, r=QuietMisdreavusPietro Albini-2/+20
Search box Follow up of #54244. r? @QuietMisdreavus <img width="1440" alt="screen shot 2018-09-16 at 21 23 05" src="https://user-images.githubusercontent.com/3050060/45600056-cbf93380-b9f6-11e8-904a-d76ddbc5ed69.png">
2018-09-25Auto merge of #53542 - alexreg:impl-trait-in-bindings, r=cramertjbors-0/+28
`impl trait` in bindings (feature: impl-trait-existential-types) This PR enables `impl Trait` syntax (opaque types) to be used in bindings, e.g. * `let foo: impl Clone = 1;` * `static foo: impl Clone = 2;` * `const foo: impl Clone = 3;` This is part of [RFC 2071](https://github.com/rust-lang/rfcs/blob/master/text/2071-impl-trait-existential-types.md) ([tracking issue](https://github.com/rust-lang/rust/issues/34511)), but exists behind the separate feature gate `impl_trait_in_bindings`. CC @cramertj @oli-obk @eddyb @Centril @varkor
2018-09-25Auto merge of #53693 - scottmcm:marker-trait-attribute, r=nikomatsakisbors-0/+33
Support an explicit annotation for marker traits From the tracking issue for rust-lang/rfcs#1268: > It seems obvious that we should make a `#[marker]` annotation. ~ https://github.com/rust-lang/rust/issues/29864#issuecomment-368959441 This PR allows you to put `#[marker]` on a trait, at which point: - [x] The trait must not have any items ~~All of the trait's items must have defaults~~ - [x] Any impl of the trait must be empty (not override any items) - [x] But impls of the trait are allowed to overlap r? @nikomatsakis
2018-09-25Added section to Unstable Book.Alexander Regueiro-0/+28
2018-09-23and llvm has https nowSylvestre Ledru-1/+1
2018-09-23The project moved under the Mozilla umbrellaSylvestre Ledru-1/+1
2018-09-22Auto merge of #54457 - pietroalbini:rollup, r=pietroalbinibors-3/+17
Rollup of 16 pull requests Successful merges: - #53652 (define copy_within on slices) - #54261 (Make `dyn` a keyword in the 2018 edition) - #54280 (remove (more) CAS API from Atomic* types where not natively supported) - #54323 (rustbuild: drop color handling) - #54350 (Support specifying edition in doc test) - #54370 (Improve handling of type bounds in `bit_set.rs`.) - #54371 (add -Zui-testing to rustdoc) - #54374 (Make 'proc_macro::MultiSpan' public.) - #54402 (Use no_default_libraries for all NetBSD flavors) - #54409 (Detect `for _ in in bar {}` typo) - #54412 (add applicability to span_suggestion call) - #54413 (Add UI test for deref recursion limit printing twice) - #54415 (parser: Tweak function parameter parsing to avoid rollback on succesfull path) - #54420 (Compress `Liveness` data some more.) - #54422 (Simplify slice's first(_mut) and last(_mut) with get) - #54446 (Unify christianpoveda's emails) Failed merges: - #54058 (Introduce the partition_dedup/by/by_key methods for slices) r? @ghost
2018-09-22Rollup merge of #54350 - Munksgaard:support-edition-in-doc-test, r=steveklabnikPietro Albini-3/+17
Support specifying edition in doc test Fixes #52623 r? @QuietMisdreavus
2018-09-22Stabilize crate_in_paths, extern_absolute_paths and extern_prelude on all ↵Eduard-Mihai Burtescu-92/+0
editions.
2018-09-20Add documentation about the edition flagPhilip Munksgaard-0/+16
2018-09-20Add test for doctest edition supportPhilip Munksgaard-3/+1
2018-09-19Add marker_trait_attr to the unstable bookScott McMurray-0/+33
2018-09-18Update The Book to lateststeveklabnik-0/+0
Let's check out https://github.com/rust-lang/book/pull/1505 on nightly
2018-09-18Rollup merge of #54311 - frewsxcv:frewsxcv-readme, r=GuillaumeGomezGuillaume Gomez-32/+0
Remove README with now-out-of-date docs about docs. These docs haven't really been touched in years, and from what I tried, the `rustdoc` commands don't work. Seems like we don't need this?
2018-09-17Remove REAMDE with now-out-of-date docs about docs.Corey Farwell-32/+0
2018-09-17Improve search box displayGuillaume Gomez-2/+20
2018-09-16Rollup merge of #54244 - kzys:search-box, r=GuillaumeGomezGuillaume Gomez-0/+7
Add a small search box to seach Rust's standary library This change partially addresses #14572. No CSS doesn't look fancy but at least it is functional.
2018-09-14Add a small search box to seach Rust's standary libraryKazuyoshi Kato-0/+7
This change partially addresses #14572. No CSS doesn't look fancy but at least it is functional.
2018-09-13introduce SelfCtorF001-3/+3
2018-09-13implement feature tuple_struct_self_ctorF001-0/+33
2018-09-12Auto merge of #53793 - toidiu:ak-stabalize, r=nikomatsakisbors-67/+0
stabilize outlives requirements https://github.com/rust-lang/rust/issues/44493 r? @nikomatsakis
2018-09-12Rollup merge of #54073 - behnam:docs-1, r=frewsxcvkennytm-7/+10
docs: Use dollar sign for all bash prompts Making it consistent across the board, as most of them already use `$`. Also split one continues bash run into two, to make it easier see different runs: one with warning and another with error.
2018-09-11stabalize infer outlives requirements (RFC 2093).toidiu-67/+0
Co-authored-by: nikomatsakis
2018-09-11Auto merge of #51363 - japaric:stable-used, r=cramertjbors-157/+0
stabilize #[used] closes #40289 RFC for stabilization: rust-lang/rfcs#2386 r? @Centril Where should this be documented? Currently the documentation is in the unstable book
2018-09-09remove #[used] from the unstable bookJorge Aparicio-157/+0
it'll be documented in the reference
2018-09-08docs: Use dollar sign for all bash promptsBehnam Esfahbod-7/+10
Making it consistent across the board, as most of them already use `$`. Also split one continues bash run into two, to make it easier see different runs: one with warning and another with error.
2018-09-09Stabilize the 2018 editionMark Rousskov-13/+14
2018-09-08Rollup merge of #54040 - steveklabnik:update-books, r=Mark-Simulacrumkennytm-0/+0
update books for next release
2018-09-07update books for next releasesteveklabnik-0/+0
2018-09-07Rollup merge of #53550 - brson:recurring, r=estebankkennytm-2/+2
librustc_lint: In recursion warning, change 'recurring' to 'recursing' The existing wording seems incorrect. Aside: This warning, 'function cannot return without recursing' is not perfectly clear - it implies that the function _can_ return, it's just got to recurse. But really the fn cannot return period. Clearer wording: 'function recurses infinitely; it cannot return'; or 'function is infinitely self-recursive; it cannot return, and this is probably an error'. I like that.
2018-09-04Document #[test_case] and #![test_runner]John Renner-0/+33
2018-09-01Rollup merge of #53076 - QuietMisdreavus:cfg-rustdoc, r=GuillaumeGomezkennytm-13/+15
set cfg(rustdoc) when rustdoc is running on a crate When using `#[doc(cfg)]` to document platform-specific items, it's a little cumbersome to get all the platforms' items to appear all at once. For example, the standard library adds `--cfg dox` to rustdoc's command line whenever it builds docs, and the documentation for `#![feature(doc_cfg)]` suggests using a Cargo feature to approximate the same thing. This is a little awkward, because you always need to remember to set `--features dox` whenever you build documentation. This PR proposes making rustdoc set `#[cfg(rustdoc)]` whenever it runs on a crate, to provide an officially-sanctioned version of this that is set automatically. This way, there's a standardized way to declare that a certain version of an item is specifically when building docs. To try to prevent the spread of this feature from happening too quickly, this PR also restricts the use of this flag to whenever `#![feature(doc_cfg)]` is active. I'm sure there are other uses for this, but right now i'm tying it to this feature. (If it makes more sense to give this its own feature, i can easily do that.)
2018-08-31feature(doc_cfg): add docs for cfg(rustdoc)QuietMisdreavus-13/+15
2018-08-31Auto merge of #51384 - QuietMisdreavus:extern-version, r=GuillaumeGomezbors-0/+15
rustdoc: add flag to control the html_root_url of dependencies The `--extern-html-root-url` flag in this PR allows one to override links to crates whose docs are not already available locally in the doc bundle. Docs.rs currently uses a version of this to make sure links to other crates go into that crate's docs.rs page. See the included test for intended use, but the idea is as follows: Calling rustdoc with `--extern-html-root-url crate=https://some-url.com` will cause rustdoc to override links that point to that crate to instead be replaced with a link rooted at `https://some-url.com/`. (e.g. for docs.rs this would be `https://docs.rs/crate/0.1.0` or the like.) Cheekily, rustup could use these options to redirect links to std/core/etc to instead point to locally-downloaded docs, if it so desired. Fixes https://github.com/rust-lang/rust/issues/19603
2018-08-26Auto merge of #53619 - japaric:panic-handler, r=SimonSapinbors-3/+3
add #[panic_handler]; deprecate #[panic_implementation] r? @SimonSapin cc #44489
2018-08-24Auto merge of #53662 - kennytm:rollup, r=kennytmbors-0/+0
Rollup of 16 pull requests Successful merges: - #53311 (Window Mutex: Document that we properly initialize the SRWLock) - #53503 (Discourage overuse of mem::forget) - #53545 (Fix #50865: ICE on impl-trait returning functions reaching private items) - #53559 (add macro check for lint) - #53562 (Lament the invincibility of the Turbofish) - #53563 (use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()) - #53592 (docs: minor stylistic changes to str/string docs) - #53594 (Update RELEASES.md to include clippy-preview) - #53600 (Fix a grammatical mistake in "expected generic arguments" errors) - #53614 (update nomicon and book) - #53617 (tidy: Stop requiring a license header) - #53618 (Add missing fmt examples) - #53636 (Prefer `.nth(n)` over `.skip(n).next()`.) - #53644 (Use SmallVec for SmallCStr) - #53664 (Remove unnecessary closure in rustc_mir/build/mod.rs) - #53666 (Added rustc_codegen_llvm to compiler documentation.)
2018-08-24Rollup merge of #53614 - RalfJung:nomicon, r=kennytmkennytm-0/+0
update nomicon and book
2018-08-23Stabilize 'attr_literals' feature.Sergio Benitez-30/+0
2018-08-23update the unstable bookJorge Aparicio-3/+3
2018-08-23Auto merge of #52602 - scottmcm:tryblock-expr, r=nikomatsakisbors-7/+9
Implement try block expressions I noticed that `try` wasn't a keyword yet in Rust 2018, so... ~~Fix​es https://github.com/rust-lang/rust/issues/52604~~ That was fixed by PR https://github.com/rust-lang/rust/pull/53135 cc https://github.com/rust-lang/rust/issues/31436 https://github.com/rust-lang/rust/issues/50412
2018-08-23Stabilize a few secondary macro featuresVadim Petrochenkov-26/+0
`tool_attributes`, `proc_macro_path_invoc`, partially `proc_macro_gen`
2018-08-22update nomicon and bookRalf Jung-0/+0
2018-08-21Rollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkorkennytm-9/+9
Fix typos found by codespell.
2018-08-20librustc_lint: In recursion warning, change 'recurring' to 'recursing'Brian Anderson-2/+2
2018-08-19Rename `catch_expr` feature to `try_blocks`Scott McMurray-3/+3