about summary refs log tree commit diff
path: root/src/doc
AgeCommit message (Collapse)AuthorLines
2019-10-29Add some docs around the lint store (#476)Mark Rousskov-13/+144
* Add some docs around the lint store * Update src/diagnostics.md Co-Authored-By: Niko Matsakis <niko@alum.mit.edu> * restructure
2019-10-29Update cargo, books.Eric Huss-0/+0
2019-10-29Update since version for doctest featureGuillaume Gomez-1/+1
2019-10-29improve documentation of rustdoc doctest featureGuillaume Gomez-7/+22
2019-10-29stabilize cfg(doctest)Guillaume Gomez-30/+31
2019-10-28fix some whitespace issues (#483)Tshepang Lekhonkhobe-15/+15
Also, those are not sh scripts
2019-10-27Explain `rustc_on_unimplemented`Mazdak Farrokhzad-0/+147
2019-10-26Be more specific with -C inline-threshold.Eric Huss-6/+14
2019-10-26Apply suggestions from kinnisonEric Huss-5/+5
Co-Authored-By: Daniel Silverstone <dsilvers@digital-scurf.org>
2019-10-26Update codegen option documentation.Eric Huss-68/+235
2019-10-25RFC 2008: StabilizationDavid Wood-76/+0
This commit stabilizes RFC 2008 (#44109) by removing the feature gate. Signed-off-by: David Wood <david@davidtw.co>
2019-10-24move readme to guide (#481)Who? Me?!-0/+204
2019-10-24Fix missing link (#480)CreepySkeleton-0/+2
2019-10-24Fix a typo (#477)CreepySkeleton-1/+1
2019-10-22give instructions for how to ping the ICE-breaker teams (#475)Niko Matsakis-0/+17
* give instructions for how to ping the ICE-breaker teams * Update src/ice-breaker/about.md Co-Authored-By: Yuki Okushi <huyuumi.dev@gmail.com> * add links
2019-10-22Target-feature documented as unsafe. rustc book and rustc -C help have been ↵togiberlin-1/+23
modified.
2019-10-21Rollup merge of #62330 - SimonSapin:no-drop-in-union-fields, r=RalfJungMazdak Farrokhzad-24/+0
Change untagged_unions to not allow union fields with drop This is a rebase of #56440, massaged to solve merge conflicts and make the test suite pass. Change untagged_unions to not allow union fields with drop Union fields may now never have a type with attached destructor. This for example allows unions to use arbitrary field types only by wrapping them in `ManuallyDrop` (or similar). The stable rule remains, that union fields must be `Copy`. We use the new rule for the `untagged_union` feature. Tracking issue: https://github.com/rust-lang/rust/issues/55149
2019-10-18Auto merge of #64925 - ehuss:document-json, r=Mark-Simulacrumbors-1/+240
Document JSON message output. This documents the JSON messages in the rustc book.
2019-10-18Update links (#472)Yuki Okushi-8/+8
2019-10-17I prefers long options in documentationTshepang Lekhonkhobe-1/+2
2019-10-17format examples better (#471)Tshepang Lekhonkhobe-14/+14
2019-10-17fix links (#469)Tshepang Lekhonkhobe-4/+4
2019-10-16Auto merge of #65445 - ehuss:update-cargo-books, r=alexcrichtonbors-0/+0
Update cargo, books ## nomicon 3 commits in 4374786f0b4bf0606b35d5c30a9681f342e5707b..5004ad30d69f93553ceef74439fea2159d1f769e 2019-09-17 18:33:21 +0200 to 2019-10-12 19:52:40 +0200 - further clarify C11 and C/C++11 terminology (rust-lang-nursery/nomicon#169) - atomics: C11 -&gt; C++20 (rust-lang-nursery/nomicon#168) - use sound/unsound terminology ## cargo 12 commits in a429e8cc4614a46a86322a0777a477e2baa83f1c..3a9abe3f065554a7fbc59f440df2baba4a6e47ee 2019-10-04 17:36:12 +0000 to 2019-10-15 15:55:35 +0000 - Fix typo in git index initialization error path (rust-lang/cargo#7512) - Reject feature flags in a virtual workspace. (rust-lang/cargo#7507) - Rename `overrides` to `package` in profiles. (rust-lang/cargo#7504) - Allow publishing with dev-dependencies without a version. (rust-lang/cargo#7333) - Stabilize cache-messages (rust-lang/cargo#7450) - don't lock the package cache when cleaning target dir. (rust-lang/cargo#7502) - Document rustc wrapper (rust-lang/cargo#7499) - Migrate towards exclusively using serde for `Config` (rust-lang/cargo#7456) - Re-enable some MSVC tests. (rust-lang/cargo#7492) - when -Z unstable-options not specified, don't validate --profile (rust-lang/cargo#7489) - Improve error message for cyclic dependencies (rust-lang/cargo#7470) - Some minor clippy fixes. (rust-lang/cargo#7484) ## book 7 commits in 04806c80be0f54b1290287e3f85e84bdfc0b6ec7..9bb8b161963fcebc9d9ccd732ba26f42108016d5 2019-10-01 20:20:22 -0400 to 2019-10-14 18:42:55 -0500 - Make a portion of text less ambiguous (rust-lang/book#2092) - fix heading level (rust-lang/book#2117) - Add missing "of" before `"duck typing"`. (rust-lang/book#1951) - ch18-03: no need to debug print destructured int (rust-lang/book#1991) - Subtle fix to introduce ? on Option in Chapter 9.2 (rust-lang/book#2047) - make wording clearer (rust-lang/book#1976) - Update the version of rand we use ## rust-by-example 5 commits in a6288e7407a6c4c19ea29de6d43f40c803883f21..0b111eaae36cc4b4997684be853882a59e2c7ca7 2019-10-01 10:09:14 -0300 to 2019-10-14 18:34:25 -0300 - Some fix to three files (rust-lang/rust-by-example#1280) - Add reference to Generics (rust-lang/rust-by-example#1281) - Confusing and long sentence (rust-lang/rust-by-example#1282) - Explicit mention of slice range meaning (rust-lang/rust-by-example#1277) - Updated aliasing for nll (rust-lang/rust-by-example#1276)
2019-10-16Update cargo, booksEric Huss-0/+0
2019-10-16update linkTshepang Lekhonkhobe-1/+1
2019-10-14Add troubleshooting section to PGO chapter in rustc book.Michael Woerister-0/+11
2019-10-13Rollup merge of #65039 - HeroicKatora:deny-by-default-book, r=GuillaumeGomezMazdak Farrokhzad-0/+25
Document missing deny by default lints
2019-10-12Auto merge of #64873 - popzxc:prettify-test-time, r=wesleywiserbors-0/+80
Enhance report-time option ## Short overview This PR is a follow-up to a previously closed #64714 PR. ## Changes introduced by this PR * `libtest` now retrieves the type of the test within `TestDesc` (available types are: `UnitTest`, `IntegrationTest`, `DocTest`, `Unknown`). * `--report-time` subcommand of the `libtest` now supports colored output (disabled by default). * Colorized output depends on the threshold values. Default values (proposed by @wesleywiser): - For unit-tests: 50ms warn/100ms critical, - For integration-tests: 500ms warn/1000ms critical, - For doctests: same as for integration tests, - For unknown tests: `TEST_WARN_TIMEOUT_S` warn/ `TEST_WARN_TIMEOUT_S * 2` critical (it will only applied single-threaded mode, because otherwise test will be interrupted after reaching `TEST_WARN_TIMEOUT_S`). - These values can be overrided by setting environment variables (since those thresholds are somewhat constant for every project, it's more flexible to use environment variables than command line arguments). * New optional flag `--ensure-test-time` for `libtest`. With this flag applied, exectuion time limit excesss will cause test failure. ## What have not been done There was a comment that it would be nice to have an entry in the Cargo book about it. However, changes introduced by this PR (and #64663 in which `report-time` flag was added) aren't related directly to `cargo`, it's more about `libtest` itself. I'm considering that [The Unstable Book](https://doc.rust-lang.org/unstable-book/) is more appropriate place, but not sure if I'm right (and if so, how exactly it should be described). As one possible option, this PR may be merged without denoting it in the documentation, and in the next PR adding support of this feature to the `cargo` itself, I'll add a note in the Cargo book. ## Scope of this PR Logical scope of this PR is `libtest` only. However, to get test types, I had to modify also `libsyntax_ext` and `librustdoc` for them to provide information about test type. ## Rationale Rationale for colored output was submitted in #64714 Providing the information about kind of test was also proposed in #64714, and as an additional benefit this information may be useful for the tools using `libtest` (e.g. `cargo`). Adding flag to treat time limits excess seems logical to me, so projects that do care about test execution time won't have to invent a wheel. ## Backward compatibility All the changes are completely backward compatible. ## Demo ![rustc_enhanced_time](https://user-images.githubusercontent.com/12111581/65818381-c04f6800-e219-11e9-9875-322463abe24f.gif) r? @wesleywiser
2019-10-12Fix some paths: tt -> mbe (#465)Chris Emerson-4/+4
2019-10-12Updated kinds that were renamed to generic arguments.Diogo Sousa-51/+52
This change happened in commit bea3d67c77dd643ef1f89c8bd6562e90b373cec4 on rust-lang/rust.
2019-10-11Remove unions_with_drop_fields lintSimon Sapin-24/+0
Cases where it would trigger are now hard errors.
2019-10-10Try to clarify how crates are able to access force-unstable dependenciesEric Huss-7/+11
without a feature attribute.
2019-10-10Expand on stability documentation.Eric Huss-5/+78
2019-10-10reference the new PR mechanism (#463)Niko Matsakis-3/+15
* reference the new PR mechanism * wrap lines
2019-10-09Move unstable book entry into compiler flags directoryIgor Aleksanov-0/+0
2019-10-09Add an entry to the unstable bookIgor Aleksanov-0/+80
2019-10-07[RFC 2091] Add #[track_caller] attribute.Ayose-0/+5
- The attribute is behind a feature gate. - Error if both #[naked] and #[track_caller] are applied to the same function. - Error if #[track_caller] is applied to a non-function item. - Error if ABI is not "rust" - Error if #[track_caller] is applied to a trait function. Error codes and descriptions are pending.
2019-10-06Update referenceTyler Mandry-0/+0
- 771c5d10cf944bf7d221f5d6cb7abd2a06c400e4 Add macros in extern blocks and new proc-macro support. - 8caabd62ef5fbe99e6be6aa9e76f55bbb8433d95 Update for "modern" `meta` matcher. - 1b44947d36ccf7eba2b3bd245769eff68abf6d4d Update await desugaring after rust-lang/rust#64292
2019-10-04Refactor (build CI script): minimizes the script, thanks to mark-i-mAmanjeev Sethi-14/+2
2019-10-04Fix (build CI script): fails early if linkcheck failsAmanjeev Sethi-2/+7
2019-10-04Fix (build CI script):Amanjeev Sethi-30/+18
* Removes timeout hack because it is not needed because we have upgraded mdbook_linkcheck * Renamed build script because it is no longer ignoring timeouts
2019-10-04Revert "Removes timeout script so CI does not have false positives"Amanjeev Sethi-0/+29
This reverts commit c3ed0a1ef9013f2821eed24efcd9954600ce2b41.
2019-10-04Revert "Removes timeout script call so CI does not have false pasitives"Amanjeev Sethi-0/+1
This reverts commit 5aa733097afa7d4b3ec67e4fb09b76c761f18d17.
2019-10-04Removes timeout script call so CI does not have false pasitivesAmanjeev Sethi-1/+0
2019-10-04Removes timeout script so CI does not have false positivesAmanjeev Sethi-29/+0
2019-10-03Document current deny by default lintsAndreas Molzer-0/+25
2019-10-02create guide to ICE-breaker groups and specifically advice for LLVM (#452)Niko Matsakis-1/+115
2019-10-02fix chalk links (#457)Tshepang Lekhonkhobe-28/+28
* whitespace * update links
2019-10-02codegen unit is aka CGU (#459)Tshepang Lekhonkhobe-1/+1
2019-10-02rustc book: nitpick SLP vectorizationRobin Kruppe-1/+1
SLP vectorization (in general and as implemented in LLVM) is not limited to loops.