about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2019-06-02Fixed misspellingVallentin-3/+3
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-28Add more info subsection with links to forge and rustc api docsSantiago Pastorino-0/+11
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-28rustc-book: Update the rustc/clang compatibility table for xLTO.Michael Woerister-2/+3
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-17Renamed the file and title of the diagnostics chapter.Julian Wollersberger-5/+5
When I recently searched for infos in this guide on how to create a warning, I couldn't find any. Later I found it through #14. The reason was that I didn't know the term 'diagnostics' and that it is the collective term for errors, warnings and lints. Renaming the chapter to include the word 'error' should help. I think also including 'warning' in the title shouldn't be neccessary, because it's close enought.
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-15Added rustc phases diagram and explanationIñaki Garay-44/+230
Added rustc build phase diagram and explanation
2019-05-15Mention running tests for subdirectoriesvarkor-3/+22
2019-05-15Fixed links broken by merging chalks rules and solveIñaki Garay-11/+9
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-14Add documentation about profile-guided optimization.Michael Woerister-0/+133
2019-05-12Update rustc book CLI docs.Eric Huss-11/+156
2019-05-07Fix typo, 'which' repeated twiceTom Mulvaney-1/+1
2019-05-04Merge pull request #304 from rasendubi/fix-canonicalizationNiko Matsakis-6/+6
[canonicalization] fix result canonicalization example
2019-05-03Rename to RUSTC_LOGYuki Okushi-9/+9
2019-05-03Added mention of universal ctagsIñaki Garay-4/+13
2019-05-01Fix link in walkthroughguilherme-0/+2
2019-05-01Remove IRC from discussion chatsNicolas-10/+4
2019-05-01Bring the updating LLVM guide up to dateAlex Crichton-35/+27
2019-04-25use nightly rust for ciMark Mansi-0/+2
2019-04-25Fixed broken chalk linksIñaki Garay-4/+4
2019-04-25Document the `html_root_url` doc attribute value.Eric Huss-0/+15
2019-04-24Add documentation for two-phase borrowsMatthew Jasper-0/+101
2019-04-24Explain new powers of the `treat-err-as-bug` flagOliver Scherer-2/+4
2019-04-23Update cargo, booksEric Huss-0/+0
2019-04-23Outdent example, preserving nested fenceFelix Rabe-10/+10
2019-04-23Update lowering-module test caseAlexey Shmalko-9/+8
2019-04-20[canonicalization] fix result canonicalization exampleAlexey Shmalko-6/+6
2019-04-20Update BodyId descriptionAlexey Shmalko-2/+2
It is now a newtype'd HirId, not NodeId. See https://github.com/rust-lang/rust/pull/58167.
2019-04-17Update test-implementation chapter to current codeAlexey Shmalko-10/+8
`test_main_static` is now used instead of `test_static_main`. The libsyntax no longer generates a `TESTS` constant but rather passes all test cases directly into `test_main_static` as a slice. Update the guide accordingly.
2019-04-18Rename files in docYuki OKUSHI-11/+11
2019-04-16update chalk with new organizationMark Mansi-33/+34
2019-04-16move to subsectionMark Mansi-36/+37
2019-04-16fix MovePathIndex linkMark Mansi-8/+6
2019-04-16Update query chapter for the query macro rewriteAlexey Shmalko-32/+44
There was a big macro rewrite in these pull requests: https://github.com/rust-lang/rust/pull/56462 https://github.com/rust-lang/rust/pull/59517 Update the query chapter to describe the new macro usage.
2019-04-16subchapter with information about `--error-format json`Zack M. Davis-0/+37
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.