about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2020-05-08add a bit to syntax intromark-0/+5
2020-05-08add a bit to part 3 intromark-1/+3
2020-05-08get rid of old todomark-2/+0
2020-05-08finish going through discussionmark-277/+89
2020-05-08more notetakingmark-114/+34
2020-05-08start working through discussionmark-198/+51
2020-05-08some cleanup in the macros chaptermark-164/+58
2020-05-07Reference complete examplesGeorge Fraser-133/+222
2020-05-07Line lengthGeorge Fraser-1/+3
2020-05-07Example of getting diagnosticsGeorge Fraser-0/+102
2020-05-07Added link to the `ty::Adt` (#696)Hanif Ariffin-4/+4
* Added link to the `ty::Adt` * Formatting fixes Thanks @JohnTitor Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-05-07Fix `strip-priv-imports` pass name in the rustdoc documentationStanislav Tkach-1/+1
2020-05-06typoWho? Me?!-2/+2
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
2020-05-06add a bit more on parallel compilationmark-0/+46
2020-05-05Rollup merge of #71897 - alexcrichton:embed-bitcode-docs, r=nnethercoteDylan DPC-8/+36
Improve docs for embed-bitcode and linker-plugin-lto Follow-up from #71716 I wasn't able to add in time.
2020-05-04Improve docs for embed-bitcode and linker-plugin-ltoAlex Crichton-8/+36
Follow-up from #71716 I wasn't able to add in time.
2020-05-04Add Option to Force Unwind TablesSam Elliott-0/+12
When panic != unwind, `nounwind` is added to all functions for a target. This can cause issues when a panic happens with RUST_BACKTRACE=1, as there needs to be a way to reconstruct the backtrace. There are three possible sources of this information: forcing frame pointers (for which an option exists already), debug info (for which an option exists), or unwind tables. Especially for embedded devices, forcing frame pointers can have code size overheads (RISC-V sees ~10% overheads, ARM sees ~2-3% overheads). In code, it can be the case that debug info is not kept, so it is useful to provide this third option, unwind tables, that users can use to reconstruct the call stack. Reconstructing this stack is harder than with frame pointers, but it is still possible. This commit adds a compiler option which allows a user to force the addition of unwind tables. Unwind tables cannot be disabled on targets that require them for correctness, or when using `-C panic=unwind`.
2020-05-03Reduce cache timeout to catch broken links faster.Who? Me?!-1/+1
2020-05-02Fix example for winnowingBastian Kauschke-4/+8
2020-05-03Implement RFC 2523, `#[cfg(version(..))]`mibac138-0/+34
2020-05-01Rename `bitcode-in-rlib` option to `embed-bitcode`Alex Crichton-33/+27
This commit finishes work first pioneered in #70458 and started in #71528. The `-C bitcode-in-rlib` option, which has not yet reached stable, is renamed to `-C embed-bitcode` since that more accurately reflects what it does now anyway. Various tests and such are updated along the way as well. This'll also need to be backported to the beta channel to ensure we don't accidentally stabilize `-Cbitcode-in-rlib` as well.
2020-05-01improve info regarding incremental a littleTshepang Lekhonkhobe-2/+2
2020-05-01I confirmed thisTshepang Lekhonkhobe-1/+1
2020-04-30tidyWho? Me?!-1/+3
2020-04-30Update src/queries/incremental-compilation.md Hanif Ariffin-1/+1
Removed `at`. Co-authored-by: LeSeulArtichaut <leseulartichaut@gmail.com>
2020-04-30Hide link behind a clickable textHanif Ariffin-1/+3
It currently does not appear as a clickable link here https://rustc-dev-guide.rust-lang.org/queries/incremental-compilation.html Additionally, this is a particularly long and nasty link.
2020-04-30Minute formatting fixHanif Ariffin-1/+1
2020-04-29Auto merge of #71528 - alexcrichton:no-more-bitcode, r=nnethercotebors-20/+26
Store LLVM bitcode in object files, not compressed This commit is an attempted resurrection of #70458 where LLVM bitcode emitted by rustc into rlibs is stored into object file sections rather than in a separate file. The main rationale for doing this is that when rustc emits bitcode it will no longer use a custom compression scheme which makes it both easier to interoperate with existing tools and also cuts down on compile time since this compression isn't happening. The blocker for this in #70458 turned out to be that native linkers didn't handle the new sections well, causing the sections to either trigger bugs in the linker or actually end up in the final linked artifact. This commit attempts to address these issues by ensuring that native linkers ignore the new sections by inserting custom flags with module-level inline assembly. Note that this does not currently change the API of the compiler at all. The pre-existing `-C bitcode-in-rlib` flag is co-opted to indicate whether the bitcode should be present in the object file or not. Finally, note that an important consequence of this commit, which is also one of its primary purposes, is to enable rustc's `-Clto` bitcode loading to load rlibs produced with `-Clinker-plugin-lto`. The goal here is that when you're building with LTO Cargo will tell rustc to skip codegen of all intermediate crates and only generate LLVM IR. Today rustc will generate both object code and LLVM IR, but the object code is later simply thrown away, wastefully.
2020-04-29Store LLVM bitcode in object files, not compressedAlex Crichton-20/+26
This commit is an attempted resurrection of #70458 where LLVM bitcode emitted by rustc into rlibs is stored into object file sections rather than in a separate file. The main rationale for doing this is that when rustc emits bitcode it will no longer use a custom compression scheme which makes it both easier to interoperate with existing tools and also cuts down on compile time since this compression isn't happening. The blocker for this in #70458 turned out to be that native linkers didn't handle the new sections well, causing the sections to either trigger bugs in the linker or actually end up in the final linked artifact. This commit attempts to address these issues by ensuring that native linkers ignore the new sections by inserting custom flags with module-level inline assembly. Note that this does not currently change the API of the compiler at all. The pre-existing `-C bitcode-in-rlib` flag is co-opted to indicate whether the bitcode should be present in the object file or not. Finally, note that an important consequence of this commit, which is also one of its primary purposes, is to enable rustc's `-Clto` bitcode loading to load rlibs produced with `-Clinker-plugin-lto`. The goal here is that when you're building with LTO Cargo will tell rustc to skip codegen of all intermediate crates and only generate LLVM IR. Today rustc will generate both object code and LLVM IR, but the object code is later simply thrown away, wastefully.
2020-04-28It's just ICE-breaker (#685)Santiago Pastorino-1/+1
2020-04-28Rollup merge of #71641 - ehuss:update-books, r=ehussDylan DPC-0/+0
Update books ## nomicon 5 commits in 6eb24d6e9c0773d4aee68ed5fca121ce3cdf676a..4d2d275997746d35eabfc4d992dfbdcce2f626ed 2020-04-06 02:21:15 +0200 to 2020-04-27 10:24:52 -0400 - Fix example in FFI, section NPO - Update implementation code of `split_at_mut` - Use rust-lang/rust linkchecker on CI. - Use just `std::_` instead of `::std::_` - Remove illegal space. ## reference 2 commits in 3ce94caed4cf967106c51ae86be5e098f7875f11..ed22e6fbfcb6ce436e9ea3b4bb4a55b2fb50a57e 2020-04-11 17:00:27 +0200 to 2020-04-24 12:46:22 -0700 - Fix grammer for tuple patterns and tuple struct patterns (rust-lang-nursery/reference#794) - Document drop scopes (rust-lang-nursery/reference#514) ## book 2 commits in f5db319e0b19c22964398d56bc63103d669e1bba..e37c0e84e2ef73d3a4ebffda8011db6814a3b02d 2020-04-13 08:06:03 -0500 to 2020-04-26 09:31:36 -0500 - Mention short-circuiting in Appendix 02 (rust-lang/book#2318) - Increase HTTP buffer size and add 'Content-Length' header (rust-lang/book#2246) ## rust-by-example 8 commits in c106d1683c3a2b0960f0f0fb01728cbb19807332..ffc99581689fe2455908aaef5f5cf50dd03bb8f5 2020-04-09 09:14:39 -0300 to 2020-04-24 15:05:04 -0300 - Fix Example -&gt; Examples (rust-lang/rust-by-example#1340) - Make unsuffixed literal plural (rust-lang/rust-by-example#1335) - Ensure example error matches the comment (rust-lang/rust-by-example#1336) - Add missing triple backticks (rust-lang/rust-by-example#1339) - Clarify conditional compilation (rust-lang/rust-by-example#1338) - Clarifies how to customize lib crate name (rust-lang/rust-by-example#1337) - Fix bytes of youkoso in shiftjis (rust-lang/rust-by-example#1333) - Fix possible typo (rust-lang/rust-by-example#1334) ## embedded-book 4 commits in 668fb07b6160b9c468f598e839c1e044db65de30..40beccdf1bb8eb9184a2e3b42db8b8c6e394247f 2020-04-13 12:38:16 +0000 to 2020-04-26 17:44:14 +0000 - Add hint on memory config to GDB debugging section (rust-embedded/book#215) - Adds cargo-generate to installation instructions (rust-embedded/book#213) - collections: Fix example allocator (rust-embedded/book#206) - Flip111/patch 8 (rust-embedded/book#233)
2020-04-28Rollup merge of #71637 - mibac138:cfg-sanitize, r=petrochenkovDylan DPC-10/+8
Minor formatting changes in `cfg-sanitize.md`
2020-04-28Update booksEric Huss-0/+0
2020-04-27Remove extra theSantiago Pastorino-1/+1
2020-04-27Fix sub-diagnostic typoSantiago Pastorino-1/+1
2020-04-26unstable-book: Document `-Z tls-model`Vadim Petrochenkov-0/+25
2020-04-26rustc-book: Document `-C relocation-model`Vadim Petrochenkov-4/+39
2020-04-25remove info about diag ice breakers; doesn't exist yet (#682)Who? Me?!-43/+0
2020-04-25Address review comments.Charles Lew-4/+6
Co-Authored-By: Who? Me?! <mark-i-m@users.noreply.github.com>
2020-04-25Fix links.Charles Lew-17/+12
2020-04-25Address review comments.Charles Lew-85/+726
2020-04-25Fix links and CI error.Charles Lew-9/+10
2020-04-25Remove details about chalk and point to Chalk Book instead.Charles Lew-3183/+48
2020-04-24treat-err-as-bug=n means panic on nth errorSantiago Pastorino-5/+5
2020-04-24Minor formatting changes in `cfg-sanitize.md`mibac138-10/+8
2020-04-22Alphabetize the `-C` and `-Z` options.Nicholas Nethercote-215/+215
In the code, test, and docs, because it makes it much easier to find things. Other than adding the comments about alphabetical order, this commit only moves things around.
2020-04-22Add a new option `-Cbitcode-in-rlib`.Nicholas Nethercote-0/+20
It defaults to true, but Cargo will set this to false whenever it can to reduce compile times.
2020-04-20Replace `rustc` with `rustc_middle` (#680)Bastian Kauschke-4/+4
2020-04-19TypoWho? Me?!-1/+1
2020-04-19review comments: move text to more relevant sectionEsteban Küber-108/+105