about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2019-06-18syntax: Factor out common fields from `SyntaxExtension` variantsVadim Petrochenkov-1/+1
2019-06-12Rollup merge of #61734 - mati865:books, r=alexcrichtonMazdak Farrokhzad-0/+0
Migrate rust-by-example to MdBook2
2019-06-11Migrate rust-by-example to MdBook2Mateusz Mikuła-0/+0
2019-06-10Implement RFC 2645 (transparent enums and unions)Michael Bradshaw-0/+176
Tracking issue: #60405
2019-06-09Auto merge of #61229 - Centril:stabilize-repr_align_enum, r=nagisabors-42/+0
Stabilize #![feature(repr_align_enum)] in Rust 1.37.0 On an `enum` item, you may now write: ```rust #[repr(align(X))] enum Foo { // ... } ``` This has equivalent effects to first defining: ```rust #[repr(align(X))] struct AlignX<T>(T); ``` and then using `AlignX<Foo>` in `Foo`'s stead. r? @nagisa
2019-06-08Auto merge of #61672 - Centril:rollup-jxo89ir, r=Centrilbors-6/+4
Rollup of 6 pull requests Successful merges: - #61646 (Remove useless allocations in macro_rules follow logic.) - #61658 (remove useless ident() functions in const tests) - #61660 (Minimize use of `#![feature(custom_attribute)]`) - #61666 (Add test for trait ICE) - #61669 ( syntax: Remove `Deref` impl from `Token`) - #61670 (Update RLS) Failed merges: r? @ghost
2019-06-08Remove some more `#![feature(custom_attribute)]`sVadim Petrochenkov-6/+4
2019-06-08Auto merge of #61529 - ehuss:update-books, r=GuillaumeGomezbors-0/+0
Update books ## reference 2 commits in 862b669c395822bb0938781d74f860e5762ad4fb..f8ae436d936f6f4891d3c1bbb1af5865eb8aeadb 2019-05-04 23:41:35 -0700 to 2019-05-31 14:59:12 +0200 - Document that literals with any suffixes are valid as tokens (rust-lang-nursery/reference#612) - Fix example code of derive macro (rust-lang-nursery/reference#611) ## book 2 commits in 29fe982990e43b9367be0ff47abc82fb2123fd03..62a8c6f25fbd981c80a046f3b04be9684749af3b 2019-05-15 17:48:40 -0400 to 2019-05-28 15:48:23 -0400 - Remove snapshots checked in layout - Remove snapshots that I've approved in layout ## rust-by-example 5 commits in 811c697b232c611ed754d279ed20643a0c4096f6..18566f4dedc3ef5bf61f5f85685d5966db99cc11 2019-04-28 18:56:42 -0300 to 2019-05-30 19:23:24 -0300 - Fixed wording in the `Seconds` struct description. (rust-lang/rust-by-example#1195) - Fix usage of the word "elision" (rust-lang/rust-by-example#1191) - Reword "Flow Control" to "Flow of Control" (rust-lang/rust-by-example#1190) - Copy edits to chapter 1 (rust-lang/rust-by-example#1189) - Fix typo in a mod/visibility.md (rust-lang/rust-by-example#1188) ## rustc-guide 9 commits in 3cb727b62b953d59b4360d39aa68b6dc8f157655..3ac9cfc9c9ab2e366feebf18718112737f572352 2019-05-07 09:53:32 -0500 to 2019-06-02 19:36:58 -0500 - Update information about debuginfo configuration - fix long line - Fixed misspelling - Add more info subsection with links to forge and rustc api docs (rust-lang/rustc-guide#324) - Renamed the file and title of the diagnostics chapter. - Added rustc phases diagram and explanation - Mention running tests for subdirectories - Fixed links broken by merging chalks rules and solve - Add documentation about profile-guided optimization. ## embedded-book 1 commits in 9858872bd1b7dbba5ec27dc30d34eba00acd7ef9..f0c75b75f9c18537b78f5d17c1015247e9a49c86 2019-05-02 18:56:54 +0000 to 2019-06-03 10:49:02 +0000 - Qemu md changes (rust-embedded/book#193)
2019-06-06Some code cleanup and tidy/test fixesVadim Petrochenkov-3/+3
2019-06-04Update booksEric Huss-0/+0
2019-05-31Rollup merge of #61372 - mati865:books, r=Centril,GuillaumeGomezPietro Albini-22/+22
Migrate some books to mdbook version 0.2 There are 3 books still using old version but they need more effort so I hope to do them in subsequent PR if I find the time.
2019-05-30Migrate rustdoc book to MdBook2Mateusz Mikuła-6/+6
2019-05-30Migrate unstable-book to MdBook2Mateusz Mikuła-16/+16
2019-05-30Rollup merge of #61279 - llogiq:implicit-option-main-doctests, r=GuillaumeGomezMazdak Farrokhzad-0/+13
implicit `Option`-returning doctests This distinguishes `Option` and `Result`-returning doctests with implicit `main` method, where the former tests must end with `Some(())`. Open question: Does this need a feature gate? r? @GuillaumeGomez
2019-05-30Rollup merge of #60850 - SimonSapin:unguarded, r=alexcrichtonMazdak Farrokhzad-7/+0
Stabilize RefCell::try_borrow_unguarded Servo has been using this since https://github.com/servo/servo/pull/23196 to add a runtime check to some unsafe code, as discussed in PR https://github.com/rust-lang/rust/pull/59211. Stabilizing would help do more of the same in libraries that also have users on Stable.
2019-05-28implicit `Option`-returning doctestsAndre Bogus-0/+13
This distinguishes `Option` and `Result`-returning doctests with implicit `main` method, where the former tests must end with `Some(())`.
2019-05-27Stabilize repr_align_enum in 1.37.0.Mazdak Farrokhzad-42/+0
2019-05-26docs: fix typo #61197airt-1/+1
2019-05-24Fixed type-alias-bounds lint docCerberuser-4/+7
The example code under type-alias-bounds lint produced two warnings - one from the lint itself and another from the dead_code lint, and only the second one was in the doc. This looked like an error, so I've added `#[allow(dead_code)]` and replaced the example output with the expected one. [Playground](https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=%23%5Ballow(dead_code)%5D%0Atype%20SendVec%3CT%3A%20Send%3E%20%3D%20Vec%3CT%3E%3B)
2019-05-17Auto merge of #49799 - hdhoang:46205_deny_incoherent_fundamental_impls, ↵bors-43/+2
r=nikomatsakis lint: convert incoherent_fundamental_impls into hard error *Summary for affected authors:* If your crate depends on one of the following crates, please upgrade to a newer version: - gtk-rs: upgrade to at least 0.4 - rusqlite: upgrade to at least 0.14 - nalgebra: upgrade to at least 0.15, or the last patch version of 0.14 - spade: upgrade or refresh the Cargo.lock file to use version 1.7 - imageproc: upgrade to at least 0.16 (newer versions no longer use nalgebra) implement #46205 r? @nikomatsakis
2019-05-17Rollup merge of #60791 - ehuss:update-books, r=Mark-SimulacrumManish Goregaokar-0/+0
Update books ## nomicon 1 commits in fb29b147be4d9a1f8e24aba753a7e1de537abf61..c656171b749b7307f21371dd0d3278efee5573b8 2019-04-22 19:10:29 -0400 to 2019-04-25 15:31:26 -0400 - Lifetimes: Updates to incorporate NLL (rust-lang-nursery/nomicon#101) ## reference 5 commits in 2a2de9ce095979978ad7b582daecf94e4070b916..862b669c395822bb0938781d74f860e5762ad4fb 2019-04-22 10:25:52 -0700 to 2019-05-04 23:41:35 -0700 - Typo (rust-lang-nursery/reference#606) - Added missing ? to Generics from InherentImpl and TraitImpl (rust-lang-nursery/reference#604) - Add missing ( to ExternalFunctionItem (rust-lang-nursery/reference#603) - Remove unneeded | from AssignmentExpression (rust-lang-nursery/reference#601) - Remove unneeded ( from TypePathSegment (rust-lang-nursery/reference#602) ## book 6 commits in db919bc6bb9071566e9c4f05053672133eaac33e..29fe982990e43b9367be0ff47abc82fb2123fd03 2019-04-15 20:11:03 -0400 to 2019-05-15 17:48:40 -0400 - Ignore a non-compiling test listing and add code to fix a test listing - Remove nostarch snapshots I've checked in layout - Reword error messages to maybe not need to wrap lines in print - This example doesn't compile but wasn't marked as such - Update install instructions for VS 2019 (rust-lang/book#1923) - Switch IRC to Discord ## rust-by-example 9 commits in 1ff0f8e018838a710ebc0cc1a7bf74ebe73ad9f1..811c697b232c611ed754d279ed20643a0c4096f6 2019-04-15 08:15:32 -0300 to 2019-04-28 18:56:42 -0300 - Fix typo in dsl.md (rust-lang/rust-by-example#1187) - File read lines (rust-lang/rust-by-example#1186) - For https://github.com/rust-lang/rust-by-example/issues/1184 closes rust-lang/rust-by-example#1184 (rust-lang/rust-by-example#1185) - Link to Reference for macro_rules designators (rust-lang/rust-by-example#1182) - Improve section Meta/Docs (rust-lang/rust-by-example#1183) - Small improvements to various files (rust-lang/rust-by-example#1173) - 19.2 Vectors Error in Code Example (rust-lang/rust-by-example#1178) - For https://github.com/rust-lang/rust-by-example/issues/1175 (rust-lang/rust-by-example#1176) - For https://github.com/rust-lang/rust-by-example/issues/1179 (rust-lang/rust-by-example#1180) ## rustc-guide 12 commits in 99e1b1d53656be08654df399fc200584aebb50e4..3cb727b62b953d59b4360d39aa68b6dc8f157655 2019-04-20 09:57:54 -0500 to 2019-05-07 09:53:32 -0500 - Fix typo, 'which' repeated twice - [canonicalization] fix result canonicalization example (rust-lang/rustc-guide#304) - Rename to RUSTC_LOG - Added mention of universal ctags - Fix link in walkthrough - Remove IRC from discussion chats - Bring the updating LLVM guide up to date - use nightly rust for ci - Fixed broken chalk links - Add documentation for two-phase borrows - Explain new powers of the `treat-err-as-bug` flag - Update lowering-module test case ## edition-guide 3 commits in c413d42a207bd082f801ec0137c31b71e4bfed4c..581c6cccfaf995394ea9dcac362dc8e731c18558 2019-04-22 01:14:56 +0200 to 2019-05-06 12:47:44 -0700 - Fix typo in controlling-panics-with-std-panic.md (rust-lang-nursery/edition-guide#158) - Fix links for book editions. (rust-lang-nursery/edition-guide#149) - Update now that NLL is enabled in 2015. (rust-lang-nursery/edition-guide#157) ## embedded-book 3 commits in de3d55f521e657863df45260ebbca1b10527f662..9858872bd1b7dbba5ec27dc30d34eba00acd7ef9 2019-04-22 12:58:28 +0000 to 2019-05-02 18:56:54 +0000 - Update linux.md (rust-embedded/book#167) - Clarify list of available targets for installation (rust-embedded/book#165) - minor grammar fix (rust-embedded/book#188)
2019-05-16Rollup merge of #60278 - ehuss:doc-html_root_url, r=GuillaumeGomezManish Goregaokar-0/+15
Document the `html_root_url` doc attribute value. I'm not sure if this was intentionally not documented, but I think it would be good to include. This was added in #9691. `--extern-html-root-url` is unstable, but I don't think it hurts to mention it.
2019-05-16Rollup merge of #60207 - felixrabe:patch-1, r=steveklabnikManish Goregaokar-10/+10
Outdent example, preserving nested fence
2019-05-15Update booksEric Huss-0/+0
2019-05-15Stabilize RefCell::try_borrow_unguardedSimon Sapin-7/+0
Servo has been using this since https://github.com/servo/servo/pull/23196 to add a runtime check to some unsafe code, as discussed in PR https://github.com/rust-lang/rust/pull/59211. Stabilizing would help do more of the same in libraries that also have users on Stable.
2019-05-12Update rustc book CLI docs.Eric Huss-11/+156
2019-04-25Document the `html_root_url` doc attribute value.Eric Huss-0/+15
2019-04-23Update cargo, booksEric Huss-0/+0
2019-04-23Outdent example, preserving nested fenceFelix Rabe-10/+10
2019-04-18Rename files in docYuki OKUSHI-11/+11
2019-04-16lint: convert incoherent_fundamental_impls into hard errorHoàng Đức Hiếu-43/+2
Also remove it from lint listings.
2019-04-14Rollup merge of #59930 - kornelski:first-robots, r=GuillaumeGomezMazdak Farrokhzad-0/+8
Exclude some copies of old book editions from search engines These are only stubs that confuse search engine users. There's no useful content in these locations.
2019-04-14Rollup merge of #59747 - gruberb:copy-book-toml-unstable-book, r=ehussMazdak Farrokhzad-0/+1
Copy book.toml unstable book generator Solves https://github.com/rust-lang/rust/issues/59554 and adds a book title to the unstable book. I assume that [copy_recursive](https://github.com/rust-lang/rust/blob/acd8dd6a50d505057a7d7ad8d0d7a4c2bd274200/src/tools/unstable-book-gen/src/main.rs#L105) will take files regardless of their type (`.md` or `.toml`). Although I had a hard time time testing it. A second pair of eyes is definitely needed.
2019-04-13Exclude some copies of old book editions from search enginesKornel-0/+8
2019-04-12Rollup merge of #59680 - DevQps:document-rustc-z-flag, r=cramertjMazdak Farrokhzad-0/+7
Document the -Z flag to the rustc book # Description Changes: - Added new documentation on the `-Z` flag of rustc in the command-line arguments section of the rustc book. If I need to rephrase anything or if you have any improvements, please let me know! I deliberately did not create an exhaustive list of all options since they are likely to change over time and per toolchain version. closes #41142
2019-04-11Auto merge of #59211 - nox:refcell-borrow-state, r=KodrAusbors-0/+7
Introduce RefCell::try_borrow_unguarded *Come sit next to the fireplace with me, this is going to be a long story.* So, you may already be aware that Servo has weird design constraints that forces us developers working on it to do weird things. The thing that interests us today is that we do layout on a separate thread with its own thread pool to do some things in parallel, whereas the data it uses comes from the script thread, which implements the entire DOM and related pieces, with `!Sync` data types such as `RefCell<T>`. The invariant we maintain is that script does not do anything ever with the DOM data as long as layout is doing its job. That's all nice and all, but one thing we don't ensure is that we don't actually know if script was currently mutably borrowing some `RefCell<T>` prior to starting layout, which may lead to aliasing mutable memory and obviously undefined behaviour. This PR reinstates `RefCell::borrow_state` so that [this method](https://github.com/servo/servo/blob/master/components/script/dom/bindings/cell.rs#L23-L30) can make use of it and return `None` if the cell was mutably borrowed. Cc @SimonSapin
2019-04-10Updated the description of -Z in the rustc book.Christian-4/+5
2019-04-07Change root path for unstable-bookBastian Gruber-0/+3
2019-04-06Update booksEric Huss-0/+0
2019-04-06Add book.toml to tools/unstable, add copy_book_toml to sciptBastian Gruber-2/+0
2019-04-05Add ignore to doc codeMasaki Hara-2/+2
2019-04-05Simplify fnbox docs.Masaki Hara-235/+15
2019-04-05Stabilize boxed_closure_impls in 1.35.0.Charles Lew-98/+0
2019-04-05Fix failing tests.Masaki Hara-1/+1
2019-04-05Add unstable-book articles on fnbox and boxed_closure_impls.Masaki Hara-0/+350
2019-04-04Rollup merge of #59685 - lzutao:patch-1, r=GuillaumeGomezMazdak Farrokhzad-1/+1
Add description for -Os and -Oz in rustc.1
2019-04-04Add description for -Os and -Oz in rustc.1lzutao-1/+1
2019-04-03Add documentation on the -Z flag on the command-line arguments section in ↵Christian-0/+6
the rustc book.
2019-04-03Updated the environment description in rustc.Christian-2/+2
2019-03-31update rustc-guide submodulemark-0/+0