about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2020-04-06Bump rust-by-example submoduleLinus Färnstrand-0/+0
2020-04-06Bump nomicon submoduleLinus Färnstrand-0/+0
2020-04-04Auto merge of #69898 - spastorino:rename-rustc-guide2, r=Xanewokbors-0/+0
Move rustc-guide submodule to rustc-dev-guide r? @pietroalbini
2020-04-04Auto merge of #69718 - arlosi:debughash, r=eddybbors-0/+11
Add hash of source files in debug info LLVM supports placing the hash of source files inside the debug info. This information can be used by a debugger to verify that the source code matches the executable. This change adds support for both hash algorithms supported by LLVM, MD5 and SHA1, controlled by a target option. * DWARF only supports MD5 * LLVM IR supports MD5 and SHA1 (and SHA256 in LLVM 11). * CodeView (.PDB) supports MD5, SHA1, and SHA256. Fixes #68980. Tracking issue: #70401 rustc dev guide PR with further details: https://github.com/rust-lang/rustc-dev-guide/pull/623
2020-04-03Auto merge of #70156 - michaelwoerister:incr-cgus, r=nikomatsakisbors-3/+2
Make the rustc respect the `-C codegen-units` flag in incremental mode. This PR implements (the as of yet unapproved) major change proposal at https://github.com/rust-lang/compiler-team/issues/245. See the description there for background and rationale. The changes are pretty straightforward and should be easy to rebase if the proposal gets accepted at some point. r? @nikomatsakis cc @pnkfelix
2020-04-02remove confusing about lvalues term@ßd€łw@ħ@ß-1/+1
2020-04-02Add hash of source files in debug infoArlo Siemsen-0/+11
* Adds either an MD5 or SHA1 hash to the debug info. * Adds new unstable option `-Z src-hash-algorithm` to control the hashing algorithm.
2020-04-02fix type in operands section@ßd€łw@ħ@ß-1/+1
2020-04-02Add missing markdown rust annotationlzutao-2/+2
2020-04-01Update -Ccodegen-units docs wrt incr. comp. in rustc book.Michael Woerister-3/+2
2020-04-01Add git repo address to unstable booklzutao-0/+3
2020-04-01Rollup merge of #70630 - ehuss:update-books, r=ehussDylan DPC-0/+0
Update books. ## reference 2 commits in e2f11fe4d6a5ecb471c70323197da43c70cb96b6..89dd146154474559536d5d4049a03831c501deea 2020-03-10 06:59:24 +0100 to 2020-03-31 09:42:10 -0700 - Clarify rule for end-of-line backslashes in strings (rust-lang-nursery/reference#784) - Fix and clarify section on re-export (rust-lang-nursery/reference#780) ## book 1 commits in 6fb3705e5230311b096d47f7e2c91f9ce24393d0..c8841f2841a2d26124319ddadd1b6a245f9a1856 2020-02-12 13:48:57 -0500 to 2020-03-22 09:07:01 -0500 - Fix broken front_of_house.rs test on nightly. (rust-lang/book#2289) ## rust-by-example 7 commits in cb369ae95ca36b841960182d26f6d5d9b2e3cc18..edd2a7e687358712608896730c083cb76c7b401a 2020-03-14 12:13:22 -0500 to 2020-03-30 09:37:29 -0300 - feat: add doc attributes section to documentation (rust-lang/rust-by-example#1323) - feat: add playpen topic (rust-lang/rust-by-example#1324) - feat: add sentence about rustdoc & std library (rust-lang/rust-by-example#1322) - fix: make spelling/style of rustdoc consistent (rust-lang/rust-by-example#1321) - Rewrite section on 'static lifetime. (rust-lang/rust-by-example#1320) - Remove deprecated `std::error::Error` functions and other minor changes (rust-lang/rust-by-example#1319) - Remove mdbook version flags from README (rust-lang/rust-by-example#1318) ## nomicon 1 commits in 9f797e65e6bcc79419975b17aff8e21c9adc039f..411197b0e77590c967e37e8f6ec681abd359afe8 2020-03-04 03:45:13 +0100 to 2020-03-31 20:46:09 +0200 - Fix negative_impls feature. (rust-lang-nursery/nomicon#205)
2020-03-31Update books.Eric Huss-0/+0
2020-03-30Document ThreadSanitizer in unstable-bookTomasz Miąsko-86/+150
2020-03-26Rename asm! to llvm_asm!Amanieu d'Antras-23/+23
asm! is left as a wrapper around llvm_asm! to maintain compatibility.
2020-03-26create a tracking issue and link to itNiko Matsakis-2/+2
2020-03-26introduce `negative_impls` feature gate and documentNiko Matsakis-1/+120
They used to be covered by `optin_builtin_traits` but negative impls are now applicable to all traits, not just auto traits. This also adds docs in the unstable book for the current state of auto traits.
2020-03-24Move rustc-guide submodule to rustc-dev-guideSantiago Pastorino-0/+0
2020-03-24Rollup merge of #69788 - ArekPiekarz:unstable_book_optin_builtin_traits, ↵Mazdak Farrokhzad-1/+1
r=Dylan-DPC Fix sequence of Type and Trait in optin-builtin-traits in Unstable Book A simple fix in docs - the sequence of words in basic example of negative trait implementation was reversed.
2020-03-23Rollup merge of #70300 - aleksator:66636_reword_unused_variable_warning, ↵Mazdak Farrokhzad-2/+2
r=Dylan-DPC Reword unused variable warning Fixes #66636
2020-03-23Rollup merge of #69494 - GuillaumeGomez:stabilize-crate-version, ↵Mazdak Farrokhzad-12/+12
r=ehuss,aleksator,ollie27 Stabilize --crate-version option in rustdoc I don't see any reason to not stabilize it anymore, so let's go! cc @kinnison @ehuss r? @ollie27
2020-03-23Reword unused variable warningAlex Tokarev-2/+2
2020-03-16Update booksEric Huss-0/+0
2020-03-16Rollup merge of #70014 - TimotheeGerber:small-fix-rustdoc-book, r=Dylan-DPCDylan DPC-7/+7
Small fixes in rustdoc book I read the `rustdoc` book today and noticed some small typos/problems. Mainly: - `# fn foo() {}` was displayed when not needed because fenced block code type was `text` instead of `rust`; - two path separators were missing and some Windows-style separators were not consistent with the rest of them (mainly Linux-style). Here are my proposed fixes. It is my first PR for the rust project. Don't hesitate to tell me if I am doing it wrong or if you need anything else. Have a nice day!
2020-03-14Fix punctuation in rustdoc bookTimothée Gerber-1/+1
2020-03-14Change fenced code block type in rustdoc bookTimothée Gerber-1/+1
2020-03-14Clean up path separator in rustdoc bookTimothée Gerber-5/+5
2020-03-14Block version-specific docs from search enginesKornel-17/+2
Stable, beta and nightly URLs remain
2020-03-13Auto merge of #67502 - Mark-Simulacrum:opt-catch, r=Mark-Simulacrumbors-20/+3
Optimize catch_unwind to match C++ try/catch This refactors the implementation of catching unwinds to allow LLVM to inline the "try" closure directly into the happy path, avoiding indirection. This means that the catch_unwind implementation is (after this PR) zero-cost unless a panic is thrown. https://rust.godbolt.org/z/cZcUSB is an example of the current codegen in a simple case. Notably, the codegen is *exactly the same* if `-Cpanic=abort` is passed, which is clearly not great. This PR, on the other hand, generates the following assembly: ```asm # -Cpanic=unwind: push rbx mov ebx,0x2a call QWORD PTR [rip+0x1c53c] # <happy> mov eax,ebx pop rbx ret mov rdi,rax call QWORD PTR [rip+0x1c537] # cleanup function call call QWORD PTR [rip+0x1c539] # <unfortunate> mov ebx,0xd mov eax,ebx pop rbx ret # -Cpanic=abort: push rax call QWORD PTR [rip+0x20a1] # <happy> mov eax,0x2a pop rcx ret ``` Fixes #64224, and resolves #64222.
2020-03-12Rollup merge of #69747 - spastorino:rename-rustc-guide, r=pietroalbiniMazdak Farrokhzad-3/+3
Rename rustc guide This is in preparation for https://github.com/rust-lang/rustc-guide/issues/470 Needs to be merged after we actually rename the guide. Have used this to rename: `git grep -l 'rustc_guide' | xargs sed -i 's/rustc_guide/rustc_dev_guide/g'` `git grep -l 'rustc-guide' | xargs sed -i 's/rustc-guide/rustc-dev-guide/g'` `git grep -l 'rustc guide' | xargs sed -i 's/rustc guide/rustc dev guide/g'`
2020-03-10rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.orgSantiago Pastorino-2/+2
2020-03-10Rename rustc_guide to rustc_dev_guideSantiago Pastorino-2/+2
2020-03-10Rename rustc-guide to rustc-dev-guideSantiago Pastorino-2/+2
2020-03-10Rollup merge of #69514 - GuillaumeGomez:remove-spotlight, r=kinnisonMazdak Farrokhzad-51/+0
Remove spotlight I had a few comments saying that this feature was at best misunderstood or not even used so I decided to organize a poll about on [twitter](https://twitter.com/imperioworld_/status/1232769353503956994). After 87 votes, the result is very clear: it's not useful. Considering the amount of code we have just to run it, I think it's definitely worth it to remove it. r? @kinnison cc @ollie27
2020-03-08Rollup merge of #69608 - o01eg:expose-target-libdir-print, r=ehussMazdak Farrokhzad-0/+1
Expose target libdir information via print command With custom libdir it is required to have an access to library placement. See https://github.com/RazrFalcon/cargo-bloat/issues/51
2020-03-08Rollup merge of #69641 - ehuss:update-books, r=ehussMazdak Farrokhzad-0/+0
Update books ## nomicon 8 commits in 3e6e1001dc6e095dbd5c88005e80969f60e384e1..9f797e65e6bcc79419975b17aff8e21c9adc039f 2019-12-14 22:08:52 +0000 to 2020-03-04 03:45:13 +0100 - Rustup to latest rustc (rust-lang-nursery/nomicon#203) - (minor) Add backticks around type names (rust-lang-nursery/nomicon#197) - Add book.toml (rust-lang-nursery/nomicon#185) - Rename `Alloc` to `AllocRef` (rust-lang-nursery/nomicon#188) - Lifetimes: explain how to fix destructor example (rust-lang-nursery/nomicon#195) - mention soundness (rust-lang-nursery/nomicon#194) - Fix example in FFI section Calling Rust from C (rust-lang-nursery/nomicon#193) - Removed repeated word (rust-lang-nursery/nomicon#191) ## reference 8 commits in 64239df6d173562b9deb4f012e4c3e6e960c4754..559e09caa9661043744cf7af7bd88432d966f743 2020-02-10 19:05:13 +0100 to 2020-03-02 01:17:14 +0100 - Syntax error fix (rust-lang-nursery/reference#769) - Fix incorrect pseudocode for #[repr(C)] struct alignment (rust-lang-nursery/reference#766) - Replace "Field-Less" with "Fieldless" (rust-lang-nursery/reference#768) - Removed repeated word (rust-lang-nursery/reference#767) - Update for change in const lint name. (rust-lang-nursery/reference#764) - semantic type -&gt; resolved type (rust-lang-nursery/reference#761) - add behavior change of relative paths without `self` in 2018 edition (rust-lang-nursery/reference#757) - assignment operator expressions -&gt; compound assignment expressions (rust-lang-nursery/reference#759) ## rust-by-example 3 commits in 32facd5522ddbbf37baf01e4e4b6562bc55c071a..db57f899ea2a56a544c8d280cbf033438666273d 2020-02-11 09:25:06 -0300 to 2020-02-18 17:46:46 -0300 - Minor typo fix in src/mod/visibility (rust-lang/rust-by-example#1309) - Don't suggest Into implements a reverse conversion (rust-lang/rust-by-example#1307) - Improve grammar in example of 'in let' section (rust-lang/rust-by-example#1308) ## embedded-book 2 commits in b2e1092bf67bd4d7686c4553f186edbb7f5f92db..b81ffb7a6f4c5aaed92786e770e99db116aa4ebd 2020-01-30 08:45:46 +0000 to 2020-02-27 08:06:04 +0000 - Setting output to `high` needs a `true` argument (rust-embedded/book#227) - Add licence notes to index.md (rust-embedded/book#226)
2020-03-08Rollup merge of #69561 - JohnTitor:clean-up-unstable-book, r=Mark-SimulacrumMazdak Farrokhzad-12/+15
Clean up unstable book - #58402's feature was renamed to `tidy_test_never_used_anywhere_else` and it is now used for tidy only - `read_initializer` link is wrong and the doc should be auto-generated so removed - Add dummy doc for `link_cfg` - Stop generating `compiler_builtins_lib` doc in favor of b8ccc0f8a60ac16fdc00f4b2e36e1a5db8b78295 - Make `rustc_attrs` tracking issue "None"
2020-03-07Add new option to the documentation.O01eg-0/+1
2020-03-06Fix sequence of Type and Trait in optin-builtin-traits in Unstable BookArkadiusz Piekarz-1/+1
2020-03-06fix various typosMatthias Krüger-2/+2
2020-03-05Remove eh_unwind_resume lang itemAmanieu d'Antras-19/+3
2020-03-05Opt out of CTFE if the 'const_eval_limit' is set to 0Christoph Schmidler-2/+2
2020-03-05Add a new test to reach const_limit setting, although with wrong WARNINGs yetChristoph Schmidler-7/+7
rename feature to const_eval_limit
2020-03-05Prepare const_limit feature gate and attributeChristoph Schmidler-0/+7
2020-03-04Update booksEric Huss-0/+0
2020-03-02Fix cross-DLL panics under MSVCAmanieu d'Antras-1/+0
2020-02-29Rename `syntax` to `rustc_ast` in source codeVadim Petrochenkov-2/+2
2020-02-29Make it build againVadim Petrochenkov-2/+2
2020-02-29Clean up unstable bookYuki Okushi-12/+15
2020-02-27Remove "important traits" featureGuillaume Gomez-51/+0